text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1980_packers_draft_selections" ( "round" real, "overall" real, "player" text, "position" text, "college" text ); Question: Who is the athlete who was picked before round 9, had an overall draft...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: What is the highest round of the player with an overa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: What is the average round of the defensive back playe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: What is the average overall of John Ayres, who had a ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: What is the name of the player with a pick # less tha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: What is the average overall of Ken Whisenhunt, who ha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: What is the lowest pick # of John Ayres? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "last_match" text, "replaced_by" text ); Question: What is the name of team wit...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "last_match" text, "replaced_by" text ); Question: What was the manner of depar...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "last_match" text, "replaced_by" text ); Question: What is the name of the last...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "last_match" text, "replaced_by" text ); Question: What is the last match with ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "last_match" text, "replaced_by" text ); Question: What is the last match with ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "volume_issue" text, "issue_date_s" text, "weeks_on_top" real, "song" text, "artist" text ); Question: What was the issue date for the single with a Volume:Issue of 47:8-9? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passing" ( "name" text, "gp_gs" text, "effic" real, "att_cmp_int" text, "avg_g" real ); Question: What is the highest effic with an avg/g of 91.9? <|assistant|> SELECT MAX("effic") FROM "passin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passing" ( "name" text, "gp_gs" text, "effic" real, "att_cmp_int" text, "avg_g" real ); Question: What is the att-cmp-int with an effic smaller than 117.88 and a gp-gs of 10-0? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passing" ( "name" text, "gp_gs" text, "effic" real, "att_cmp_int" text, "avg_g" real ); Question: What is the sum avg/g with an effic of 858.4? <|assistant|> SELECT SUM("avg_g") FROM "passing" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "mascot" text, "location" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "county" text ); Question: Wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "mascot" text, "location" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "county" text ); Question: Wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "mascot" text, "location" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "county" text ); Question: Whe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "mascot" text, "location" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "county" text ); Question: Whe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What was the score for the game on February 12? <|assistant|> SELECT "score" FROM "game_log" WHERE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What was the score for the game on February 29? <|assistant|> SELECT "score" FROM "game_log" WHERE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: Where was the home team in the game played against Chicago? <|assistant|> SELECT "home" FROM "game...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fcs_regional_championship_games" ( "season" real, "game" text, "record" text, "opponent" text, "score" text, "result" text ); Question: Which Season has a Game of fcs midwest region, and a Sc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fcs_regional_championship_games" ( "season" real, "game" text, "record" text, "opponent" text, "score" text, "result" text ); Question: Which Game has a Result of win, and an Opponent of new ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fcs_regional_championship_games" ( "season" real, "game" text, "record" text, "opponent" text, "score" text, "result" text ); Question: Which Season has a Score of 39-27? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "goal" real, "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What result has a goal of 5? <|assistant|> SELECT "result" FROM "in...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: What's the record on May 25? <|assistant|> SELECT "record" FROM "game_log" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: What's greatest attendance on May 7? <|assistant|> SELECT MAX("attendance") ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "january" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which January has a Record of 28–14–8? <|assistant|> SELECT "january" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "january" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which Points is the highest one that has a Game smaller than 43, and a ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real ); Question: What is the mean number of wins for the norton team in 1966, when there are 8 po...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real ); Question: What is the most recent year for the ajs team when there are fewer than 0 wins? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real ); Question: What is the smallest point amount for years prior to 1958 when the class is 350c...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real ); Question: What is the largest amount of wins when there are less than 5 points, the class ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ftops_main_event_winners" ( "series" text, "date" text, "entrants" real, "winner" text, "first_prize" text ); Question: What was the first prize for the FTOPS XIII series with more than 5,291 e...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ftops_main_event_winners" ( "series" text, "date" text, "entrants" real, "winner" text, "first_prize" text ); Question: When was the game that had a first prize of $161,480? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ftops_main_event_winners" ( "series" text, "date" text, "entrants" real, "winner" text, "first_prize" text ); Question: Who won on May 2011? <|assistant|> SELECT "winner" FROM "ftops_main_event...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification_leadership" ( "stage" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text ); Question: What is t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification_leadership" ( "stage" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text ); Question: What is t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification_leadership" ( "stage" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text ); Question: What is t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification_leadership" ( "stage" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text ); Question: What is t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification_leadership" ( "stage" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text ); Question: What is t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification_leadership" ( "stage" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text ); Question: What is t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "attendance" real ); Question: what week number was at memorial stadium? <|assistant|> SELECT AVG("week...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "attendance" real ); Question: before week 12 what was the attendance on 1983-11-21? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "attendance" real ); Question: on week 16, what was the lowest attendance? <|assistant|> SELECT MIN("at...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: Who won the women's doubles when and...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_event" ( "year" real, "date" text, "venue" text, "champion" text, "country" text, "score" real, "to_par" text, "margin_of_victory" text, "purse" real, "winner_s_share" real ); Qu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_event" ( "year" real, "date" text, "venue" text, "champion" text, "country" text, "score" real, "to_par" text, "margin_of_victory" text, "purse" real, "winner_s_share" real ); Qu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_team" ( "exit_date" text, "pos" text, "player" text, "to_club" text, "transfer_fee" text ); Question: What is the exit date of the player who transferred to Cardiff City? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_team" ( "exit_date" text, "pos" text, "player" text, "to_club" text, "transfer_fee" text ); Question: What is the exit date of the player who transferred to Portsmouth? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_team" ( "exit_date" text, "pos" text, "player" text, "to_club" text, "transfer_fee" text ); Question: Which player has a position of FW? <|assistant|> SELECT "player" FROM "first_team" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "repeaters" ( "call_sign" text, "frequency_m_hz" text, "city_of_license" text, "erp_w" real, "fcc_info" text ); Question: Which Frequency MHz has an ERP W larger than 4, and a Call sign of w218a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "repeaters" ( "call_sign" text, "frequency_m_hz" text, "city_of_license" text, "erp_w" real, "fcc_info" text ); Question: Which City of license has a Frequency MHz of 91.5 fm? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "repeaters" ( "call_sign" text, "frequency_m_hz" text, "city_of_license" text, "erp_w" real, "fcc_info" text ); Question: Which City of license has a Call sign of w220ba? <|assistant|> SELECT "c...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "repeaters" ( "call_sign" text, "frequency_m_hz" text, "city_of_license" text, "erp_w" real, "fcc_info" text ); Question: Which ERP W has a Frequency MHz of 89.3 fm? <|assistant|> SELECT MAX("er...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real ); Question: How many wins does a player who have $7,188,408 earnings with lower than rank 5? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real ); Question: How many wins does Greg Norman have? <|assistant|> SELECT SUM("wins") FROM "leaders" WHERE "play...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_brasileiro_s_rie_a" ( "position" real, "team" text, "points" real, "played" real, "won_by_2_or_more_goals_difference" real, "drawn" real, "lost" real, "against" real, "differe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_brasileiro_s_rie_a" ( "position" real, "team" text, "points" real, "played" real, "won_by_2_or_more_goals_difference" real, "drawn" real, "lost" real, "against" real, "differe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_brasileiro_s_rie_a" ( "position" real, "team" text, "points" real, "played" real, "won_by_2_or_more_goals_difference" real, "drawn" real, "lost" real, "against" real, "differe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_brasileiro_s_rie_a" ( "position" real, "team" text, "points" real, "played" real, "won_by_2_or_more_goals_difference" real, "drawn" real, "lost" real, "against" real, "differe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_brasileiro_s_rie_a" ( "position" real, "team" text, "points" real, "played" real, "won_by_2_or_more_goals_difference" real, "drawn" real, "lost" real, "against" real, "differe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "national_structure_of_the_population_in_" ( "year_of_census" real, "total" real, "croats" text, "serbs" text, "others" text ); Question: What is the average total of the census after 1971 with ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); Question: what is the school that hosts jim goodman <|assistant|> SELECT "school_club_team" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_6" ( "date" text, "tournament" text, "surface" text, "opponen" text, "score" text ); Question: Which Surface has a Date of january 2, 2006? <|assistant|> SELECT "surface" FROM "singles_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_6" ( "date" text, "tournament" text, "surface" text, "opponen" text, "score" text ); Question: Which tournament happened on september 25, 2006? <|assistant|> SELECT "tournament" FROM "s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_6" ( "date" text, "tournament" text, "surface" text, "opponen" text, "score" text ); Question: When did joão souza play? <|assistant|> SELECT "date" FROM "singles_6" WHERE "opponen"='jo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_6" ( "date" text, "tournament" text, "surface" text, "opponen" text, "score" text ); Question: Which Surface has a Score of 7–5, 6–4? <|assistant|> SELECT "surface" FROM "singles_6" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_nfl_draft_selections" ( "player" text, "position" text, "overall_pick" real, "round" text, "nfl_draft" real, "franchise" text ); Question: What is the highest NFL Draft that has jeff robi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_nfl_draft_selections" ( "player" text, "position" text, "overall_pick" real, "round" text, "nfl_draft" real, "franchise" text ); Question: What position has 1958 as the NFL Draft, and jer...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_nfl_draft_selections" ( "player" text, "position" text, "overall_pick" real, "round" text, "nfl_draft" real, "franchise" text ); Question: What is the highest overall pick that has c as t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mls_regular_season" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text ); Question: What was the score at Spartan Stadium when San Jose was the Home team? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mls_regular_season" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text ); Question: Where was the game on September 11, 2004? <|assistant|> SELECT "venue" FROM "mls_r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mls_regular_season" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text ); Question: Who was the home team on September 20, 1998 at Spartan Stadium? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "round" real, "time" text, "location" text ); Question: What method has a round less than 3, and 3:36...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "round" real, "time" text, "location" text ); Question: What method has randy couture as the opponent...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "counties" ( "county" text, "population" real, "per_capita_income" text, "median_household_income" text, "median_family_income" text ); Question: What is the median household income where the pe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "counties" ( "county" text, "population" real, "per_capita_income" text, "median_household_income" text, "median_family_income" text ); Question: What is the median income for a family whose per...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "television" ( "dish" text, "callsign" text, "network" text, "resolution" text, "city_of_license" text, "official_website" text ); Question: What is the resolution of the network Canal de las ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "television" ( "dish" text, "callsign" text, "network" text, "resolution" text, "city_of_license" text, "official_website" text ); Question: What is the resolution of the network Carismatv? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "television" ( "dish" text, "callsign" text, "network" text, "resolution" text, "city_of_license" text, "official_website" text ); Question: Which dish belongs to the network that has the offi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "television" ( "dish" text, "callsign" text, "network" text, "resolution" text, "city_of_license" text, "official_website" text ); Question: In which city is the network latv licensed? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "television" ( "dish" text, "callsign" text, "network" text, "resolution" text, "city_of_license" text, "official_website" text ); Question: In which city is the network with the callsign kgns...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_braathens_aircraft" ( "manufacturer" text, "model" text, "quantity" real, "introduced" real, "retired" real ); Question: How many in the introduced section had Fokker as a manufacturer,...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_braathens_aircraft" ( "manufacturer" text, "model" text, "quantity" real, "introduced" real, "retired" real ); Question: What is the total number of quantity when the introductory year ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_braathens_aircraft" ( "manufacturer" text, "model" text, "quantity" real, "introduced" real, "retired" real ); Question: How many in the introduced segment retired later than 1994 and h...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_braathens_aircraft" ( "manufacturer" text, "model" text, "quantity" real, "introduced" real, "retired" real ); Question: How many in the quantity section had Fokker as a manufacturer an...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mano_parejas" ( "year" text, "champion" text, "subchampion" text, "scoreboard" text, "fronton" text ); Question: Which Championship has a Scoreboard that is 22-14? <|assistant|> SELECT "champio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "skyline" ( "rank" real, "name" text, "height_ft_m" text, "floors_stories" real, "year_completed" real ); Question: What year was the building with a top 3 rank and a height of 274 (84) ft (m) c...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "skyline" ( "rank" real, "name" text, "height_ft_m" text, "floors_stories" real, "year_completed" real ); Question: How many floors are in the 274 (84) ft (m) building that is ranked number 1? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "skyline" ( "rank" real, "name" text, "height_ft_m" text, "floors_stories" real, "year_completed" real ); Question: Which is the highest ranked building with more than 15 floors? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_apertura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); Question: What is the highest ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_apertura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); Question: What is the average ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_apertura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); Question: What was the sum of ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_apertura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); Question: What was the lowest ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_apertura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); Question: What is the total nu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_apertura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); Question: What is the lowest n...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "attendance" real ); Question: Which Date has a Result of l 14–13? <|assistant|> SELECT "date" FROM "sc...