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 \"comparison_of_features\" (\n \"name\" text,\n \"wikis\" text,\n \"web_publishing\" text,\n \"calendaring_software\" text,\n \"project_management\" text,\n \"workflow_system\" text,\n \"document_management\" text,\n \"list_management\" text,\n \"xml_forms_management_and_workflow\" text,\n \"discussion\" text,\n \"blogs\" text,\n \"surveys\" text,\n \"time_tracking\" text,\n \"business_intelligence\" text,\n \"charting\" text,\n \"bookmarking_tagging_rating_and_comments\" text,\n \"social_software\" text,\n \"enterprise_search\" text,\n \"office_suite\" text\n);\n\nQuestion: WHAT IS THE BOOKMARKING, TAGGING, RATING AND COMMENTS WITH NO LIST MANAGEMENT, NO CHARTING, NO WEB PUBLISHING, OF MICROSOFT EXCHANGE SERVER?" }, { "role": "assistant", "content": "SELECT \"bookmarking_tagging_rating_and_comments\" FROM \"comparison_of_features\" WHERE \"list_management\"='no' AND \"charting\"='no' AND \"web_publishing\"='no' AND \"name\"='microsoft exchange server';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"targets\" (\n \"hd_designation\" text,\n \"constellation\" text,\n \"distance_ly\" real,\n \"spectral_type\" text,\n \"signal_power_k_w\" real,\n \"date_sent\" text,\n \"arrival_date\" text\n);\n\nQuestion: What is Constellation, when Date Sent is \"September 4, 2001\", and when Distance ( ly ) is less than 57.4?" }, { "role": "assistant", "content": "SELECT \"constellation\" FROM \"targets\" WHERE \"date_sent\"='september 4, 2001' AND \"distance_ly\"<57.4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"targets\" (\n \"hd_designation\" text,\n \"constellation\" text,\n \"distance_ly\" real,\n \"spectral_type\" text,\n \"signal_power_k_w\" real,\n \"date_sent\" text,\n \"arrival_date\" text\n);\n\nQuestion: What is Date, when Constellation is \"Delphinus\"?" }, { "role": "assistant", "content": "SELECT \"date_sent\" FROM \"targets\" WHERE \"constellation\"='delphinus';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"targets\" (\n \"hd_designation\" text,\n \"constellation\" text,\n \"distance_ly\" real,\n \"spectral_type\" text,\n \"signal_power_k_w\" real,\n \"date_sent\" text,\n \"arrival_date\" text\n);\n\nQuestion: What is the total number of Distance ( ly ), when Constellation is \"Draco\"?" }, { "role": "assistant", "content": "SELECT COUNT(\"distance_ly\") FROM \"targets\" WHERE \"constellation\"='draco';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"targets\" (\n \"hd_designation\" text,\n \"constellation\" text,\n \"distance_ly\" real,\n \"spectral_type\" text,\n \"signal_power_k_w\" real,\n \"date_sent\" text,\n \"arrival_date\" text\n);\n\nQuestion: What is Date Sent, when Signal Power ( kW ) is less than 126, when Arrival Date is \"January 2059\", and when HD Designation is \"HD193664\"?" }, { "role": "assistant", "content": "SELECT \"date_sent\" FROM \"targets\" WHERE \"signal_power_k_w\"<126 AND \"arrival_date\"='january 2059' AND \"hd_designation\"='hd193664';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"targets\" (\n \"hd_designation\" text,\n \"constellation\" text,\n \"distance_ly\" real,\n \"spectral_type\" text,\n \"signal_power_k_w\" real,\n \"date_sent\" text,\n \"arrival_date\" text\n);\n\nQuestion: What is Constellation, when HD Designation is \"HD197076\"?" }, { "role": "assistant", "content": "SELECT \"constellation\" FROM \"targets\" WHERE \"hd_designation\"='hd197076';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_7\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What date was the match against leonardo tavares with a score of 6\u20134, 6\u20134?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"singles_7\" WHERE \"score\"='6\u20134, 6\u20134' AND \"opponent\"='leonardo tavares';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_7\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What date was the match against adri\u00e1n men\u00e9ndez-maceiras?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"singles_7\" WHERE \"opponent\"='adri\u00e1n men\u00e9ndez-maceiras';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2009_ladder\" (\n \"golden_rivers\" text,\n \"wins\" real,\n \"byes\" real,\n \"losses\" real,\n \"draws\" real,\n \"against\" real\n);\n\nQuestion: What is the highest number of wins for Quambatook when Against is less than 1129?" }, { "role": "assistant", "content": "SELECT MAX(\"wins\") FROM \"2009_ladder\" WHERE \"golden_rivers\"='quambatook' AND \"against\"<1129;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2009_ladder\" (\n \"golden_rivers\" text,\n \"wins\" real,\n \"byes\" real,\n \"losses\" real,\n \"draws\" real,\n \"against\" real\n);\n\nQuestion: What is the total number of draws when there are fewer than 3 wins?" }, { "role": "assistant", "content": "SELECT COUNT(\"draws\") FROM \"2009_ladder\" WHERE \"wins\"<3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2009_ladder\" (\n \"golden_rivers\" text,\n \"wins\" real,\n \"byes\" real,\n \"losses\" real,\n \"draws\" real,\n \"against\" real\n);\n\nQuestion: What is the total number of draws for Wakool when there are more than 11 losses and fewer than 4 wins?" }, { "role": "assistant", "content": "SELECT COUNT(\"draws\") FROM \"2009_ladder\" WHERE \"losses\">11 AND \"wins\"<4 AND \"golden_rivers\"='wakool';" } ]
[ { "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\" real\n);\n\nQuestion: Which Country has a Score of 69-74=143?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"second_round\" WHERE \"score\"='69-74=143';" } ]
[ { "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\" real\n);\n\nQuestion: Which Player has a To Par smaller than 5, and a Score of 70-72=142?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"second_round\" WHERE \"to_par\"<5 AND \"score\"='70-72=142';" } ]
[ { "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\" real\n);\n\nQuestion: What was Frank Moore's score?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"second_round\" WHERE \"player\"='frank moore';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"second_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What was the score of the game that home team birmingham city played?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"second_round_proper\" WHERE \"home_team\"='birmingham city';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"second_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What date was the game when away team northampton town played?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"second_round_proper\" WHERE \"away_team\"='northampton town';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"second_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: Who was the team who played home team woking?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"second_round_proper\" WHERE \"home_team\"='woking';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fc_bayern_munich_ii_versus_sp_vgg_unterh\" (\n \"season\" text,\n \"league\" text,\n \"teams\" text,\n \"home\" text,\n \"away\" text\n);\n\nQuestion: What is the home for the league 3rd liga (iii)?" }, { "role": "assistant", "content": "SELECT \"home\" FROM \"fc_bayern_munich_ii_versus_sp_vgg_unterh\" WHERE \"league\"='3rd liga (iii)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fc_bayern_munich_ii_versus_sp_vgg_unterh\" (\n \"season\" text,\n \"league\" text,\n \"teams\" text,\n \"home\" text,\n \"away\" text\n);\n\nQuestion: What is the home for league 3rd liga, and an away of 4-0?" }, { "role": "assistant", "content": "SELECT \"home\" FROM \"fc_bayern_munich_ii_versus_sp_vgg_unterh\" WHERE \"league\"='3rd liga' AND \"away\"='4-0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fc_bayern_munich_ii_versus_sp_vgg_unterh\" (\n \"season\" text,\n \"league\" text,\n \"teams\" text,\n \"home\" text,\n \"away\" text\n);\n\nQuestion: What is the home for the away of 4-0?" }, { "role": "assistant", "content": "SELECT \"home\" FROM \"fc_bayern_munich_ii_versus_sp_vgg_unterh\" WHERE \"away\"='4-0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fc_bayern_munich_ii_versus_sp_vgg_unterh\" (\n \"season\" text,\n \"league\" text,\n \"teams\" text,\n \"home\" text,\n \"away\" text\n);\n\nQuestion: What season has a league 3rd liga, and away of 1-0?" }, { "role": "assistant", "content": "SELECT \"season\" FROM \"fc_bayern_munich_ii_versus_sp_vgg_unterh\" WHERE \"league\"='3rd liga' AND \"away\"='1-0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fc_bayern_munich_ii_versus_sp_vgg_unterh\" (\n \"season\" text,\n \"league\" text,\n \"teams\" text,\n \"home\" text,\n \"away\" text\n);\n\nQuestion: What is the home with a league 3rd liga, and an away of 4-0?" }, { "role": "assistant", "content": "SELECT \"home\" FROM \"fc_bayern_munich_ii_versus_sp_vgg_unterh\" WHERE \"league\"='3rd liga' AND \"away\"='4-0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fc_bayern_munich_ii_versus_sp_vgg_unterh\" (\n \"season\" text,\n \"league\" text,\n \"teams\" text,\n \"home\" text,\n \"away\" text\n);\n\nQuestion: What team has a season of 2009-10?" }, { "role": "assistant", "content": "SELECT \"teams\" FROM \"fc_bayern_munich_ii_versus_sp_vgg_unterh\" WHERE \"season\"='2009-10';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"group_i\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"points\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" real\n);\n\nQuestion: What is the highest Goals Against, when Points is greater than 25, when Club is \"SD Indautxu\", and when Position is greater than 3?" }, { "role": "assistant", "content": "SELECT MAX(\"goals_against\") FROM \"group_i\" WHERE \"points\">25 AND \"club\"='sd indautxu' AND \"position\">3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"group_i\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"points\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" real\n);\n\nQuestion: What is the total number of Wins, when Draws is less than 2?" }, { "role": "assistant", "content": "SELECT COUNT(\"wins\") FROM \"group_i\" WHERE \"draws\"<2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"group_i\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"points\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" real\n);\n\nQuestion: What is the average Wins, when Played is less than 30?" }, { "role": "assistant", "content": "SELECT AVG(\"wins\") FROM \"group_i\" WHERE \"played\"<30;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"group_i\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"points\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" real\n);\n\nQuestion: What is the total number of Wins, when Draws is less than 5, when Goals is greater than 49, and when Played is greater than 30?" }, { "role": "assistant", "content": "SELECT COUNT(\"wins\") FROM \"group_i\" WHERE \"draws\"<5 AND \"goals_against\">49 AND \"played\">30;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"group_i\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"points\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" real\n);\n\nQuestion: What is the lowest Goal Difference, when Position is \"7\", and when Played is greater than 30?" }, { "role": "assistant", "content": "SELECT MIN(\"goal_difference\") FROM \"group_i\" WHERE \"position\"=7 AND \"played\">30;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011\" (\n \"week_1\" text,\n \"week_2\" text,\n \"week_3\" text,\n \"week_4\" text,\n \"week_5\" text\n);\n\nQuestion: What is the week 3, prior to the when the week 4 was Laura Nicole?" }, { "role": "assistant", "content": "SELECT \"week_4\" FROM \"2011\" WHERE \"week_3\"='laura nicole';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011\" (\n \"week_1\" text,\n \"week_2\" text,\n \"week_3\" text,\n \"week_4\" text,\n \"week_5\" text\n);\n\nQuestion: What was the week 2 prior to the when Miranda Jordan was the week 4?" }, { "role": "assistant", "content": "SELECT \"week_2\" FROM \"2011\" WHERE \"week_4\"='miranda jordan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011\" (\n \"week_1\" text,\n \"week_2\" text,\n \"week_3\" text,\n \"week_4\" text,\n \"week_5\" text\n);\n\nQuestion: What was the week 2 prior to the when Brittany Alyse was week 3?" }, { "role": "assistant", "content": "SELECT \"week_2\" FROM \"2011\" WHERE \"week_3\"='brittany alyse';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011\" (\n \"week_1\" text,\n \"week_2\" text,\n \"week_3\" text,\n \"week_4\" text,\n \"week_5\" text\n);\n\nQuestion: What is the week 5 after Dani Dior as week 1?" }, { "role": "assistant", "content": "SELECT \"week_5\" FROM \"2011\" WHERE \"week_1\"='dani dior';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011\" (\n \"week_1\" text,\n \"week_2\" text,\n \"week_3\" text,\n \"week_4\" text,\n \"week_5\" text\n);\n\nQuestion: What was the week 2 before Lara Leverence was week 3?" }, { "role": "assistant", "content": "SELECT \"week_2\" FROM \"2011\" WHERE \"week_3\"='lara leverence';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medals_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the total number of bronzes that is less than 1 in total?" }, { "role": "assistant", "content": "SELECT COUNT(\"bronze\") FROM \"medals_table\" WHERE \"total\"<1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medals_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the total number of bronze that has less than 2 gold, and more than 1 silver?" }, { "role": "assistant", "content": "SELECT COUNT(\"bronze\") FROM \"medals_table\" WHERE \"gold\"<2 AND \"silver\">1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medals_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the lowest rank with less than 1 gold, 0 silver, 1 bronze, and a total less than 1?" }, { "role": "assistant", "content": "SELECT MIN(\"rank\") FROM \"medals_table\" WHERE \"gold\"<1 AND \"silver\"=0 AND \"bronze\"=1 AND \"total\"<1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medals_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the average bronze for less than 0 gold?" }, { "role": "assistant", "content": "SELECT AVG(\"bronze\") FROM \"medals_table\" WHERE \"gold\"<0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medals_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the total number for less than 8 bronze, the Netherlands nation, and is ranked less than 16?" }, { "role": "assistant", "content": "SELECT COUNT(\"total\") FROM \"medals_table\" WHERE \"bronze\"<8 AND \"nation\"='netherlands' AND \"rank\"<16;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"undergraduate_chapters_associate_chapter\" (\n \"greek_designation\" text,\n \"collegiate_institution\" text,\n \"charter_date\" text,\n \"status\" text,\n \"city\" text,\n \"u_s_state_district\" text\n);\n\nQuestion: What California city has an active status and a greek designation of established colony?" }, { "role": "assistant", "content": "SELECT \"city\" FROM \"undergraduate_chapters_associate_chapter\" WHERE \"status\"='active' AND \"u_s_state_district\"='california' AND \"greek_designation\"='established colony';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"undergraduate_chapters_associate_chapter\" (\n \"greek_designation\" text,\n \"collegiate_institution\" text,\n \"charter_date\" text,\n \"status\" text,\n \"city\" text,\n \"u_s_state_district\" text\n);\n\nQuestion: What's the greek designation of the new york chapter with a charter date of april 23, 2005?" }, { "role": "assistant", "content": "SELECT \"greek_designation\" FROM \"undergraduate_chapters_associate_chapter\" WHERE \"u_s_state_district\"='new york' AND \"charter_date\"='april 23, 2005';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"undergraduate_chapters_associate_chapter\" (\n \"greek_designation\" text,\n \"collegiate_institution\" text,\n \"charter_date\" text,\n \"status\" text,\n \"city\" text,\n \"u_s_state_district\" text\n);\n\nQuestion: What collegiate institution has an active status and a charter date of march 30, 2002?" }, { "role": "assistant", "content": "SELECT \"collegiate_institution\" FROM \"undergraduate_chapters_associate_chapter\" WHERE \"status\"='active' AND \"charter_date\"='march 30, 2002';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"undergraduate_chapters_associate_chapter\" (\n \"greek_designation\" text,\n \"collegiate_institution\" text,\n \"charter_date\" text,\n \"status\" text,\n \"city\" text,\n \"u_s_state_district\" text\n);\n\nQuestion: What's the greek designation of the city riverside?" }, { "role": "assistant", "content": "SELECT \"greek_designation\" FROM \"undergraduate_chapters_associate_chapter\" WHERE \"city\"='riverside';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"undergraduate_chapters_associate_chapter\" (\n \"greek_designation\" text,\n \"collegiate_institution\" text,\n \"charter_date\" text,\n \"status\" text,\n \"city\" text,\n \"u_s_state_district\" text\n);\n\nQuestion: What city has a charter date of november 24, 1999?" }, { "role": "assistant", "content": "SELECT \"city\" FROM \"undergraduate_chapters_associate_chapter\" WHERE \"charter_date\"='november 24, 1999';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"undergraduate_chapters_associate_chapter\" (\n \"greek_designation\" text,\n \"collegiate_institution\" text,\n \"charter_date\" text,\n \"status\" text,\n \"city\" text,\n \"u_s_state_district\" text\n);\n\nQuestion: What state or district has a charter date of april 17, 2011?" }, { "role": "assistant", "content": "SELECT \"u_s_state_district\" FROM \"undergraduate_chapters_associate_chapter\" WHERE \"charter_date\"='april 17, 2011';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"individual_hoop\" (\n \"place\" real,\n \"name\" text,\n \"all_around\" real,\n \"hoop\" real,\n \"total\" real\n);\n\nQuestion: What is the smallest all around when the total is 19.85 and the hoop is less than 9.85?" }, { "role": "assistant", "content": "SELECT MIN(\"all_around\") FROM \"individual_hoop\" WHERE \"total\"=19.85 AND \"hoop\"<9.85;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"individual_hoop\" (\n \"place\" real,\n \"name\" text,\n \"all_around\" real,\n \"hoop\" real,\n \"total\" real\n);\n\nQuestion: What is the average hoop when the all around is less than 9.7?" }, { "role": "assistant", "content": "SELECT AVG(\"hoop\") FROM \"individual_hoop\" WHERE \"all_around\"<9.7;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"georgia_counties_ranked_by_per_capita_in\" (\n \"county\" text,\n \"per_capita_income\" text,\n \"median_household_income\" text,\n \"median_family_income\" text,\n \"population\" real,\n \"number_of_households\" real\n);\n\nQuestion: What is Per Capita Income, when Population is greater than 9,563, and when Median Family Income is \"$49,310\"?" }, { "role": "assistant", "content": "SELECT \"per_capita_income\" FROM \"georgia_counties_ranked_by_per_capita_in\" WHERE \"population\">'9,563' AND \"median_family_income\"='$49,310';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"georgia_counties_ranked_by_per_capita_in\" (\n \"county\" text,\n \"per_capita_income\" text,\n \"median_household_income\" text,\n \"median_family_income\" text,\n \"population\" real,\n \"number_of_households\" real\n);\n\nQuestion: What is Median Family Income, when Median Household Income is \"$50,717\"?" }, { "role": "assistant", "content": "SELECT \"median_family_income\" FROM \"georgia_counties_ranked_by_per_capita_in\" WHERE \"median_household_income\"='$50,717';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"georgia_counties_ranked_by_per_capita_in\" (\n \"county\" text,\n \"per_capita_income\" text,\n \"median_household_income\" text,\n \"median_family_income\" text,\n \"population\" real,\n \"number_of_households\" real\n);\n\nQuestion: What is the highest Number of Households, when Per Capita Income is \"$25,557\", and when Population is less than \"22,330\"?" }, { "role": "assistant", "content": "SELECT MAX(\"number_of_households\") FROM \"georgia_counties_ranked_by_per_capita_in\" WHERE \"per_capita_income\"='$25,557' AND \"population\"<'22,330';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"georgia_counties_ranked_by_per_capita_in\" (\n \"county\" text,\n \"per_capita_income\" text,\n \"median_household_income\" text,\n \"median_family_income\" text,\n \"population\" real,\n \"number_of_households\" real\n);\n\nQuestion: What is the lowest Population, when Per Capita Income is \"$16,330\"?" }, { "role": "assistant", "content": "SELECT MIN(\"population\") FROM \"georgia_counties_ranked_by_per_capita_in\" WHERE \"per_capita_income\"='$16,330';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"georgia_counties_ranked_by_per_capita_in\" (\n \"county\" text,\n \"per_capita_income\" text,\n \"median_household_income\" text,\n \"median_family_income\" text,\n \"population\" real,\n \"number_of_households\" real\n);\n\nQuestion: What is the highest Population, when Per Capita Income is \"$17,168\", and when Number of Households is greater than 3,287?" }, { "role": "assistant", "content": "SELECT MAX(\"population\") FROM \"georgia_counties_ranked_by_per_capita_in\" WHERE \"per_capita_income\"='$17,168' AND \"number_of_households\">'3,287';" } ]
[ { "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 Place, when Score is \"70-68=138\", and when Player is \"Andrew Magee\"?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"second_round\" WHERE \"score\"='70-68=138' AND \"player\"='andrew magee';" } ]
[ { "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 To par, when Place is \"T5\", and when Score is \"70-68=138\"?" }, { "role": "assistant", "content": "SELECT \"to_par\" FROM \"second_round\" WHERE \"place\"='t5' AND \"score\"='70-68=138';" } ]
[ { "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 Score, when Place is \"T5\", when Country is \"United States\", and when Player is \"Davis Love III\"?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"second_round\" WHERE \"place\"='t5' AND \"country\"='united states' AND \"player\"='davis love iii';" } ]
[ { "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 Player, when Country is \"United States\", when Place is \"T10\", and when Score is \"68-71=139\"?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"second_round\" WHERE \"country\"='united states' AND \"place\"='t10' AND \"score\"='68-71=139';" } ]
[ { "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 Score, when Player is \"Vijay Singh\"?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"second_round\" WHERE \"player\"='vijay singh';" } ]
[ { "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: Which Player has a To par of \u20132, and a Country of wales?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"first_round\" WHERE \"to_par\"='\u20132' AND \"country\"='wales';" } ]
[ { "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: Which Score has a To par of \u20133, and a Player of santiago luna?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"first_round\" WHERE \"to_par\"='\u20133' AND \"player\"='santiago luna';" } ]
[ { "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: Which Player has a Score of 67 in united states?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"first_round\" WHERE \"score\"=67 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 \"wins_50\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: What are the Opponents at the Schenectady, U.S. Tournament?" }, { "role": "assistant", "content": "SELECT \"opponents_in_the_final\" FROM \"wins_50\" WHERE \"tournament\"='schenectady, u.s.';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_2_8\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What was the outcome of the August 20, 2007 match?" }, { "role": "assistant", "content": "SELECT \"outcome\" FROM \"singles_2_8\" WHERE \"date\"='august 20, 2007';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_2_8\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What was the score in the August 20, 2007 match?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"singles_2_8\" WHERE \"date\"='august 20, 2007';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_2_8\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Which tournament was held on July 13, 2008?" }, { "role": "assistant", "content": "SELECT \"tournament\" FROM \"singles_2_8\" WHERE \"date\"='july 13, 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_2_8\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Who was the opponent in the September 20, 2010 match?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"singles_2_8\" WHERE \"date\"='september 20, 2010';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_2_8\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What date was the Izmir Cup in which \u0130lhan played against Somdev Devvarman?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"singles_2_8\" WHERE \"tournament\"='izmir cup' AND \"opponent\"='somdev devvarman';" } ]
[ { "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: What years did Tom Lehman win?" }, { "role": "assistant", "content": "SELECT \"year_s_won\" FROM \"missed_the_cut\" WHERE \"player\"='tom lehman';" } ]
[ { "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: What was the total To Par for the winner in 1995?" }, { "role": "assistant", "content": "SELECT COUNT(\"to_par\") FROM \"missed_the_cut\" WHERE \"year_s_won\"='1995';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"achievements\" (\n \"year\" real,\n \"competition\" text,\n \"venue\" text,\n \"position\" text,\n \"event\" text\n);\n\nQuestion: How many years had a 100 m hurdles event at the world championships in Osaka, Japan?" }, { "role": "assistant", "content": "SELECT SUM(\"year\") FROM \"achievements\" WHERE \"event\"='100 m hurdles' AND \"competition\"='world championships' AND \"venue\"='osaka, japan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"achievements\" (\n \"year\" real,\n \"competition\" text,\n \"venue\" text,\n \"position\" text,\n \"event\" text\n);\n\nQuestion: What was the position of the event held in Valencia, Spain?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"achievements\" WHERE \"venue\"='valencia, spain';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"achievements\" (\n \"year\" real,\n \"competition\" text,\n \"venue\" text,\n \"position\" text,\n \"event\" text\n);\n\nQuestion: What was the earliest year that an event held in Berlin, Germany had a 100 m hurdles event?" }, { "role": "assistant", "content": "SELECT MIN(\"year\") FROM \"achievements\" WHERE \"venue\"='berlin, germany' AND \"event\"='100 m hurdles';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"achievements\" (\n \"year\" real,\n \"competition\" text,\n \"venue\" text,\n \"position\" text,\n \"event\" text\n);\n\nQuestion: What even was held in Valencia, Spain?" }, { "role": "assistant", "content": "SELECT \"event\" FROM \"achievements\" WHERE \"venue\"='valencia, spain';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pre_season_and_friendlies\" (\n \"date\" text,\n \"time\" text,\n \"competition\" text,\n \"opponent\" text,\n \"ground\" text,\n \"score\" text\n);\n\nQuestion: What is the time of the tim trophy competition where juventus was the opponent?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"pre_season_and_friendlies\" WHERE \"competition\"='tim trophy' AND \"opponent\"='juventus';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pre_season_and_friendlies\" (\n \"date\" text,\n \"time\" text,\n \"competition\" text,\n \"opponent\" text,\n \"ground\" text,\n \"score\" text\n);\n\nQuestion: What is the competition on 15 August 2008?" }, { "role": "assistant", "content": "SELECT \"competition\" FROM \"pre_season_and_friendlies\" WHERE \"date\"='15 august 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pre_season_and_friendlies\" (\n \"date\" text,\n \"time\" text,\n \"competition\" text,\n \"opponent\" text,\n \"ground\" text,\n \"score\" text\n);\n\nQuestion: What is the score of the friendly match competition on 24 July 2008?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"pre_season_and_friendlies\" WHERE \"competition\"='friendly match' AND \"date\"='24 july 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pre_season_and_friendlies\" (\n \"date\" text,\n \"time\" text,\n \"competition\" text,\n \"opponent\" text,\n \"ground\" text,\n \"score\" text\n);\n\nQuestion: What is the ground of the tim trophy competition, which had a time of 23:00 cet?" }, { "role": "assistant", "content": "SELECT \"ground\" FROM \"pre_season_and_friendlies\" WHERE \"competition\"='tim trophy' AND \"time\"='23:00 cet';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pre_season_and_friendlies\" (\n \"date\" text,\n \"time\" text,\n \"competition\" text,\n \"opponent\" text,\n \"ground\" text,\n \"score\" text\n);\n\nQuestion: What competition is at 23:00 cet?" }, { "role": "assistant", "content": "SELECT \"competition\" FROM \"pre_season_and_friendlies\" WHERE \"time\"='23:00 cet';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_14_12_2\" (\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 outcome on March 20, 1994?" }, { "role": "assistant", "content": "SELECT \"outcome\" FROM \"singles_14_12_2\" WHERE \"date\"='march 20, 1994';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_14_12_2\" (\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 tournament had a hard surface on February 25, 1996?" }, { "role": "assistant", "content": "SELECT \"tournament\" FROM \"singles_14_12_2\" WHERE \"surface\"='hard' AND \"date\"='february 25, 1996';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_14_12_2\" (\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 score in the final with a hard surface and is against Hiromi Nagano?" }, { "role": "assistant", "content": "SELECT \"score_in_the_final\" FROM \"singles_14_12_2\" WHERE \"surface\"='hard' AND \"opponent_in_the_final\"='hiromi nagano';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_14_12_2\" (\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 total outcome for the clay surface on April 21, 1996?" }, { "role": "assistant", "content": "SELECT \"outcome\" FROM \"singles_14_12_2\" WHERE \"surface\"='clay' AND \"date\"='april 21, 1996';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"aerial_victories\" (\n \"date\" text,\n \"unit\" real,\n \"aircraft\" text,\n \"opponent\" text,\n \"location\" text\n);\n\nQuestion: What aircraft is located at S of Avion?" }, { "role": "assistant", "content": "SELECT \"aircraft\" FROM \"aerial_victories\" WHERE \"location\"='s of avion';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"aerial_victories\" (\n \"date\" text,\n \"unit\" real,\n \"aircraft\" text,\n \"opponent\" text,\n \"location\" text\n);\n\nQuestion: What is the Unit for the Aircraft F.e.2b, located in Logeast?" }, { "role": "assistant", "content": "SELECT SUM(\"unit\") FROM \"aerial_victories\" WHERE \"aircraft\"='f.e.2b' AND \"location\"='logeast';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"westmorland_county_new_brunswick\" (\n \"official_name\" text,\n \"status\" text,\n \"area_km_2\" real,\n \"population\" real,\n \"census_ranking\" text\n);\n\nQuestion: What is the name of the place that has a census ranking of 1,229 of 5,008?" }, { "role": "assistant", "content": "SELECT \"official_name\" FROM \"westmorland_county_new_brunswick\" WHERE \"census_ranking\"='1,229 of 5,008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"westmorland_county_new_brunswick\" (\n \"official_name\" text,\n \"status\" text,\n \"area_km_2\" real,\n \"population\" real,\n \"census_ranking\" text\n);\n\nQuestion: How large, in square kilometers, is Sackville?" }, { "role": "assistant", "content": "SELECT \"area_km_2\" FROM \"westmorland_county_new_brunswick\" WHERE \"official_name\"='sackville';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"westmorland_county_new_brunswick\" (\n \"official_name\" text,\n \"status\" text,\n \"area_km_2\" real,\n \"population\" real,\n \"census_ranking\" text\n);\n\nQuestion: What is the name(s) of the place(s) with a population of less than 1,429?" }, { "role": "assistant", "content": "SELECT \"official_name\" FROM \"westmorland_county_new_brunswick\" WHERE \"population\"<'1,429';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text,\n \"arena\" text,\n \"points\" real\n);\n\nQuestion: What score has 33 as the points?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"regular_season\" WHERE \"points\"=33;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text,\n \"arena\" text,\n \"points\" real\n);\n\nQuestion: What date has joe louis arena as the arena?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"regular_season\" WHERE \"arena\"='joe louis arena';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What competition was played on 2 June 1992?" }, { "role": "assistant", "content": "SELECT \"competition\" FROM \"international_goals\" WHERE \"date\"='2 june 1992';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What date was a friendly match played that ended in a 3-0 score?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"international_goals\" WHERE \"result\"='3-0' AND \"competition\"='friendly match';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What was the score of the match played on 5 September 2001?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"international_goals\" WHERE \"date\"='5 september 2001';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: In what stadium was the friendly match on 2 June 1992 played in?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"international_goals\" WHERE \"competition\"='friendly match' AND \"date\"='2 june 1992';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What was the score of the 1998 FIFA World Cup qualification competition?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"international_goals\" WHERE \"competition\"='1998 fifa world cup qualification';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"club_representative_appearances\" (\n \"date\" text,\n \"nationality_opponent\" text,\n \"ground\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: Name the Date has a Competition of welsh rugby union challenge trophy and a Result of 34-34? Question 1" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"club_representative_appearances\" WHERE \"competition\"='welsh rugby union challenge trophy' AND \"result\"='34-34';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"club_representative_appearances\" (\n \"date\" text,\n \"nationality_opponent\" text,\n \"ground\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: Name the Result of new zealand Nationality / Opponent?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"club_representative_appearances\" WHERE \"nationality_opponent\"='new zealand';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"club_representative_appearances\" (\n \"date\" text,\n \"nationality_opponent\" text,\n \"ground\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: Name Nationality / Opponent on 10 january 1998?" }, { "role": "assistant", "content": "SELECT \"nationality_opponent\" FROM \"club_representative_appearances\" WHERE \"date\"='10 january 1998';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"club_representative_appearances\" (\n \"date\" text,\n \"nationality_opponent\" text,\n \"ground\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: Name The Ground on 18 january 1998?" }, { "role": "assistant", "content": "SELECT \"ground\" FROM \"club_representative_appearances\" WHERE \"date\"='18 january 1998';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"club_representative_appearances\" (\n \"date\" text,\n \"nationality_opponent\" text,\n \"ground\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: Name the Nationality / Opponent of the Competition of welsh rugby union challenge trophy and a Result of 38-29?" }, { "role": "assistant", "content": "SELECT \"nationality_opponent\" FROM \"club_representative_appearances\" WHERE \"competition\"='welsh rugby union challenge trophy' AND \"result\"='38-29';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"club_representative_appearances\" (\n \"date\" text,\n \"nationality_opponent\" text,\n \"ground\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: Name the Nationality / Opponent of rosario?" }, { "role": "assistant", "content": "SELECT \"competition\" FROM \"club_representative_appearances\" WHERE \"nationality_opponent\"='rosario';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"matches\" (\n \"team_1\" text,\n \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What team 1 has a team 2 of universidad nacional?" }, { "role": "assistant", "content": "SELECT \"team_1\" FROM \"matches\" WHERE \"team_2\"='universidad nacional';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"matches\" (\n \"team_1\" text,\n \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What team 2 has a team 1 of harbour view?" }, { "role": "assistant", "content": "SELECT \"team_2\" FROM \"matches\" WHERE \"team_1\"='harbour view';" } ]