text
stringlengths
310
1.28k
<|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: I want the time/retired for grid of 24 <|assistant|> SELECT "time_retired" FROM "race" WHER...
<|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: I want the driver for ferrari who made Laps less than 26 and grids more than 9 <|assistant|...
<|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: Tell me the total number of grid for laps of 52 <|assistant|> SELECT COUNT("grid") FROM "ra...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: What's the record for january 10? <|assistant|> SELECT "rec...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: What's the score on january 5 with a hasek decision? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1995_draft_picks" ( "round" real, "overall" real, "player" text, "nationality" text, "club_team" text ); Question: What Club team has an average of 8, plays kaj linna, and has an overall larger...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1995_draft_picks" ( "round" real, "overall" real, "player" text, "nationality" text, "club_team" text ); Question: What round does Bryan Berard do? <|assistant|> SELECT "round" FROM "1995_draft...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ships_of_the_great_eastern_railway" ( "ship_s_name" text, "entered_service" text, "ended_service" text, "gross_tonnage" real, "type_of_vessel" text ); Question: Tell me the average gross tonnag...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ships_of_the_great_eastern_railway" ( "ship_s_name" text, "entered_service" text, "ended_service" text, "gross_tonnage" real, "type_of_vessel" text ); Question: I want the total number of gross...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season" ( "rank" real, "player" text, "county" text, "tally" text, "total" real, "matches" real, "average" real ); Question: what is the rank when the player is henry shefflin and the match...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season" ( "rank" real, "player" text, "county" text, "tally" text, "total" real, "matches" real, "average" real ); Question: what is the rank when the total is 39 in the county of dublin an...
<|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, "attendance" real ); Question: Who was the opponent on November 12, 1972? <|assistant|> SELECT "opponent" FROM "schedule" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "emd" ( "prr_class" text, "builder_s_model" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "service" text, "power_output" text ); Question: Who built the train in ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "emd" ( "prr_class" text, "builder_s_model" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "service" text, "power_output" text ); Question: What is the PRR class o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "emd" ( "prr_class" text, "builder_s_model" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "service" text, "power_output" text ); Question: What PRR class has a Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "c" ( "stations" text, "place" text, "managed_by" text, "platforms" real, "zone" real ); Question: Which Zone is the lowest when Managed By Southern and has Platforms under 2? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "c" ( "stations" text, "place" text, "managed_by" text, "platforms" real, "zone" real ); Question: What would be the highest Platforms for the Centrale Tram Stop Stations? <|assistant|> SELECT M...
<|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 grids had more than 61 laps? <|assistant|> SELECT SUM("grid") FROM "clas...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "pick" real, "round" real, "player" text, "position" text, "school" text ); Question: When parnell dickinson was the player and the rounds were under 7, what's the highest pick? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "pick" real, "round" real, "player" text, "position" text, "school" text ); Question: When the school picking is utah state for the position of linebacker, what's the sum of those ...
<|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 laps when the grid is less than 2? <|assistant|> SELECT "laps" 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 is the constructor when the grid is more than 23 and the driver is piercarlo ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text ); Question: When is the latest year the venue is in gothenburg, sweden? <|assistant|> SELECT MAX("year...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text ); Question: When is the earliest year the venue is in gothenburg, sweden? <|assistant|> SELECT MIN("ye...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text ); Question: What is the result of the european indoor championships after 1974? <|assistant|> SELECT "...
<|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: In Western Oval, what was the away team s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "rank" real, "name" text, "nation" text, "sp_fs" real, "points" real, "places" real ); Question: What is the place number for adrian vasile with less than 127.74 points? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "rank" real, "name" text, "nation" text, "sp_fs" real, "points" real, "places" real ); Question: What is the highest SP+FS that has 131.02 Points, and a Rank larger than 15? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_competition_scores" ( "country" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); Question: What is the highest evening gown score of the contestant from Ten...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_competition_scores" ( "country" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); Question: What is the average of the contestant with a swimsuit less than 9...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_competition_scores" ( "country" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); Question: What is the highest swimsuit score of the contestant with a highe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_competition_scores" ( "country" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); Question: What is the country of the contestant with a swimsuit of 9.46? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "shunsuke_nakamura_international_goals" ( "goal" real, "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: On what date did Goal 24 take place? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_qualifying_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What is the team 2 for team 1 of Valletta? <|assistant|> SELECT "team_2" FROM "fi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly_awards" ( "month" text, "week" real, "overall" text, "offensive" text, "defensive" text, "transition" text, "rookie" text ); Question: Who played defensive when the rookie Craig Poin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly_awards" ( "month" text, "week" real, "overall" text, "offensive" text, "defensive" text, "transition" text, "rookie" text ); Question: What was the first week that had a transition w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly_awards" ( "month" text, "week" real, "overall" text, "offensive" text, "defensive" text, "transition" text, "rookie" text ); Question: Who was the rookie who played when Matt Vinc wa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly_awards" ( "month" text, "week" real, "overall" text, "offensive" text, "defensive" text, "transition" text, "rookie" text ); Question: Who played as overall when Josh Sims was transi...
<|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: How large was the crowd at Glenferrie Ova...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_cast" ( "actor" text, "character" text, "title_rank" text, "series" text, "years" text ); Question: who is the actor of the character ariadne oliver? <|assistant|> SELECT "actor" 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: What is the largest grid with a Driver of ralph firman, and a Lap smaller than 18...
<|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 time/retired has a Grid larger than 3, and a Driver of kimi räikkönen? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text, "streak" text ); Question: What is the score on December 31? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "team_1" real, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What's the lowest team 1 number that had asolo fonte (veneto b) as the Agg.? <|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 total for kazuyoshi hoshino with under 71 laps? <|assistant|> SE...
<|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 driver has grid 2 and over 72 laps? <|assistant|> SELECT "driver" FROM "clas...
<|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 grid 23? <|assistant|> SELECT "time_retired" FROM "c...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the average of the top-25 of those with less than 35 events in th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the total number of events the Open Championship has with less th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the total number of events with a top-25 less than 0? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the total number of top-25 with a top-10 bigger than 2 and less t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the lowest number of events the Open Championship has with a less...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_19" ( "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 for the away team when...
<|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: Who was the home team when the away team ...
<|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: Who did Footscray play against when they ...
<|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: How many were in attendance when the away...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2001_fixtures_and_results" ( "date" text, "competition" text, "venue" text, "result" text, "score" text, "goals" text ); Question: Which result has a Score of 30-44? <|assistant|> SELECT "res...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2001_fixtures_and_results" ( "date" text, "competition" text, "venue" text, "result" text, "score" text, "goals" text ); Question: Which venue has h.paul 8/9 goals? <|assistant|> SELECT "venu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2001_fixtures_and_results" ( "date" text, "competition" text, "venue" text, "result" text, "score" text, "goals" text ); Question: What is the score at valley parade on 10/6/01? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2001_fixtures_and_results" ( "date" text, "competition" text, "venue" text, "result" text, "score" text, "goals" text ); Question: Which competition has a Date of 16/4/01? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "7_seats" ( "riding" text, "candidate" text, "gender" text, "residence" text, "occupation" text, "votes" real, "rank" text ); Question: What is the occupation of the candidate that has a rid...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notable_sinclair_totals_throughout_the_h" ( "weight_class_kg" real, "world_record_kg" text, "sinclair_coefficient" real, "sinclair_total" real, "rank" real ); Question: What is the average sinc...
<|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: Name the least attendance for may 6 <|assistant|> SELECT MIN("attendance") F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "satellite_television" ( "channel" real, "name" text, "language" text, "owner" text, "group" text, "type" text ); Question: Which ESPN international sports owner speaks English? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "satellite_television" ( "channel" real, "name" text, "language" text, "owner" text, "group" text, "type" text ); Question: Which type is filed under the Group Animated? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fa_premier_league" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" real ); Question: Which Date has an Opponent of newcastle united, and a Result of 2–1? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fa_premier_league" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" real ); Question: Which Date has an Opponent of manchester united, and a Venue A? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: In the game where Collingwood is the home...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_9" ( "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 teamscore for Richmond? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "at_home_prize" ( "season" text, "contestant" text, "height" text, "start_bmi" real, "start_weight" real, "recent_bmi" text ); Question: What contestant had a starting BMI of 42.2? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "at_home_prize" ( "season" text, "contestant" text, "height" text, "start_bmi" real, "start_weight" real, "recent_bmi" text ); Question: What is the recent BMI on season 8 for the person who's...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text ); Question: Which college has a pick below 6 for the PBA team the Shell Turbo Chargers? <|assis...
<|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's the crowd population of the home ...
<|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 is the visiting team that has a hom...
<|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: Which Venue has a Home team score of 13....
<|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: Which Home team has an Away team of fitz...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Where did the home team score 13.14 (92)...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who is the away team that scored 12.17 (...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Where did the home team score 14.21 (105...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What did the home team score when the aw...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What did the home team score when the aw...
<|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 venue is the home field of Richmond...
<|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 was the score of the away team in t...
<|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 was the score of the home team in t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "polling" ( "party" text, "results_2004" text, "csa_5_28_09" text, "ifop_5_30_09" text, "ipsos_5_30_09" text, "bva_6_1_09" text, "tns_sofres_6_2_09" text, "opinion_way_6_3_09" text, "ipso...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "polling" ( "party" text, "results_2004" text, "csa_5_28_09" text, "ifop_5_30_09" text, "ipsos_5_30_09" text, "bva_6_1_09" text, "tns_sofres_6_2_09" text, "opinion_way_6_3_09" text, "ipso...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "polling" ( "party" text, "results_2004" text, "csa_5_28_09" text, "ifop_5_30_09" text, "ipsos_5_30_09" text, "bva_6_1_09" text, "tns_sofres_6_2_09" text, "opinion_way_6_3_09" text, "ipso...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "polling" ( "party" text, "results_2004" text, "csa_5_28_09" text, "ifop_5_30_09" text, "ipsos_5_30_09" text, "bva_6_1_09" text, "tns_sofres_6_2_09" text, "opinion_way_6_3_09" text, "ipso...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "polling" ( "party" text, "results_2004" text, "csa_5_28_09" text, "ifop_5_30_09" text, "ipsos_5_30_09" text, "bva_6_1_09" text, "tns_sofres_6_2_09" text, "opinion_way_6_3_09" text, "ipso...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "polling" ( "party" text, "results_2004" text, "csa_5_28_09" text, "ifop_5_30_09" text, "ipsos_5_30_09" text, "bva_6_1_09" text, "tns_sofres_6_2_09" text, "opinion_way_6_3_09" text, "ipso...
<|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: In the match that had an away score of 11...
<|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: In the match where fitzroy was the away t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jersey_progress" ( "stage_winner" text, "general_classification" text, "mountains_classification" text, "points_classification" text, "sprints_classification" text, "team_classification" text ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jersey_progress" ( "stage_winner" text, "general_classification" text, "mountains_classification" text, "points_classification" text, "sprints_classification" text, "team_classification" text ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jersey_progress" ( "stage_winner" text, "general_classification" text, "mountains_classification" text, "points_classification" text, "sprints_classification" text, "team_classification" text ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "place" real, "name" text, "from" real, "until" real, "titles" text, "seconds" text, "thirds" text ); Question: How many in the From category had thirds of exactly 2 and an Until s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "place" real, "name" text, "from" real, "until" real, "titles" text, "seconds" text, "thirds" text ); Question: What is the second number when from is prior to 2006 and the thirds ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "place" real, "name" text, "from" real, "until" real, "titles" text, "seconds" text, "thirds" text ); Question: What is the total Until when the Titles was 5? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_qualifying_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: When Team 1 is Aalborg BK, what is the 1st Leg? <|assistant|> SELECT "1st_leg" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_qualifying_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: When Partizan is Team 2, what is the Agg? <|assistant|> SELECT "agg" FROM "secon...