text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification_leadership_by_stage" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "trofeo_fast_team" text ); Question: Which stage has a Winner of ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification_leadership_by_stage" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "trofeo_fast_team" text ); Question: Which Trofeo Fast Team has a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification_leadership_by_stage" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "trofeo_fast_team" text ); Question: Which General classification...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification_leadership_by_stage" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "trofeo_fast_team" text ); Question: Which Winner has a Trofeo Fa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text ); Question: W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text ); Question: W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text ); Question: W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text ); Question: W...
<|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 nigel mansell's time/retired? <|assistant|> SELECT "time_retired" FROM "c...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What team was the away team at Junction ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "november" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text ); Question: What is the home team when the visiting team is the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nhl_goalie_mask_coins" ( "year" real, "theme" text, "artist" text, "mintage" real, "issue_price" real, "special_notes" text ); Question: What was the average year for a coin that had a mintag...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009" ( "block_a" text, "akira" text, "atsushi_aoki" text, "black_tiger_v" text, "jado" text, "milano_collection_a_t" text, "prince_devitt" text, "tiger_mask_iv" text ); Question: What is...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009" ( "block_a" text, "akira" text, "atsushi_aoki" text, "black_tiger_v" text, "jado" text, "milano_collection_a_t" text, "prince_devitt" text, "tiger_mask_iv" text ); Question: What is...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009" ( "block_a" text, "akira" text, "atsushi_aoki" text, "black_tiger_v" text, "jado" text, "milano_collection_a_t" text, "prince_devitt" text, "tiger_mask_iv" text ); Question: What is...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009" ( "block_a" text, "akira" text, "atsushi_aoki" text, "black_tiger_v" text, "jado" text, "milano_collection_a_t" text, "prince_devitt" text, "tiger_mask_iv" text ); Question: What is...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009" ( "block_a" text, "akira" text, "atsushi_aoki" text, "black_tiger_v" text, "jado" text, "milano_collection_a_t" text, "prince_devitt" text, "tiger_mask_iv" text ); Question: What is...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009" ( "block_a" text, "akira" text, "atsushi_aoki" text, "black_tiger_v" text, "jado" text, "milano_collection_a_t" text, "prince_devitt" text, "tiger_mask_iv" text ); Question: What is...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_by_club" ( "club" text, "premier_league" text, "championship_first_division" text, "league_one_second_division" text, "league_two_third_division" text ); Question: I want the league one...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the score of the home team when...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: How many points did the visiting team sc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_4" ( "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 that is larger tha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which Date has an Away team score of 11.7...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the total Crowd number for the Aw...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What did the team score when playing aga...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: How many people watched when st kilda pl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_22" ( "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 when the crowd was...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_22" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who was the home team when the venue was...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_22" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the average crowd size when the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" text, "opponent" text, "result" text, "game_site" text, "time" text, "attendance" text ); Question: I want to know the time which has attendance of 66,772 <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" text, "opponent" text, "result" text, "game_site" text, "time" text, "attendance" text ); Question: Name the opponent that has attendance of 76,965 <|assistant|> SELECT "op...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" text, "opponent" text, "result" text, "game_site" text, "time" text, "attendance" text ); Question: Tell me the week that has an attendance of 78,301 <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" text, "opponent" text, "result" text, "game_site" text, "time" text, "attendance" text ); Question: I want to know the opponent that ha a week of 3 <|assistant|> SELECT "op...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "premier_league" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" real ); Question: How many were in attendance on 14 April 2007? <|assistant|> SELECT MIN("attendance") ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "premier_league" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" real ); Question: What is the venue where there are more than 52,302 in attendance and the result is 2-...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "supplemental_first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "school" text ); Question: What is catcher Josh Donaldson's pick number? <|assistant|> SELECT "p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_two" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: Which players plays at Akron College? <|assistant|> SELECT "player" FROM "round_two" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_two" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: Which college does the player jon hameister-ries play for? <|assistant|> SELECT "colle...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "selections" ( "draft" real, "round" real, "pick" real, "nationality" text, "college_high_school_club" text ); Question: What is the nationality of the player with a pick larger than 21 from the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "challenge_cup" ( "date" text, "competition" text, "venue" text, "result" text, "score" text, "goals" text ); Question: I want the result for goals which has goals of deacon 6/6 <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "challenge_cup" ( "date" text, "competition" text, "venue" text, "result" text, "score" text, "goals" text ); Question: Which competition was at wilderspool? <|assistant|> SELECT "competition"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "challenge_cup" ( "date" text, "competition" text, "venue" text, "result" text, "score" text, "goals" text ); Question: Tell me the venue for score of 82-0 <|assistant|> SELECT "venue" FROM "c...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "challenge_cup" ( "date" text, "competition" text, "venue" text, "result" text, "score" text, "goals" text ); Question: I want the date with the venue of mcalpine stadium <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "challenge_cup" ( "date" text, "competition" text, "venue" text, "result" text, "score" text, "goals" text ); Question: Tell me the goals for score of 38-28 <|assistant|> SELECT "goals" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); Question: Tell me the least Grid with points more than 11 and drivers being sébastien bourd...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); Question: Name the most laps for grid more than 9 and the driver being jan heylen <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009" ( "2009_democratic_primary" text, "manhattan" text, "the_bronx" text, "brooklyn" text, "queens" text, "staten_island" text, "total" real ); Question: How many voted in queens for the ...
<|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 when the laps were 24? <|assistant|> SELECT COUNT("grid") FROM "...
<|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 constructed Chris Amon's car? <|assistant|> SELECT "constructor" FROM "classi...
<|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 was Jack Brabham's highest grid when his laps were more than 90? <|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 was CHris Amon's highest lap when his grid was 4? <|assistant|> SELECT MAX("...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Where did Hawthorn have their away match...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the home team score at Richmond...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_5" ( "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 away team score 14.4...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the size of the crowd for the hom...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What is the Time/Retired for the car going 42 Laps? <|assistant|> SELECT "time_retired" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: How many laps for alexander wurz with a grid under 12? <|assistant|> SELECT COUNT("laps") F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminary_competition" ( "state" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); Question: What is the lowest evening gown score a contestant with an average l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminary_competition" ( "state" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); Question: What is the total interview score a contestant from Indiana with an ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminary_competition" ( "state" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); Question: What is the highest swimsuit a contestant from Kansas with an averag...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminary_competition" ( "state" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); Question: What is the average interview score of a contestant from Louisiana w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "groups_containing_halogens" ( "chemical_class" text, "group" text, "formula" text, "prefix" text, "suffix" text, "example" text ); Question: What prefix has Haloalkane as the chemical class? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "groups_containing_halogens" ( "chemical_class" text, "group" text, "formula" text, "prefix" text, "suffix" text, "example" text ); Question: Which example has rx as the formula? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "groups_containing_halogens" ( "chemical_class" text, "group" text, "formula" text, "prefix" text, "suffix" text, "example" text ); Question: Which chemical class uses the example Chloroethane...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "groups_containing_halogens" ( "chemical_class" text, "group" text, "formula" text, "prefix" text, "suffix" text, "example" text ); Question: What prefix has Bromo as the group? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "groups_containing_halogens" ( "chemical_class" text, "group" text, "formula" text, "prefix" text, "suffix" text, "example" text ); Question: What is the chemical class for ri? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "groups_containing_halogens" ( "chemical_class" text, "group" text, "formula" text, "prefix" text, "suffix" text, "example" text ); Question: What prefix has chemical class Iodoalkane? <|assis...
<|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 of the player with earnings of $6,715,649? <|assistant|> SELECT MAX("ra...
<|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 rank of Lee Trevino, who had less than 27 wins? <|assistant|> SELECT SUM("rank") FRO...
<|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: Who is the player with more than $6,570,797 in earnings and less than 27 wins? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_2_2007_08" ( "series_no" real, "season_no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); Question: What date did the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_2_2007_08" ( "series_no" real, "season_no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); Question: Who wrote the seri...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_highest_grossing_bollywood_films" ( "year" real, "movie" text, "record_held" text, "studio_s" text, "nett_gross" real ); Question: What was the latest gross 75,50,00,000? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_highest_grossing_bollywood_films" ( "year" real, "movie" text, "record_held" text, "studio_s" text, "nett_gross" real ); Question: What is the total count of net gross in 1957? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "royal_bavaria" ( "name" text, "title" text, "start_term" real, "end_term" real, "house" text ); Question: What is the total End term with a Title of prince regent of bavaria? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "royal_bavaria" ( "name" text, "title" text, "start_term" real, "end_term" real, "house" text ); Question: What is the smallest End term with a Start term of 1913, and a Name of ludwig iii? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "royal_bavaria" ( "name" text, "title" text, "start_term" real, "end_term" real, "house" text ); Question: Which Title has an 1825 end term? <|assistant|> SELECT "title" FROM "royal_bavaria" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "royal_bavaria" ( "name" text, "title" text, "start_term" real, "end_term" real, "house" text ); Question: What is the average Start term with a 1912 end term? <|assistant|> SELECT AVG("start_te...
<|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 "sheffield_united_career" ( "division" text, "league_apps_sub" real, "league_goals" real, "fa_cup_apps_sub" text, "fa_cup_goals" real, "fl_cup_apps_sub" real, "fl_cup_goals" real, "other_ap...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sheffield_united_career" ( "division" text, "league_apps_sub" real, "league_goals" real, "fa_cup_apps_sub" text, "fa_cup_goals" real, "fl_cup_apps_sub" real, "fl_cup_goals" real, "other_ap...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sheffield_united_career" ( "division" text, "league_apps_sub" real, "league_goals" real, "fa_cup_apps_sub" text, "fa_cup_goals" real, "fl_cup_apps_sub" real, "fl_cup_goals" real, "other_ap...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sheffield_united_career" ( "division" text, "league_apps_sub" real, "league_goals" real, "fa_cup_apps_sub" text, "fa_cup_goals" real, "fl_cup_apps_sub" real, "fl_cup_goals" real, "other_ap...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who plays at Victoria Park? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "postseason_game_log" ( "game" real, "date" text, "opponent" text, "score" text, "loss" text, "save" text, "attendance" real, "record" text ); Question: What is the score against the india...
<|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 average grid for piers courage? <|assistant|> SELECT AVG("grid") FROM...
<|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 53 laps? <|assistant|> SELECT "driver" FROM "classification" WHERE "lap...
<|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 lap total for george eaton, with a grid under 17 retiring due to gear...
<|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 for denny hulme with under 4 on the grid? <|assistant|> SELECT SUM(...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: How many people were in the crowd when th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the sum of the crowd when the awa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the score of the home team when ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the sum of Crowd when Essendon wa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the home team score when North M...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "collaboration_singles" ( "year" real, "u_s_hot_100" text, "u_s_r_b" text, "u_s_rap" text, "album" text ); Question: What is the U.S. Hot 100 chart number of the single off of the 2002 album wes...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "collaboration_singles" ( "year" real, "u_s_hot_100" text, "u_s_r_b" text, "u_s_rap" text, "album" text ); Question: What is the U.S. Rap chart number of the album west coast bad boyz, vol. 3: p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft" ( "round" real, "pick" real, "player" text, "position" text, "team" text, "college" text ); Question: What is the top round for the baltimore bullets with a Pick larger than 6? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What team was the away team when the home...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What team was the away team when the home...