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 \"toll_rates\" (\n \"vehicle_category\" text,\n \"till_aligarh\" real,\n \"till_mathura\" real,\n \"till_agra\" real,\n \"for_round_trip\" real\n);\n\nQuestion: If the vehicle category is multi-axle vehicle, what is the till aligarh?" }, { "role": "assistant", "content": "SELECT MIN(\"till_aligarh\") FROM \"toll_rates\" WHERE \"vehicle_category\"='Multi-axle Vehicle';" } ]
[ { "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 \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location\" text,\n \"record\" text\n);\n\nQuestion: What's the lowest number of a game where S. Johnson (3) did the most high assists?" }, { "role": "assistant", "content": "SELECT MIN(\"game\") FROM \"regular_season\" WHERE \"high_assists\"='S. Johnson (3)';" } ]
[ { "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 \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location\" text,\n \"record\" text\n);\n\nQuestion: Who was the game on July 12 played against?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"regular_season\" WHERE \"date\"='July 12';" } ]
[ { "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 \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location\" text,\n \"record\" text\n);\n\nQuestion: What was the record in the game where McWilliams (8) did the most high rebounds?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"regular_season\" WHERE \"high_rebounds\"='McWilliams (8)';" } ]
[ { "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 \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location\" text,\n \"record\" text\n);\n\nQuestion: Who was the game on July 7 played against?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"regular_season\" WHERE \"date\"='July 7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1979203_1\" (\n \"virtual\" text,\n \"callsign\" text,\n \"affiliation\" text,\n \"branding\" text,\n \"channel\" text,\n \"programming\" text,\n \"owner\" text\n);\n\nQuestion: what is the owner of the callsign wliw" }, { "role": "assistant", "content": "SELECT \"owner\" FROM \"table1_1979203_1\" WHERE \"callsign\"='WLIW';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1979203_1\" (\n \"virtual\" text,\n \"callsign\" text,\n \"affiliation\" text,\n \"branding\" text,\n \"channel\" text,\n \"programming\" text,\n \"owner\" text\n);\n\nQuestion: how many callsigns are for the branding telemundo 47" }, { "role": "assistant", "content": "SELECT COUNT(\"callsign\") FROM \"table1_1979203_1\" WHERE \"branding\"='Telemundo 47';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1979203_1\" (\n \"virtual\" text,\n \"callsign\" text,\n \"affiliation\" text,\n \"branding\" text,\n \"channel\" text,\n \"programming\" text,\n \"owner\" text\n);\n\nQuestion: what is the virtual callsign if is wnet" }, { "role": "assistant", "content": "SELECT \"virtual\" FROM \"table1_1979203_1\" WHERE \"callsign\"='WNET';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1979203_1\" (\n \"virtual\" text,\n \"callsign\" text,\n \"affiliation\" text,\n \"branding\" text,\n \"channel\" text,\n \"programming\" text,\n \"owner\" text\n);\n\nQuestion: what is the name of the branding where the virtual is 13.1" }, { "role": "assistant", "content": "SELECT \"branding\" FROM \"table1_1979203_1\" WHERE \"virtual\"='13.1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list\" (\n \"district\" real,\n \"representative\" text,\n \"party\" text,\n \"residence\" text,\n \"counties_represented\" text,\n \"term_ends\" real,\n \"first_elected\" real\n);\n\nQuestion: Name the district for newtown square" }, { "role": "assistant", "content": "SELECT MIN(\"district\") FROM \"list\" WHERE \"residence\"='Newtown Square';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list\" (\n \"district\" real,\n \"representative\" text,\n \"party\" text,\n \"residence\" text,\n \"counties_represented\" text,\n \"term_ends\" real,\n \"first_elected\" real\n);\n\nQuestion: Name the party for bensalem" }, { "role": "assistant", "content": "SELECT \"party\" FROM \"list\" WHERE \"residence\"='Bensalem';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list\" (\n \"district\" real,\n \"representative\" text,\n \"party\" text,\n \"residence\" text,\n \"counties_represented\" text,\n \"term_ends\" real,\n \"first_elected\" real\n);\n\nQuestion: Name the term ends for bethlehem" }, { "role": "assistant", "content": "SELECT COUNT(\"term_ends\") FROM \"list\" WHERE \"residence\"='Bethlehem';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list\" (\n \"district\" real,\n \"representative\" text,\n \"party\" text,\n \"residence\" text,\n \"counties_represented\" text,\n \"term_ends\" real,\n \"first_elected\" real\n);\n\nQuestion: Name the total number of districts for rob teplitz" }, { "role": "assistant", "content": "SELECT COUNT(\"district\") FROM \"list\" WHERE \"representative\"='Rob Teplitz';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"contestants\" (\n \"contestant\" text,\n \"background\" text,\n \"original_team\" text,\n \"age\" real,\n \"hometown\" text,\n \"result\" text\n);\n\nQuestion: What was the result for the contestant whose background was as a business major?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"contestants\" WHERE \"background\"='Business major';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"contestants\" (\n \"contestant\" text,\n \"background\" text,\n \"original_team\" text,\n \"age\" real,\n \"hometown\" text,\n \"result\" text\n);\n\nQuestion: What was the background of the contestant whose result was 11th place?" }, { "role": "assistant", "content": "SELECT \"background\" FROM \"contestants\" WHERE \"result\"='11th place';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"contestants\" (\n \"contestant\" text,\n \"background\" text,\n \"original_team\" text,\n \"age\" real,\n \"hometown\" text,\n \"result\" text\n);\n\nQuestion: For how many contestants was the background internet dreamer? " }, { "role": "assistant", "content": "SELECT COUNT(\"contestant\") FROM \"contestants\" WHERE \"background\"='Internet dreamer';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"contestants\" (\n \"contestant\" text,\n \"background\" text,\n \"original_team\" text,\n \"age\" real,\n \"hometown\" text,\n \"result\" text\n);\n\nQuestion: What was the result for the contestant who was a small business owner? " }, { "role": "assistant", "content": "SELECT \"result\" FROM \"contestants\" WHERE \"background\"='Small business owner';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"contestants\" (\n \"contestant\" text,\n \"background\" text,\n \"original_team\" text,\n \"age\" real,\n \"hometown\" text,\n \"result\" text\n);\n\nQuestion: What team was the contestant who finished in 10th place originally on? " }, { "role": "assistant", "content": "SELECT \"original_team\" FROM \"contestants\" WHERE \"result\"='10th place';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"contestants\" (\n \"contestant\" text,\n \"background\" text,\n \"original_team\" text,\n \"age\" real,\n \"hometown\" text,\n \"result\" text\n);\n\nQuestion: What is the hometown of the contestant whose background is as a financial consultant? " }, { "role": "assistant", "content": "SELECT \"hometown\" FROM \"contestants\" WHERE \"background\"='Financial consultant';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_1\" (\n \"num\" real,\n \"episode\" text,\n \"rating\" text,\n \"share\" real,\n \"rating_share_18_49\" text,\n \"viewers_millions\" text,\n \"rank_night\" text\n);\n\nQuestion: If the rating/share is 3.8/10, what is the total number of rating?" }, { "role": "assistant", "content": "SELECT COUNT(\"rating\") FROM \"season_1\" WHERE \"rating_share_18_49\"='3.8/10';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_1\" (\n \"num\" real,\n \"episode\" text,\n \"rating\" text,\n \"share\" real,\n \"rating_share_18_49\" text,\n \"viewers_millions\" text,\n \"rank_night\" text\n);\n\nQuestion: If the night rank is 9, what is the total share number?" }, { "role": "assistant", "content": "SELECT COUNT(\"share\") FROM \"season_1\" WHERE \"rank_night\"='9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_1\" (\n \"num\" real,\n \"episode\" text,\n \"rating\" text,\n \"share\" real,\n \"rating_share_18_49\" text,\n \"viewers_millions\" text,\n \"rank_night\" text\n);\n\nQuestion: What is the name of the episode with a night rank of 9?" }, { "role": "assistant", "content": "SELECT \"episode\" FROM \"season_1\" WHERE \"rank_night\"='9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_1\" (\n \"num\" real,\n \"episode\" text,\n \"rating\" text,\n \"share\" real,\n \"rating_share_18_49\" text,\n \"viewers_millions\" text,\n \"rank_night\" text\n);\n\nQuestion: If the amount of viewers is 5.14 million and the rating/share is 2.0/6, what is the ranking?" }, { "role": "assistant", "content": "SELECT \"rating\" FROM \"season_1\" WHERE \"rating_share_18_49\"='2.0/6' AND \"viewers_millions\"='5.14';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"urban_population_in_overseas_territories\" (\n \"rank\" real,\n \"city\" text,\n \"1890_census\" text,\n \"1910_census\" real,\n \"1920_census\" real,\n \"1930_census\" real,\n \"1940_census\" real\n);\n\nQuestion: For cities with a census of 74000 in 1920, what was their census in 1890?" }, { "role": "assistant", "content": "SELECT \"1890_census\" FROM \"urban_population_in_overseas_territories\" WHERE \"1920_census\"=74000;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"urban_population_in_overseas_territories\" (\n \"rank\" real,\n \"city\" text,\n \"1890_census\" text,\n \"1910_census\" real,\n \"1920_census\" real,\n \"1930_census\" real,\n \"1940_census\" real\n);\n\nQuestion: For cities with a census of 296000 in 1940, what was their census in 1920?" }, { "role": "assistant", "content": "SELECT \"1920_census\" FROM \"urban_population_in_overseas_territories\" WHERE \"1940_census\"=296000;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"urban_population_in_overseas_territories\" (\n \"rank\" real,\n \"city\" text,\n \"1890_census\" text,\n \"1910_census\" real,\n \"1920_census\" real,\n \"1930_census\" real,\n \"1940_census\" real\n);\n\nQuestion: How many cities had a census of 400000 in 1940?" }, { "role": "assistant", "content": "SELECT COUNT(\"rank\") FROM \"urban_population_in_overseas_territories\" WHERE \"1940_census\"=400000;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19852975_3\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director_s\" text,\n \"writer_s\" text,\n \"airdate\" text,\n \"production_code\" real,\n \"arties_disguises\" text\n);\n\nQuestion: Name the season number for \"the night of the feathered fury\"" }, { "role": "assistant", "content": "SELECT COUNT(\"season_num\") FROM \"table1_19852975_3\" WHERE \"title\"='\\\"The Night of the Feathered Fury\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19852975_3\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director_s\" text,\n \"writer_s\" text,\n \"airdate\" text,\n \"production_code\" real,\n \"arties_disguises\" text\n);\n\nQuestion: Name the writers for swedish sailor" }, { "role": "assistant", "content": "SELECT \"writer_s\" FROM \"table1_19852975_3\" WHERE \"arties_disguises\"='Swedish sailor';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19852975_3\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director_s\" text,\n \"writer_s\" text,\n \"airdate\" text,\n \"production_code\" real,\n \"arties_disguises\" text\n);\n\nQuestion: Name the series number for \"the night of the flying pie plate\"" }, { "role": "assistant", "content": "SELECT MAX(\"series_num\") FROM \"table1_19852975_3\" WHERE \"title\"='\\\"The Night of the Flying Pie Plate\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19852975_3\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director_s\" text,\n \"writer_s\" text,\n \"airdate\" text,\n \"production_code\" real,\n \"arties_disguises\" text\n);\n\nQuestion: Name the season number for herr ostropolyer, pastry chef" }, { "role": "assistant", "content": "SELECT MIN(\"season_num\") FROM \"table1_19852975_3\" WHERE \"arties_disguises\"='Herr Ostropolyer, pastry chef';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_high_schools_in_indiana\" (\n \"school\" text,\n \"city_town\" text,\n \"website\" text,\n \"size\" real,\n \"principal\" text,\n \"grades\" text,\n \"idoe_profile\" text\n);\n\nQuestion: Name the principal of Northfield Junior-Senior High School." }, { "role": "assistant", "content": "SELECT \"principal\" FROM \"list_of_high_schools_in_indiana\" WHERE \"school\"='Northfield Junior-Senior High School';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_high_schools_in_indiana\" (\n \"school\" text,\n \"city_town\" text,\n \"website\" text,\n \"size\" real,\n \"principal\" text,\n \"grades\" text,\n \"idoe_profile\" text\n);\n\nQuestion: What is the name of the school/s in North Manchester?" }, { "role": "assistant", "content": "SELECT \"school\" FROM \"list_of_high_schools_in_indiana\" WHERE \"city_town\"='North Manchester';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_high_schools_in_indiana\" (\n \"school\" text,\n \"city_town\" text,\n \"website\" text,\n \"size\" real,\n \"principal\" text,\n \"grades\" text,\n \"idoe_profile\" text\n);\n\nQuestion: Name the school/s with is size of 604." }, { "role": "assistant", "content": "SELECT \"school\" FROM \"list_of_high_schools_in_indiana\" WHERE \"size\"=604;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_high_schools_in_indiana\" (\n \"school\" text,\n \"city_town\" text,\n \"website\" text,\n \"size\" real,\n \"principal\" text,\n \"grades\" text,\n \"idoe_profile\" text\n);\n\nQuestion: What is the IDOE Profile in North Manchester?" }, { "role": "assistant", "content": "SELECT \"idoe_profile\" FROM \"list_of_high_schools_in_indiana\" WHERE \"city_town\"='North Manchester';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_high_schools_in_indiana\" (\n \"school\" text,\n \"city_town\" text,\n \"website\" text,\n \"size\" real,\n \"principal\" text,\n \"grades\" text,\n \"idoe_profile\" text\n);\n\nQuestion: What are the grades served at Manchester Junior-Senior High School?" }, { "role": "assistant", "content": "SELECT \"grades\" FROM \"list_of_high_schools_in_indiana\" WHERE \"school\"='Manchester Junior-Senior High School';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19852975_4\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director_s\" text,\n \"writer_s\" text,\n \"airdate\" text,\n \"production_code\" real,\n \"arties_disguises\" text\n);\n\nQuestion: Writer Max Ehrlich, what is the minimum series number?" }, { "role": "assistant", "content": "SELECT MIN(\"series_num\") FROM \"table1_19852975_4\" WHERE \"writer_s\"='Max Ehrlich';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19852975_4\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director_s\" text,\n \"writer_s\" text,\n \"airdate\" text,\n \"production_code\" real,\n \"arties_disguises\" text\n);\n\nQuestion: From writer Denne Bart Petitclerc, what is the maximum season number?" }, { "role": "assistant", "content": "SELECT MAX(\"season_num\") FROM \"table1_19852975_4\" WHERE \"writer_s\"='Denne Bart Petitclerc';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19852975_4\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director_s\" text,\n \"writer_s\" text,\n \"airdate\" text,\n \"production_code\" real,\n \"arties_disguises\" text\n);\n\nQuestion: From writer Max Ehrlich, what is the total amount of series numbers?" }, { "role": "assistant", "content": "SELECT COUNT(\"series_num\") FROM \"table1_19852975_4\" WHERE \"writer_s\"='Max Ehrlich';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_results\" (\n \"rd\" text,\n \"race\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"most_laps_led\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: Who is the winning driver when rd. is 3?" }, { "role": "assistant", "content": "SELECT \"winning_driver\" FROM \"race_results\" WHERE \"rd\"='3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_results\" (\n \"rd\" text,\n \"race\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"most_laps_led\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: How many winning drivers are there when the winning team is Bryan herta autosport?" }, { "role": "assistant", "content": "SELECT COUNT(\"winning_driver\") FROM \"race_results\" WHERE \"winning_team\"='Bryan Herta Autosport';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_results\" (\n \"rd\" text,\n \"race\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"most_laps_led\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: Which report is where rd. is 9?" }, { "role": "assistant", "content": "SELECT \"report\" FROM \"race_results\" WHERE \"rd\"='9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_results\" (\n \"rd\" text,\n \"race\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"most_laps_led\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: Who held the fastest lap in the race in texas and dario franchitti is the winning driver?" }, { "role": "assistant", "content": "SELECT \"fastest_lap\" FROM \"race_results\" WHERE \"race\"='Texas' AND \"winning_driver\"='Dario Franchitti';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_3_1960\" (\n \"n\" real,\n \"ep\" real,\n \"huckleberry_hound\" text,\n \"pixie_and_dixie\" text,\n \"hokey_wolf\" text,\n \"air_date\" text,\n \"credited_animators\" text\n);\n\nQuestion: What is top ep number for \"missile bound cat\"?" }, { "role": "assistant", "content": "SELECT MAX(\"ep\") FROM \"season_3_1960\" WHERE \"pixie_and_dixie\"='\\\"Missile Bound Cat\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_3_1960\" (\n \"n\" real,\n \"ep\" real,\n \"huckleberry_hound\" text,\n \"pixie_and_dixie\" text,\n \"hokey_wolf\" text,\n \"air_date\" text,\n \"credited_animators\" text\n);\n\nQuestion: How many Huckleberry Hound episodes were aired on 1960.09.18?" }, { "role": "assistant", "content": "SELECT COUNT(\"huckleberry_hound\") FROM \"season_3_1960\" WHERE \"air_date\"='1960.09.18';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_3_1960\" (\n \"n\" real,\n \"ep\" real,\n \"huckleberry_hound\" text,\n \"pixie_and_dixie\" text,\n \"hokey_wolf\" text,\n \"air_date\" text,\n \"credited_animators\" text\n);\n\nQuestion: Who animated \"Science Friction\"" }, { "role": "assistant", "content": "SELECT \"credited_animators\" FROM \"season_3_1960\" WHERE \"huckleberry_hound\"='\\\"Science Friction\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_2_1959_60\" (\n \"n\" real,\n \"ep\" real,\n \"huckleberry_hound\" text,\n \"pixie_and_dixie\" text,\n \"yogi_bear\" text,\n \"air_date\" text,\n \"credited_animators\" text\n);\n\nQuestion: What is the air date of \"Rah Rah Bear\"?" }, { "role": "assistant", "content": "SELECT \"air_date\" FROM \"season_2_1959_60\" WHERE \"yogi_bear\"='\\\"Rah Rah Bear\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_2_1959_60\" (\n \"n\" real,\n \"ep\" real,\n \"huckleberry_hound\" text,\n \"pixie_and_dixie\" text,\n \"yogi_bear\" text,\n \"air_date\" text,\n \"credited_animators\" text\n);\n\nQuestion: What episode includes \"Cop and Saucer\"?" }, { "role": "assistant", "content": "SELECT MIN(\"ep\") FROM \"season_2_1959_60\" WHERE \"huckleberry_hound\"='\\\"Cop and Saucer\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_2_1959_60\" (\n \"n\" real,\n \"ep\" real,\n \"huckleberry_hound\" text,\n \"pixie_and_dixie\" text,\n \"yogi_bear\" text,\n \"air_date\" text,\n \"credited_animators\" text\n);\n\nQuestion: What is the Pixie and Dixie skit in episode 7?" }, { "role": "assistant", "content": "SELECT \"pixie_and_dixie\" FROM \"season_2_1959_60\" WHERE \"ep\"=7;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_2_1959_60\" (\n \"n\" real,\n \"ep\" real,\n \"huckleberry_hound\" text,\n \"pixie_and_dixie\" text,\n \"yogi_bear\" text,\n \"air_date\" text,\n \"credited_animators\" text\n);\n\nQuestion: What is the Yogi Bear that aired on 1959.12.21?" }, { "role": "assistant", "content": "SELECT \"yogi_bear\" FROM \"season_2_1959_60\" WHERE \"air_date\"='1959.12.21';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"yes_fm_stations\" (\n \"branding\" text,\n \"callsign\" text,\n \"frequency\" text,\n \"power_k_w\" text,\n \"location\" text\n);\n\nQuestion: From brand Yes! FM 101.1, what was the frequency?" }, { "role": "assistant", "content": "SELECT \"frequency\" FROM \"yes_fm_stations\" WHERE \"branding\"='YES! FM 101.1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"yes_fm_stations\" (\n \"branding\" text,\n \"callsign\" text,\n \"frequency\" text,\n \"power_k_w\" text,\n \"location\" text\n);\n\nQuestion: If the branding is Yes! FM 91.1 Boracay, what is the power?" }, { "role": "assistant", "content": "SELECT \"power_k_w\" FROM \"yes_fm_stations\" WHERE \"branding\"='YES! FM 91.1 Boracay';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"yes_fm_stations\" (\n \"branding\" text,\n \"callsign\" text,\n \"frequency\" text,\n \"power_k_w\" text,\n \"location\" text\n);\n\nQuestion: If the call sign is DXYR, what is the branding?" }, { "role": "assistant", "content": "SELECT \"branding\" FROM \"yes_fm_stations\" WHERE \"callsign\"='DXYR';" } ]
[ { "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\" text,\n \"division\" text,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: When divisional semifinals are the playoffs what is the year?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"year_by_year\" WHERE \"playoffs\"='Divisional Semifinals';" } ]
[ { "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\" text,\n \"division\" text,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: When divisional finals are the playoffs what is the regular season?" }, { "role": "assistant", "content": "SELECT \"regular_season\" FROM \"year_by_year\" WHERE \"playoffs\"='Divisional Finals';" } ]
[ { "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\" text,\n \"division\" text,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: When 1992 is the year how many divisions are there?" }, { "role": "assistant", "content": "SELECT COUNT(\"division\") FROM \"year_by_year\" WHERE \"year\"='1992';" } ]
[ { "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\" text,\n \"division\" text,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: When final is the open cup what is the league?" }, { "role": "assistant", "content": "SELECT \"league\" FROM \"year_by_year\" WHERE \"open_cup\"='Final';" } ]
[ { "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\" text,\n \"division\" text,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: When 1995 is the year what is the open cup?" }, { "role": "assistant", "content": "SELECT \"open_cup\" FROM \"year_by_year\" WHERE \"year\"='1995';" } ]
[ { "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\" text,\n \"division\" text,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: When 2008 is the year how many divisions are there?" }, { "role": "assistant", "content": "SELECT COUNT(\"division\") FROM \"year_by_year\" WHERE \"year\"='2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"most_dismissals_in_test_career_wicketkee\" (\n \"rank\" real,\n \"dismissals\" real,\n \"player\" text,\n \"caught\" real,\n \"stumped\" real,\n \"matches\" real,\n \"innings\" real\n);\n\nQuestion: what is the least number of stumps in a game with 13 dismissals" }, { "role": "assistant", "content": "SELECT MIN(\"stumped\") FROM \"most_dismissals_in_test_career_wicketkee\" WHERE \"dismissals\"=13;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"most_dismissals_in_test_career_wicketkee\" (\n \"rank\" real,\n \"dismissals\" real,\n \"player\" text,\n \"caught\" real,\n \"stumped\" real,\n \"matches\" real,\n \"innings\" real\n);\n\nQuestion: what is the highest number of dismissals in a match with 8 innings" }, { "role": "assistant", "content": "SELECT COUNT(\"dismissals\") FROM \"most_dismissals_in_test_career_wicketkee\" WHERE \"innings\"=8;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"most_dismissals_in_test_career_wicketkee\" (\n \"rank\" real,\n \"dismissals\" real,\n \"player\" text,\n \"caught\" real,\n \"stumped\" real,\n \"matches\" real,\n \"innings\" real\n);\n\nQuestion: what is the rank of adam gilchrist" }, { "role": "assistant", "content": "SELECT COUNT(\"rank\") FROM \"most_dismissals_in_test_career_wicketkee\" WHERE \"player\"='Adam Gilchrist';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1987995_5\" (\n \"ballpark\" text,\n \"location\" text,\n \"team\" text,\n \"opened\" real,\n \"closed\" real,\n \"demod\" real,\n \"current_status\" text\n);\n\nQuestion: Where is the ballpark of the Twins?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"table1_1987995_5\" WHERE \"team\"='Twins';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1987995_5\" (\n \"ballpark\" text,\n \"location\" text,\n \"team\" text,\n \"opened\" real,\n \"closed\" real,\n \"demod\" real,\n \"current_status\" text\n);\n\nQuestion: How many locations have been used for ballparks named Memorial Stadium?" }, { "role": "assistant", "content": "SELECT COUNT(\"location\") FROM \"table1_1987995_5\" WHERE \"ballpark\"='Memorial Stadium';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1987995_5\" (\n \"ballpark\" text,\n \"location\" text,\n \"team\" text,\n \"opened\" real,\n \"closed\" real,\n \"demod\" real,\n \"current_status\" text\n);\n\nQuestion: When was the park demolished in 1994 closed?" }, { "role": "assistant", "content": "SELECT MIN(\"closed\") FROM \"table1_1987995_5\" WHERE \"demod\"=1994;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"participants\" (\n \"team_boat_name\" text,\n \"sail_no\" text,\n \"flag\" text,\n \"design_firm\" text,\n \"builder\" text,\n \"skipper\" text\n);\n\nQuestion: Which flag was on the Green Marine's boat?" }, { "role": "assistant", "content": "SELECT \"flag\" FROM \"participants\" WHERE \"builder\"='Green Marine';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"participants\" (\n \"team_boat_name\" text,\n \"sail_no\" text,\n \"flag\" text,\n \"design_firm\" text,\n \"builder\" text,\n \"skipper\" text\n);\n\nQuestion: Who build the boat where Ken Read was the skipper?" }, { "role": "assistant", "content": "SELECT \"builder\" FROM \"participants\" WHERE \"skipper\"='Ken Read';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"participants\" (\n \"team_boat_name\" text,\n \"sail_no\" text,\n \"flag\" text,\n \"design_firm\" text,\n \"builder\" text,\n \"skipper\" text\n);\n\nQuestion: Farr Yacht Design designed boats for how many country/flags?" }, { "role": "assistant", "content": "SELECT COUNT(\"flag\") FROM \"participants\" WHERE \"design_firm\"='Farr Yacht Design';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"participants\" (\n \"team_boat_name\" text,\n \"sail_no\" text,\n \"flag\" text,\n \"design_firm\" text,\n \"builder\" text,\n \"skipper\" text\n);\n\nQuestion: Who were the builders of the boat designed by Botin Carkeek?" }, { "role": "assistant", "content": "SELECT \"builder\" FROM \"participants\" WHERE \"design_firm\"='Botin Carkeek';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19897294_10\" (\n \"no_in_series\" text,\n \"no_in_season\" real,\n \"family_families\" text,\n \"location_s\" text,\n \"original_air_date\" text\n);\n\nQuestion: In how many locations was the episode with the Bailey family filmed?" }, { "role": "assistant", "content": "SELECT COUNT(\"location_s\") FROM \"table1_19897294_10\" WHERE \"family_families\"='The Bailey Family';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19897294_10\" (\n \"no_in_series\" text,\n \"no_in_season\" real,\n \"family_families\" text,\n \"location_s\" text,\n \"original_air_date\" text\n);\n\nQuestion: How many episodes with different season numbers had the Jeans family in them?" }, { "role": "assistant", "content": "SELECT COUNT(\"no_in_season\") FROM \"table1_19897294_10\" WHERE \"family_families\"='The Jeans Family';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19897294_10\" (\n \"no_in_series\" text,\n \"no_in_season\" real,\n \"family_families\" text,\n \"location_s\" text,\n \"original_air_date\" text\n);\n\nQuestion: When did the episode with the Ririe family air for the first time?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_19897294_10\" WHERE \"family_families\"='The Ririe Family';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19897294_10\" (\n \"no_in_series\" text,\n \"no_in_season\" real,\n \"family_families\" text,\n \"location_s\" text,\n \"original_air_date\" text\n);\n\nQuestion: Where was the episode with series number US9 filmed?" }, { "role": "assistant", "content": "SELECT \"location_s\" FROM \"table1_19897294_10\" WHERE \"no_in_series\"='US9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19897294_10\" (\n \"no_in_series\" text,\n \"no_in_season\" real,\n \"family_families\" text,\n \"location_s\" text,\n \"original_air_date\" text\n);\n\nQuestion: What's the season number of the episode with series number US6?" }, { "role": "assistant", "content": "SELECT MIN(\"no_in_season\") FROM \"table1_19897294_10\" WHERE \"no_in_series\"='US6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19897294_11\" (\n \"no_in_series\" text,\n \"no_in_season\" real,\n \"family_families\" text,\n \"location_s\" text,\n \"original_air_date\" text\n);\n\nQuestion: What family was featured in episode us14 of the series?" }, { "role": "assistant", "content": "SELECT \"family_families\" FROM \"table1_19897294_11\" WHERE \"no_in_series\"='US14';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19897294_11\" (\n \"no_in_series\" text,\n \"no_in_season\" real,\n \"family_families\" text,\n \"location_s\" text,\n \"original_air_date\" text\n);\n\nQuestion: How many locations featured the Webb Family?" }, { "role": "assistant", "content": "SELECT COUNT(\"location_s\") FROM \"table1_19897294_11\" WHERE \"family_families\"='The Webb Family';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19897294_11\" (\n \"no_in_series\" text,\n \"no_in_season\" real,\n \"family_families\" text,\n \"location_s\" text,\n \"original_air_date\" text\n);\n\nQuestion: What episode in the season was episode us17 in the series?" }, { "role": "assistant", "content": "SELECT COUNT(\"no_in_season\") FROM \"table1_19897294_11\" WHERE \"no_in_series\"='US17';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19897294_11\" (\n \"no_in_series\" text,\n \"no_in_season\" real,\n \"family_families\" text,\n \"location_s\" text,\n \"original_air_date\" text\n);\n\nQuestion: What episode in the season was episode us18 in the series?" }, { "role": "assistant", "content": "SELECT COUNT(\"no_in_season\") FROM \"table1_19897294_11\" WHERE \"no_in_series\"='US18';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19897294_11\" (\n \"no_in_series\" text,\n \"no_in_season\" real,\n \"family_families\" text,\n \"location_s\" text,\n \"original_air_date\" text\n);\n\nQuestion: What episode in the series was the Amaral family featured?" }, { "role": "assistant", "content": "SELECT \"no_in_series\" FROM \"table1_19897294_11\" WHERE \"family_families\"='The Amaral Family';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"calendar\" (\n \"rd\" real,\n \"circuit\" text,\n \"city_state\" text,\n \"date\" text,\n \"format\" text,\n \"round_winner\" text,\n \"car\" text,\n \"entrant\" text\n);\n\nQuestion: Who is the round winner when entrant is craven mild racing?" }, { "role": "assistant", "content": "SELECT \"round_winner\" FROM \"calendar\" WHERE \"entrant\"='Craven Mild Racing';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"calendar\" (\n \"rd\" real,\n \"circuit\" text,\n \"city_state\" text,\n \"date\" text,\n \"format\" text,\n \"round_winner\" text,\n \"car\" text,\n \"entrant\" text\n);\n\nQuestion: Who is the round winner of the wanneroo park circuit?" }, { "role": "assistant", "content": "SELECT \"round_winner\" FROM \"calendar\" WHERE \"circuit\"='Wanneroo Park';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"calendar\" (\n \"rd\" real,\n \"circuit\" text,\n \"city_state\" text,\n \"date\" text,\n \"format\" text,\n \"round_winner\" text,\n \"car\" text,\n \"entrant\" text\n);\n\nQuestion: Which circuit has two heats as the format?" }, { "role": "assistant", "content": "SELECT \"circuit\" FROM \"calendar\" WHERE \"format\"='Two heats';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19897294_16\" (\n \"no_in_series\" text,\n \"no_in_season\" real,\n \"family_families\" text,\n \"location_s\" text,\n \"original_air_date\" text\n);\n\nQuestion: Name the original air date for the potter family" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_19897294_16\" WHERE \"family_families\"='The Potter Family';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19897294_9\" (\n \"no_overall\" text,\n \"no_in_series\" real,\n \"family_families\" text,\n \"location_s\" text,\n \"original_air_date\" text\n);\n\nQuestion: how many original air date where family/families is the ryder family and the schwartz family" }, { "role": "assistant", "content": "SELECT COUNT(\"original_air_date\") FROM \"table1_19897294_9\" WHERE \"family_families\"='The Ryder Family and The Schwartz Family';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19897294_9\" (\n \"no_overall\" text,\n \"no_in_series\" real,\n \"family_families\" text,\n \"location_s\" text,\n \"original_air_date\" text\n);\n\nQuestion: where was the abbas family and the pickering family located" }, { "role": "assistant", "content": "SELECT \"location_s\" FROM \"table1_19897294_9\" WHERE \"family_families\"='The Abbas Family and The Pickering Family';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"state_farm_junior_college_player_of_the_\" (\n \"season\" text,\n \"player\" text,\n \"junior_college\" text,\n \"state\" text,\n \"position\" text,\n \"class\" text,\n \"university\" text\n);\n\nQuestion: in which class is the position forward" }, { "role": "assistant", "content": "SELECT \"class\" FROM \"state_farm_junior_college_player_of_the_\" WHERE \"position\"='Forward';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"state_farm_junior_college_player_of_the_\" (\n \"season\" text,\n \"player\" text,\n \"junior_college\" text,\n \"state\" text,\n \"position\" text,\n \"class\" text,\n \"university\" text\n);\n\nQuestion: in which season the position was center" }, { "role": "assistant", "content": "SELECT \"season\" FROM \"state_farm_junior_college_player_of_the_\" WHERE \"position\"='Center';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"state_farm_junior_college_player_of_the_\" (\n \"season\" text,\n \"player\" text,\n \"junior_college\" text,\n \"state\" text,\n \"position\" text,\n \"class\" text,\n \"university\" text\n);\n\nQuestion: in which class was the ohio state university" }, { "role": "assistant", "content": "SELECT \"class\" FROM \"state_farm_junior_college_player_of_the_\" WHERE \"university\"='Ohio State';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19897294_8\" (\n \"no_overall\" text,\n \"no_in_series\" real,\n \"family_families\" text,\n \"location_s\" text,\n \"original_air_date\" text\n);\n\nQuestion: Name the number of families for uk30" }, { "role": "assistant", "content": "SELECT COUNT(\"family_families\") FROM \"table1_19897294_8\" WHERE \"no_overall\"='UK30';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19897294_8\" (\n \"no_overall\" text,\n \"no_in_series\" real,\n \"family_families\" text,\n \"location_s\" text,\n \"original_air_date\" text\n);\n\nQuestion: Name the number in series for in the ward family and the wren family" }, { "role": "assistant", "content": "SELECT MAX(\"no_in_series\") FROM \"table1_19897294_8\" WHERE \"family_families\"='The Ward Family and The Wren Family';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19897294_8\" (\n \"no_overall\" text,\n \"no_in_series\" real,\n \"family_families\" text,\n \"location_s\" text,\n \"original_air_date\" text\n);\n\nQuestion: Name the family for uk31" }, { "role": "assistant", "content": "SELECT \"family_families\" FROM \"table1_19897294_8\" WHERE \"no_overall\"='UK31';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19897294_8\" (\n \"no_overall\" text,\n \"no_in_series\" real,\n \"family_families\" text,\n \"location_s\" text,\n \"original_air_date\" text\n);\n\nQuestion: Name the least number in series" }, { "role": "assistant", "content": "SELECT MIN(\"no_in_series\") FROM \"table1_19897294_8\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19897294_8\" (\n \"no_overall\" text,\n \"no_in_series\" real,\n \"family_families\" text,\n \"location_s\" text,\n \"original_air_date\" text\n);\n\nQuestion: Name the number of locations for uk32" }, { "role": "assistant", "content": "SELECT COUNT(\"location_s\") FROM \"table1_19897294_8\" WHERE \"no_overall\"='UK32';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19897294_5\" (\n \"no_overall\" text,\n \"no_in_series\" real,\n \"family_families\" text,\n \"location_s\" text,\n \"original_air_date\" text\n);\n\nQuestion: Name the air date for uk17" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_19897294_5\" WHERE \"no_overall\"='UK17';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19897294_5\" (\n \"no_overall\" text,\n \"no_in_series\" real,\n \"family_families\" text,\n \"location_s\" text,\n \"original_air_date\" text\n);\n\nQuestion: Name the family/families uk17" }, { "role": "assistant", "content": "SELECT \"family_families\" FROM \"table1_19897294_5\" WHERE \"no_overall\"='UK17';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"drivers_teams\" (\n \"team\" text,\n \"truck_s\" text,\n \"num\" real,\n \"driver_s\" text,\n \"primary_sponsor_s\" text,\n \"listed_owner_s\" text,\n \"crew_chief\" text\n);\n\nQuestion: What is the number of the truck that has the crew chief Billy Wilburn?" }, { "role": "assistant", "content": "SELECT MAX(\"num\") FROM \"drivers_teams\" WHERE \"crew_chief\"='Billy Wilburn';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"drivers_teams\" (\n \"team\" text,\n \"truck_s\" text,\n \"num\" real,\n \"driver_s\" text,\n \"primary_sponsor_s\" text,\n \"listed_owner_s\" text,\n \"crew_chief\" text\n);\n\nQuestion: What number truck is owned by Stephen Germain?" }, { "role": "assistant", "content": "SELECT \"num\" FROM \"drivers_teams\" WHERE \"listed_owner_s\"='Stephen Germain';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"drivers_teams\" (\n \"team\" text,\n \"truck_s\" text,\n \"num\" real,\n \"driver_s\" text,\n \"primary_sponsor_s\" text,\n \"listed_owner_s\" text,\n \"crew_chief\" text\n);\n\nQuestion: What team is sponsored by d3 Outdoors?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"drivers_teams\" WHERE \"primary_sponsor_s\"='D3 Outdoors';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"drivers_teams\" (\n \"team\" text,\n \"truck_s\" text,\n \"num\" real,\n \"driver_s\" text,\n \"primary_sponsor_s\" text,\n \"listed_owner_s\" text,\n \"crew_chief\" text\n);\n\nQuestion: How many teams does Jeff Wyler own?" }, { "role": "assistant", "content": "SELECT COUNT(\"team\") FROM \"drivers_teams\" WHERE \"listed_owner_s\"='Jeff Wyler';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"drivers_teams\" (\n \"team\" text,\n \"truck_s\" text,\n \"num\" real,\n \"driver_s\" text,\n \"primary_sponsor_s\" text,\n \"listed_owner_s\" text,\n \"crew_chief\" text\n);\n\nQuestion: Who is the primary sponsor for crew cheif Rick Ren's team?" }, { "role": "assistant", "content": "SELECT \"primary_sponsor_s\" FROM \"drivers_teams\" WHERE \"crew_chief\"='Rick Ren';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"drivers_teams\" (\n \"team\" text,\n \"truck_s\" text,\n \"num\" real,\n \"driver_s\" text,\n \"primary_sponsor_s\" text,\n \"listed_owner_s\" text,\n \"crew_chief\" text\n);\n\nQuestion: Who sponsors owner Bobby Dotter's team?" }, { "role": "assistant", "content": "SELECT \"primary_sponsor_s\" FROM \"drivers_teams\" WHERE \"listed_owner_s\"='Bobby Dotter';" } ]