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 \"sixth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What is Date, when Tie no is \"3\"?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"sixth_round_proper\" WHERE \"tie_no\"='3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sixth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What is Date, when Away Team is \"Brentford\"?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"sixth_round_proper\" WHERE \"away_team\"='brentford';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sixth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What is Date, when Home Team is \"Everton\"?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"sixth_round_proper\" WHERE \"home_team\"='everton';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sixth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What is Away Team, when Home Team is \"West Ham United\"?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"sixth_round_proper\" WHERE \"home_team\"='west ham united';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_centuries\" (\n \"name\" text,\n \"score\" text,\n \"balls\" real,\n \"venue\" text,\n \"date\" text\n);\n\nQuestion: What is Venue, when Balls is \"148\"?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"list_of_centuries\" WHERE \"balls\"=148;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_centuries\" (\n \"name\" text,\n \"score\" text,\n \"balls\" real,\n \"venue\" text,\n \"date\" text\n);\n\nQuestion: What is Name, when Score is \"101\"?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"list_of_centuries\" WHERE \"score\"='101';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_centuries\" (\n \"name\" text,\n \"score\" text,\n \"balls\" real,\n \"venue\" text,\n \"date\" text\n);\n\nQuestion: What is Date, when Venue is \"Taunton\", and when Name is \"SC Ganguly\"?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"list_of_centuries\" WHERE \"venue\"='taunton' AND \"name\"='sc ganguly';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_centuries\" (\n \"name\" text,\n \"score\" text,\n \"balls\" real,\n \"venue\" text,\n \"date\" text\n);\n\nQuestion: What is Balls, when Venue is \"Bristol\", and when Score is \"104*\"?" }, { "role": "assistant", "content": "SELECT \"balls\" FROM \"list_of_centuries\" WHERE \"venue\"='bristol' AND \"score\"='104*';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performances_by_nation\" (\n \"rank\" real,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the number of silver when bronze is less than 0?" }, { "role": "assistant", "content": "SELECT COUNT(\"silver\") FROM \"performances_by_nation\" WHERE \"bronze\"<0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performances_by_nation\" (\n \"rank\" real,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the gold when silver is less than 1, rank is 12, and total is less than 3?" }, { "role": "assistant", "content": "SELECT MAX(\"gold\") FROM \"performances_by_nation\" WHERE \"silver\"<1 AND \"rank\"=12 AND \"total\"<3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performances_by_nation\" (\n \"rank\" real,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What shows for gold when the rank is less than 3, and silver less than 1?" }, { "role": "assistant", "content": "SELECT SUM(\"gold\") FROM \"performances_by_nation\" WHERE \"rank\"<3 AND \"silver\"<1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performances_by_nation\" (\n \"rank\" real,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the total when gold is 1, and rank is more than 4, and bronze is 0?" }, { "role": "assistant", "content": "SELECT COUNT(\"total\") FROM \"performances_by_nation\" WHERE \"gold\"=1 AND \"rank\">4 AND \"bronze\"=0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performances_by_nation\" (\n \"rank\" real,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What shows for bronze when silver is 1, rank is smaller than 4, and gold is larger than 1?" }, { "role": "assistant", "content": "SELECT SUM(\"bronze\") FROM \"performances_by_nation\" WHERE \"silver\"=1 AND \"rank\"<4 AND \"gold\">1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"performances_by_nation\" (\n \"rank\" real,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the gold when silver is 1, rank is larger than 3, total is smaller than 2, bronze is smaller than 0?" }, { "role": "assistant", "content": "SELECT SUM(\"gold\") FROM \"performances_by_nation\" WHERE \"silver\"=1 AND \"rank\">3 AND \"total\"<2 AND \"bronze\"<0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What player is from France?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"second_round\" WHERE \"country\"='france';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What place is S.K. Ho in?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"second_round\" WHERE \"player\"='s.k. ho';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What player is from Scotland and has a score of 74-70=144?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"second_round\" WHERE \"score\"='74-70=144' AND \"country\"='scotland';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: Which player is from South Africa?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"second_round\" WHERE \"country\"='south africa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What country is the player with a score of 72-72=144 from?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"second_round\" WHERE \"score\"='72-72=144';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_ladder\" (\n \"geelong_dfl\" text,\n \"wins\" real,\n \"byes\" real,\n \"losses\" real,\n \"draws\" real,\n \"against\" real\n);\n\nQuestion: Which Geelong DFL has 8 losses and more than 4 wins?" }, { "role": "assistant", "content": "SELECT \"geelong_dfl\" FROM \"2010_ladder\" WHERE \"wins\">4 AND \"losses\"=8;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"academic_performance\" (\n \"year\" real,\n \"number_of_examinees\" real,\n \"number_of_passed_students\" real,\n \"pass_percentage\" text,\n \"obtained_gpa_5\" real\n);\n\nQuestion: What number of examines after 2005 has a pass percentage of 78.35% with less than 297 students?" }, { "role": "assistant", "content": "SELECT COUNT(\"number_of_examinees\") FROM \"academic_performance\" WHERE \"year\">2005 AND \"pass_percentage\"='78.35%' AND \"number_of_passed_students\"<297;" } ]
[ { "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 \"sport\" text,\n \"founded\" real,\n \"league\" text,\n \"venue\" text\n);\n\nQuestion: Which venue was founded after 1967 and had the league North American Soccer League?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"sports\" WHERE \"founded\">1967 AND \"league\"='north american soccer league';" } ]
[ { "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 \"sport\" text,\n \"founded\" real,\n \"league\" text,\n \"venue\" text\n);\n\nQuestion: Which venue was fouded before 2000 for basketball?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"sports\" WHERE \"founded\"<2000 AND \"sport\"='basketball';" } ]
[ { "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 \"sport\" text,\n \"founded\" real,\n \"league\" text,\n \"venue\" text\n);\n\nQuestion: Which club had football at Mitchel Athletic Field?" }, { "role": "assistant", "content": "SELECT \"club\" FROM \"sports\" WHERE \"sport\"='football' AND \"venue\"='mitchel athletic field';" } ]
[ { "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 \"sport\" text,\n \"founded\" real,\n \"league\" text,\n \"venue\" text\n);\n\nQuestion: Which club was founded in 1962?" }, { "role": "assistant", "content": "SELECT \"club\" FROM \"sports\" WHERE \"founded\"=1962;" } ]
[ { "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\" real,\n \"finish\" text\n);\n\nQuestion: What is the total sum of the player from the United States who won in 1986?" }, { "role": "assistant", "content": "SELECT SUM(\"total\") FROM \"made_the_cut\" WHERE \"country\"='united states' AND \"year_s_won\"='1986';" } ]
[ { "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\" real,\n \"finish\" text\n);\n\nQuestion: What year did the player with a total less than 300 and a to par of 9 have a win?" }, { "role": "assistant", "content": "SELECT \"year_s_won\" FROM \"made_the_cut\" WHERE \"total\"<300 AND \"to_par\"=9;" } ]
[ { "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\" real,\n \"finish\" text\n);\n\nQuestion: What is total number of the to par of player john mahaffey, who has a total less than 298?" }, { "role": "assistant", "content": "SELECT COUNT(\"to_par\") FROM \"made_the_cut\" WHERE \"player\"='john mahaffey' AND \"total\"<298;" } ]
[ { "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\" real,\n \"finish\" text\n);\n\nQuestion: What is the sum of the total of the player who won in 1979?" }, { "role": "assistant", "content": "SELECT SUM(\"total\") FROM \"made_the_cut\" WHERE \"year_s_won\"='1979';" } ]
[ { "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\" real,\n \"finish\" text\n);\n\nQuestion: What is the country of the player who has a total larger than 300?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"made_the_cut\" WHERE \"total\">300;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_by_season_performance\" (\n \"season\" text,\n \"division\" text,\n \"tier\" real,\n \"points\" real,\n \"fa_cup\" text,\n \"fa_trophy\" text,\n \"shropshire_senior_cup\" text\n);\n\nQuestion: What is the Shropshire Senior Cup when points are greater than 78 and FA Cup is pre?" }, { "role": "assistant", "content": "SELECT \"shropshire_senior_cup\" FROM \"season_by_season_performance\" WHERE \"points\">78 AND \"fa_cup\"='pre';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_by_season_performance\" (\n \"season\" text,\n \"division\" text,\n \"tier\" real,\n \"points\" real,\n \"fa_cup\" text,\n \"fa_trophy\" text,\n \"shropshire_senior_cup\" text\n);\n\nQuestion: What season had 78 points?" }, { "role": "assistant", "content": "SELECT \"season\" FROM \"season_by_season_performance\" WHERE \"points\"=78;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"asian_champions_league_appearances\" (\n \"date\" text,\n \"venue\" text,\n \"opponent\" text,\n \"score\" text,\n \"result\" text\n);\n\nQuestion: For the match against Arema Malang that ended in a draw, what was the final score?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"asian_champions_league_appearances\" WHERE \"result\"='draw' AND \"opponent\"='arema malang';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"asian_champions_league_appearances\" (\n \"date\" text,\n \"venue\" text,\n \"opponent\" text,\n \"score\" text,\n \"result\" text\n);\n\nQuestion: What was the final score for the match held on April 11, 2007?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"asian_champions_league_appearances\" WHERE \"date\"='april 11, 2007';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"asian_champions_league_appearances\" (\n \"date\" text,\n \"venue\" text,\n \"opponent\" text,\n \"score\" text,\n \"result\" text\n);\n\nQuestion: What was the location for the match held on April 11, 2007, which ended with a score of 0-0?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"asian_champions_league_appearances\" WHERE \"score\"='0-0' AND \"date\"='april 11, 2007';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"asian_champions_league_appearances\" (\n \"date\" text,\n \"venue\" text,\n \"opponent\" text,\n \"score\" text,\n \"result\" text\n);\n\nQuestion: What was the location for the match held on March 7, 2007, which ended with a score of 0-0?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"asian_champions_league_appearances\" WHERE \"score\"='0-0' AND \"date\"='march 7, 2007';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"summer_1998\" (\n \"7_30_am\" text,\n \"8_00_am\" text,\n \"9_00_am\" text,\n \"11_00_am\" text,\n \"noon\" text,\n \"12_30_pm\" text,\n \"1_00_pm\" text,\n \"1_30_pm\" text,\n \"2_00_pm\" text,\n \"3_00_pm\" text,\n \"3_30_pm\" text,\n \"4_00_pm\" text,\n \"5_00_pm\" text,\n \"6_30_pm\" text\n);\n\nQuestion: What is on at 12:30pm when Local Programs are on at 8am?" }, { "role": "assistant", "content": "SELECT \"12_30_pm\" FROM \"summer_1998\" WHERE \"8_00_am\"='local programs';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"summer_1998\" (\n \"7_30_am\" text,\n \"8_00_am\" text,\n \"9_00_am\" text,\n \"11_00_am\" text,\n \"noon\" text,\n \"12_30_pm\" text,\n \"1_00_pm\" text,\n \"1_30_pm\" text,\n \"2_00_pm\" text,\n \"3_00_pm\" text,\n \"3_30_pm\" text,\n \"4_00_pm\" text,\n \"5_00_pm\" text,\n \"6_30_pm\" text\n);\n\nQuestion: What is on at 1:30 if Pinky and the Brain is on a 4:00pm?" }, { "role": "assistant", "content": "SELECT \"1_30_pm\" FROM \"summer_1998\" WHERE \"4_00_pm\"='pinky and the brain';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"summer_1998\" (\n \"7_30_am\" text,\n \"8_00_am\" text,\n \"9_00_am\" text,\n \"11_00_am\" text,\n \"noon\" text,\n \"12_30_pm\" text,\n \"1_00_pm\" text,\n \"1_30_pm\" text,\n \"2_00_pm\" text,\n \"3_00_pm\" text,\n \"3_30_pm\" text,\n \"4_00_pm\" text,\n \"5_00_pm\" text,\n \"6_30_pm\" text\n);\n\nQuestion: What is the 12:30 program of Good Morning America is on at 8:00am?" }, { "role": "assistant", "content": "SELECT \"12_30_pm\" FROM \"summer_1998\" WHERE \"8_00_am\"='good morning america';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"summer_1998\" (\n \"7_30_am\" text,\n \"8_00_am\" text,\n \"9_00_am\" text,\n \"11_00_am\" text,\n \"noon\" text,\n \"12_30_pm\" text,\n \"1_00_pm\" text,\n \"1_30_pm\" text,\n \"2_00_pm\" text,\n \"3_00_pm\" text,\n \"3_30_pm\" text,\n \"4_00_pm\" text,\n \"5_00_pm\" text,\n \"6_30_pm\" text\n);\n\nQuestion: What is on at 8am if The Young and the Restless is on at 12:30?" }, { "role": "assistant", "content": "SELECT \"8_00_am\" FROM \"summer_1998\" WHERE \"12_30_pm\"='the young and the restless';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"summer_1998\" (\n \"7_30_am\" text,\n \"8_00_am\" text,\n \"9_00_am\" text,\n \"11_00_am\" text,\n \"noon\" text,\n \"12_30_pm\" text,\n \"1_00_pm\" text,\n \"1_30_pm\" text,\n \"2_00_pm\" text,\n \"3_00_pm\" text,\n \"3_30_pm\" text,\n \"4_00_pm\" text,\n \"5_00_pm\" text,\n \"6_30_pm\" text\n);\n\nQuestion: What is on at 3:00pm if Port Charles is on at 12:30?" }, { "role": "assistant", "content": "SELECT \"3_00_pm\" FROM \"summer_1998\" WHERE \"12_30_pm\"='port charles';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"assembly_segments\" (\n \"constituency_number\" text,\n \"name\" text,\n \"reserved_for_sc_st_none\" text,\n \"district\" text,\n \"number_of_electorates_2009\" real\n);\n\nQuestion: Amritpur has what constituency number?" }, { "role": "assistant", "content": "SELECT \"constituency_number\" FROM \"assembly_segments\" WHERE \"name\"='amritpur';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"assembly_segments\" (\n \"constituency_number\" text,\n \"name\" text,\n \"reserved_for_sc_st_none\" text,\n \"district\" text,\n \"number_of_electorates_2009\" real\n);\n\nQuestion: With the number of electorates (2009) greater than 272,902, and 192 as the constituency number, what is the reserved for (SC / ST /None)?" }, { "role": "assistant", "content": "SELECT \"reserved_for_sc_st_none\" FROM \"assembly_segments\" WHERE \"number_of_electorates_2009\">'272,902' AND \"constituency_number\"='192';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"assembly_segments\" (\n \"constituency_number\" text,\n \"name\" text,\n \"reserved_for_sc_st_none\" text,\n \"district\" text,\n \"number_of_electorates_2009\" real\n);\n\nQuestion: Kaimganj has what reserved for (SC / ST /None)?" }, { "role": "assistant", "content": "SELECT \"reserved_for_sc_st_none\" FROM \"assembly_segments\" WHERE \"name\"='kaimganj';" } ]
[ { "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: Which country is bob tway from?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"made_the_cut\" WHERE \"player\"='bob tway';" } ]
[ { "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: Which country won in 1986?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"made_the_cut\" WHERE \"year_s_won\"='1986';" } ]
[ { "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 is Fiji's lowest total?" }, { "role": "assistant", "content": "SELECT MIN(\"total\") FROM \"made_the_cut\" WHERE \"country\"='fiji';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"public_holidays\" (\n \"date\" text,\n \"name\" text,\n \"local_name\" text,\n \"2012_date\" text,\n \"2013_date\" text\n);\n\nQuestion: What is the date with the local name, \u0434\u0430\u043d \u0434\u0440\u0436\u0430\u0432\u043d\u043e\u0441\u0442\u0438 \u0441\u0440\u0431\u0438\u0458\u0435, dan dr\u017eavnosti srbije, and what is February 15, 2012?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"public_holidays\" WHERE \"local_name\"='\u0434\u0430\u043d \u0434\u0440\u0436\u0430\u0432\u043d\u043e\u0441\u0442\u0438 \u0441\u0440\u0431\u0438\u0458\u0435, dan dr\u017eavnosti srbije' AND \"2012_date\"='february 15';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"public_holidays\" (\n \"date\" text,\n \"name\" text,\n \"local_name\" text,\n \"2012_date\" text,\n \"2013_date\" text\n);\n\nQuestion: What is the local name for January 7, 2013?" }, { "role": "assistant", "content": "SELECT \"local_name\" FROM \"public_holidays\" WHERE \"2013_date\"='january 7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"public_holidays\" (\n \"date\" text,\n \"name\" text,\n \"local_name\" text,\n \"2012_date\" text,\n \"2013_date\" text\n);\n\nQuestion: What was on January 7, 2012?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"public_holidays\" WHERE \"2012_date\"='january 7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What Country had a Player with a Score of 72-66-72=210?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"third_round\" WHERE \"score\"='72-66-72=210';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the Place of the Player with a To par of \u20136?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"third_round\" WHERE \"to_par\"='\u20136';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the Place of the Player with a Score of 68-73-76=217?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"third_round\" WHERE \"score\"='68-73-76=217';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is Justin Leonard's To par?" }, { "role": "assistant", "content": "SELECT \"to_par\" FROM \"third_round\" WHERE \"player\"='justin leonard';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"godson_microprocessor_specifications\" (\n \"name_generation\" text,\n \"model\" text,\n \"frequency_m_hz\" text,\n \"architecture_version\" text,\n \"cores\" text,\n \"process_nm\" text\n);\n\nQuestion: What is the architecture version of Model 1b?" }, { "role": "assistant", "content": "SELECT \"architecture_version\" FROM \"godson_microprocessor_specifications\" WHERE \"model\"='1b';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"godson_microprocessor_specifications\" (\n \"name_generation\" text,\n \"model\" text,\n \"frequency_m_hz\" text,\n \"architecture_version\" text,\n \"cores\" text,\n \"process_nm\" text\n);\n\nQuestion: What is the name of the architecture version of the MIPS-III 64-bit, and model 2b?" }, { "role": "assistant", "content": "SELECT \"name_generation\" FROM \"godson_microprocessor_specifications\" WHERE \"architecture_version\"='mips-iii 64-bit' AND \"model\"='2b';" } ]
[ { "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 \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: What is the event with a 2:08 time?" }, { "role": "assistant", "content": "SELECT \"event\" FROM \"mixed_martial_arts_record\" WHERE \"time\"='2:08';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"locomotives\" (\n \"road_number\" text,\n \"traction\" text,\n \"builder\" text,\n \"built\" text,\n \"service\" text,\n \"wheels\" text,\n \"weight\" text\n);\n\nQuestion: What type of wheels did the locomotive have that was built by Baldwin Locomotive Works?" }, { "role": "assistant", "content": "SELECT \"wheels\" FROM \"locomotives\" WHERE \"builder\"='baldwin locomotive works';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1973\" (\n \"opposing_teams\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"status\" text\n);\n\nQuestion: Which Venue has Against of 25?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"1973\" WHERE \"against\"=25;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1973\" (\n \"opposing_teams\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"status\" text\n);\n\nQuestion: Which Venue has Against smaller than 6?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"1973\" WHERE \"against\"<6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"politics_of_the_southwestern_states\" (\n \"year\" text,\n \"arizona\" text,\n \"california\" text,\n \"colorado\" text,\n \"nevada\" text,\n \"new_mexico\" text,\n \"oklahoma\" text,\n \"texas\" text,\n \"utah\" text\n);\n\nQuestion: What's the value for utah when colorado and new mexico are bush?" }, { "role": "assistant", "content": "SELECT \"utah\" FROM \"politics_of_the_southwestern_states\" WHERE \"colorado\"='bush' AND \"new_mexico\"='bush';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"politics_of_the_southwestern_states\" (\n \"year\" text,\n \"arizona\" text,\n \"california\" text,\n \"colorado\" text,\n \"nevada\" text,\n \"new_mexico\" text,\n \"oklahoma\" text,\n \"texas\" text,\n \"utah\" text\n);\n\nQuestion: What's the value for oklahoma when texas is kennedy?" }, { "role": "assistant", "content": "SELECT \"oklahoma\" FROM \"politics_of_the_southwestern_states\" WHERE \"texas\"='kennedy';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"politics_of_the_southwestern_states\" (\n \"year\" text,\n \"arizona\" text,\n \"california\" text,\n \"colorado\" text,\n \"nevada\" text,\n \"new_mexico\" text,\n \"oklahoma\" text,\n \"texas\" text,\n \"utah\" text\n);\n\nQuestion: What's the value for utah when texas is humphrey?" }, { "role": "assistant", "content": "SELECT \"utah\" FROM \"politics_of_the_southwestern_states\" WHERE \"texas\"='humphrey';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"politics_of_the_southwestern_states\" (\n \"year\" text,\n \"arizona\" text,\n \"california\" text,\n \"colorado\" text,\n \"nevada\" text,\n \"new_mexico\" text,\n \"oklahoma\" text,\n \"texas\" text,\n \"utah\" text\n);\n\nQuestion: What's the value for arizona when colorado and nevada are nixon, and texas is humphrey?" }, { "role": "assistant", "content": "SELECT \"arizona\" FROM \"politics_of_the_southwestern_states\" WHERE \"colorado\"='nixon' AND \"nevada\"='nixon' AND \"texas\"='humphrey';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"politics_of_the_southwestern_states\" (\n \"year\" text,\n \"arizona\" text,\n \"california\" text,\n \"colorado\" text,\n \"nevada\" text,\n \"new_mexico\" text,\n \"oklahoma\" text,\n \"texas\" text,\n \"utah\" text\n);\n\nQuestion: What's the value for oklahoma when nevada and colorado are clinton?" }, { "role": "assistant", "content": "SELECT \"oklahoma\" FROM \"politics_of_the_southwestern_states\" WHERE \"nevada\"='clinton' AND \"colorado\"='clinton';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"politics_of_the_southwestern_states\" (\n \"year\" text,\n \"arizona\" text,\n \"california\" text,\n \"colorado\" text,\n \"nevada\" text,\n \"new_mexico\" text,\n \"oklahoma\" text,\n \"texas\" text,\n \"utah\" text\n);\n\nQuestion: What's the value for arizona when utah is eisenhower?" }, { "role": "assistant", "content": "SELECT \"arizona\" FROM \"politics_of_the_southwestern_states\" WHERE \"utah\"='eisenhower';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sunday_schedule\" (\n \"time\" text,\n \"show_name\" text,\n \"local_networked\" text,\n \"ad_freq\" text,\n \"news_freq\" text\n);\n\nQuestion: How often are there ads during American Top 40?" }, { "role": "assistant", "content": "SELECT \"ad_freq\" FROM \"sunday_schedule\" WHERE \"show_name\"='american top 40';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sunday_schedule\" (\n \"time\" text,\n \"show_name\" text,\n \"local_networked\" text,\n \"ad_freq\" text,\n \"news_freq\" text\n);\n\nQuestion: When does Classic Hits air?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"sunday_schedule\" WHERE \"show_name\"='classic hits';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"supplemental_draft\" (\n \"pick_num\" real,\n \"brand_to\" text,\n \"employee_real_name\" text,\n \"role\" text,\n \"brand_from\" text\n);\n\nQuestion: What is Pick #18's Role?" }, { "role": "assistant", "content": "SELECT \"role\" FROM \"supplemental_draft\" WHERE \"pick_num\"=18;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"department_of_skills_development\" (\n \"name_in_english\" text,\n \"name_in_malay\" text,\n \"acronym\" text,\n \"foundation\" text,\n \"location\" text\n);\n\nQuestion: What is the foundation for the institution whose name in English is tanjung puteri technical secondary school?" }, { "role": "assistant", "content": "SELECT \"foundation\" FROM \"department_of_skills_development\" WHERE \"name_in_english\"='tanjung puteri technical secondary school';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"department_of_skills_development\" (\n \"name_in_english\" text,\n \"name_in_malay\" text,\n \"acronym\" text,\n \"foundation\" text,\n \"location\" text\n);\n\nQuestion: What is the location of the institution whose name in Malay is kolej kemahiran belia nasional, pontian?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"department_of_skills_development\" WHERE \"name_in_malay\"='kolej kemahiran belia nasional, pontian';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_leaderboard\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: What was the average money when the score was 68-69-68-72=277?" }, { "role": "assistant", "content": "SELECT AVG(\"money\") FROM \"final_leaderboard\" WHERE \"score\"='68-69-68-72=277';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_leaderboard\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: What was the highest money when the score was 69-68-67-69=273?" }, { "role": "assistant", "content": "SELECT MAX(\"money\") FROM \"final_leaderboard\" WHERE \"score\"='69-68-67-69=273';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_leaderboard\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: What did South Africa place?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"final_leaderboard\" WHERE \"country\"='south africa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_leaderboard\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: What county placed t2 and scored 68-69-68-72=277?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"final_leaderboard\" WHERE \"place\"='t2' AND \"score\"='68-69-68-72=277';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"monument_winners_since_1960\" (\n \"year\" real,\n \"milan_san_remo\" text,\n \"tour_of_flanders\" text,\n \"paris_roubaix\" text,\n \"li_ge_bastogne_li_ge\" text,\n \"giro_di_lombardia\" text\n);\n\nQuestion: Name the Milan \u2013 San Remo which has a Li\u00e8ge\u2013Bastogne\u2013Li\u00e8ge of danilo di luca ( ita )?" }, { "role": "assistant", "content": "SELECT \"milan_san_remo\" FROM \"monument_winners_since_1960\" WHERE \"li_ge_bastogne_li_ge\"='danilo di luca ( ita )';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"monument_winners_since_1960\" (\n \"year\" real,\n \"milan_san_remo\" text,\n \"tour_of_flanders\" text,\n \"paris_roubaix\" text,\n \"li_ge_bastogne_li_ge\" text,\n \"giro_di_lombardia\" text\n);\n\nQuestion: Which Giro di Lombardia has a Paris\u2013Roubaix of servais knaven ( ned )?" }, { "role": "assistant", "content": "SELECT \"giro_di_lombardia\" FROM \"monument_winners_since_1960\" WHERE \"paris_roubaix\"='servais knaven ( ned )';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"monument_winners_since_1960\" (\n \"year\" real,\n \"milan_san_remo\" text,\n \"tour_of_flanders\" text,\n \"paris_roubaix\" text,\n \"li_ge_bastogne_li_ge\" text,\n \"giro_di_lombardia\" text\n);\n\nQuestion: what kind of Giro di Lombardiahas a Tour of Flanders of tom boonen ( bel ), and a Paris\u2013Roubaix of fabian cancellara ( sui )?" }, { "role": "assistant", "content": "SELECT \"giro_di_lombardia\" FROM \"monument_winners_since_1960\" WHERE \"tour_of_flanders\"='tom boonen ( bel )' AND \"paris_roubaix\"='fabian cancellara ( sui )';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"statistics_for_airport_koltsovo\" (\n \"year\" real,\n \"total_passengers\" text,\n \"passenger_change\" text,\n \"domestic\" text,\n \"international_total\" text,\n \"international_non_cis\" text,\n \"aircraft_landings\" text,\n \"cargo_tonnes\" text\n);\n\nQuestion: What are the cargo tonnes when the international (non-CIS) is 297 421?" }, { "role": "assistant", "content": "SELECT \"cargo_tonnes\" FROM \"statistics_for_airport_koltsovo\" WHERE \"international_non_cis\"='297 421';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"statistics_for_airport_koltsovo\" (\n \"year\" real,\n \"total_passengers\" text,\n \"passenger_change\" text,\n \"domestic\" text,\n \"international_total\" text,\n \"international_non_cis\" text,\n \"aircraft_landings\" text,\n \"cargo_tonnes\" text\n);\n\nQuestion: How manu aircraft landings when the cargo tonnes are 18 344?" }, { "role": "assistant", "content": "SELECT \"aircraft_landings\" FROM \"statistics_for_airport_koltsovo\" WHERE \"cargo_tonnes\"='18 344';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"statistics_for_airport_koltsovo\" (\n \"year\" real,\n \"total_passengers\" text,\n \"passenger_change\" text,\n \"domestic\" text,\n \"international_total\" text,\n \"international_non_cis\" text,\n \"aircraft_landings\" text,\n \"cargo_tonnes\" text\n);\n\nQuestion: What is the domestic figure when cargo tonnes equal 25 866?" }, { "role": "assistant", "content": "SELECT \"domestic\" FROM \"statistics_for_airport_koltsovo\" WHERE \"cargo_tonnes\"='25 866';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"statistics_for_airport_koltsovo\" (\n \"year\" real,\n \"total_passengers\" text,\n \"passenger_change\" text,\n \"domestic\" text,\n \"international_total\" text,\n \"international_non_cis\" text,\n \"aircraft_landings\" text,\n \"cargo_tonnes\" text\n);\n\nQuestion: What is the year that saw a passenger change of +32,9%?" }, { "role": "assistant", "content": "SELECT COUNT(\"year\") FROM \"statistics_for_airport_koltsovo\" WHERE \"passenger_change\"='+32,9%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"statistics_for_airport_koltsovo\" (\n \"year\" real,\n \"total_passengers\" text,\n \"passenger_change\" text,\n \"domestic\" text,\n \"international_total\" text,\n \"international_non_cis\" text,\n \"aircraft_landings\" text,\n \"cargo_tonnes\" text\n);\n\nQuestion: What year had cargo tonnes of 13 585?" }, { "role": "assistant", "content": "SELECT AVG(\"year\") FROM \"statistics_for_airport_koltsovo\" WHERE \"cargo_tonnes\"='13 585';" } ]
[ { "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 \"event\" text,\n \"round\" text,\n \"location\" text\n);\n\nQuestion: What round did the event UFC 86 take place?" }, { "role": "assistant", "content": "SELECT \"round\" FROM \"mixed_martial_arts_record\" WHERE \"event\"='ufc 86';" } ]
[ { "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 \"event\" text,\n \"round\" text,\n \"location\" text\n);\n\nQuestion: What method was there in round 1 when the location was Aruba?" }, { "role": "assistant", "content": "SELECT \"method\" FROM \"mixed_martial_arts_record\" WHERE \"round\"='1' AND \"location\"='aruba';" } ]
[ { "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 \"event\" text,\n \"round\" text,\n \"location\" text\n);\n\nQuestion: What location was the event ufc: fight for the troops?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"mixed_martial_arts_record\" WHERE \"event\"='ufc: fight for the troops';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010s_49ers_3_2_1\" (\n \"year\" real,\n \"date\" text,\n \"home_team\" text,\n \"result\" text,\n \"visiting_team\" text,\n \"venue\" text\n);\n\nQuestion: When was the game that had the St. Louis Rams as visiting team and resulted in a score of 26-0?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"2010s_49ers_3_2_1\" WHERE \"visiting_team\"='st. louis rams' AND \"result\"='26-0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010s_49ers_3_2_1\" (\n \"year\" real,\n \"date\" text,\n \"home_team\" text,\n \"result\" text,\n \"visiting_team\" text,\n \"venue\" text\n);\n\nQuestion: What date(s) was the game(s) at Candlestick Park?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"2010s_49ers_3_2_1\" WHERE \"venue\"='candlestick park';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ranking_event_finals_8_4_titles_4_runner\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: What year was the opponent in the final john higgins category:articles with hcards?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"ranking_event_finals_8_4_titles_4_runner\" WHERE \"opponent_in_the_final\"='john higgins category:articles with hcards';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"churches_in_bremanger\" (\n \"parish_prestegjeld\" text,\n \"sub_parish_sokn\" text,\n \"church_name\" text,\n \"year_built\" real,\n \"location_of_the_church\" text\n);\n\nQuestion: Which church was built in 1600?" }, { "role": "assistant", "content": "SELECT \"church_name\" FROM \"churches_in_bremanger\" WHERE \"year_built\"=1600;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"churches_in_bremanger\" (\n \"parish_prestegjeld\" text,\n \"sub_parish_sokn\" text,\n \"church_name\" text,\n \"year_built\" real,\n \"location_of_the_church\" text\n);\n\nQuestion: What is the Location of the Church that was built in the year 1914?" }, { "role": "assistant", "content": "SELECT \"location_of_the_church\" FROM \"churches_in_bremanger\" WHERE \"year_built\"=1914;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"churches_in_bremanger\" (\n \"parish_prestegjeld\" text,\n \"sub_parish_sokn\" text,\n \"church_name\" text,\n \"year_built\" real,\n \"location_of_the_church\" text\n);\n\nQuestion: Where is the Church that has a Sub-Parish (Sokn) of rugsund?" }, { "role": "assistant", "content": "SELECT \"location_of_the_church\" FROM \"churches_in_bremanger\" WHERE \"sub_parish_sokn\"='rugsund';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"churches_in_bremanger\" (\n \"parish_prestegjeld\" text,\n \"sub_parish_sokn\" text,\n \"church_name\" text,\n \"year_built\" real,\n \"location_of_the_church\" text\n);\n\nQuestion: Which Year Built has a Parish (Prestegjeld) of bremanger parish, and a Location of the Church of bremanger?" }, { "role": "assistant", "content": "SELECT AVG(\"year_built\") FROM \"churches_in_bremanger\" WHERE \"parish_prestegjeld\"='bremanger parish' AND \"location_of_the_church\"='bremanger';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"characters\" (\n \"actor_in_original_production\" text,\n \"actor_required\" text,\n \"game_plan\" text,\n \"flat_spin\" text,\n \"role_play\" text\n);\n\nQuestion: Who is the required actor when Robert Austin was the actor in the original production?" }, { "role": "assistant", "content": "SELECT \"actor_required\" FROM \"characters\" WHERE \"actor_in_original_production\"='robert austin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"characters\" (\n \"actor_in_original_production\" text,\n \"actor_required\" text,\n \"game_plan\" text,\n \"flat_spin\" text,\n \"role_play\" text\n);\n\nQuestion: Who is the actor in the original production when Troy Stephens is the GamePlan?" }, { "role": "assistant", "content": "SELECT \"actor_in_original_production\" FROM \"characters\" WHERE \"game_plan\"='troy stephens';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"characters\" (\n \"actor_in_original_production\" text,\n \"actor_required\" text,\n \"game_plan\" text,\n \"flat_spin\" text,\n \"role_play\" text\n);\n\nQuestion: Who is the GamePlan when Jacqueline King is the actor in the original production?" }, { "role": "assistant", "content": "SELECT \"game_plan\" FROM \"characters\" WHERE \"actor_in_original_production\"='jacqueline king';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"characters\" (\n \"actor_in_original_production\" text,\n \"actor_required\" text,\n \"game_plan\" text,\n \"flat_spin\" text,\n \"role_play\" text\n);\n\nQuestion: Who is the GamePlan when Arabella Lazenby is the RolePlay actor?" }, { "role": "assistant", "content": "SELECT \"game_plan\" FROM \"characters\" WHERE \"role_play\"='arabella lazenby';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"characters\" (\n \"actor_in_original_production\" text,\n \"actor_required\" text,\n \"game_plan\" text,\n \"flat_spin\" text,\n \"role_play\" text\n);\n\nQuestion: Who is the actor required when Edna Stricken is the FlatSpin actor?" }, { "role": "assistant", "content": "SELECT \"actor_required\" FROM \"characters\" WHERE \"flat_spin\"='edna stricken';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"team_1\" text,\n \"score\" text,\n \"team_2\" text,\n \"1st_round\" text,\n \"2nd_round\" text\n);\n\nQuestion: What shows for the 1st round when the team 1 was Lb Ch\u00e2teauroux (d2)?" }, { "role": "assistant", "content": "SELECT \"1st_round\" FROM \"round_of_16\" WHERE \"team_1\"='lb ch\u00e2teauroux (d2)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"team_1\" text,\n \"score\" text,\n \"team_2\" text,\n \"1st_round\" text,\n \"2nd_round\" text\n);\n\nQuestion: What shows for 2nd round when the team 1 was Rc Strasbourg (d1)?" }, { "role": "assistant", "content": "SELECT \"2nd_round\" FROM \"round_of_16\" WHERE \"team_1\"='rc strasbourg (d1)';" } ]