chat_prompt
stringlengths
438
1.53k
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"population\" (\n \"year\" real,\n \"population_region_total\" real,\n \"population_maryborough\" real,\n \"population_hervey_bay\" real,\n \"population_woocoo\" real,\n \"population_tiaro\" real\n);\n\nQuestion: Name the least year for population woocoo more than 750 and population region total more than 74,210 with population tiaro of 4,449 and population maryborough less than 24,465" }, { "role": "assistant", "content": "SELECT MIN(\"year\") FROM \"population\" WHERE \"population_woocoo\">750 AND \"population_region_total\">'74,210' AND \"population_tiaro\"='4,449' AND \"population_maryborough\"<'24,465';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"125cc_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: Which manufacturer made Shoya Tomizawa's motorcycle?" }, { "role": "assistant", "content": "SELECT \"manufacturer\" FROM \"125cc_classification\" WHERE \"rider\"='shoya tomizawa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"125cc_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: How many laps were ridden in the race that had a Time/Retired of +37.351?" }, { "role": "assistant", "content": "SELECT COUNT(\"laps\") FROM \"125cc_classification\" WHERE \"time_retired\"='+37.351';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"125cc_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: How many laps did Mattia Pasini ride?" }, { "role": "assistant", "content": "SELECT MIN(\"laps\") FROM \"125cc_classification\" WHERE \"rider\"='mattia pasini';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"notable_players\" (\n \"nationality\" text,\n \"position\" text,\n \"leeds_career\" text,\n \"appearances\" real,\n \"goals\" real\n);\n\nQuestion: What position does the player who has made 244 appearances with a Leeds career of 1981\u20131989 play?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"notable_players\" WHERE \"appearances\"=244 AND \"leeds_career\"='1981\u20131989';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"notable_players\" (\n \"nationality\" text,\n \"position\" text,\n \"leeds_career\" text,\n \"appearances\" real,\n \"goals\" real\n);\n\nQuestion: What position does the Wales player who made more than 167 appearances, had more than 0 goals, and had a Leeds career from 1977\u20131982 play?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"notable_players\" WHERE \"appearances\">167 AND \"nationality\"='wales' AND \"goals\">0 AND \"leeds_career\"='1977\u20131982';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"notable_players\" (\n \"nationality\" text,\n \"position\" text,\n \"leeds_career\" text,\n \"appearances\" real,\n \"goals\" real\n);\n\nQuestion: What is the average number of goals for a player who had a Leeds career from 1960\u20131964 and made fewer than 120 appearances?" }, { "role": "assistant", "content": "SELECT AVG(\"goals\") FROM \"notable_players\" WHERE \"leeds_career\"='1960\u20131964' AND \"appearances\"<120;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"alma_mater\" (\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text\n);\n\nQuestion: Who attended the school in 2008, that Deandria Hill attended in 2005?" }, { "role": "assistant", "content": "SELECT \"2008\" FROM \"alma_mater\" WHERE \"2005\"='deandria hill';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"alma_mater\" (\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text\n);\n\nQuestion: Who attended the school in 2006, that Jasmine Wilson attended in 2005?" }, { "role": "assistant", "content": "SELECT \"2006\" FROM \"alma_mater\" WHERE \"2005\"='jasmine wilson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"alma_mater\" (\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text\n);\n\nQuestion: Who attended the school in 2009, that Lakita Hall attended in 2007?" }, { "role": "assistant", "content": "SELECT \"2009\" FROM \"alma_mater\" WHERE \"2007\"='lakita hall';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"alma_mater\" (\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text\n);\n\nQuestion: Who attended the school in 2007, that Kiara Spivey attended in 2008?" }, { "role": "assistant", "content": "SELECT \"2007\" FROM \"alma_mater\" WHERE \"2008\"='kiara spivey';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"alma_mater\" (\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text\n);\n\nQuestion: Who attended the school in 2006, that Whitney Powell attended in 2007?" }, { "role": "assistant", "content": "SELECT \"2006\" FROM \"alma_mater\" WHERE \"2007\"='whitney powell';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"alma_mater\" (\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text\n);\n\nQuestion: Who attended the school in 2008, that Brikajdri Wilson attended in 2006?" }, { "role": "assistant", "content": "SELECT \"2008\" FROM \"alma_mater\" WHERE \"2006\"='brikajdri wilson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"semifinal_1\" (\n \"rank\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: What is the lowest rank of a swimmer named Elizabeth Van Welie with a lane larger than 5?" }, { "role": "assistant", "content": "SELECT MIN(\"rank\") FROM \"semifinal_1\" WHERE \"lane\">5 AND \"name\"='elizabeth van welie';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"semifinal_1\" (\n \"rank\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: What is the rank of the swimmer with a time of 2:11.83?" }, { "role": "assistant", "content": "SELECT \"rank\" FROM \"semifinal_1\" WHERE \"time\"='2:11.83';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"semifinal_1\" (\n \"rank\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: What is the lowest lane of a swimmer with a time of 2:07.57 and a rank larger than 1?" }, { "role": "assistant", "content": "SELECT MIN(\"lane\") FROM \"semifinal_1\" WHERE \"time\"='2:07.57' AND \"rank\">1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"semifinal_1\" (\n \"rank\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: What is the rank of the swimmer named Petria Thomas?" }, { "role": "assistant", "content": "SELECT \"rank\" FROM \"semifinal_1\" WHERE \"name\"='petria thomas';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"group_stage\" (\n \"date\" text,\n \"opponents\" text,\n \"h_a\" text,\n \"result_f_a\" text,\n \"attendance\" real,\n \"group_position\" text\n);\n\nQuestion: How many people were in attendance when the group position was 3rd?" }, { "role": "assistant", "content": "SELECT \"attendance\" FROM \"group_stage\" WHERE \"group_position\"='3rd';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"group_stage\" (\n \"date\" text,\n \"opponents\" text,\n \"h_a\" text,\n \"result_f_a\" text,\n \"attendance\" real,\n \"group_position\" text\n);\n\nQuestion: What was the final score agains Dynamo Kyiv, when the group position was 1st?" }, { "role": "assistant", "content": "SELECT \"result_f_a\" FROM \"group_stage\" WHERE \"group_position\"='1st' AND \"opponents\"='dynamo kyiv';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"group_stage\" (\n \"date\" text,\n \"opponents\" text,\n \"h_a\" text,\n \"result_f_a\" text,\n \"attendance\" real,\n \"group_position\" text\n);\n\nQuestion: What was the average attendance on 18 October 2000?" }, { "role": "assistant", "content": "SELECT AVG(\"attendance\") FROM \"group_stage\" WHERE \"date\"='18 october 2000';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" text,\n \"finish\" text\n);\n\nQuestion: In 2007, what player won player of the year?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"made_the_cut\" WHERE \"year_s_won\"='2007';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" text,\n \"finish\" text\n);\n\nQuestion: What year(s) did Mike Weir win player of the year?" }, { "role": "assistant", "content": "SELECT \"year_s_won\" FROM \"made_the_cut\" WHERE \"player\"='mike weir';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" text,\n \"finish\" text\n);\n\nQuestion: The To par of +14 was won in what year(s)?" }, { "role": "assistant", "content": "SELECT \"year_s_won\" FROM \"made_the_cut\" WHERE \"to_par\"='+14';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What is the result when the competition is 1982 president's cup?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"international_goals\" WHERE \"competition\"='1982 president''s cup';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What is the score when the date is December 14, 1985?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"international_goals\" WHERE \"date\"='december 14, 1985';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What is the venue when the date is September 24, 1980?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"international_goals\" WHERE \"date\"='september 24, 1980';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What is the venue when the result is 2-0, and the score is 1 goal, and the competition is 1980 afc asian cup?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"international_goals\" WHERE \"result\"='2-0' AND \"score\"='1 goal' AND \"competition\"='1980 afc asian cup';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What is the venue when the score is 1 goal, and the date is August 27, 1980?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"international_goals\" WHERE \"score\"='1 goal' AND \"date\"='august 27, 1980';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What is the result when the date is August 27, 1980?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"international_goals\" WHERE \"date\"='august 27, 1980';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"complete_european_formula_two_championsh\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"points\" real\n);\n\nQuestion: What year shows the Entrant of bmw motorsport?" }, { "role": "assistant", "content": "SELECT SUM(\"year\") FROM \"complete_european_formula_two_championsh\" WHERE \"entrant\"='bmw motorsport';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"complete_european_formula_two_championsh\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"points\" real\n);\n\nQuestion: Which Entrant of stp march engineering scored the lowest points?" }, { "role": "assistant", "content": "SELECT MIN(\"points\") FROM \"complete_european_formula_two_championsh\" WHERE \"entrant\"='stp march engineering';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"complete_european_formula_two_championsh\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"points\" real\n);\n\nQuestion: What year had the Chassis of march 762 and more than 0 points?" }, { "role": "assistant", "content": "SELECT COUNT(\"year\") FROM \"complete_european_formula_two_championsh\" WHERE \"chassis\"='march 762' AND \"points\">0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"complete_european_formula_two_championsh\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"points\" real\n);\n\nQuestion: Which engine of bmw had the lowest points and chassis of march 792 that is newer than 1979?" }, { "role": "assistant", "content": "SELECT MIN(\"points\") FROM \"complete_european_formula_two_championsh\" WHERE \"engine\"='bmw' AND \"chassis\"='march 792' AND \"year\">1979;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Name the record when the attendance was more than 20,228 and rockies was the opponent on june 8" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"game_log\" WHERE \"attendance\">'20,228' AND \"opponent\"='rockies' AND \"date\"='june 8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_sports_teams_in_florida\" (\n \"school\" text,\n \"nickname\" text,\n \"city\" text,\n \"affiliation\" text,\n \"conference\" text,\n \"national_championships\" real\n);\n\nQuestion: Which Conference has a City of boca raton, and a School of florida atlantic university?" }, { "role": "assistant", "content": "SELECT \"conference\" FROM \"list_of_sports_teams_in_florida\" WHERE \"city\"='boca raton' AND \"school\"='florida atlantic university';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_sports_teams_in_florida\" (\n \"school\" text,\n \"nickname\" text,\n \"city\" text,\n \"affiliation\" text,\n \"conference\" text,\n \"national_championships\" real\n);\n\nQuestion: Which School has a National Championships of 2, and a City of orlando?" }, { "role": "assistant", "content": "SELECT \"school\" FROM \"list_of_sports_teams_in_florida\" WHERE \"national_championships\"=2 AND \"city\"='orlando';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_sports_teams_in_florida\" (\n \"school\" text,\n \"nickname\" text,\n \"city\" text,\n \"affiliation\" text,\n \"conference\" text,\n \"national_championships\" real\n);\n\nQuestion: Which school has National Championships smaller than 2, and a Nickname of lions?" }, { "role": "assistant", "content": "SELECT \"school\" FROM \"list_of_sports_teams_in_florida\" WHERE \"national_championships\"<2 AND \"nickname\"='lions';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text,\n \"win_pct\" text\n);\n\nQuestion: What is the win percentage when 2011 shows 1r in the Paris tournament?" }, { "role": "assistant", "content": "SELECT \"win_pct\" FROM \"singles_performance_timeline\" WHERE \"2011\"='1r' AND \"tournament\"='paris';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text,\n \"win_pct\" text\n);\n\nQuestion: What shows for 2009 when 25 shows for 2011?" }, { "role": "assistant", "content": "SELECT \"2009\" FROM \"singles_performance_timeline\" WHERE \"2011\"='25';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text,\n \"win_pct\" text\n);\n\nQuestion: What shows for 2010 when 2011 is 1r at the US Open tournament?" }, { "role": "assistant", "content": "SELECT \"2010\" FROM \"singles_performance_timeline\" WHERE \"2011\"='1r' AND \"tournament\"='us open';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text,\n \"win_pct\" text\n);\n\nQuestion: What is the win percentage when 2010 was 98?" }, { "role": "assistant", "content": "SELECT \"win_pct\" FROM \"singles_performance_timeline\" WHERE \"2010\"='98';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text,\n \"win_pct\" text\n);\n\nQuestion: What shows for 2008 at the Shanghai tournament?" }, { "role": "assistant", "content": "SELECT \"2008\" FROM \"singles_performance_timeline\" WHERE \"tournament\"='shanghai';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text,\n \"win_pct\" text\n);\n\nQuestion: What is the win percentage for the 2012 of olympic games?" }, { "role": "assistant", "content": "SELECT \"win_pct\" FROM \"singles_performance_timeline\" WHERE \"2012\"='olympic games';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: Who was the opponent in the match that lasted 1:22?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"mixed_martial_arts_record\" WHERE \"time\"='1:22';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: Which round did the bout against Jonatas Novaes end in?" }, { "role": "assistant", "content": "SELECT \"round\" FROM \"mixed_martial_arts_record\" WHERE \"opponent\"='jonatas novaes';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sports\" (\n \"club\" text,\n \"league\" text,\n \"sport\" text,\n \"venue\" text,\n \"established\" real,\n \"championships\" real\n);\n\nQuestion: Name the average established for championships less than 1 and club of erie seawolves" }, { "role": "assistant", "content": "SELECT AVG(\"established\") FROM \"sports\" WHERE \"championships\"<1 AND \"club\"='erie seawolves';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sports\" (\n \"club\" text,\n \"league\" text,\n \"sport\" text,\n \"venue\" text,\n \"established\" real,\n \"championships\" real\n);\n\nQuestion: Name the most championships for club of erie seawolves" }, { "role": "assistant", "content": "SELECT MAX(\"championships\") FROM \"sports\" WHERE \"club\"='erie seawolves';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sports\" (\n \"club\" text,\n \"league\" text,\n \"sport\" text,\n \"venue\" text,\n \"established\" real,\n \"championships\" real\n);\n\nQuestion: Name the sport with championships less than 1 and club of erie bayhawks" }, { "role": "assistant", "content": "SELECT \"sport\" FROM \"sports\" WHERE \"championships\"<1 AND \"club\"='erie bayhawks';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"summary\" (\n \"game\" real,\n \"date\" text,\n \"location\" text,\n \"time\" text,\n \"attendance\" real\n);\n\nQuestion: what is the date for game 3?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"summary\" WHERE \"game\"=3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"titles_in_the_neo_geo_online_collection_\" (\n \"vol\" text,\n \"english_title\" text,\n \"japanese_title\" text,\n \"release_date_japan\" text,\n \"sony_catalog_no\" text\n);\n\nQuestion: What is the English title of \u9913\u72fc\u4f1d\u8aac\u30d0\u30c8\u30eb\u30a2\u30fc\u30ab\u30a4\u30d6\u30ba\uff12?" }, { "role": "assistant", "content": "SELECT \"english_title\" FROM \"titles_in_the_neo_geo_online_collection_\" WHERE \"japanese_title\"='\u9913\u72fc\u4f1d\u8aac\u30d0\u30c8\u30eb\u30a2\u30fc\u30ab\u30a4\u30d6\u30ba\uff12';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" text\n);\n\nQuestion: Who was the opponent when there was a loss of Francisco (1-1)?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"game_log\" WHERE \"loss\"='francisco (1-1)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" text\n);\n\nQuestion: On what date was the attendance 17,136?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"game_log\" WHERE \"attendance\"='17,136';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" text\n);\n\nQuestion: Who was the opponent during the game with a score of 6-5 and a loss of White (2-1)?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"game_log\" WHERE \"score\"='6-5' AND \"loss\"='white (2-1)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" text\n);\n\nQuestion: What was the score for the game that had an attendance of 41,087?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"attendance\"='41,087';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" text\n);\n\nQuestion: When the game had a loss of Koch (0-1) what was the attendance?" }, { "role": "assistant", "content": "SELECT \"attendance\" FROM \"game_log\" WHERE \"loss\"='koch (0-1)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_mexican_municipalities\" (\n \"inegi_code\" real,\n \"municipality\" text,\n \"municipal_seat\" text,\n \"population_2010\" real,\n \"area_km2\" real\n);\n\nQuestion: What is the inegi code for mexicali with 13,700 km area?" }, { "role": "assistant", "content": "SELECT AVG(\"inegi_code\") FROM \"list_of_mexican_municipalities\" WHERE \"municipal_seat\"='mexicali' AND \"area_km2\">'13,700';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"premier_league\" (\n \"date\" text,\n \"opponents\" text,\n \"h_a\" text,\n \"result_f_a\" text,\n \"attendance\" real,\n \"league_position\" text\n);\n\nQuestion: What is the date of the away game when the team has a league position of 9th?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"premier_league\" WHERE \"h_a\"='a' AND \"league_position\"='9th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Which Score has an Attendance larger than 13,175 and a Record of 18-16?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"attendance\">'13,175' AND \"record\"='18-16';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: On May 17, what is the highest Attendance?" }, { "role": "assistant", "content": "SELECT MAX(\"attendance\") FROM \"game_log\" WHERE \"date\"='may 17';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"complete_formula_one_results\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"points\" real\n);\n\nQuestion: What is the highest number of points for the Modena Team Spa after 1991?" }, { "role": "assistant", "content": "SELECT MAX(\"points\") FROM \"complete_formula_one_results\" WHERE \"entrant\"='modena team spa' AND \"year\">1991;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"complete_formula_one_results\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"points\" real\n);\n\nQuestion: What was the earliest year for the Ligier Gitanes?" }, { "role": "assistant", "content": "SELECT MIN(\"year\") FROM \"complete_formula_one_results\" WHERE \"entrant\"='ligier gitanes';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_5\" (\n \"episode\" text,\n \"first_aired\" text,\n \"entrepreneur_s\" text,\n \"company_or_product_name\" text,\n \"money_requested\" real,\n \"investing_dragon_s\" text\n);\n\nQuestion: Which company or product was invested in by peter jones with more than \u00a335,000 requested ?" }, { "role": "assistant", "content": "SELECT \"company_or_product_name\" FROM \"series_5\" WHERE \"money_requested\">'35,000' AND \"investing_dragon_s\"='peter jones';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_5\" (\n \"episode\" text,\n \"first_aired\" text,\n \"entrepreneur_s\" text,\n \"company_or_product_name\" text,\n \"money_requested\" real,\n \"investing_dragon_s\" text\n);\n\nQuestion: In episode 7 what was the highest amount of money requested by Jerry Mantalvanos & Paul Merker ?" }, { "role": "assistant", "content": "SELECT MAX(\"money_requested\") FROM \"series_5\" WHERE \"episode\"='episode 7' AND \"entrepreneur_s\"='jerry mantalvanos & paul merker';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_5\" (\n \"episode\" text,\n \"first_aired\" text,\n \"entrepreneur_s\" text,\n \"company_or_product_name\" text,\n \"money_requested\" real,\n \"investing_dragon_s\" text\n);\n\nQuestion: How much money did reestore request ?" }, { "role": "assistant", "content": "SELECT \"money_requested\" FROM \"series_5\" WHERE \"company_or_product_name\"='reestore';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_5\" (\n \"episode\" text,\n \"first_aired\" text,\n \"entrepreneur_s\" text,\n \"company_or_product_name\" text,\n \"money_requested\" real,\n \"investing_dragon_s\" text\n);\n\nQuestion: How much money did gaming alerts ask for?" }, { "role": "assistant", "content": "SELECT COUNT(\"money_requested\") FROM \"series_5\" WHERE \"company_or_product_name\"='gaming alerts';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"european_poker_tour\" (\n \"date\" text,\n \"city\" text,\n \"event\" text,\n \"winner\" text,\n \"prize\" text\n);\n\nQuestion: Who is the winner of the prize of \u20ac93,000?" }, { "role": "assistant", "content": "SELECT \"winner\" FROM \"european_poker_tour\" WHERE \"prize\"='\u20ac93,000';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"european_poker_tour\" (\n \"date\" text,\n \"city\" text,\n \"event\" text,\n \"winner\" text,\n \"prize\" text\n);\n\nQuestion: Who is the winner of the prize of \u00a3200,000 as listed?" }, { "role": "assistant", "content": "SELECT \"winner\" FROM \"european_poker_tour\" WHERE \"prize\"='\u00a3200,000';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"european_poker_tour\" (\n \"date\" text,\n \"city\" text,\n \"event\" text,\n \"winner\" text,\n \"prize\" text\n);\n\nQuestion: Ram Vaswani was a winner on what date?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"european_poker_tour\" WHERE \"winner\"='ram vaswani';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_podiums\" (\n \"season\" real,\n \"date\" text,\n \"location\" text,\n \"race\" text,\n \"place\" text\n);\n\nQuestion: Which race resulted in 2nd place in the 1996 season on 20-Jan-1996?" }, { "role": "assistant", "content": "SELECT \"race\" FROM \"race_podiums\" WHERE \"place\"='2nd' AND \"season\"=1996 AND \"date\"='20-jan-1996';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_podiums\" (\n \"season\" real,\n \"date\" text,\n \"location\" text,\n \"race\" text,\n \"place\" text\n);\n\nQuestion: What is the place result of the downhill race before the 1996 season on 11-Mar-1995?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"race_podiums\" WHERE \"race\"='downhill' AND \"season\"<1996 AND \"date\"='11-mar-1995';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_podiums\" (\n \"season\" real,\n \"date\" text,\n \"location\" text,\n \"race\" text,\n \"place\" text\n);\n\nQuestion: What place result was the 1996 season at Lake Louise, Canada?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"race_podiums\" WHERE \"season\"=1996 AND \"location\"='lake louise, canada';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"record\" text\n);\n\nQuestion: What is the Record that has a Home of detroit red wings, and a Score of 1\u20132 on december 29?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"regular_season\" WHERE \"home\"='detroit red wings' AND \"score\"='1\u20132' AND \"date\"='december 29';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"record\" text\n);\n\nQuestion: Whose Visitor has a Record of 10\u201311\u20135?" }, { "role": "assistant", "content": "SELECT \"visitor\" FROM \"regular_season\" WHERE \"record\"='10\u201311\u20135';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season\" (\n \"rank\" real,\n \"player\" text,\n \"county\" text,\n \"tally\" text,\n \"total\" real,\n \"matches\" real,\n \"average\" real\n);\n\nQuestion: What is the typical match smaller than 2?" }, { "role": "assistant", "content": "SELECT AVG(\"average\") FROM \"season\" WHERE \"matches\"<2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season\" (\n \"rank\" real,\n \"player\" text,\n \"county\" text,\n \"tally\" text,\n \"total\" real,\n \"matches\" real,\n \"average\" real\n);\n\nQuestion: What are the total number of matches smaller than 2 with a tally of 1-19?" }, { "role": "assistant", "content": "SELECT COUNT(\"total\") FROM \"season\" WHERE \"tally\"='1-19' AND \"matches\"<2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season\" (\n \"rank\" real,\n \"player\" text,\n \"county\" text,\n \"tally\" text,\n \"total\" real,\n \"matches\" real,\n \"average\" real\n);\n\nQuestion: What is the average total in the county of tipperary with a rank less than 1?" }, { "role": "assistant", "content": "SELECT COUNT(\"average\") FROM \"season\" WHERE \"county\"='tipperary' AND \"rank\"<1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"indy_500_results\" (\n \"year\" text,\n \"start\" text,\n \"qual\" text,\n \"rank\" text,\n \"finish\" text,\n \"laps\" real\n);\n\nQuestion: What is the Qual with less than 68 laps?" }, { "role": "assistant", "content": "SELECT \"qual\" FROM \"indy_500_results\" WHERE \"laps\"<68;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"indy_500_results\" (\n \"year\" text,\n \"start\" text,\n \"qual\" text,\n \"rank\" text,\n \"finish\" text,\n \"laps\" real\n);\n\nQuestion: The 147.481 Qual, happened in what year?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"indy_500_results\" WHERE \"qual\"='147.481';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification_of_needs\" (\n \"need\" text,\n \"being_qualities\" text,\n \"having_things\" text,\n \"doing_actions\" text,\n \"interacting_settings\" text\n);\n\nQuestion: Name the being for having things of language, religions, work, customs, values, norms?" }, { "role": "assistant", "content": "SELECT \"being_qualities\" FROM \"classification_of_needs\" WHERE \"having_things\"='language, religions, work, customs, values, norms';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification_of_needs\" (\n \"need\" text,\n \"being_qualities\" text,\n \"having_things\" text,\n \"doing_actions\" text,\n \"interacting_settings\" text\n);\n\nQuestion: Name the having things for privacy, intimate spaces of togetherness" }, { "role": "assistant", "content": "SELECT \"having_things\" FROM \"classification_of_needs\" WHERE \"interacting_settings\"='privacy, intimate spaces of togetherness';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification_of_needs\" (\n \"need\" text,\n \"being_qualities\" text,\n \"having_things\" text,\n \"doing_actions\" text,\n \"interacting_settings\" text\n);\n\nQuestion: Name the interacting for need of protection" }, { "role": "assistant", "content": "SELECT \"interacting_settings\" FROM \"classification_of_needs\" WHERE \"need\"='protection';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification_of_needs\" (\n \"need\" text,\n \"being_qualities\" text,\n \"having_things\" text,\n \"doing_actions\" text,\n \"interacting_settings\" text\n);\n\nQuestion: Name the interacting settings for co-operate, plan, take care of, help" }, { "role": "assistant", "content": "SELECT \"interacting_settings\" FROM \"classification_of_needs\" WHERE \"doing_actions\"='co-operate, plan, take care of, help';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification_of_needs\" (\n \"need\" text,\n \"being_qualities\" text,\n \"having_things\" text,\n \"doing_actions\" text,\n \"interacting_settings\" text\n);\n\nQuestion: Name the being qualities for having things of language, religions, work, customs, values, norms" }, { "role": "assistant", "content": "SELECT \"being_qualities\" FROM \"classification_of_needs\" WHERE \"having_things\"='language, religions, work, customs, values, norms';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification_of_needs\" (\n \"need\" text,\n \"being_qualities\" text,\n \"having_things\" text,\n \"doing_actions\" text,\n \"interacting_settings\" text\n);\n\nQuestion: Name the being qualities for having things of friendships, family, relationships with nature" }, { "role": "assistant", "content": "SELECT \"being_qualities\" FROM \"classification_of_needs\" WHERE \"having_things\"='friendships, family, relationships with nature';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"time\" text,\n \"record\" text\n);\n\nQuestion: What was the attendance for the game that went 2:42?" }, { "role": "assistant", "content": "SELECT MAX(\"attendance\") FROM \"game_log\" WHERE \"time\"='2:42';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race\" (\n \"name\" text,\n \"team\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real,\n \"points\" real\n);\n\nQuestion: How many laps for s\u00e9bastien bourdais, and a Grid smaller than 1?" }, { "role": "assistant", "content": "SELECT SUM(\"laps\") FROM \"race\" WHERE \"name\"='s\u00e9bastien bourdais' AND \"grid\"<1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"challenger_and_futures_runner_up_5\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What was the score in the match against Kim Tiilikainen?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"challenger_and_futures_runner_up_5\" WHERE \"opponent\"='kim tiilikainen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"challenger_and_futures_runner_up_5\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What was the date of the match against Jean-Julien Rojer, on a clay surface?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"challenger_and_futures_runner_up_5\" WHERE \"surface\"='clay' AND \"opponent\"='jean-julien rojer';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"challenger_and_futures_runner_up_5\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Which tournament had a hard surface?" }, { "role": "assistant", "content": "SELECT \"tournament\" FROM \"challenger_and_futures_runner_up_5\" WHERE \"surface\"='hard';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_5_13\" (\n \"outcome\" text,\n \"date\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What is the surface of the match when the outcome was runner-up, and a Score of julia g\u00f6rges polona hercog?" }, { "role": "assistant", "content": "SELECT \"surface\" FROM \"doubles_5_13\" WHERE \"outcome\"='runner-up' AND \"score\"='julia g\u00f6rges polona hercog';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_5_13\" (\n \"outcome\" text,\n \"date\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What was the surface of the match when the score was akgul amanmuradova chuang chia-jung?" }, { "role": "assistant", "content": "SELECT \"surface\" FROM \"doubles_5_13\" WHERE \"score\"='akgul amanmuradova chuang chia-jung';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_5_13\" (\n \"outcome\" text,\n \"date\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What date was the surface hard and Eva Hrdinov\u00e1 was the opponent?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"doubles_5_13\" WHERE \"surface\"='hard' AND \"opponent\"='eva hrdinov\u00e1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_5_13\" (\n \"outcome\" text,\n \"date\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What was the surface of the match against bethanie mattek-sands?" }, { "role": "assistant", "content": "SELECT \"surface\" FROM \"doubles_5_13\" WHERE \"opponent\"='bethanie mattek-sands';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"the_dragons\" (\n \"series_1\" text,\n \"series_2\" text,\n \"series_3\" text,\n \"series_5\" text,\n \"series_9\" text,\n \"series_11\" text\n);\n\nQuestion: What series 1 has a Doug Richards in Series 2?" }, { "role": "assistant", "content": "SELECT \"series_1\" FROM \"the_dragons\" WHERE \"series_2\"='doug richards';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"the_dragons\" (\n \"series_1\" text,\n \"series_2\" text,\n \"series_3\" text,\n \"series_5\" text,\n \"series_9\" text,\n \"series_11\" text\n);\n\nQuestion: Who in series 1 corresponds with Peter Jones in series 5?" }, { "role": "assistant", "content": "SELECT \"series_1\" FROM \"the_dragons\" WHERE \"series_5\"='peter jones';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"the_dragons\" (\n \"series_1\" text,\n \"series_2\" text,\n \"series_3\" text,\n \"series_5\" text,\n \"series_9\" text,\n \"series_11\" text\n);\n\nQuestion: Who in series 5 corresponds to Deborah Meaden in series 3?" }, { "role": "assistant", "content": "SELECT \"series_5\" FROM \"the_dragons\" WHERE \"series_3\"='deborah meaden';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"the_dragons\" (\n \"series_1\" text,\n \"series_2\" text,\n \"series_3\" text,\n \"series_5\" text,\n \"series_9\" text,\n \"series_11\" text\n);\n\nQuestion: Who in series 11 corresponds to Peter Jones in series 1?" }, { "role": "assistant", "content": "SELECT \"series_11\" FROM \"the_dragons\" WHERE \"series_1\"='peter jones';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"the_dragons\" (\n \"series_1\" text,\n \"series_2\" text,\n \"series_3\" text,\n \"series_5\" text,\n \"series_9\" text,\n \"series_11\" text\n);\n\nQuestion: Who in series 9 corresponds to Peter Jones in series 2?" }, { "role": "assistant", "content": "SELECT \"series_9\" FROM \"the_dragons\" WHERE \"series_2\"='peter jones';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What was the score of the game when the Blue Jays were 55-39?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"record\"='55-39';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"world_championships\" (\n \"event\" text,\n \"individual\" text,\n \"sprint\" text,\n \"pursuit\" text,\n \"mass_start\" text,\n \"relay\" text\n);\n\nQuestion: Who was the individual in the event of 1998 Pokljuka?" }, { "role": "assistant", "content": "SELECT \"individual\" FROM \"world_championships\" WHERE \"event\"='1998 pokljuka';" } ]