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 \"year_by_year\" (\n \"year\" real,\n \"division\" real,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: Which Year has Playoffs which did not qualify?" }, { "role": "assistant", "content": "SELECT AVG(\"year\") FROM \"year_by_year\" WHERE \"playoffs\"='did not qualify';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"team\" (\n \"year\" real,\n \"location\" text,\n \"gold\" text,\n \"silver\" text,\n \"bronze\" text\n);\n\nQuestion: Can you tell me the Gold that has the Silver of south korea, and the Year of 1986?" }, { "role": "assistant", "content": "SELECT \"gold\" FROM \"team\" WHERE \"silver\"='south korea' AND \"year\"=1986;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"filmography\" (\n \"year\" text,\n \"title\" text,\n \"director\" text,\n \"distributor_s\" text,\n \"box_office\" text\n);\n\nQuestion: When was Lee Phillips the director?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"filmography\" WHERE \"director\"='lee phillips';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"filmography\" (\n \"year\" text,\n \"title\" text,\n \"director\" text,\n \"distributor_s\" text,\n \"box_office\" text\n);\n\nQuestion: What is the movie that Paul Schneider directed?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"filmography\" WHERE \"director\"='paul schneider';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"filmography\" (\n \"year\" text,\n \"title\" text,\n \"director\" text,\n \"distributor_s\" text,\n \"box_office\" text\n);\n\nQuestion: The box office was $961,147 in what year?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"filmography\" WHERE \"box_office\"='$961,147';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"filmography\" (\n \"year\" text,\n \"title\" text,\n \"director\" text,\n \"distributor_s\" text,\n \"box_office\" text\n);\n\nQuestion: Three Men and a Little Lady from Touchstone Pictures was from what year?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"filmography\" WHERE \"distributor_s\"='touchstone pictures' AND \"title\"='three men and a little lady';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"filmography\" (\n \"year\" text,\n \"title\" text,\n \"director\" text,\n \"distributor_s\" text,\n \"box_office\" text\n);\n\nQuestion: What is the name of the movie from 1997 distributed from HBO Pictures?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"filmography\" WHERE \"year\"='1997' AND \"distributor_s\"='hbo pictures';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"filmography\" (\n \"year\" text,\n \"title\" text,\n \"director\" text,\n \"distributor_s\" text,\n \"box_office\" text\n);\n\nQuestion: What movie earned $1,659,542 at the box office?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"filmography\" WHERE \"box_office\"='$1,659,542';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"orthologs\" (\n \"common_name\" text,\n \"protein_name\" text,\n \"divergence_from_human_lineage_mya\" real,\n \"accession_number\" text,\n \"sequence_length_aa\" real,\n \"sequence_identity_to_human_protein\" text\n);\n\nQuestion: Which accession number has a protein name of ccdc165, and a divergence from human lineage (MYA) smaller than 296?" }, { "role": "assistant", "content": "SELECT \"accession_number\" FROM \"orthologs\" WHERE \"protein_name\"='ccdc165' AND \"divergence_from_human_lineage_mya\"<296;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"orthologs\" (\n \"common_name\" text,\n \"protein_name\" text,\n \"divergence_from_human_lineage_mya\" real,\n \"accession_number\" text,\n \"sequence_length_aa\" real,\n \"sequence_identity_to_human_protein\" text\n);\n\nQuestion: Which sequence identity to human protein has a divergence from human lineage (MYA) larger than 8.8, and a sequence length (aa) larger than 1587, and a protein name of soga2?" }, { "role": "assistant", "content": "SELECT \"sequence_identity_to_human_protein\" FROM \"orthologs\" WHERE \"divergence_from_human_lineage_mya\">8.8 AND \"sequence_length_aa\">1587 AND \"protein_name\"='soga2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: What's the record of the team who played the Cleveland Browns?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"schedule\" WHERE \"opponent\"='cleveland browns';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"special_teams\" (\n \"position\" text,\n \"number\" real,\n \"name\" text,\n \"height\" text,\n \"weight\" text,\n \"class\" text,\n \"hometown\" text,\n \"games\" real\n);\n\nQuestion: What is the hometown of the player who plays pr?" }, { "role": "assistant", "content": "SELECT \"hometown\" FROM \"special_teams\" WHERE \"position\"='pr';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"atlanta_falcons_draft_history\" (\n \"round\" real,\n \"pick_num\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which college's overall number is more than 158 when Travian Robertson is the name?" }, { "role": "assistant", "content": "SELECT \"college\" FROM \"atlanta_falcons_draft_history\" WHERE \"overall\">158 AND \"name\"='travian robertson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"atlanta_falcons_draft_history\" (\n \"round\" real,\n \"pick_num\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which round's name is Jonathan Massaquoi?" }, { "role": "assistant", "content": "SELECT \"round\" FROM \"atlanta_falcons_draft_history\" WHERE \"name\"='jonathan massaquoi';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"atlanta_falcons_draft_history\" (\n \"round\" real,\n \"pick_num\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the mean round number for center position when the pick number is less than 23?" }, { "role": "assistant", "content": "SELECT AVG(\"round\") FROM \"atlanta_falcons_draft_history\" WHERE \"position\"='center' AND \"pick_num\"<23;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"rank\" text,\n \"common_of\" text,\n \"population\" real,\n \"area_km_2\" real,\n \"density_inhabitants_km_2\" real,\n \"altitude_mslm\" real\n);\n\nQuestion: Which Altitude (mslm) has a Density (inhabitants/km 2) smaller than 1233, and a Rank of 9th?" }, { "role": "assistant", "content": "SELECT SUM(\"altitude_mslm\") FROM \"see_also\" WHERE \"density_inhabitants_km_2\"<1233 AND \"rank\"='9th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"rank\" text,\n \"common_of\" text,\n \"population\" real,\n \"area_km_2\" real,\n \"density_inhabitants_km_2\" real,\n \"altitude_mslm\" real\n);\n\nQuestion: Which Altitude (mslm) has a Density (inhabitants/km 2) smaller than 1467.5, and a Common of moncalieri?" }, { "role": "assistant", "content": "SELECT SUM(\"altitude_mslm\") FROM \"see_also\" WHERE \"density_inhabitants_km_2\"<1467.5 AND \"common_of\"='moncalieri';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"rank\" text,\n \"common_of\" text,\n \"population\" real,\n \"area_km_2\" real,\n \"density_inhabitants_km_2\" real,\n \"altitude_mslm\" real\n);\n\nQuestion: How much Area (km 2) has a Common of collegno, and a Population smaller than 50137?" }, { "role": "assistant", "content": "SELECT COUNT(\"area_km_2\") FROM \"see_also\" WHERE \"common_of\"='collegno' AND \"population\"<50137;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"rank\" text,\n \"common_of\" text,\n \"population\" real,\n \"area_km_2\" real,\n \"density_inhabitants_km_2\" real,\n \"altitude_mslm\" real\n);\n\nQuestion: How many people have an Altitude (mslm) larger than 302, and an Area (km 2) of 29.2?" }, { "role": "assistant", "content": "SELECT COUNT(\"population\") FROM \"see_also\" WHERE \"altitude_mslm\">302 AND \"area_km_2\"=29.2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"rank\" text,\n \"common_of\" text,\n \"population\" real,\n \"area_km_2\" real,\n \"density_inhabitants_km_2\" real,\n \"altitude_mslm\" real\n);\n\nQuestion: Which Population is the highest one that has an Altitude (mslm) smaller than 229, and an Area (km 2) larger than 32.7?" }, { "role": "assistant", "content": "SELECT MAX(\"population\") FROM \"see_also\" WHERE \"altitude_mslm\"<229 AND \"area_km_2\">32.7;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ships\" (\n \"ship\" text,\n \"original_pennant_number\" text,\n \"builder\" text,\n \"laid_down\" text,\n \"launched\" text,\n \"commissioned\" text\n);\n\nQuestion: what builder launched 20 jun 1953?" }, { "role": "assistant", "content": "SELECT \"builder\" FROM \"ships\" WHERE \"launched\"='20 jun 1953';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ships\" (\n \"ship\" text,\n \"original_pennant_number\" text,\n \"builder\" text,\n \"laid_down\" text,\n \"launched\" text,\n \"commissioned\" text\n);\n\nQuestion: what is the commissioned date with laid down of 17 dec 1951?" }, { "role": "assistant", "content": "SELECT \"commissioned\" FROM \"ships\" WHERE \"laid_down\"='17 dec 1951';" } ]
[ { "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\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"college_junior_club_team_league\" text\n);\n\nQuestion: What round was matt brait?" }, { "role": "assistant", "content": "SELECT \"round\" FROM \"draft_picks\" WHERE \"player\"='matt brait';" } ]
[ { "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\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"college_junior_club_team_league\" text\n);\n\nQuestion: Which player is in position center for round 2?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"draft_picks\" WHERE \"round\"='2' AND \"position\"='center';" } ]
[ { "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\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"college_junior_club_team_league\" text\n);\n\nQuestion: What position is Sweden in round 2?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"draft_picks\" WHERE \"nationality\"='sweden' AND \"round\"='2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"middle_tennessee\" (\n \"position\" text,\n \"number\" real,\n \"name\" text,\n \"height\" text,\n \"weight\" real,\n \"class\" text,\n \"hometown\" text,\n \"games\" real\n);\n\nQuestion: What is the height of number 52?" }, { "role": "assistant", "content": "SELECT \"height\" FROM \"middle_tennessee\" WHERE \"number\"=52;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"middle_tennessee\" (\n \"position\" text,\n \"number\" real,\n \"name\" text,\n \"height\" text,\n \"weight\" real,\n \"class\" text,\n \"hometown\" text,\n \"games\" real\n);\n\nQuestion: What number is Tony Dixon?" }, { "role": "assistant", "content": "SELECT \"number\" FROM \"middle_tennessee\" WHERE \"name\"='tony dixon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results\" (\n \"draw\" real,\n \"language\" text,\n \"artist\" text,\n \"song\" text,\n \"english_translation\" text,\n \"place\" real,\n \"points\" real\n);\n\nQuestion: What is the average Draw for the artist(s), whose language is Swedish, and scored less than 10 points?" }, { "role": "assistant", "content": "SELECT AVG(\"draw\") FROM \"results\" WHERE \"language\"='swedish' AND \"points\"<10;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"barangays\" (\n \"barangay\" text,\n \"population_2010\" real,\n \"economic_class\" text,\n \"land_area_in_sqm\" real,\n \"punong_barangay_term_2010_2013\" text\n);\n\nQuestion: Which Economic Class has a Barangay of imelda bliss village?" }, { "role": "assistant", "content": "SELECT \"economic_class\" FROM \"barangays\" WHERE \"barangay\"='imelda bliss village';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"barangays\" (\n \"barangay\" text,\n \"population_2010\" real,\n \"economic_class\" text,\n \"land_area_in_sqm\" real,\n \"punong_barangay_term_2010_2013\" text\n);\n\nQuestion: Which Economic Class has a Population (2010) larger than 1,265, and a Barangay of capellan?" }, { "role": "assistant", "content": "SELECT \"economic_class\" FROM \"barangays\" WHERE \"population_2010\">'1,265' AND \"barangay\"='capellan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"1990\" text,\n \"1991\" text,\n \"1992\" text,\n \"1993\" text,\n \"1994\" text,\n \"1995\" text,\n \"1996\" text,\n \"1997\" text,\n \"1998\" text,\n \"1999\" text,\n \"2000\" text\n);\n\nQuestion: What 1997 has grand slams for the 1999?" }, { "role": "assistant", "content": "SELECT \"1997\" FROM \"singles_performance_timeline\" WHERE \"1999\"='grand slams';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"1990\" text,\n \"1991\" text,\n \"1992\" text,\n \"1993\" text,\n \"1994\" text,\n \"1995\" text,\n \"1996\" text,\n \"1997\" text,\n \"1998\" text,\n \"1999\" text,\n \"2000\" text\n);\n\nQuestion: What 1992 has atp masters series for the 1995?" }, { "role": "assistant", "content": "SELECT \"1992\" FROM \"singles_performance_timeline\" WHERE \"1995\"='atp masters series';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"1990\" text,\n \"1991\" text,\n \"1992\" text,\n \"1993\" text,\n \"1994\" text,\n \"1995\" text,\n \"1996\" text,\n \"1997\" text,\n \"1998\" text,\n \"1999\" text,\n \"2000\" text\n);\n\nQuestion: What 1995 has 1r as the 1999, and a 1998 of 4r?" }, { "role": "assistant", "content": "SELECT \"1995\" FROM \"singles_performance_timeline\" WHERE \"1999\"='1r' AND \"1998\"='4r';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"1990\" text,\n \"1991\" text,\n \"1992\" text,\n \"1993\" text,\n \"1994\" text,\n \"1995\" text,\n \"1996\" text,\n \"1997\" text,\n \"1998\" text,\n \"1999\" text,\n \"2000\" text\n);\n\nQuestion: What 1998 has 2r as a 1993, and 1r as a 1990?" }, { "role": "assistant", "content": "SELECT \"1998\" FROM \"singles_performance_timeline\" WHERE \"1993\"='2r' AND \"1990\"='1r';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"1990\" text,\n \"1991\" text,\n \"1992\" text,\n \"1993\" text,\n \"1994\" text,\n \"1995\" text,\n \"1996\" text,\n \"1997\" text,\n \"1998\" text,\n \"1999\" text,\n \"2000\" text\n);\n\nQuestion: What 1997, has qf as a 1994, and 1r as a 1999?" }, { "role": "assistant", "content": "SELECT \"1997\" FROM \"singles_performance_timeline\" WHERE \"1994\"='qf' AND \"1999\"='1r';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"1990\" text,\n \"1991\" text,\n \"1992\" text,\n \"1993\" text,\n \"1994\" text,\n \"1995\" text,\n \"1996\" text,\n \"1997\" text,\n \"1998\" text,\n \"1999\" text,\n \"2000\" text\n);\n\nQuestion: What 1993 has 2r as a 1994, and 1r as a 1995?" }, { "role": "assistant", "content": "SELECT \"1993\" FROM \"singles_performance_timeline\" WHERE \"1994\"='2r' AND \"1995\"='1r';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"team_and_driver_lineup_prior_to_unificat\" (\n \"team\" text,\n \"no_num\" real,\n \"driver_s\" text,\n \"sponsor_s\" text,\n \"test_drivers\" text\n);\n\nQuestion: Which Driver has a Sponsor of pdvsa?" }, { "role": "assistant", "content": "SELECT \"driver_s\" FROM \"team_and_driver_lineup_prior_to_unificat\" WHERE \"sponsor_s\"='pdvsa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"teams\" (\n \"team\" text,\n \"city_region\" text,\n \"arena\" text,\n \"colours\" text,\n \"head_coach\" text\n);\n\nQuestion: What are the colours of the team with benedikt gu\u00f0mundsson as head coach?" }, { "role": "assistant", "content": "SELECT \"colours\" FROM \"teams\" WHERE \"head_coach\"='benedikt gu\u00f0mundsson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"teams\" (\n \"team\" text,\n \"city_region\" text,\n \"arena\" text,\n \"colours\" text,\n \"head_coach\" text\n);\n\nQuestion: What is the city and region of the team in the dalh\u00fas arena?" }, { "role": "assistant", "content": "SELECT \"city_region\" FROM \"teams\" WHERE \"arena\"='dalh\u00fas';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"teams\" (\n \"team\" text,\n \"city_region\" text,\n \"arena\" text,\n \"colours\" text,\n \"head_coach\" text\n);\n\nQuestion: What is the arena in Borgarnes?" }, { "role": "assistant", "content": "SELECT \"arena\" FROM \"teams\" WHERE \"city_region\"='borgarnes';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"teams\" (\n \"team\" text,\n \"city_region\" text,\n \"arena\" text,\n \"colours\" text,\n \"head_coach\" text\n);\n\nQuestion: What team is in the toyota h\u00f6llin arena?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"teams\" WHERE \"arena\"='toyota h\u00f6llin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"teams\" (\n \"team\" text,\n \"city_region\" text,\n \"arena\" text,\n \"colours\" text,\n \"head_coach\" text\n);\n\nQuestion: What team is in the dhl-h\u00f6llin arena?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"teams\" WHERE \"arena\"='dhl-h\u00f6llin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"teams\" (\n \"team\" text,\n \"city_region\" text,\n \"arena\" text,\n \"colours\" text,\n \"head_coach\" text\n);\n\nQuestion: What are the colors of the team in Borgarnes?" }, { "role": "assistant", "content": "SELECT \"colours\" FROM \"teams\" WHERE \"city_region\"='borgarnes';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2009_10_table\" (\n \"club\" text,\n \"played\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: What is the number of points for the team with 49 tries against and 14 lost?" }, { "role": "assistant", "content": "SELECT \"points_against\" FROM \"2009_10_table\" WHERE \"tries_against\"='49' AND \"lost\"='14';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2009_10_table\" (\n \"club\" text,\n \"played\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: What is the losing bonus for the team that has 33 tries against and 5 lost?" }, { "role": "assistant", "content": "SELECT \"losing_bonus\" FROM \"2009_10_table\" WHERE \"tries_against\"='33' AND \"lost\"='5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2009_10_table\" (\n \"club\" text,\n \"played\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: What is the tries against for the team that has a losing bonus?" }, { "role": "assistant", "content": "SELECT \"tries_against\" FROM \"2009_10_table\" WHERE \"losing_bonus\"='losing bonus';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2009_10_table\" (\n \"club\" text,\n \"played\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: What is the number of tries for the team that has 22 plays with 33 tries against and 60 points?" }, { "role": "assistant", "content": "SELECT \"tries_for\" FROM \"2009_10_table\" WHERE \"played\"='22' AND \"tries_against\"='33' AND \"points\"='60';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2009_10_table\" (\n \"club\" text,\n \"played\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: What is the losing bonus of the team with 22 pays and 428 points against?" }, { "role": "assistant", "content": "SELECT \"losing_bonus\" FROM \"2009_10_table\" WHERE \"played\"='22' AND \"points_against\"='428';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"all_time_overall_scorers\" (\n \"ranking\" real,\n \"nationality\" text,\n \"name\" text,\n \"goals\" real,\n \"years\" text\n);\n\nQuestion: Name the years for spain with 215 goals" }, { "role": "assistant", "content": "SELECT \"years\" FROM \"all_time_overall_scorers\" WHERE \"nationality\"='spain' AND \"goals\"=215;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"all_time_overall_scorers\" (\n \"ranking\" real,\n \"nationality\" text,\n \"name\" text,\n \"goals\" real,\n \"years\" text\n);\n\nQuestion: Name the most goals for josep samitier" }, { "role": "assistant", "content": "SELECT MAX(\"goals\") FROM \"all_time_overall_scorers\" WHERE \"name\"='josep samitier';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"december\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Which Record has a December smaller than 22 and a Score of 4\u20133?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"regular_season\" WHERE \"december\"<22 AND \"score\"='4\u20133';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"december\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Which Score has a Record of 15\u201312\u20132?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"regular_season\" WHERE \"record\"='15\u201312\u20132';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"december\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Which December has a Game of 37 and Points smaller than 47?" }, { "role": "assistant", "content": "SELECT AVG(\"december\") FROM \"regular_season\" WHERE \"game\"=37 AND \"points\"<47;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"december\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Which Points have a December smaller than 6, and a Score of 1\u20131 ot, and a Game smaller than 28?" }, { "role": "assistant", "content": "SELECT MIN(\"points\") FROM \"regular_season\" WHERE \"december\"<6 AND \"score\"='1\u20131 ot' AND \"game\"<28;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"december\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Which Game has a Score of 4\u20130 and Points of 44?" }, { "role": "assistant", "content": "SELECT \"game\" FROM \"regular_season\" WHERE \"score\"='4\u20130' AND \"points\"=44;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"membership\" (\n \"school\" text,\n \"location\" text,\n \"mascot\" text,\n \"enrollment\" real,\n \"ihsaa_class\" text,\n \"num_county\" text,\n \"year_joined\" real,\n \"previous_conference\" text\n);\n\nQuestion: Which Previous conference has a Year joined smaller than 1976, and an IHSAA Class of A?" }, { "role": "assistant", "content": "SELECT \"previous_conference\" FROM \"membership\" WHERE \"year_joined\"<1976 AND \"ihsaa_class\"='a';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"membership\" (\n \"school\" text,\n \"location\" text,\n \"mascot\" text,\n \"enrollment\" real,\n \"ihsaa_class\" text,\n \"num_county\" text,\n \"year_joined\" real,\n \"previous_conference\" text\n);\n\nQuestion: Which Enrollment has a Mascot of norsemen?" }, { "role": "assistant", "content": "SELECT SUM(\"enrollment\") FROM \"membership\" WHERE \"mascot\"='norsemen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"membership\" (\n \"school\" text,\n \"location\" text,\n \"mascot\" text,\n \"enrollment\" real,\n \"ihsaa_class\" text,\n \"num_county\" text,\n \"year_joined\" real,\n \"previous_conference\" text\n);\n\nQuestion: Which Mascot has a Previous conference of independents, and a Location of akron?" }, { "role": "assistant", "content": "SELECT \"mascot\" FROM \"membership\" WHERE \"previous_conference\"='independents' AND \"location\"='akron';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"membership\" (\n \"school\" text,\n \"location\" text,\n \"mascot\" text,\n \"enrollment\" real,\n \"ihsaa_class\" text,\n \"num_county\" text,\n \"year_joined\" real,\n \"previous_conference\" text\n);\n\nQuestion: Which IHSAA Class has a Mascot of wildcats?" }, { "role": "assistant", "content": "SELECT \"ihsaa_class\" FROM \"membership\" WHERE \"mascot\"='wildcats';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"membership\" (\n \"school\" text,\n \"location\" text,\n \"mascot\" text,\n \"enrollment\" real,\n \"ihsaa_class\" text,\n \"num_county\" text,\n \"year_joined\" real,\n \"previous_conference\" text\n);\n\nQuestion: Which School in Wabash has a Mascot of knights?" }, { "role": "assistant", "content": "SELECT \"school\" FROM \"membership\" WHERE \"location\"='wabash' AND \"mascot\"='knights';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list\" (\n \"name\" text,\n \"term\" text,\n \"games\" real,\n \"record_w_l_t_otl\" text,\n \"points\" real,\n \"win_percentage\" real\n);\n\nQuestion: Which Win percentage has a Name of red kelly?" }, { "role": "assistant", "content": "SELECT SUM(\"win_percentage\") FROM \"list\" WHERE \"name\"='red kelly';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list\" (\n \"name\" text,\n \"term\" text,\n \"games\" real,\n \"record_w_l_t_otl\" text,\n \"points\" real,\n \"win_percentage\" real\n);\n\nQuestion: Which Name has Games of 105?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"list\" WHERE \"games\"=105;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list\" (\n \"name\" text,\n \"term\" text,\n \"games\" real,\n \"record_w_l_t_otl\" text,\n \"points\" real,\n \"win_percentage\" real\n);\n\nQuestion: Which Win percentage has Points smaller than 472, and a Record (W\u2013L\u2013T/OTL) of 140\u2013220\u201340?" }, { "role": "assistant", "content": "SELECT AVG(\"win_percentage\") FROM \"list\" WHERE \"points\"<472 AND \"record_w_l_t_otl\"='140\u2013220\u201340';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fa_cup\" (\n \"date\" text,\n \"round\" text,\n \"opponents\" text,\n \"h_a\" text,\n \"result_f_a\" text,\n \"attendance\" real\n);\n\nQuestion: Which round has an H/A of A with Notts County as opponents?" }, { "role": "assistant", "content": "SELECT \"round\" FROM \"fa_cup\" WHERE \"h_a\"='a' AND \"opponents\"='notts county';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"previous_clubs\" (\n \"club\" text,\n \"nickname\" text,\n \"years_in_competition\" text,\n \"no_of_premierships\" real,\n \"premiership_years\" text\n);\n\nQuestion: What was the Premiership Years that had in the Competition of 1983-1992?" }, { "role": "assistant", "content": "SELECT \"premiership_years\" FROM \"previous_clubs\" WHERE \"years_in_competition\"='1983-1992';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"previous_clubs\" (\n \"club\" text,\n \"nickname\" text,\n \"years_in_competition\" text,\n \"no_of_premierships\" real,\n \"premiership_years\" text\n);\n\nQuestion: What was the Years in competition that had a Premiership of 1982, 1984, 1999, 2002-03, 2008-09-10?" }, { "role": "assistant", "content": "SELECT \"years_in_competition\" FROM \"previous_clubs\" WHERE \"premiership_years\"='1982, 1984, 1999, 2002-03, 2008-09-10';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"previous_clubs\" (\n \"club\" text,\n \"nickname\" text,\n \"years_in_competition\" text,\n \"no_of_premierships\" real,\n \"premiership_years\" text\n);\n\nQuestion: What is the Nickname in the Competition of 1982-1994?" }, { "role": "assistant", "content": "SELECT \"nickname\" FROM \"previous_clubs\" WHERE \"years_in_competition\"='1982-1994';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"previous_clubs\" (\n \"club\" text,\n \"nickname\" text,\n \"years_in_competition\" text,\n \"no_of_premierships\" real,\n \"premiership_years\" text\n);\n\nQuestion: What was the Nickname that had a No. 0, and Years in Competition of 1982-2003?" }, { "role": "assistant", "content": "SELECT \"nickname\" FROM \"previous_clubs\" WHERE \"no_of_premierships\"=0 AND \"years_in_competition\"='1982-2003';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"january\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Which highest Points has a Score of 1\u20131 ot?" }, { "role": "assistant", "content": "SELECT MAX(\"points\") FROM \"regular_season\" WHERE \"score\"='1\u20131 ot';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nhl_draft\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"nationality\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: Which College/Junior/Club team has a Round of 6?" }, { "role": "assistant", "content": "SELECT \"college_junior_club_team\" FROM \"nhl_draft\" WHERE \"round\"=6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"chicago_black_hawks_4_detroit_red_wings_\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"record\" text\n);\n\nQuestion: What was the record on April 16?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"chicago_black_hawks_4_detroit_red_wings_\" WHERE \"date\"='april 16';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"chicago_black_hawks_4_detroit_red_wings_\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"record\" text\n);\n\nQuestion: What was the record on April 8?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"chicago_black_hawks_4_detroit_red_wings_\" WHERE \"date\"='april 8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"chicago_black_hawks_4_detroit_red_wings_\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"record\" text\n);\n\nQuestion: What date was the visitor chicago black hawks, and a Record of 1-1?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"chicago_black_hawks_4_detroit_red_wings_\" WHERE \"visitor\"='chicago black hawks' AND \"record\"='1-1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2000s\" (\n \"year\" text,\n \"flagship_station\" text,\n \"play_by_play\" text,\n \"color_commentator_s\" text,\n \"studio_host\" text\n);\n\nQuestion: Studio host of jimmy myers had what play by play?" }, { "role": "assistant", "content": "SELECT \"play_by_play\" FROM \"2000s\" WHERE \"studio_host\"='jimmy myers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2000s\" (\n \"year\" text,\n \"flagship_station\" text,\n \"play_by_play\" text,\n \"color_commentator_s\" text,\n \"studio_host\" text\n);\n\nQuestion: Play-by-play of sean grande, and a Year of 2004-05 had what studio host?" }, { "role": "assistant", "content": "SELECT \"studio_host\" FROM \"2000s\" WHERE \"play_by_play\"='sean grande' AND \"year\"='2004-05';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2000s\" (\n \"year\" text,\n \"flagship_station\" text,\n \"play_by_play\" text,\n \"color_commentator_s\" text,\n \"studio_host\" text\n);\n\nQuestion: Year of 2006-07 had what studio host?" }, { "role": "assistant", "content": "SELECT \"studio_host\" FROM \"2000s\" WHERE \"year\"='2006-07';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2000s\" (\n \"year\" text,\n \"flagship_station\" text,\n \"play_by_play\" text,\n \"color_commentator_s\" text,\n \"studio_host\" text\n);\n\nQuestion: Play-by-play of sean grande, and a Flagship Station of wrko, and a Year of 2005-06 had what studio host?" }, { "role": "assistant", "content": "SELECT \"studio_host\" FROM \"2000s\" WHERE \"play_by_play\"='sean grande' AND \"flagship_station\"='wrko' AND \"year\"='2005-06';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2000s\" (\n \"year\" text,\n \"flagship_station\" text,\n \"play_by_play\" text,\n \"color_commentator_s\" text,\n \"studio_host\" text\n);\n\nQuestion: Studio host of john ryder, and a Year of 2007-08 had what play by play?" }, { "role": "assistant", "content": "SELECT \"play_by_play\" FROM \"2000s\" WHERE \"studio_host\"='john ryder' AND \"year\"='2007-08';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2000s\" (\n \"year\" text,\n \"flagship_station\" text,\n \"play_by_play\" text,\n \"color_commentator_s\" text,\n \"studio_host\" text\n);\n\nQuestion: Play-by-play of sean grande, and a Flagship Station of wrko involved what color commentator?" }, { "role": "assistant", "content": "SELECT \"color_commentator_s\" FROM \"2000s\" WHERE \"play_by_play\"='sean grande' AND \"flagship_station\"='wrko';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_five_natural_honey_producing_countri\" (\n \"rank\" text,\n \"country\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text\n);\n\nQuestion: What was the value in 2011 for United States?" }, { "role": "assistant", "content": "SELECT \"2011\" FROM \"top_five_natural_honey_producing_countri\" WHERE \"country\"='united states';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_five_natural_honey_producing_countri\" (\n \"rank\" text,\n \"country\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text\n);\n\nQuestion: What was the value in 2011 when value in 2009 was 82,003?" }, { "role": "assistant", "content": "SELECT \"2011\" FROM \"top_five_natural_honey_producing_countri\" WHERE \"2009\"='82,003';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_five_natural_honey_producing_countri\" (\n \"rank\" text,\n \"country\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text\n);\n\nQuestion: What country was rank 1?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"top_five_natural_honey_producing_countri\" WHERE \"rank\"='1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_five_natural_honey_producing_countri\" (\n \"rank\" text,\n \"country\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text\n);\n\nQuestion: What country was rank 4?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"top_five_natural_honey_producing_countri\" WHERE \"rank\"='4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"varsity_letter_winners\" (\n \"player\" text,\n \"position\" text,\n \"games_started\" text,\n \"hometown\" text,\n \"height\" text,\n \"weight\" real,\n \"class\" text,\n \"previous_experience\" text\n);\n\nQuestion: Games started of 4 is in what hometown?" }, { "role": "assistant", "content": "SELECT \"hometown\" FROM \"varsity_letter_winners\" WHERE \"games_started\"='4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"varsity_letter_winners\" (\n \"player\" text,\n \"position\" text,\n \"games_started\" text,\n \"hometown\" text,\n \"height\" text,\n \"weight\" real,\n \"class\" text,\n \"previous_experience\" text\n);\n\nQuestion: Weight larger than 180, and a Player of charles b. carter is what previous experience?" }, { "role": "assistant", "content": "SELECT \"previous_experience\" FROM \"varsity_letter_winners\" WHERE \"weight\">180 AND \"player\"='charles b. carter';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"varsity_letter_winners\" (\n \"player\" text,\n \"position\" text,\n \"games_started\" text,\n \"hometown\" text,\n \"height\" text,\n \"weight\" real,\n \"class\" text,\n \"previous_experience\" text\n);\n\nQuestion: Height of 5' 10\", and a Games started of 7 involves which hometown?" }, { "role": "assistant", "content": "SELECT \"hometown\" FROM \"varsity_letter_winners\" WHERE \"height\"='5'' 10\\\"' AND \"games_started\"='7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"varsity_letter_winners\" (\n \"player\" text,\n \"position\" text,\n \"games_started\" text,\n \"hometown\" text,\n \"height\" text,\n \"weight\" real,\n \"class\" text,\n \"previous_experience\" text\n);\n\nQuestion: Player of herbert s. graver has what position?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"varsity_letter_winners\" WHERE \"player\"='herbert s. graver';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"varsity_letter_winners\" (\n \"player\" text,\n \"position\" text,\n \"games_started\" text,\n \"hometown\" text,\n \"height\" text,\n \"weight\" real,\n \"class\" text,\n \"previous_experience\" text\n);\n\nQuestion: Position of fullback has what highest weight?" }, { "role": "assistant", "content": "SELECT MAX(\"weight\") FROM \"varsity_letter_winners\" WHERE \"position\"='fullback';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"defunct_callsigns\" (\n \"callsign\" text,\n \"area_served\" text,\n \"frequency\" text,\n \"band\" text,\n \"on_air_id\" text,\n \"purpose\" text\n);\n\nQuestion: what is the callsign whtat uses 7bu?" }, { "role": "assistant", "content": "SELECT \"callsign\" FROM \"defunct_callsigns\" WHERE \"on_air_id\"='7bu';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"leaders\" (\n \"rank\" real,\n \"player\" text,\n \"country\" text,\n \"earnings\" real,\n \"wins\" real\n);\n\nQuestion: What is the highest rank for ben crenshaw after winning more than 14 times?" }, { "role": "assistant", "content": "SELECT MAX(\"rank\") FROM \"leaders\" WHERE \"player\"='ben crenshaw' AND \"wins\">14;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"leaders\" (\n \"rank\" real,\n \"player\" text,\n \"country\" text,\n \"earnings\" real,\n \"wins\" real\n);\n\nQuestion: What is the lowest number of wins for ben crenshaw?" }, { "role": "assistant", "content": "SELECT MIN(\"wins\") FROM \"leaders\" WHERE \"player\"='ben crenshaw';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"leaders\" (\n \"rank\" real,\n \"player\" text,\n \"country\" text,\n \"earnings\" real,\n \"wins\" real\n);\n\nQuestion: What player has 14 wins?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"leaders\" WHERE \"wins\"=14;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_performance_timeline\" (\n \"tournament\" text,\n \"1990\" text,\n \"1991\" text,\n \"1992\" text,\n \"1993\" text,\n \"1994\" text,\n \"1995\" text,\n \"1996\" text,\n \"1997\" text,\n \"1998\" text,\n \"career_sr\" text,\n \"career_win_loss\" text\n);\n\nQuestion: What is the 1995 value with of the 1993 ATP Masters Series?" }, { "role": "assistant", "content": "SELECT \"1995\" FROM \"doubles_performance_timeline\" WHERE \"1993\"='atp masters series';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_performance_timeline\" (\n \"tournament\" text,\n \"1990\" text,\n \"1991\" text,\n \"1992\" text,\n \"1993\" text,\n \"1994\" text,\n \"1995\" text,\n \"1996\" text,\n \"1997\" text,\n \"1998\" text,\n \"career_sr\" text,\n \"career_win_loss\" text\n);\n\nQuestion: What is the 1993 value of the 1997 Grand Slams?" }, { "role": "assistant", "content": "SELECT \"1993\" FROM \"doubles_performance_timeline\" WHERE \"1997\"='grand slams';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_performance_timeline\" (\n \"tournament\" text,\n \"1990\" text,\n \"1991\" text,\n \"1992\" text,\n \"1993\" text,\n \"1994\" text,\n \"1995\" text,\n \"1996\" text,\n \"1997\" text,\n \"1998\" text,\n \"career_sr\" text,\n \"career_win_loss\" text\n);\n\nQuestion: What is the 1998 value with A in 1995, A in 1993, and 1r in 1996?" }, { "role": "assistant", "content": "SELECT \"1998\" FROM \"doubles_performance_timeline\" WHERE \"1995\"='a' AND \"1993\"='a' AND \"1996\"='1r';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"team\" text,\n \"games\" real,\n \"drawn\" real,\n \"lost\" real,\n \"points_difference\" text,\n \"points\" real\n);\n\nQuestion: How many games does team Czechoslovakia have that had a drawn greater than 0?" }, { "role": "assistant", "content": "SELECT MAX(\"games\") FROM \"first_round\" WHERE \"team\"='czechoslovakia' AND \"drawn\">0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_ministers_for_employment\" (\n \"order\" text,\n \"minister\" text,\n \"party\" text,\n \"prime_minister\" text,\n \"term_start\" text,\n \"term_end\" text,\n \"term_in_office\" text\n);\n\nQuestion: Which Prime Minister's served a term of 344 days?" }, { "role": "assistant", "content": "SELECT \"prime_minister\" FROM \"list_of_ministers_for_employment\" WHERE \"term_in_office\"='344 days';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_ministers_for_employment\" (\n \"order\" text,\n \"minister\" text,\n \"party\" text,\n \"prime_minister\" text,\n \"term_start\" text,\n \"term_end\" text,\n \"term_in_office\" text\n);\n\nQuestion: Who was the Minister that served for 307 days?" }, { "role": "assistant", "content": "SELECT \"minister\" FROM \"list_of_ministers_for_employment\" WHERE \"term_in_office\"='307 days';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"awards_and_nominations\" (\n \"year\" real,\n \"ceremony\" text,\n \"result\" text,\n \"award\" text,\n \"work\" text\n);\n\nQuestion: what ceremony did big titty milfs work in" }, { "role": "assistant", "content": "SELECT \"ceremony\" FROM \"awards_and_nominations\" WHERE \"work\"='big titty milfs';" } ]
[ { "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 end result for 28 February 2001?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"international_goals\" WHERE \"date\"='28 february 2001';" } ]