text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "other_picks" ( "round" text, "pick" text, "player" text, "position" text, "nationality" text, "team" text, "college" text ); Question: What is the nationality for milwaukee hawks? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "superfund_sites" ( "cerclis_id" text, "name" text, "borough_or_census_area" text, "proposed" text, "listed" text, "construction_completed" text, "partially_deleted" text, "deleted" text );...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_18_8_titles_10_runner_ups" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent" text, "score" text ); Question: During what Championship was the Opponent Jef...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_18_8_titles_10_runner_ups" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent" text, "score" text ); Question: On what Date was the Score of 3–6, 6–4, 3–6, ...
<|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: What is the highest rank for gene littler with under 3 wins and under $962,133? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "entries" ( "driver" text, "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text ); Question: What tyre is on the talbot-lago and an Entrant of automobiles talbot-darr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "entries" ( "driver" text, "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text ); Question: What is the Entrant with a Engine of talbot l6, and Eugène Chaboud was th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "entries" ( "driver" text, "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text ); Question: What entrant has a P tyre and was constructed by Alfa Romeo? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" text, "date" text, "venue" text, "winner" text, "country" text, "score" text, "to_par" text, "margin_of_victory" text, "runner_s_up" text, "winner_s_share" text ); Q...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" text, "date" text, "venue" text, "winner" text, "country" text, "score" text, "to_par" text, "margin_of_victory" text, "runner_s_up" text, "winner_s_share" text ); Q...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" text, "date" text, "venue" text, "winner" text, "country" text, "score" text, "to_par" text, "margin_of_victory" text, "runner_s_up" text, "winner_s_share" text ); Q...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scottish_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real ); Question: I want to see the result for venue of n and attendance more than 20,664...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scottish_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real ); Question: Tell me the result for venue of a <|assistant|> SELECT "result" FROM "s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scottish_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real ); Question: I want to know the average attendance for n venue and f round <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: In grid 15, how many laps were there before ending with a time of exhaust? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1850_1871" ( "class" text, "wheel_arrangement" text, "manufacturer" text, "year_made" text, "quantity_made" text, "quantity_preserved" text, "year_s_withdrawn" text ); Question: What year w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1850_1871" ( "class" text, "wheel_arrangement" text, "manufacturer" text, "year_made" text, "quantity_made" text, "quantity_preserved" text, "year_s_withdrawn" text ); Question: What was th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1850_1871" ( "class" text, "wheel_arrangement" text, "manufacturer" text, "year_made" text, "quantity_made" text, "quantity_preserved" text, "year_s_withdrawn" text ); Question: Name the ye...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "locomotives" ( "number" real, "locomotive_type" text, "wheel_arrangement" text, "builder" text, "entered_service" real, "withdrawn" real ); Question: When did the tom smith built train enter ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_20_9" ( "edition" text, "round" text, "date" text, "surface" text, "opponent" text, "result" text ); Question: Who is the opponent for the 1985 World Group i edition? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "democrats" ( "candidate" text, "money_raised_3_q" text, "loans_received_3_q" text, "money_spent_3_q" text, "total_receipts" text, "cash_on_hand" text, "after_debt" text ); Question: What is...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "democrats" ( "candidate" text, "money_raised_3_q" text, "loans_received_3_q" text, "money_spent_3_q" text, "total_receipts" text, "cash_on_hand" text, "after_debt" text ); Question: How man...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "democrats" ( "candidate" text, "money_raised_3_q" text, "loans_received_3_q" text, "money_spent_3_q" text, "total_receipts" text, "cash_on_hand" text, "after_debt" text ); Question: What Af...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "democrats" ( "candidate" text, "money_raised_3_q" text, "loans_received_3_q" text, "money_spent_3_q" text, "total_receipts" text, "cash_on_hand" text, "after_debt" text ); Question: How muc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "democrats" ( "candidate" text, "money_raised_3_q" text, "loans_received_3_q" text, "money_spent_3_q" text, "total_receipts" text, "cash_on_hand" text, "after_debt" text ); Question: What is...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "democrats" ( "candidate" text, "money_raised_3_q" text, "loans_received_3_q" text, "money_spent_3_q" text, "total_receipts" text, "cash_on_hand" text, "after_debt" text ); Question: How muc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the crowd size when the away team...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the crowd size at Junction Oval?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the date of the game at Junction...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the away score for Carlton? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who was the away team at MCG? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senate_composition_before_the_elections" ( "d_50" text, "d_49" text, "d_48" text, "d_47" text, "d_46" text, "d_45" text, "d_44" text, "d_43" text, "d_42" text, "d_41" text ); Question...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senate_composition_before_the_elections" ( "d_50" text, "d_49" text, "d_48" text, "d_47" text, "d_46" text, "d_45" text, "d_44" text, "d_43" text, "d_42" text, "d_41" text ); Question...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senate_composition_before_the_elections" ( "d_50" text, "d_49" text, "d_48" text, "d_47" text, "d_46" text, "d_45" text, "d_44" text, "d_43" text, "d_42" text, "d_41" text ); Question...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senate_composition_before_the_elections" ( "d_50" text, "d_49" text, "d_48" text, "d_47" text, "d_46" text, "d_45" text, "d_44" text, "d_43" text, "d_42" text, "d_41" text ); Question...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senate_composition_before_the_elections" ( "d_50" text, "d_49" text, "d_48" text, "d_47" text, "d_46" text, "d_45" text, "d_44" text, "d_43" text, "d_42" text, "d_41" text ); Question...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senate_composition_before_the_elections" ( "d_50" text, "d_49" text, "d_48" text, "d_47" text, "d_46" text, "d_45" text, "d_44" text, "d_43" text, "d_42" text, "d_41" text ); Question...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "yards_on_the_gulf_coast" ( "yard_name" text, "location_city_state" text, "1st_ship_delivery_date" text, "ship_types_delivered" text, "total_number_of_ways" text, "total_vessels_built_for_usmc"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "yards_on_the_gulf_coast" ( "yard_name" text, "location_city_state" text, "1st_ship_delivery_date" text, "ship_types_delivered" text, "total_number_of_ways" text, "total_vessels_built_for_usmc"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "yards_on_the_gulf_coast" ( "yard_name" text, "location_city_state" text, "1st_ship_delivery_date" text, "ship_types_delivered" text, "total_number_of_ways" text, "total_vessels_built_for_usmc"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "yards_on_the_gulf_coast" ( "yard_name" text, "location_city_state" text, "1st_ship_delivery_date" text, "ship_types_delivered" text, "total_number_of_ways" text, "total_vessels_built_for_usmc"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_24_hours_of_le_mans_results" ( "year" real, "class" text, "tyres" text, "team" text, "co_drivers" text, "laps" real, "pos" text, "class_pos" text ); Question: Who were the co dri...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which home team scored 9.15 (69)? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which venue did the home team score 14.23...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What day did Footscray play as the home ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: What is the report...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: Who was the race w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: What race has a Po...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: What is the Pole P...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: What was the date ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_film_serials_by_studio" ( "number" real, "serial_title" text, "year" real, "chapters" real, "genre" text, "director" text, "cast" text ); Question: How many chapters did Elmer Clift...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_bohemian_consorts" ( "name" text, "father" text, "birth" text, "marriage" text, "became_queen" text, "ceased_to_be_queen" text, "death" text, "spouse" text ); Question: Who is the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "locomotives" ( "locomotive" text, "name" text, "serial_no" text, "entered_service" text, "owner" text ); Question: What is the entered service date for serial number 85-1222? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "locomotives" ( "locomotive" text, "name" text, "serial_no" text, "entered_service" text, "owner" text ); Question: What is the locomotive for the city of Benalla? <|assistant|> SELECT "locomoti...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "locomotives" ( "locomotive" text, "name" text, "serial_no" text, "entered_service" text, "owner" text ); Question: What is the name for the locomotive n464? <|assistant|> SELECT "name" FROM "lo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "locomotives" ( "locomotive" text, "name" text, "serial_no" text, "entered_service" text, "owner" text ); Question: What is the name for the locomotive n474? <|assistant|> SELECT "name" FROM "lo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_13" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which home team has a Crowd greater than...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_13" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which home team has an Away team score o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_13" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the home team score at windy hil...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_13" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which date has a Crowd greater than 28,0...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_13" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the largest crowd for an Away te...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "played_in" text, "matches" text, "lost" text, "drawn" text, "points_for" text, "points_against" text ); Question: Where was the match that had 119 points for played? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "played_in" text, "matches" text, "lost" text, "drawn" text, "points_for" text, "points_against" text ); Question: Where were 16 matches played? <|assistant|> SELECT "played_in" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "played_in" text, "matches" text, "lost" text, "drawn" text, "points_for" text, "points_against" text ); Question: What match had 240 points for? <|assistant|> SELECT "matches" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "round" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What was the score on 26 July 1930? <|assistant|> SELECT "score" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: How many laps did Innes Ireland make when he had a grid more than 15? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What is the grid for Jack Brabham with more than 65 laps? <|assistant|> SELECT SU...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: Who drove grid 5? <|assistant|> SELECT "driver" FROM "classification" WHERE "grid...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text ); Question: What is the date of the game with the Rockets as the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s" ( "player" text, "no_s" real, "height_in_ft" text, "position" text, "years_for_rockets" text, "school_club_team_country" text ); Question: What was the position of the player who played fo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s" ( "player" text, "no_s" real, "height_in_ft" text, "position" text, "years_for_rockets" text, "school_club_team_country" text ); Question: What school, club team, or country did the player...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s" ( "player" text, "no_s" real, "height_in_ft" text, "position" text, "years_for_rockets" text, "school_club_team_country" text ); Question: What is the number of the player who came from Vi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which place has a home team score of 18.1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What is the Time/Retired with over 56 laps and a grid of 5? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "entries" ( "driver" text, "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text ); Question: Who is the driver when the tyre is p and the entrant is officine alfieri ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "entries" ( "driver" text, "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text ); Question: Who is the constructor when the chassis is talbot-lago t26c and the drive...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "entries" ( "driver" text, "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text ); Question: What is the tyre when the entrant is sa alfa romeo and the driver is luig...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "entries" ( "driver" text, "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text ); Question: Who is the entrant when the engine is talbot l6 and the driver is pierre ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "entries" ( "driver" text, "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text ); Question: Who is the entrant when the chassis is ferrari 125? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "entries" ( "driver" text, "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text ); Question: what is the engine when the tyre is d, the constructor is era and the dri...
<|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, "record" text ); Question: What was the score when the record was 39-62? <|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, "opponent" text, "score" text, "loss" text, "record" text ); Question: What was the date when the record was 35-57? <|assistant|> SELECT "date" FROM "game_log" WHERE "r...
<|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, "record" text ); Question: What was the loss when the record was 34-56? <|assistant|> SELECT "loss" FROM "game_log" WHERE "r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the score of the away team who pl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the name of the venue where the a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: On what date did the home team score 5.15...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the score of the away team whose ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the name of the away team that pl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the smallest crowd size for away ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_scotch_arthurs" ( "br_no" real, "sr_no" real, "sr_name" text, "builder" text, "built" text, "withdrawn" text ); Question: Which Builder has BR No. 30782? <|assistant|> SELECT "builder" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_3_1996_1997" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "original_air_date" text, "production_code" text ); Question: What is the title of the episode wi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_3_1996_1997" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "original_air_date" text, "production_code" text ); Question: What is the average of the Series #...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_3_1996_1997" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "original_air_date" text, "production_code" text ); Question: How many episodes did Matthew Penn ...
<|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, "decision" text, "attendance" real, "record" text ); Question: What Visiting Team(s) had an Attendance of over 18,680 <|a...
<|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, "decision" text, "attendance" real, "record" text ); Question: When Nashville was the visiting team what was the lowest A...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What is the time/retired for the driver with 16 grids? <|assistant|> SELECT "time...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What is the smallest grid for a time/retired of 1:56:18.22? <|assistant|> SELECT ...
<|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, "save" text ); Question: Who was the opponent on September 28? <|assistant|> SELECT "opponent" FROM "game_log" WHERE "date"=...