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 \"effects_of_the_high_german_consonant_shi\" (\n \"german\" text,\n \"low_german\" text,\n \"plautdietsch\" text,\n \"dutch\" text,\n \"english\" text\n);\n\nQuestion: Which English has German of leben?" }, { "role": "assistant", "content": "SELECT \"english\" FROM \"effects_of_the_high_german_consonant_shi\" WHERE \"german\"='leben';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"effects_of_the_high_german_consonant_shi\" (\n \"german\" text,\n \"low_german\" text,\n \"plautdietsch\" text,\n \"dutch\" text,\n \"english\" text\n);\n\nQuestion: Which Plautdietsch has Dutch of maken?" }, { "role": "assistant", "content": "SELECT \"plautdietsch\" FROM \"effects_of_the_high_german_consonant_shi\" WHERE \"dutch\"='maken';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"effects_of_the_high_german_consonant_shi\" (\n \"german\" text,\n \"low_german\" text,\n \"plautdietsch\" text,\n \"dutch\" text,\n \"english\" text\n);\n\nQuestion: Which English has Dutch of tong?" }, { "role": "assistant", "content": "SELECT \"english\" FROM \"effects_of_the_high_german_consonant_shi\" WHERE \"dutch\"='tong';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"effects_of_the_high_german_consonant_shi\" (\n \"german\" text,\n \"low_german\" text,\n \"plautdietsch\" text,\n \"dutch\" text,\n \"english\" text\n);\n\nQuestion: Which English has Plautdietsch of aupel?" }, { "role": "assistant", "content": "SELECT \"english\" FROM \"effects_of_the_high_german_consonant_shi\" WHERE \"plautdietsch\"='aupel';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"effects_of_the_high_german_consonant_shi\" (\n \"german\" text,\n \"low_german\" text,\n \"plautdietsch\" text,\n \"dutch\" text,\n \"english\" text\n);\n\nQuestion: Which Plautdietsch has Low German of doon?" }, { "role": "assistant", "content": "SELECT \"plautdietsch\" FROM \"effects_of_the_high_german_consonant_shi\" WHERE \"low_german\"='doon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"effects_of_the_high_german_consonant_shi\" (\n \"german\" text,\n \"low_german\" text,\n \"plautdietsch\" text,\n \"dutch\" text,\n \"english\" text\n);\n\nQuestion: Which English has Dutch of maken?" }, { "role": "assistant", "content": "SELECT \"english\" FROM \"effects_of_the_high_german_consonant_shi\" WHERE \"dutch\"='maken';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"missed_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" real\n);\n\nQuestion: Can you tell me the Country that has the Year(s) Won of 1988?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"missed_the_cut\" WHERE \"year_s_won\"='1988';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"missed_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" real\n);\n\nQuestion: Can you tell me the average Total that has the To par smaller than 10, and the Country of south korea?" }, { "role": "assistant", "content": "SELECT AVG(\"total\") FROM \"missed_the_cut\" WHERE \"to_par\"<10 AND \"country\"='south korea';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"missed_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" real\n);\n\nQuestion: Can you tell me the Year(s) Won that has the Country of united states, and the Total larger than 152?" }, { "role": "assistant", "content": "SELECT \"year_s_won\" FROM \"missed_the_cut\" WHERE \"country\"='united states' AND \"total\">152;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"missed_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" real\n);\n\nQuestion: Can you tell me the Year(s) Won that has the To par larger than 5, and the Total smaller than 155, and the Country of united states?" }, { "role": "assistant", "content": "SELECT \"year_s_won\" FROM \"missed_the_cut\" WHERE \"to_par\">5 AND \"total\"<155 AND \"country\"='united states';" } ]
[ { "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 golfer has a greater than 293 total, and won in 1989?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"made_the_cut\" WHERE \"total\">293 AND \"year_s_won\"='1989';" } ]
[ { "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 the maximum total when the To par is +3?" }, { "role": "assistant", "content": "SELECT MAX(\"total\") FROM \"made_the_cut\" WHERE \"to_par\"='+3';" } ]
[ { "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 golfer has 281 as their total?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"made_the_cut\" WHERE \"total\"=281;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pirveli_liga_2011_12\" (\n \"clubs\" text,\n \"position_2010_11\" text,\n \"region\" text,\n \"stadium\" text,\n \"capacity\" real\n);\n\nQuestion: What is the highest capacity of the tsentral stadium (batumi)?" }, { "role": "assistant", "content": "SELECT MAX(\"capacity\") FROM \"pirveli_liga_2011_12\" WHERE \"stadium\"='tsentral stadium (batumi)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pirveli_liga_2011_12\" (\n \"clubs\" text,\n \"position_2010_11\" text,\n \"region\" text,\n \"stadium\" text,\n \"capacity\" real\n);\n\nQuestion: What clubs are in the evgrapi shevardnadze stadium?" }, { "role": "assistant", "content": "SELECT \"clubs\" FROM \"pirveli_liga_2011_12\" WHERE \"stadium\"='evgrapi shevardnadze stadium';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pirveli_liga_2011_12\" (\n \"clubs\" text,\n \"position_2010_11\" text,\n \"region\" text,\n \"stadium\" text,\n \"capacity\" real\n);\n\nQuestion: What is the stadium of the zooveti tbilisi club?" }, { "role": "assistant", "content": "SELECT \"stadium\" FROM \"pirveli_liga_2011_12\" WHERE \"clubs\"='zooveti tbilisi';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"notable_undrafted_players\" (\n \"original_nfl_team\" text,\n \"player\" text,\n \"pos\" text,\n \"college\" text,\n \"conf\" text\n);\n\nQuestion: What college had Jim Leonhard Category:articles with hcards?" }, { "role": "assistant", "content": "SELECT \"college\" FROM \"notable_undrafted_players\" WHERE \"player\"='jim leonhard 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 \"notable_undrafted_players\" (\n \"original_nfl_team\" text,\n \"player\" text,\n \"pos\" text,\n \"college\" text,\n \"conf\" text\n);\n\nQuestion: Who's the original team for Rashied Davis Category:articles with hcards?" }, { "role": "assistant", "content": "SELECT \"original_nfl_team\" FROM \"notable_undrafted_players\" WHERE \"player\"='rashied davis 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 \"notable_undrafted_players\" (\n \"original_nfl_team\" text,\n \"player\" text,\n \"pos\" text,\n \"college\" text,\n \"conf\" text\n);\n\nQuestion: What college has Lance Moore Category:articles with hcards?" }, { "role": "assistant", "content": "SELECT \"college\" FROM \"notable_undrafted_players\" WHERE \"player\"='lance moore 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 \"notable_undrafted_players\" (\n \"original_nfl_team\" text,\n \"player\" text,\n \"pos\" text,\n \"college\" text,\n \"conf\" text\n);\n\nQuestion: What's the original NFL team when the POS is S and college is Georgia Tech?" }, { "role": "assistant", "content": "SELECT \"original_nfl_team\" FROM \"notable_undrafted_players\" WHERE \"pos\"='s' AND \"college\"='georgia tech';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"allegations_of_children_born_to_alleged_\" (\n \"child\" text,\n \"date_of_birth\" text,\n \"mother\" text,\n \"father\" text,\n \"dna_testing_status\" text\n);\n\nQuestion: What is the date of birth of Oliver Buell's child?" }, { "role": "assistant", "content": "SELECT \"date_of_birth\" FROM \"allegations_of_children_born_to_alleged_\" WHERE \"child\"='oliver buell';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"allegations_of_children_born_to_alleged_\" (\n \"child\" text,\n \"date_of_birth\" text,\n \"mother\" text,\n \"father\" text,\n \"dna_testing_status\" text\n);\n\nQuestion: Who is the father that was born on January 2, 1842?" }, { "role": "assistant", "content": "SELECT \"father\" FROM \"allegations_of_children_born_to_alleged_\" WHERE \"date_of_birth\"='january 2, 1842';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"allegations_of_children_born_to_alleged_\" (\n \"child\" text,\n \"date_of_birth\" text,\n \"mother\" text,\n \"father\" text,\n \"dna_testing_status\" text\n);\n\nQuestion: Who is the father of the child whose mother is Presendia Huntington Buell?" }, { "role": "assistant", "content": "SELECT \"father\" FROM \"allegations_of_children_born_to_alleged_\" WHERE \"mother\"='presendia huntington buell';" } ]
[ { "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 was the place in Germany with a score of 69-69=138?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"second_round\" WHERE \"score\"='69-69=138' AND \"country\"='germany';" } ]
[ { "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 is the country that has a place of T6 that Eduardo Romero plays for?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"second_round\" WHERE \"place\"='t6' AND \"player\"='eduardo romero';" } ]
[ { "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 is the to par for Scotland?" }, { "role": "assistant", "content": "SELECT \"to_par\" FROM \"second_round\" WHERE \"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: What is the score for Darren Clarke?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"second_round\" WHERE \"player\"='darren clarke';" } ]
[ { "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 is the country that has a place of T6, a socre of 69-69=138, and where Niclas Fasth played?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"second_round\" WHERE \"place\"='t6' AND \"score\"='69-69=138' AND \"player\"='niclas fasth';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2009_ladder_and_finals\" (\n \"benalla_dfl\" text,\n \"wins\" real,\n \"losses\" real,\n \"draws\" real,\n \"byes\" real,\n \"against\" real\n);\n\nQuestion: What's the total losses that has more than 12 wins and 1017 against?" }, { "role": "assistant", "content": "SELECT COUNT(\"losses\") FROM \"2009_ladder_and_finals\" WHERE \"against\"=1017 AND \"wins\">12;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2009_ladder_and_finals\" (\n \"benalla_dfl\" text,\n \"wins\" real,\n \"losses\" real,\n \"draws\" real,\n \"byes\" real,\n \"against\" real\n);\n\nQuestion: What's the most wins of Tatong?" }, { "role": "assistant", "content": "SELECT MAX(\"wins\") FROM \"2009_ladder_and_finals\" WHERE \"benalla_dfl\"='tatong';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2009_ladder_and_finals\" (\n \"benalla_dfl\" text,\n \"wins\" real,\n \"losses\" real,\n \"draws\" real,\n \"byes\" real,\n \"against\" real\n);\n\nQuestion: What's the most number of byes for Longwood having less than 1944 against?" }, { "role": "assistant", "content": "SELECT MAX(\"byes\") FROM \"2009_ladder_and_finals\" WHERE \"benalla_dfl\"='longwood' AND \"against\"<1944;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2009_ladder_and_finals\" (\n \"benalla_dfl\" text,\n \"wins\" real,\n \"losses\" real,\n \"draws\" real,\n \"byes\" real,\n \"against\" real\n);\n\nQuestion: What is the smallest number against when the draws are less than 0?" }, { "role": "assistant", "content": "SELECT MIN(\"against\") FROM \"2009_ladder_and_finals\" WHERE \"draws\"<0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2009_ladder_and_finals\" (\n \"benalla_dfl\" text,\n \"wins\" real,\n \"losses\" real,\n \"draws\" real,\n \"byes\" real,\n \"against\" real\n);\n\nQuestion: What are the average byes of Bonnie Doon having more than 16 wins?" }, { "role": "assistant", "content": "SELECT AVG(\"byes\") FROM \"2009_ladder_and_finals\" WHERE \"benalla_dfl\"='bonnie doon' AND \"wins\">16;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"girone_b\" (\n \"club\" text,\n \"city\" text,\n \"stadium\" text,\n \"capacity\" real,\n \"2007_08_season\" text\n);\n\nQuestion: What is Rovigo's Club?" }, { "role": "assistant", "content": "SELECT \"club\" FROM \"girone_b\" WHERE \"city\"='rovigo';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"girone_b\" (\n \"club\" text,\n \"city\" text,\n \"stadium\" text,\n \"capacity\" real,\n \"2007_08_season\" text\n);\n\nQuestion: What 2007-08 had A.S. Gubbio 1910 Club?" }, { "role": "assistant", "content": "SELECT \"2007_08_season\" FROM \"girone_b\" WHERE \"club\"='a.s. gubbio 1910';" } ]
[ { "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: Which country had a total of 295?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"made_the_cut\" WHERE \"total\"=295;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: On what Date is West Ham United the Home team?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"third_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 \"third_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: On what Date was the Score 4\u20131?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"third_round_proper\" WHERE \"score\"='4\u20131';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_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 the Away team of Tie no 1?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"third_round_proper\" WHERE \"tie_no\"='1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_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 the Tie no when Crystal Palace is the Away team?" }, { "role": "assistant", "content": "SELECT \"tie_no\" FROM \"third_round_proper\" WHERE \"away_team\"='crystal palace';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_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 the Home team of Tie no 11?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"third_round_proper\" WHERE \"tie_no\"='11';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: On what Date is West Ham United the Home team?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"third_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 \"2004\" (\n \"week_1\" text,\n \"week_2\" text,\n \"week_3\" text,\n \"week_4\" text,\n \"week_5\" text\n);\n\nQuestion: What kind of Week 4 has a Week 1 of sheila levell?" }, { "role": "assistant", "content": "SELECT \"week_4\" FROM \"2004\" WHERE \"week_1\"='sheila levell';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2004\" (\n \"week_1\" text,\n \"week_2\" text,\n \"week_3\" text,\n \"week_4\" text,\n \"week_5\" text\n);\n\nQuestion: What kind of Week 2 has a Week 4 of araya robinson?" }, { "role": "assistant", "content": "SELECT \"week_2\" FROM \"2004\" WHERE \"week_4\"='araya robinson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2004\" (\n \"week_1\" text,\n \"week_2\" text,\n \"week_3\" text,\n \"week_4\" text,\n \"week_5\" text\n);\n\nQuestion: What kind of Week 4 has a Week 2 of tiffany logan?" }, { "role": "assistant", "content": "SELECT \"week_4\" FROM \"2004\" WHERE \"week_2\"='tiffany logan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2004\" (\n \"week_1\" text,\n \"week_2\" text,\n \"week_3\" text,\n \"week_4\" text,\n \"week_5\" text\n);\n\nQuestion: what kind of Week 5 that has a Week 1 of mandy ashford?" }, { "role": "assistant", "content": "SELECT \"week_5\" FROM \"2004\" WHERE \"week_1\"='mandy ashford';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2004\" (\n \"week_1\" text,\n \"week_2\" text,\n \"week_3\" text,\n \"week_4\" text,\n \"week_5\" text\n);\n\nQuestion: What kind of Week 2 that has a Week 1 of mandy ashford?" }, { "role": "assistant", "content": "SELECT \"week_2\" FROM \"2004\" WHERE \"week_1\"='mandy ashford';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2004\" (\n \"week_1\" text,\n \"week_2\" text,\n \"week_3\" text,\n \"week_4\" text,\n \"week_5\" text\n);\n\nQuestion: What Week 2 that has a Week 1 of mackenzie ryan?" }, { "role": "assistant", "content": "SELECT \"week_2\" FROM \"2004\" WHERE \"week_1\"='mackenzie ryan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"russia\" (\n \"name\" text,\n \"pos\" text,\n \"height\" text,\n \"weight\" text,\n \"date_of_birth\" text,\n \"club\" text\n);\n\nQuestion: What is the name when weight shows head coach: Aleksandr Kabanov?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"russia\" WHERE \"weight\"='head coach: aleksandr kabanov';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"stations\" (\n \"station_name\" text,\n \"opening_year\" text,\n \"municipality\" text,\n \"park_and_ride_lot\" text,\n \"free_fare_zone\" text\n);\n\nQuestion: What is the park & ride lot for the Temple Square station?" }, { "role": "assistant", "content": "SELECT \"park_and_ride_lot\" FROM \"stations\" WHERE \"station_name\"='temple square';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"stations\" (\n \"station_name\" text,\n \"opening_year\" text,\n \"municipality\" text,\n \"park_and_ride_lot\" text,\n \"free_fare_zone\" text\n);\n\nQuestion: For the Temple Square station, what is the park & ride lot name?" }, { "role": "assistant", "content": "SELECT \"park_and_ride_lot\" FROM \"stations\" WHERE \"station_name\"='temple square';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"stations\" (\n \"station_name\" text,\n \"opening_year\" text,\n \"municipality\" text,\n \"park_and_ride_lot\" text,\n \"free_fare_zone\" text\n);\n\nQuestion: Which station was opened in 2013, with no park & ride lot?" }, { "role": "assistant", "content": "SELECT \"station_name\" FROM \"stations\" WHERE \"opening_year\"='2013' AND \"park_and_ride_lot\"='no';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"stations\" (\n \"station_name\" text,\n \"opening_year\" text,\n \"municipality\" text,\n \"park_and_ride_lot\" text,\n \"free_fare_zone\" text\n);\n\nQuestion: Where is the free fare zone for the Arena station?" }, { "role": "assistant", "content": "SELECT \"free_fare_zone\" FROM \"stations\" WHERE \"station_name\"='arena';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"individual_single_game_records\" (\n \"statistic\" text,\n \"name\" text,\n \"total\" text,\n \"school\" text,\n \"opponent\" text,\n \"stage\" text\n);\n\nQuestion: Calvin Abueva Calvin Abueva had what statistic?" }, { "role": "assistant", "content": "SELECT \"statistic\" FROM \"individual_single_game_records\" WHERE \"name\"='calvin abueva calvin abueva';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"individual_single_game_records\" (\n \"statistic\" text,\n \"name\" text,\n \"total\" text,\n \"school\" text,\n \"opponent\" text,\n \"stage\" text\n);\n\nQuestion: When the opposing team was SSC-R what was the statistic?" }, { "role": "assistant", "content": "SELECT \"statistic\" FROM \"individual_single_game_records\" WHERE \"opponent\"='ssc-r';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"individual_single_game_records\" (\n \"statistic\" text,\n \"name\" text,\n \"total\" text,\n \"school\" text,\n \"opponent\" text,\n \"stage\" text\n);\n\nQuestion: When SSC-R is the opponent what is the name?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"individual_single_game_records\" WHERE \"opponent\"='ssc-r';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"individual_single_game_records\" (\n \"statistic\" text,\n \"name\" text,\n \"total\" text,\n \"school\" text,\n \"opponent\" text,\n \"stage\" text\n);\n\nQuestion: With a statistic of most points, what is the stage?" }, { "role": "assistant", "content": "SELECT \"stage\" FROM \"individual_single_game_records\" WHERE \"statistic\"='most points';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"individual_single_game_records\" (\n \"statistic\" text,\n \"name\" text,\n \"total\" text,\n \"school\" text,\n \"opponent\" text,\n \"stage\" text\n);\n\nQuestion: When the opposing team was CSB UPHDS what was the total?" }, { "role": "assistant", "content": "SELECT \"total\" FROM \"individual_single_game_records\" WHERE \"opponent\"='csb uphds';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"individual_single_game_records\" (\n \"statistic\" text,\n \"name\" text,\n \"total\" text,\n \"school\" text,\n \"opponent\" text,\n \"stage\" text\n);\n\nQuestion: Who had the statistic of most assists?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"individual_single_game_records\" WHERE \"statistic\"='most assists';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"records\" (\n \"event\" text,\n \"time\" text,\n \"swimmer\" text,\n \"school\" text,\n \"year\" real\n);\n\nQuestion: What is Swimmer, when Year is less than 2011, and when Time is \"53.06\"?" }, { "role": "assistant", "content": "SELECT \"swimmer\" FROM \"records\" WHERE \"year\"<2011 AND \"time\"='53.06';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"records\" (\n \"event\" text,\n \"time\" text,\n \"swimmer\" text,\n \"school\" text,\n \"year\" real\n);\n\nQuestion: What is School, when Event is \"100 Backstroke\"?" }, { "role": "assistant", "content": "SELECT \"school\" FROM \"records\" WHERE \"event\"='100 backstroke';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"records\" (\n \"event\" text,\n \"time\" text,\n \"swimmer\" text,\n \"school\" text,\n \"year\" real\n);\n\nQuestion: What is School, when Year is less than 2013, and when Event is \"100 Breaststroke\"?" }, { "role": "assistant", "content": "SELECT \"school\" FROM \"records\" WHERE \"year\"<2013 AND \"event\"='100 breaststroke';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"records\" (\n \"event\" text,\n \"time\" text,\n \"swimmer\" text,\n \"school\" text,\n \"year\" real\n);\n\nQuestion: What is Time, when Year is greater than 2011, and when Event is \"800 Freestyle Relay\"?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"records\" WHERE \"year\">2011 AND \"event\"='800 freestyle relay';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"records\" (\n \"event\" text,\n \"time\" text,\n \"swimmer\" text,\n \"school\" text,\n \"year\" real\n);\n\nQuestion: What is Year, when Time is \"1:47.55\"?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"records\" WHERE \"time\"='1:47.55';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_11_5_6\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: What is the Surface of the match against Yaroslava Shvedova?" }, { "role": "assistant", "content": "SELECT \"surface\" FROM \"singles_11_5_6\" WHERE \"opponent_in_the_final\"='yaroslava shvedova';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_11_5_6\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: What is the Surface of the match with a Score in the final of 5\u20137, 6\u20137 (2\u20137)?" }, { "role": "assistant", "content": "SELECT \"surface\" FROM \"singles_11_5_6\" WHERE \"score_in_the_final\"='5\u20137, 6\u20137 (2\u20137)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_11_5_6\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: Who is the Opponent in the final of the match played on Clay Surface with a Score in the final of 4\u20136, 3\u20136?" }, { "role": "assistant", "content": "SELECT \"opponent_in_the_final\" FROM \"singles_11_5_6\" WHERE \"surface\"='clay' AND \"score_in_the_final\"='4\u20136, 3\u20136';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_11_5_6\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: On what Date is the match played on Clay Surface with a Score in the final of 6\u20132, 7\u20135?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"singles_11_5_6\" WHERE \"surface\"='clay' AND \"score_in_the_final\"='6\u20132, 7\u20135';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"player\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team_league\" text\n);\n\nQuestion: WHAT IS THE NHL TEAM OF FINLAND?" }, { "role": "assistant", "content": "SELECT \"nhl_team\" FROM \"draft_picks\" WHERE \"nationality\"='finland';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"iraqi_air_force_strength_at_start_of_war\" (\n \"aircraft\" text,\n \"1990\" real,\n \"destroyed\" real,\n \"damaged\" real,\n \"to_iran\" real,\n \"survived\" real\n);\n\nQuestion: What's the to Iran with fewer than 9 survivors, more than 3 damaged, and an ussr an-26 aircraft?" }, { "role": "assistant", "content": "SELECT AVG(\"to_iran\") FROM \"iraqi_air_force_strength_at_start_of_war\" WHERE \"survived\"<9 AND \"aircraft\"='ussr an-26' AND \"damaged\">3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"iraqi_air_force_strength_at_start_of_war\" (\n \"aircraft\" text,\n \"1990\" real,\n \"destroyed\" real,\n \"damaged\" real,\n \"to_iran\" real,\n \"survived\" real\n);\n\nQuestion: What's the average destroyed with a 1990 over 12, more than 1 damaged, 6 survivors, and a to Iran less than 4?" }, { "role": "assistant", "content": "SELECT AVG(\"destroyed\") FROM \"iraqi_air_force_strength_at_start_of_war\" WHERE \"1990\">12 AND \"damaged\">1 AND \"to_iran\"<4 AND \"survived\"=6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"iraqi_air_force_strength_at_start_of_war\" (\n \"aircraft\" text,\n \"1990\" real,\n \"destroyed\" real,\n \"damaged\" real,\n \"to_iran\" real,\n \"survived\" real\n);\n\nQuestion: What's the average survived with a to Iran less than 1, more than 1 destroyed, and a brazil tucano aircraft?" }, { "role": "assistant", "content": "SELECT AVG(\"survived\") FROM \"iraqi_air_force_strength_at_start_of_war\" WHERE \"to_iran\"<1 AND \"aircraft\"='brazil tucano' AND \"destroyed\">1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"replays\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: What home team played when there was an attendance of 568?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"replays\" WHERE \"attendance\"='568';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"replays\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: What away team did Horsham play?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"replays\" WHERE \"home_team\"='horsham';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"replays\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: What home team played Hinckley United?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"replays\" WHERE \"away_team\"='hinckley united';" } ]
[ { "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 \"team_chassis\" text,\n \"engine\" text,\n \"tyres\" text,\n \"pts\" real\n);\n\nQuestion: How many points have an Engine of ferrari tipo 033 v6 tc, and a Year larger than 1987?" }, { "role": "assistant", "content": "SELECT SUM(\"pts\") FROM \"complete_formula_one_results\" WHERE \"engine\"='ferrari tipo 033 v6 tc' AND \"year\">1987;" } ]
[ { "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 \"team_chassis\" text,\n \"engine\" text,\n \"tyres\" text,\n \"pts\" real\n);\n\nQuestion: Which Team/Chassis has a Year larger than 1987?" }, { "role": "assistant", "content": "SELECT \"team_chassis\" FROM \"complete_formula_one_results\" WHERE \"year\">1987;" } ]
[ { "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 \"team_chassis\" text,\n \"engine\" text,\n \"tyres\" text,\n \"pts\" real\n);\n\nQuestion: How many points have an Engine of ferrari tipo 033 v6 tc, and a Year smaller than 1987?" }, { "role": "assistant", "content": "SELECT MAX(\"pts\") FROM \"complete_formula_one_results\" WHERE \"engine\"='ferrari tipo 033 v6 tc' AND \"year\"<1987;" } ]
[ { "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 \"team_chassis\" text,\n \"engine\" text,\n \"tyres\" text,\n \"pts\" real\n);\n\nQuestion: Which Team/Chassis has less than 65 points?" }, { "role": "assistant", "content": "SELECT \"team_chassis\" FROM \"complete_formula_one_results\" WHERE \"pts\"<65;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_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 the score if the Tie no is 32?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"third_round_proper\" WHERE \"tie_no\"='32';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_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 the Tie no for Scunthorpe United?" }, { "role": "assistant", "content": "SELECT \"tie_no\" FROM \"third_round_proper\" WHERE \"home_team\"='scunthorpe united';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: Which home team played against Stoke City?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"third_round_proper\" WHERE \"away_team\"='stoke city';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: Which away team has a Tie no of 14?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"third_round_proper\" WHERE \"tie_no\"='14';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: On what date does Watford have a Tie no of 2?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"third_round_proper\" WHERE \"home_team\"='watford' AND \"tie_no\"='2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ultra_low_voltage_processors\" (\n \"model_number\" text,\n \"clock_speed\" text,\n \"l1_cache\" text,\n \"l2_cache\" text,\n \"fsb_speed\" text,\n \"clock_multiplier\" text,\n \"idle_power\" text,\n \"socket\" text,\n \"cores\" real,\n \"release_date\" text\n);\n\nQuestion: Which L1 Cache has an FSB speed of 800mhz and a clock speed of 1.2ghz?" }, { "role": "assistant", "content": "SELECT \"l1_cache\" FROM \"ultra_low_voltage_processors\" WHERE \"fsb_speed\"='800mhz' AND \"clock_speed\"='1.2ghz';" } ]
[ { "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 score of Player Tom Kite?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"third_round\" WHERE \"player\"='tom kite';" } ]
[ { "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 To Par that has a 69-69-73=211 score?" }, { "role": "assistant", "content": "SELECT \"to_par\" FROM \"third_round\" WHERE \"score\"='69-69-73=211';" } ]
[ { "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 Top that has a 66-71-66=203 score and a place of t1?" }, { "role": "assistant", "content": "SELECT \"to_par\" FROM \"third_round\" WHERE \"place\"='t1' AND \"score\"='66-71-66=203';" } ]
[ { "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 player has a To Par of +1 with a score of 71-67-73=211?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"third_round\" WHERE \"to_par\"='+1' AND \"score\"='71-67-73=211';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: Which Player has a Score of 72-68-78-71=289?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"final_round\" WHERE \"score\"='72-68-78-71=289';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" real,\n \"to_par\" text\n);\n\nQuestion: What is the Place for the 66 Score?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"first_round\" WHERE \"score\"=66;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" real,\n \"to_par\" text\n);\n\nQuestion: What Country has a 67 score by Phil Mickelson?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"first_round\" WHERE \"score\"=67 AND \"player\"='phil mickelson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2002\" (\n \"week_1\" text,\n \"week_2\" text,\n \"week_3\" text,\n \"week_4\" text,\n \"week_5\" text\n);\n\nQuestion: When Cathi O'Malley was featured in Week 3, who was the cyber girl for Week 5?" }, { "role": "assistant", "content": "SELECT \"week_5\" FROM \"2002\" WHERE \"week_3\"='cathi o''malley';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2002\" (\n \"week_1\" text,\n \"week_2\" text,\n \"week_3\" text,\n \"week_4\" text,\n \"week_5\" text\n);\n\nQuestion: When Star Zemba was featured in Week 3, who was the cyber girl for Week 2?" }, { "role": "assistant", "content": "SELECT \"week_2\" FROM \"2002\" WHERE \"week_3\"='star zemba';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2002\" (\n \"week_1\" text,\n \"week_2\" text,\n \"week_3\" text,\n \"week_4\" text,\n \"week_5\" text\n);\n\nQuestion: When Heather Christensen was featured in Week 2, who was the cyber girl for Week 3?" }, { "role": "assistant", "content": "SELECT \"week_3\" FROM \"2002\" WHERE \"week_2\"='heather christensen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2002\" (\n \"week_1\" text,\n \"week_2\" text,\n \"week_3\" text,\n \"week_4\" text,\n \"week_5\" text\n);\n\nQuestion: When Audra Lynn was featured in Week 2, who was the cyber girl for Week 5?" }, { "role": "assistant", "content": "SELECT \"week_5\" FROM \"2002\" WHERE \"week_2\"='audra lynn';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualifying_round\" (\n \"team_1\" text,\n \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What is Agg., when Team 1 is \"Tirana\"?" }, { "role": "assistant", "content": "SELECT \"agg\" FROM \"qualifying_round\" WHERE \"team_1\"='tirana';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualifying_round\" (\n \"team_1\" text,\n \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What is 2nd Leg, when Team 2 is \"Dunaferr\"?" }, { "role": "assistant", "content": "SELECT \"2nd_leg\" FROM \"qualifying_round\" WHERE \"team_2\"='dunaferr';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"six_man_elimination_tag_team_match\" (\n \"elimination\" text,\n \"wrestler\" text,\n \"eliminated_by\" text,\n \"elimination_move\" text,\n \"time\" text\n);\n\nQuestion: What is the elimination number for the time 13:43?" }, { "role": "assistant", "content": "SELECT \"elimination\" FROM \"six_man_elimination_tag_team_match\" WHERE \"time\"='13:43';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"six_man_elimination_tag_team_match\" (\n \"elimination\" text,\n \"wrestler\" text,\n \"eliminated_by\" text,\n \"elimination_move\" text,\n \"time\" text\n);\n\nQuestion: What Elimination number is listed againt Eliminated by Sonjay Dutt?" }, { "role": "assistant", "content": "SELECT \"elimination\" FROM \"six_man_elimination_tag_team_match\" WHERE \"eliminated_by\"='sonjay dutt';" } ]