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