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 \"grands_prix\" (\n \"rd\" real,\n \"grand_prix\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: Who had the pole position in the Canadian Grand Prix? " }, { "role": "assistant", "content": "SELECT \"pole_position\" FROM \"grands_prix\" WHERE \"grand_prix\"='Canadian Grand Prix';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"full_members\" (\n \"institution\" text,\n \"location_population\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"nickname_colors\" text,\n \"football\" text\n);\n\nQuestion: What year was the institution of St. Catharine College founded?" }, { "role": "assistant", "content": "SELECT MIN(\"founded\") FROM \"full_members\" WHERE \"institution\"='St. Catharine College';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"full_members\" (\n \"institution\" text,\n \"location_population\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"nickname_colors\" text,\n \"football\" text\n);\n\nQuestion: What is the enrollment for the institution that is located in Lebanon, Tennessee (20,235)?" }, { "role": "assistant", "content": "SELECT \"enrollment\" FROM \"full_members\" WHERE \"location_population\"='Lebanon, Tennessee (20,235)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"full_members\" (\n \"institution\" text,\n \"location_population\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"nickname_colors\" text,\n \"football\" text\n);\n\nQuestion: What is the location and population of the institution called Bluefield College?" }, { "role": "assistant", "content": "SELECT \"location_population\" FROM \"full_members\" WHERE \"institution\"='Bluefield College';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26263322_1\" (\n \"candidate\" text,\n \"background\" text,\n \"original_team\" text,\n \"age\" real,\n \"hometown\" text,\n \"result\" text\n);\n\nQuestion: How many times was the result is hired by serepisos?" }, { "role": "assistant", "content": "SELECT COUNT(\"hometown\") FROM \"table1_26263322_1\" WHERE \"result\"='Hired by Serepisos';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26263322_1\" (\n \"candidate\" text,\n \"background\" text,\n \"original_team\" text,\n \"age\" real,\n \"hometown\" text,\n \"result\" text\n);\n\nQuestion: What is the age when the result is fired in week 8" }, { "role": "assistant", "content": "SELECT MIN(\"age\") FROM \"table1_26263322_1\" WHERE \"result\"='Fired in week 8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26263322_1\" (\n \"candidate\" text,\n \"background\" text,\n \"original_team\" text,\n \"age\" real,\n \"hometown\" text,\n \"result\" text\n);\n\nQuestion: What is the background of the candidate daniel phillips?" }, { "role": "assistant", "content": "SELECT \"background\" FROM \"table1_26263322_1\" WHERE \"candidate\"='Daniel Phillips';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26263322_1\" (\n \"candidate\" text,\n \"background\" text,\n \"original_team\" text,\n \"age\" real,\n \"hometown\" text,\n \"result\" text\n);\n\nQuestion: How many times was the background self-employed - media agency?" }, { "role": "assistant", "content": "SELECT COUNT(\"candidate\") FROM \"table1_26263322_1\" WHERE \"background\"='Self-employed - media agency';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26263322_1\" (\n \"candidate\" text,\n \"background\" text,\n \"original_team\" text,\n \"age\" real,\n \"hometown\" text,\n \"result\" text\n);\n\nQuestion: How many times was the background university student?" }, { "role": "assistant", "content": "SELECT COUNT(\"result\") FROM \"table1_26263322_1\" WHERE \"background\"='University Student';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26263322_1\" (\n \"candidate\" text,\n \"background\" text,\n \"original_team\" text,\n \"age\" real,\n \"hometown\" text,\n \"result\" text\n);\n\nQuestion: What is the candidate whose age is 27?" }, { "role": "assistant", "content": "SELECT \"candidate\" FROM \"table1_26263322_1\" WHERE \"age\"=27;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar_and_results\" (\n \"round\" text,\n \"circuit\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text\n);\n\nQuestion: In Round 6, who is the winning team?" }, { "role": "assistant", "content": "SELECT \"winning_team\" FROM \"race_calendar_and_results\" WHERE \"round\"='6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar_and_results\" (\n \"round\" text,\n \"circuit\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text\n);\n\nQuestion: On what date is the winning team Abt Sportsline and pole position Mattias Ekstr\u00f6m in the Circuit Ricardo Tormo , Valencia?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"race_calendar_and_results\" WHERE \"winning_team\"='Abt Sportsline' AND \"pole_position\"='Mattias Ekstr\u00f6m' AND \"circuit\"='Circuit Ricardo Tormo , Valencia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar_and_results\" (\n \"round\" text,\n \"circuit\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text\n);\n\nQuestion: Round 1 is in what circuit?" }, { "role": "assistant", "content": "SELECT \"circuit\" FROM \"race_calendar_and_results\" WHERE \"round\"='1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar_and_results\" (\n \"round\" text,\n \"circuit\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text\n);\n\nQuestion: In the circuit Showevent Olympiastadion M\u00fcnchen, where the winning driver is Bruno Spengler, what is the pole position?" }, { "role": "assistant", "content": "SELECT \"pole_position\" FROM \"race_calendar_and_results\" WHERE \"winning_driver\"='Bruno Spengler' AND \"circuit\"='Showevent Olympiastadion M\u00fcnchen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar_and_results\" (\n \"round\" text,\n \"circuit\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text\n);\n\nQuestion: Where the fastest lap is Mike Rockenfeller, who is the winning driver?" }, { "role": "assistant", "content": "SELECT \"winning_driver\" FROM \"race_calendar_and_results\" WHERE \"fastest_lap\"='Mike Rockenfeller';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar_and_results\" (\n \"round\" text,\n \"circuit\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text\n);\n\nQuestion: How many dates are there in round 3?" }, { "role": "assistant", "content": "SELECT COUNT(\"date\") FROM \"race_calendar_and_results\" WHERE \"round\"='3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26261072_1\" (\n \"series_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: Name the least series number written by brenda hampton and directed by burt brinckerhoff" }, { "role": "assistant", "content": "SELECT MIN(\"series_num\") FROM \"table1_26261072_1\" WHERE \"written_by\"='Brenda Hampton' AND \"directed_by\"='Burt Brinckerhoff';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26261072_1\" (\n \"series_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: Name the original air date for series number 15" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_26261072_1\" WHERE \"series_num\"=15;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nascar_nationwide_series\" (\n \"year\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_5\" real,\n \"top_10\" real,\n \"poles\" real,\n \"avg_start\" text,\n \"avg_finish\" text,\n \"winnings\" text,\n \"position\" text,\n \"team_s\" text\n);\n\nQuestion: What team was Pearson on when his winnings were $5,200?" }, { "role": "assistant", "content": "SELECT \"team_s\" FROM \"nascar_nationwide_series\" WHERE \"winnings\"='$5,200';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nascar_nationwide_series\" (\n \"year\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_5\" real,\n \"top_10\" real,\n \"poles\" real,\n \"avg_start\" text,\n \"avg_finish\" text,\n \"winnings\" text,\n \"position\" text,\n \"team_s\" text\n);\n\nQuestion: How many starts did Pearson have when his winnings were $101,438?" }, { "role": "assistant", "content": "SELECT \"starts\" FROM \"nascar_nationwide_series\" WHERE \"winnings\"='$101,438';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nascar_nationwide_series\" (\n \"year\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_5\" real,\n \"top_10\" real,\n \"poles\" real,\n \"avg_start\" text,\n \"avg_finish\" text,\n \"winnings\" text,\n \"position\" text,\n \"team_s\" text\n);\n\nQuestion: How many top 10's did Pearson have the year he was in 8th position? " }, { "role": "assistant", "content": "SELECT MIN(\"top_10\") FROM \"nascar_nationwide_series\" WHERE \"position\"='8th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2626495_1\" (\n \"episode_num\" real,\n \"prod_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"originalairdate\" text\n);\n\nQuestion: what is the title of the episode daphne field wrote?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_2626495_1\" WHERE \"written_by\"='Daphne Field';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2626495_1\" (\n \"episode_num\" real,\n \"prod_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"originalairdate\" text\n);\n\nQuestion: who directed the episode james clavell wrote?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_2626495_1\" WHERE \"written_by\"='James Clavell';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2626495_1\" (\n \"episode_num\" real,\n \"prod_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"originalairdate\" text\n);\n\nQuestion: how many times was the episode directed by maury geraghty originally aired? " }, { "role": "assistant", "content": "SELECT COUNT(\"originalairdate\") FROM \"table1_2626495_1\" WHERE \"directed_by\"='Maury Geraghty';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"film_festivals\" (\n \"film_festival\" text,\n \"date_of_ceremony\" text,\n \"category\" text,\n \"participants_recipients\" text,\n \"result\" text\n);\n\nQuestion: What Film Festival had participants/recipients of Isao Tomita?" }, { "role": "assistant", "content": "SELECT \"film_festival\" FROM \"film_festivals\" WHERE \"participants_recipients\"='Isao Tomita';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"film_festivals\" (\n \"film_festival\" text,\n \"date_of_ceremony\" text,\n \"category\" text,\n \"participants_recipients\" text,\n \"result\" text\n);\n\nQuestion: Who was the participant or recipient for the Best Female Actor?" }, { "role": "assistant", "content": "SELECT \"participants_recipients\" FROM \"film_festivals\" WHERE \"category\"='Best Female Actor';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"film_festivals\" (\n \"film_festival\" text,\n \"date_of_ceremony\" text,\n \"category\" text,\n \"participants_recipients\" text,\n \"result\" text\n);\n\nQuestion: What date was the participant/recipient takakazu watanabe?" }, { "role": "assistant", "content": "SELECT \"date_of_ceremony\" FROM \"film_festivals\" WHERE \"participants_recipients\"='Takakazu Watanabe';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"film_festivals\" (\n \"film_festival\" text,\n \"date_of_ceremony\" text,\n \"category\" text,\n \"participants_recipients\" text,\n \"result\" text\n);\n\nQuestion: What film festival had the Best Male Actor?" }, { "role": "assistant", "content": "SELECT \"film_festival\" FROM \"film_festivals\" WHERE \"category\"='Best Male Actor';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"film_festivals\" (\n \"film_festival\" text,\n \"date_of_ceremony\" text,\n \"category\" text,\n \"participants_recipients\" text,\n \"result\" text\n);\n\nQuestion: What film festival was the participant/recipient Isao Tomita?" }, { "role": "assistant", "content": "SELECT \"film_festival\" FROM \"film_festivals\" WHERE \"participants_recipients\"='Isao Tomita';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"film_festivals\" (\n \"film_festival\" text,\n \"date_of_ceremony\" text,\n \"category\" text,\n \"participants_recipients\" text,\n \"result\" text\n);\n\nQuestion: What category was the the participant/recipient ot\u014dto?" }, { "role": "assistant", "content": "SELECT \"category\" FROM \"film_festivals\" WHERE \"participants_recipients\"='Ot\u014dto';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results\" (\n \"finished\" text,\n \"performance_order\" real,\n \"percentage_of_votes\" text,\n \"artist\" text,\n \"act\" text,\n \"semi_finals_result\" text\n);\n\nQuestion: Name the performance order of the velasco brothers" }, { "role": "assistant", "content": "SELECT \"performance_order\" FROM \"results\" WHERE \"artist\"='Velasco Brothers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results\" (\n \"finished\" text,\n \"performance_order\" real,\n \"percentage_of_votes\" text,\n \"artist\" text,\n \"act\" text,\n \"semi_finals_result\" text\n);\n\nQuestion: Name the number of semi final results for 12 performance order" }, { "role": "assistant", "content": "SELECT COUNT(\"semi_finals_result\") FROM \"results\" WHERE \"performance_order\"=12;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results\" (\n \"finished\" text,\n \"performance_order\" real,\n \"percentage_of_votes\" text,\n \"artist\" text,\n \"act\" text,\n \"semi_finals_result\" text\n);\n\nQuestion: Name the performance order for 2.15%" }, { "role": "assistant", "content": "SELECT \"performance_order\" FROM \"results\" WHERE \"percentage_of_votes\"='2.15%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results\" (\n \"finished\" text,\n \"performance_order\" real,\n \"percentage_of_votes\" text,\n \"artist\" text,\n \"act\" text,\n \"semi_finals_result\" text\n);\n\nQuestion: Name the percentage of votes for 3rd finished" }, { "role": "assistant", "content": "SELECT \"percentage_of_votes\" FROM \"results\" WHERE \"finished\"='3rd';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results\" (\n \"finished\" text,\n \"performance_order\" real,\n \"percentage_of_votes\" text,\n \"artist\" text,\n \"act\" text,\n \"semi_finals_result\" text\n);\n\nQuestion: Name the percentage of votes for violinist" }, { "role": "assistant", "content": "SELECT \"percentage_of_votes\" FROM \"results\" WHERE \"act\"='Violinist';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_36_results_summary\" (\n \"name_name_of_act\" text,\n \"age_s\" text,\n \"genre\" text,\n \"act\" text,\n \"hometown\" text,\n \"semifinal_week\" real,\n \"position_reached\" text\n);\n\nQuestion: what are all the hometown where the average age is 16" }, { "role": "assistant", "content": "SELECT \"hometown\" FROM \"top_36_results_summary\" WHERE \"age_s\"='16';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_rural_communities_in_new_brunswi\" (\n \"name\" text,\n \"population_2011\" real,\n \"population_2006\" real,\n \"change_pct\" text,\n \"area_km\" text,\n \"population_density\" text\n);\n\nQuestion: What is the population in 2011 for the name Beaubassin East?" }, { "role": "assistant", "content": "SELECT \"population_2011\" FROM \"list_of_rural_communities_in_new_brunswi\" WHERE \"name\"='Beaubassin East';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_rural_communities_in_new_brunswi\" (\n \"name\" text,\n \"population_2011\" real,\n \"population_2006\" real,\n \"change_pct\" text,\n \"area_km\" text,\n \"population_density\" text\n);\n\nQuestion: What is every population density if name is Beaubassin East?" }, { "role": "assistant", "content": "SELECT \"population_density\" FROM \"list_of_rural_communities_in_new_brunswi\" WHERE \"name\"='Beaubassin East';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_rural_communities_in_new_brunswi\" (\n \"name\" text,\n \"population_2011\" real,\n \"population_2006\" real,\n \"change_pct\" text,\n \"area_km\" text,\n \"population_density\" text\n);\n\nQuestion: What is every value for area for population density of 100.8?" }, { "role": "assistant", "content": "SELECT \"area_km\" FROM \"list_of_rural_communities_in_new_brunswi\" WHERE \"population_density\"='100.8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_rural_communities_in_new_brunswi\" (\n \"name\" text,\n \"population_2011\" real,\n \"population_2006\" real,\n \"change_pct\" text,\n \"area_km\" text,\n \"population_density\" text\n);\n\nQuestion: What is every value for change% for area of 1835.01?" }, { "role": "assistant", "content": "SELECT \"change_pct\" FROM \"list_of_rural_communities_in_new_brunswi\" WHERE \"area_km\"='1835.01';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_rural_communities_in_new_brunswi\" (\n \"name\" text,\n \"population_2011\" real,\n \"population_2006\" real,\n \"change_pct\" text,\n \"area_km\" text,\n \"population_density\" text\n);\n\nQuestion: How many names correspond to an area of 8.12?" }, { "role": "assistant", "content": "SELECT COUNT(\"name\") FROM \"list_of_rural_communities_in_new_brunswi\" WHERE \"area_km\"='8.12';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_rural_communities_in_new_brunswi\" (\n \"name\" text,\n \"population_2011\" real,\n \"population_2006\" real,\n \"change_pct\" text,\n \"area_km\" text,\n \"population_density\" text\n);\n\nQuestion: What is every value for area if change% is -3.6?" }, { "role": "assistant", "content": "SELECT \"area_km\" FROM \"list_of_rural_communities_in_new_brunswi\" WHERE \"change_pct\"='-3.6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"indicators\" (\n \"country\" text,\n \"area_km_2010\" real,\n \"population_2011\" real,\n \"gdp_ppp_intl_2011\" text,\n \"gdp_ppp_per_capita_intl_2011\" text,\n \"income_inequality_1992_2010_latest_available\" text,\n \"hdi_2012\" text,\n \"fsi_2012\" text,\n \"cpi_2012\" text,\n \"ief_2013\" text,\n \"gpi_2012\" text,\n \"wpfi_2013\" text,\n \"di_2012\" text\n);\n\nQuestion: Name the hdi 2012 for dominica" }, { "role": "assistant", "content": "SELECT \"hdi_2012\" FROM \"indicators\" WHERE \"country\"='Dominica';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"indicators\" (\n \"country\" text,\n \"area_km_2010\" real,\n \"population_2011\" real,\n \"gdp_ppp_intl_2011\" text,\n \"gdp_ppp_per_capita_intl_2011\" text,\n \"income_inequality_1992_2010_latest_available\" text,\n \"hdi_2012\" text,\n \"fsi_2012\" text,\n \"cpi_2012\" text,\n \"ief_2013\" text,\n \"gpi_2012\" text,\n \"wpfi_2013\" text,\n \"di_2012\" text\n);\n\nQuestion: Name the fsi 2012 for 42.7 cpi" }, { "role": "assistant", "content": "SELECT \"fsi_2012\" FROM \"indicators\" WHERE \"cpi_2012\"='42.7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"indicators\" (\n \"country\" text,\n \"area_km_2010\" real,\n \"population_2011\" real,\n \"gdp_ppp_intl_2011\" text,\n \"gdp_ppp_per_capita_intl_2011\" text,\n \"income_inequality_1992_2010_latest_available\" text,\n \"hdi_2012\" text,\n \"fsi_2012\" text,\n \"cpi_2012\" text,\n \"ief_2013\" text,\n \"gpi_2012\" text,\n \"wpfi_2013\" text,\n \"di_2012\" text\n);\n\nQuestion: Name the gdp per capita for haiti" }, { "role": "assistant", "content": "SELECT \"gdp_ppp_per_capita_intl_2011\" FROM \"indicators\" WHERE \"country\"='Haiti';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26335424_86\" (\n \"athlete\" text,\n \"event\" text,\n \"round_of_32\" text,\n \"round_of_16\" text,\n \"quarterfinals\" text,\n \"semifinals\" text\n);\n\nQuestion: How many times was lakpa tashi sherpa ( bhu ) w pts 12-5 in round of 32?" }, { "role": "assistant", "content": "SELECT COUNT(\"round_of_16\") FROM \"table1_26335424_86\" WHERE \"round_of_32\"='Lakpa Tashi Sherpa ( BHU ) W PTS 12-5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26335424_86\" (\n \"athlete\" text,\n \"event\" text,\n \"round_of_32\" text,\n \"round_of_16\" text,\n \"quarterfinals\" text,\n \"semifinals\" text\n);\n\nQuestion: If the quarterfinals was nabil talal ( jor ) l pts 3-3, who was the athlete?" }, { "role": "assistant", "content": "SELECT \"athlete\" FROM \"table1_26335424_86\" WHERE \"quarterfinals\"='Nabil Talal ( JOR ) L PTS 3-3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26335424_86\" (\n \"athlete\" text,\n \"event\" text,\n \"round_of_32\" text,\n \"round_of_16\" text,\n \"quarterfinals\" text,\n \"semifinals\" text\n);\n\nQuestion: If the event was bantamweight (-63kg), and the quarterfinals did not advance, then who was in round of 32?" }, { "role": "assistant", "content": "SELECT \"round_of_32\" FROM \"table1_26335424_86\" WHERE \"quarterfinals\"='Did not advance' AND \"event\"='Bantamweight (-63kg)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26335424_86\" (\n \"athlete\" text,\n \"event\" text,\n \"round_of_32\" text,\n \"round_of_16\" text,\n \"quarterfinals\" text,\n \"semifinals\" text\n);\n\nQuestion: If the round of 16 was yulius fernando ( ina ) l pts 5-6, what was the semifinals?" }, { "role": "assistant", "content": "SELECT \"semifinals\" FROM \"table1_26335424_86\" WHERE \"round_of_16\"='Yulius Fernando ( INA ) L PTS 5-6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26335424_86\" (\n \"athlete\" text,\n \"event\" text,\n \"round_of_32\" text,\n \"round_of_16\" text,\n \"quarterfinals\" text,\n \"semifinals\" text\n);\n\nQuestion: If round of 32 is sawatvilay phimmasone ( lao ) w pts 9-7, what was the event?" }, { "role": "assistant", "content": "SELECT \"event\" FROM \"table1_26335424_86\" WHERE \"round_of_32\"='Sawatvilay Phimmasone ( LAO ) W PTS 9-7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"elected\" real,\n \"status\" text,\n \"result\" text\n);\n\nQuestion: What date was the district incumbent Saxby Chambliss elected? " }, { "role": "assistant", "content": "SELECT MAX(\"elected\") FROM \"results\" WHERE \"incumbent\"='Saxby Chambliss';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"elected\" real,\n \"status\" text,\n \"result\" text\n);\n\nQuestion: What is the status in the district with the incumbent Bob Barr? " }, { "role": "assistant", "content": "SELECT \"status\" FROM \"results\" WHERE \"incumbent\"='Bob Barr';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"elected\" real,\n \"status\" text,\n \"result\" text\n);\n\nQuestion: How many elected catagories are there for the district with Saxby Chambliss as the incumbent? " }, { "role": "assistant", "content": "SELECT COUNT(\"elected\") FROM \"results\" WHERE \"incumbent\"='Saxby Chambliss';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"elected\" real,\n \"status\" text,\n \"result\" text\n);\n\nQuestion: What was the result for the district with an election in 1986" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"results\" WHERE \"elected\"=1986;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"elected\" real,\n \"status\" text,\n \"result\" text\n);\n\nQuestion: how many party classifications are there for the incumbent Mac Collins? " }, { "role": "assistant", "content": "SELECT COUNT(\"party\") FROM \"results\" WHERE \"incumbent\"='Mac Collins';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26352332_4\" (\n \"engine_family\" text,\n \"cylinder_layout\" text,\n \"displacement_s\" text,\n \"injection_type\" text,\n \"years_produced\" text\n);\n\nQuestion: For the engine family MaxxForce 11, what is the years produced?" }, { "role": "assistant", "content": "SELECT \"years_produced\" FROM \"table1_26352332_4\" WHERE \"engine_family\"='MaxxForce 11';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26352332_4\" (\n \"engine_family\" text,\n \"cylinder_layout\" text,\n \"displacement_s\" text,\n \"injection_type\" text,\n \"years_produced\" text\n);\n\nQuestion: The cylinder layout v8 is produced in what years?" }, { "role": "assistant", "content": "SELECT \"years_produced\" FROM \"table1_26352332_4\" WHERE \"cylinder_layout\"='V8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26352332_4\" (\n \"engine_family\" text,\n \"cylinder_layout\" text,\n \"displacement_s\" text,\n \"injection_type\" text,\n \"years_produced\" text\n);\n\nQuestion: The years produced for the cylinder layout v8 are what?" }, { "role": "assistant", "content": "SELECT \"years_produced\" FROM \"table1_26352332_4\" WHERE \"cylinder_layout\"='V8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26352332_4\" (\n \"engine_family\" text,\n \"cylinder_layout\" text,\n \"displacement_s\" text,\n \"injection_type\" text,\n \"years_produced\" text\n);\n\nQuestion: The engine family MaxxForce 5\t in the years produced 2007-current, have what cylinder layout?" }, { "role": "assistant", "content": "SELECT \"cylinder_layout\" FROM \"table1_26352332_4\" WHERE \"years_produced\"='2007-current' AND \"engine_family\"='MaxxForce 5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26352332_4\" (\n \"engine_family\" text,\n \"cylinder_layout\" text,\n \"displacement_s\" text,\n \"injection_type\" text,\n \"years_produced\" text\n);\n\nQuestion: Where the displacement(s) is 10.5L is, what is the engine family?" }, { "role": "assistant", "content": "SELECT \"engine_family\" FROM \"table1_26352332_4\" WHERE \"displacement_s\"='10.5L';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26352332_4\" (\n \"engine_family\" text,\n \"cylinder_layout\" text,\n \"displacement_s\" text,\n \"injection_type\" text,\n \"years_produced\" text\n);\n\nQuestion: The displacement(s) 466 cubic inches (7.6L), has what engine family?" }, { "role": "assistant", "content": "SELECT \"engine_family\" FROM \"table1_26352332_4\" WHERE \"displacement_s\"='466 cubic inches (7.6L)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"later_thalers_with_event_location_and_ye\" (\n \"location\" text,\n \"date\" real,\n \"denomination\" text,\n \"coinage_metal\" text,\n \"mintage\" real,\n \"km_number\" text\n);\n\nQuestion: What is the coinage metal for a KM number of S75?" }, { "role": "assistant", "content": "SELECT \"coinage_metal\" FROM \"later_thalers_with_event_location_and_ye\" WHERE \"km_number\"='S75';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"later_thalers_with_event_location_and_ye\" (\n \"location\" text,\n \"date\" real,\n \"denomination\" text,\n \"coinage_metal\" text,\n \"mintage\" real,\n \"km_number\" text\n);\n\nQuestion: What is the maximum date for a mintage of 150 and a KM number of S66?" }, { "role": "assistant", "content": "SELECT MAX(\"date\") FROM \"later_thalers_with_event_location_and_ye\" WHERE \"mintage\"=150 AND \"km_number\"='S66';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"later_thalers_with_event_location_and_ye\" (\n \"location\" text,\n \"date\" real,\n \"denomination\" text,\n \"coinage_metal\" text,\n \"mintage\" real,\n \"km_number\" text\n);\n\nQuestion: What is the mintage for a location of Sion and a denomination of 00500 500 Francs?" }, { "role": "assistant", "content": "SELECT \"mintage\" FROM \"later_thalers_with_event_location_and_ye\" WHERE \"location\"='Sion' AND \"denomination\"='00500 500 francs';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"later_thalers_with_event_location_and_ye\" (\n \"location\" text,\n \"date\" real,\n \"denomination\" text,\n \"coinage_metal\" text,\n \"mintage\" real,\n \"km_number\" text\n);\n\nQuestion: What is the coinage metal for KM numbers of S45?" }, { "role": "assistant", "content": "SELECT \"coinage_metal\" FROM \"later_thalers_with_event_location_and_ye\" WHERE \"km_number\"='S45';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"later_thalers_with_event_location_and_ye\" (\n \"location\" text,\n \"date\" real,\n \"denomination\" text,\n \"coinage_metal\" text,\n \"mintage\" real,\n \"km_number\" text\n);\n\nQuestion: What is the coinage metal for a location of Fribourg and denomination of 00005 5 Francs?" }, { "role": "assistant", "content": "SELECT \"coinage_metal\" FROM \"later_thalers_with_event_location_and_ye\" WHERE \"location\"='Fribourg' AND \"denomination\"='00005 5 francs';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"boys\" (\n \"year\" real,\n \"under_11\" text,\n \"under_13\" text,\n \"under_15\" text,\n \"under_17\" text,\n \"under_19\" text\n);\n\nQuestion: When the under-17 was Antonio Glez, who was the under-13?" }, { "role": "assistant", "content": "SELECT \"under_13\" FROM \"boys\" WHERE \"under_17\"='Antonio Glez';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"boys\" (\n \"year\" real,\n \"under_11\" text,\n \"under_13\" text,\n \"under_15\" text,\n \"under_17\" text,\n \"under_19\" text\n);\n\nQuestion: In the year 2009 who was the under-13?" }, { "role": "assistant", "content": "SELECT \"under_13\" FROM \"boys\" WHERE \"year\"=2009;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"boys\" (\n \"year\" real,\n \"under_11\" text,\n \"under_13\" text,\n \"under_15\" text,\n \"under_17\" text,\n \"under_19\" text\n);\n\nQuestion: When Julian Illingworth was the under-19, who was the under-15?" }, { "role": "assistant", "content": "SELECT \"under_15\" FROM \"boys\" WHERE \"under_19\"='Julian Illingworth';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"boys\" (\n \"year\" real,\n \"under_11\" text,\n \"under_13\" text,\n \"under_15\" text,\n \"under_17\" text,\n \"under_19\" text\n);\n\nQuestion: Who was the under-15 when Moises Galvez\twas the under-17?" }, { "role": "assistant", "content": "SELECT \"under_15\" FROM \"boys\" WHERE \"under_17\"='Moises Galvez';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"boys\" (\n \"year\" real,\n \"under_11\" text,\n \"under_13\" text,\n \"under_15\" text,\n \"under_17\" text,\n \"under_19\" text\n);\n\nQuestion: How many years are there where the the under-15 is Arturo Salazar Martinez and the under-19 is Moises Galvez?" }, { "role": "assistant", "content": "SELECT COUNT(\"year\") FROM \"boys\" WHERE \"under_15\"='Arturo Salazar Martinez' AND \"under_19\"='Moises Galvez';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"boys\" (\n \"year\" real,\n \"under_11\" text,\n \"under_13\" text,\n \"under_15\" text,\n \"under_17\" text,\n \"under_19\" text\n);\n\nQuestion: When the under-11 was Aly Abou El Einen, who was the under-13?" }, { "role": "assistant", "content": "SELECT \"under_13\" FROM \"boys\" WHERE \"under_11\"='Aly Abou El Einen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"elections_to_congress_of_deputies\" (\n \"election_number\" real,\n \"election_date\" text,\n \"district\" text,\n \"province\" text,\n \"took_office\" text,\n \"left_office\" text\n);\n\nQuestion: What is the election date for those politicians who left office on 1850-11-15?" }, { "role": "assistant", "content": "SELECT COUNT(\"election_date\") FROM \"elections_to_congress_of_deputies\" WHERE \"left_office\"='1850-11-15';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"elections_to_congress_of_deputies\" (\n \"election_number\" real,\n \"election_date\" text,\n \"district\" text,\n \"province\" text,\n \"took_office\" text,\n \"left_office\" text\n);\n\nQuestion: What are the election date for elections held in the province of Albacete?" }, { "role": "assistant", "content": "SELECT \"election_date\" FROM \"elections_to_congress_of_deputies\" WHERE \"province\"='Albacete';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"elections_to_congress_of_deputies\" (\n \"election_number\" real,\n \"election_date\" text,\n \"district\" text,\n \"province\" text,\n \"took_office\" text,\n \"left_office\" text\n);\n\nQuestion: What is the date in which a politician who left office on 1840-10-11 for a politician whose election number was 11?" }, { "role": "assistant", "content": "SELECT \"left_office\" FROM \"elections_to_congress_of_deputies\" WHERE \"election_number\"=11;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"elections_to_congress_of_deputies\" (\n \"election_number\" real,\n \"election_date\" text,\n \"district\" text,\n \"province\" text,\n \"took_office\" text,\n \"left_office\" text\n);\n\nQuestion: In how many district has a politician took office on 1844-10-14?" }, { "role": "assistant", "content": "SELECT \"district\" FROM \"elections_to_congress_of_deputies\" WHERE \"took_office\"='1844-10-14';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"elections_to_congress_of_deputies\" (\n \"election_number\" real,\n \"election_date\" text,\n \"district\" text,\n \"province\" text,\n \"took_office\" text,\n \"left_office\" text\n);\n\nQuestion: What are the dates of leaving office for politician from the province of Seville?" }, { "role": "assistant", "content": "SELECT \"left_office\" FROM \"elections_to_congress_of_deputies\" WHERE \"province\"='Seville';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar_and_results\" (\n \"round\" real,\n \"location\" text,\n \"country\" text,\n \"date\" text,\n \"fastest_qualifying\" text,\n \"winning_pilot\" text,\n \"winning_aircraft\" text\n);\n\nQuestion: When united arab emirates is the country how many fastest qualifying are there?" }, { "role": "assistant", "content": "SELECT COUNT(\"fastest_qualifying\") FROM \"race_calendar_and_results\" WHERE \"country\"='United Arab Emirates';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar_and_results\" (\n \"round\" real,\n \"location\" text,\n \"country\" text,\n \"date\" text,\n \"fastest_qualifying\" text,\n \"winning_pilot\" text,\n \"winning_aircraft\" text\n);\n\nQuestion: When cancelled is the fastest qualifying where is the location?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"race_calendar_and_results\" WHERE \"fastest_qualifying\"='Cancelled';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar_and_results\" (\n \"round\" real,\n \"location\" text,\n \"country\" text,\n \"date\" text,\n \"fastest_qualifying\" text,\n \"winning_pilot\" text,\n \"winning_aircraft\" text\n);\n\nQuestion: When united arab emirates is the country what is the winning aircraft?" }, { "role": "assistant", "content": "SELECT \"winning_aircraft\" FROM \"race_calendar_and_results\" WHERE \"country\"='United Arab Emirates';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"individual_triple_doubles\" (\n \"num\" real,\n \"player\" text,\n \"points\" real,\n \"rebounds\" real,\n \"assists\" real,\n \"opponent\" text,\n \"date\" text\n);\n\nQuestion: List the number of assists against illinois-chicago." }, { "role": "assistant", "content": "SELECT \"assists\" FROM \"individual_triple_doubles\" WHERE \"opponent\"='Illinois-Chicago';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"individual_triple_doubles\" (\n \"num\" real,\n \"player\" text,\n \"points\" real,\n \"rebounds\" real,\n \"assists\" real,\n \"opponent\" text,\n \"date\" text\n);\n\nQuestion: List the opposing team on february 15, 2003." }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"individual_triple_doubles\" WHERE \"date\"='February 15, 2003';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"individual_triple_doubles\" (\n \"num\" real,\n \"player\" text,\n \"points\" real,\n \"rebounds\" real,\n \"assists\" real,\n \"opponent\" text,\n \"date\" text\n);\n\nQuestion: List the number of recovers for player #2." }, { "role": "assistant", "content": "SELECT \"rebounds\" FROM \"individual_triple_doubles\" WHERE \"num\"=2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"individual_triple_doubles\" (\n \"num\" real,\n \"player\" text,\n \"points\" real,\n \"rebounds\" real,\n \"assists\" real,\n \"opponent\" text,\n \"date\" text\n);\n\nQuestion: List the opposing team from february 22, 1983." }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"individual_triple_doubles\" WHERE \"date\"='February 22, 1983';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"individual_triple_doubles\" (\n \"num\" real,\n \"player\" text,\n \"points\" real,\n \"rebounds\" real,\n \"assists\" real,\n \"opponent\" text,\n \"date\" text\n);\n\nQuestion: List the lowest number of assists." }, { "role": "assistant", "content": "SELECT MIN(\"assists\") FROM \"individual_triple_doubles\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"girls\" (\n \"year\" real,\n \"under_11\" text,\n \"under_13\" text,\n \"under_15\" text,\n \"under_17\" text,\n \"under_19\" text\n);\n\nQuestion: What is every value for Under-11 when value of under-17 is Salma Nassar?" }, { "role": "assistant", "content": "SELECT \"under_11\" FROM \"girls\" WHERE \"under_17\"='Salma Nassar';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"girls\" (\n \"year\" real,\n \"under_11\" text,\n \"under_13\" text,\n \"under_15\" text,\n \"under_17\" text,\n \"under_19\" text\n);\n\nQuestion: What is every value for Under-13 when value for Under-15 is Maria Elena Ubina?" }, { "role": "assistant", "content": "SELECT \"under_13\" FROM \"girls\" WHERE \"under_15\"='Maria Elena Ubina';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"girls\" (\n \"year\" real,\n \"under_11\" text,\n \"under_13\" text,\n \"under_15\" text,\n \"under_17\" text,\n \"under_19\" text\n);\n\nQuestion: What is every value for Under-17 if Under-15 is Maria Elena Ubina?" }, { "role": "assistant", "content": "SELECT \"under_17\" FROM \"girls\" WHERE \"under_15\"='Maria Elena Ubina';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"girls\" (\n \"year\" real,\n \"under_11\" text,\n \"under_13\" text,\n \"under_15\" text,\n \"under_17\" text,\n \"under_19\" text\n);\n\nQuestion: What is every value for Under-11 if Under-19 is Leong Siu Lynn?" }, { "role": "assistant", "content": "SELECT \"under_11\" FROM \"girls\" WHERE \"under_19\"='Leong Siu Lynn';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"girls\" (\n \"year\" real,\n \"under_11\" text,\n \"under_13\" text,\n \"under_15\" text,\n \"under_17\" text,\n \"under_19\" text\n);\n\nQuestion: Who is everyone Under-11 if Under-17 is Salma Nassar?" }, { "role": "assistant", "content": "SELECT \"under_11\" FROM \"girls\" WHERE \"under_17\"='Salma Nassar';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"girls\" (\n \"year\" real,\n \"under_11\" text,\n \"under_13\" text,\n \"under_15\" text,\n \"under_17\" text,\n \"under_19\" text\n);\n\nQuestion: Who is every Under-15 if Under-11 is Reeham Sedky?" }, { "role": "assistant", "content": "SELECT \"under_15\" FROM \"girls\" WHERE \"under_11\"='Reeham Sedky';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26375386_16\" (\n \"rank\" real,\n \"couple\" text,\n \"judges\" real,\n \"public\" real,\n \"total\" real,\n \"vote_percentage\" text,\n \"result\" text\n);\n\nQuestion: How many couples had a vote percentage of 9.5%?" }, { "role": "assistant", "content": "SELECT COUNT(\"rank\") FROM \"table1_26375386_16\" WHERE \"vote_percentage\"='9.5%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26375386_16\" (\n \"rank\" real,\n \"couple\" text,\n \"judges\" real,\n \"public\" real,\n \"total\" real,\n \"vote_percentage\" text,\n \"result\" text\n);\n\nQuestion: What was the lowest judge rank for danny and frankie?" }, { "role": "assistant", "content": "SELECT MIN(\"judges\") FROM \"table1_26375386_16\" WHERE \"couple\"='Danny and Frankie';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26375386_16\" (\n \"rank\" real,\n \"couple\" text,\n \"judges\" real,\n \"public\" real,\n \"total\" real,\n \"vote_percentage\" text,\n \"result\" text\n);\n\nQuestion: What couple had a total of 8?" }, { "role": "assistant", "content": "SELECT \"couple\" FROM \"table1_26375386_16\" WHERE \"total\"=8;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results\" (\n \"region\" text,\n \"population\" real,\n \"pct_of_countrys_population\" text,\n \"change_in_population_since_1993\" real,\n \"change_in_pct_of_countrys_population_since_1993\" text\n);\n\nQuestion: In what region was the change in % of the country's population since 1993 at 0.3? " }, { "role": "assistant", "content": "SELECT \"region\" FROM \"results\" WHERE \"change_in_pct_of_countrys_population_since_1993\"='0.3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results\" (\n \"region\" text,\n \"population\" real,\n \"pct_of_countrys_population\" text,\n \"change_in_population_since_1993\" real,\n \"change_in_pct_of_countrys_population_since_1993\" text\n);\n\nQuestion: What is the change in population since 1993 in the region where the % of country's population was 4.2? " }, { "role": "assistant", "content": "SELECT COUNT(\"change_in_population_since_1993\") FROM \"results\" WHERE \"pct_of_countrys_population\"='4.2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results\" (\n \"region\" text,\n \"population\" real,\n \"pct_of_countrys_population\" text,\n \"change_in_population_since_1993\" real,\n \"change_in_pct_of_countrys_population_since_1993\" text\n);\n\nQuestion: What is the change in % of the country's population since 1993 in the Lambayeque region?" }, { "role": "assistant", "content": "SELECT \"change_in_pct_of_countrys_population_since_1993\" FROM \"results\" WHERE \"region\"='Lambayeque';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"television_broadcasters\" (\n \"channel\" real,\n \"channel_name\" text,\n \"callsign\" text,\n \"signal_power\" text,\n \"broadcast_area\" text\n);\n\nQuestion: What is the broadcast are for channel 1?" }, { "role": "assistant", "content": "SELECT \"broadcast_area\" FROM \"television_broadcasters\" WHERE \"channel\"=1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"television_broadcasters\" (\n \"channel\" real,\n \"channel_name\" text,\n \"callsign\" text,\n \"signal_power\" text,\n \"broadcast_area\" text\n);\n\nQuestion: What is the call sign for channel 6?" }, { "role": "assistant", "content": "SELECT \"callsign\" FROM \"television_broadcasters\" WHERE \"channel\"=6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"television_broadcasters\" (\n \"channel\" real,\n \"channel_name\" text,\n \"callsign\" text,\n \"signal_power\" text,\n \"broadcast_area\" text\n);\n\nQuestion: What is the channel number for TBS?" }, { "role": "assistant", "content": "SELECT MIN(\"channel\") FROM \"television_broadcasters\" WHERE \"channel_name\"='TBS';" } ]