text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wairoa_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: Which years have a Decile smaller than 2, and an Area of mohaka? <|assistant|> SELECT "years" FROM "wairoa_district" WHERE "decile"<2 AND "area"='mohaka';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wairoa_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: Which gender has an Authority of state, Years of 1–8, and a Decile smaller than 10, and a Roll of 36? <|assistant|> SELECT "gender" FROM "wairoa_district" WHERE "authority"='state' AND "years"='1–8' AND "decile"<10 AND "roll"=36;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wairoa_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: Which roll has an Area of mahia? <|assistant|> SELECT "roll" FROM "wairoa_district" WHERE "area"='mahia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wairoa_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: Which Decile has an Authority of state, a Roll smaller than 61, and an Area of kotemaori? <|assistant|> SELECT "decile" FROM "wairoa_district" WHERE "authority"='state' AND "roll"<61 AND "area"='kotemaori';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances" ( "name" text, "league" real, "play_offs" real, "fa_cup" real, "league_cup" real, "total" real ); Question: What's the highest League Cup with an FA Cup thats larger than 2? <|assistant|> SELECT MAX("league_cup") FROM "appearances" WHERE "fa_cup">2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances" ( "name" text, "league" real, "play_offs" real, "fa_cup" real, "league_cup" real, "total" real ); Question: What's the total number of FA Cup with a Play-offs of 3, and the Name of Mitch Cook Category:Articles with hCards and has a Total thats less than 11? <|assistant|> SELECT COUNT("fa_cup") FROM "appearances" WHERE "play_offs"=3 AND "name"='mitch cook category:articles with hcards' AND "total"<11;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances" ( "name" text, "league" real, "play_offs" real, "fa_cup" real, "league_cup" real, "total" real ); Question: What's the total of number of FA Cup that has a League small than 29 with Play-offs less than 0? <|assistant|> SELECT COUNT("fa_cup") FROM "appearances" WHERE "league"<29 AND "play_offs"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances" ( "name" text, "league" real, "play_offs" real, "fa_cup" real, "league_cup" real, "total" real ); Question: What's the lowest Play-offs with a League of 4 and FA Cup larger than 1? <|assistant|> SELECT MIN("play_offs") FROM "appearances" WHERE "league"=4 AND "fa_cup">1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances" ( "name" text, "league" real, "play_offs" real, "fa_cup" real, "league_cup" real, "total" real ); Question: What's the total number of League Cup with a Play-off larger than 2, and a Name of Mitch Cook Category:Articles with hCards? <|assistant|> SELECT COUNT("league_cup") FROM "appearances" WHERE "play_offs">2 AND "name"='mitch cook category:articles with hcards';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_kingdom" ( "episode_num" real, "title" text, "airdate" text, "viewers_millions" real, "channel_4_weekly_rank_a" real ); Question: What is the number for the Channel 4 weekly rank when there are more than 2.19 million viewers for the episode "zero worship" which was earlier than episode 34? <|assistant|> SELECT COUNT("channel_4_weekly_rank_a") FROM "united_kingdom" WHERE "viewers_millions">2.19 AND "title"='\"zero worship\"' AND "episode_num"<34;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_kingdom" ( "episode_num" real, "title" text, "airdate" text, "viewers_millions" real, "channel_4_weekly_rank_a" real ); Question: What is the average Channel 4 weekly rank for less than 2.19 million viewers on December 7, 2007? <|assistant|> SELECT AVG("channel_4_weekly_rank_a") FROM "united_kingdom" WHERE "viewers_millions"<2.19 AND "airdate"='december 7, 2007';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_kingdom" ( "episode_num" real, "title" text, "airdate" text, "viewers_millions" real, "channel_4_weekly_rank_a" real ); Question: What is the number of viewers in millions for the episode on October 10, 2008, and a Channel 4 weekly rank a smaller than 30? <|assistant|> SELECT COUNT("viewers_millions") FROM "united_kingdom" WHERE "airdate"='october 10, 2008' AND "channel_4_weekly_rank_a"<30;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ev_as" ( "start_date_time" text, "duration" text, "end_time" text, "spacecraft" text, "crew" text ); Question: What is the duration of the flight with end time of 21:06? <|assistant|> SELECT "duration" FROM "ev_as" WHERE "end_time"='21:06';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ev_as" ( "start_date_time" text, "duration" text, "end_time" text, "spacecraft" text, "crew" text ); Question: What is the spacecraft with end time of 4 September 04:51? <|assistant|> SELECT "spacecraft" FROM "ev_as" WHERE "end_time"='4 september 04:51';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ev_as" ( "start_date_time" text, "duration" text, "end_time" text, "spacecraft" text, "crew" text ); Question: What is the crew with the end time of 21:11? <|assistant|> SELECT "crew" FROM "ev_as" WHERE "end_time"='21:11';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ev_as" ( "start_date_time" text, "duration" text, "end_time" text, "spacecraft" text, "crew" text ); Question: What is the duration of the Expedition 20 ISS Zvezda? <|assistant|> SELECT "duration" FROM "ev_as" WHERE "spacecraft"='expedition 20 iss zvezda';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ev_as" ( "start_date_time" text, "duration" text, "end_time" text, "spacecraft" text, "crew" text ); Question: Who was the crew for the duration of 12 minutes? <|assistant|> SELECT "crew" FROM "ev_as" WHERE "duration"='12 minutes';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_world_championship_formula_one_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Name the sum of year for connaught engineering and points less than 0 <|assistant|> SELECT SUM("year") FROM "complete_world_championship_formula_one_" WHERE "entrant"='connaught engineering' AND "points"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_by_season_records" ( "year" text, "record_a" text, "win_pct" real, "league_b" text, "division_c" text, "gb_d" text, "post_season_record_e" text, "post_season_win_pct" text, "mlb_affiliate_f" text ); Question: What is the average win percentage of a season with a GB of 5? <|assistant|> SELECT AVG("win_pct") FROM "season_by_season_records" WHERE "gb_d"='5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What was the starting position of Joie Chitwood when he finished more than 200 laps? <|assistant|> SELECT "start" FROM "indy_500_results" WHERE "laps">200;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What is Chitwood's lowest completed number of laps with a qualifying time of 124.619? <|assistant|> SELECT MIN("laps") FROM "indy_500_results" WHERE "qual"='124.619';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1963_1998" ( "date" text, "venue" text, "score_a" text, "competition" text, "att" text ); Question: Which venue was used on 12 September 1998? <|assistant|> SELECT "venue" FROM "1963_1998" WHERE "date"='12 september 1998';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1963_1998" ( "date" text, "venue" text, "score_a" text, "competition" text, "att" text ); Question: What is the score [A] of the match at Vanuatu (n) on 5 September 1998? <|assistant|> SELECT "score_a" FROM "1963_1998" WHERE "venue"='vanuatu (n)' AND "date"='5 september 1998';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1963_1998" ( "date" text, "venue" text, "score_a" text, "competition" text, "att" text ); Question: What is the score [A] of the match on 19 September 1998? <|assistant|> SELECT "score_a" FROM "1963_1998" WHERE "date"='19 september 1998';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What was the score of the game when the record was 32–19–7? <|assistant|> SELECT "score" FROM "game_log" WHERE "record"='32–19–7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What was the date of the game when the record was 9–5–2? <|assistant|> SELECT "date" FROM "game_log" WHERE "record"='9–5–2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: Who was the home team when the record was 36–21–8? <|assistant|> SELECT "home" FROM "game_log" WHERE "record"='36–21–8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What was the date of the game when the Calgary Flames were the visiting team and there was a record of 1–2–0? <|assistant|> SELECT "date" FROM "game_log" WHERE "visitor"='calgary flames' AND "record"='1–2–0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: Who was the home team when the record was 27–14–6? <|assistant|> SELECT "home" FROM "game_log" WHERE "record"='27–14–6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "external_links" ( "representative" text, "years" text, "state" text, "party" text, "lifespan" text ); Question: What was the lifespan of Representative Harry P. O'neill from the state of Pennsylvania? <|assistant|> SELECT "lifespan" FROM "external_links" WHERE "state"='pennsylvania' AND "representative"='harry p. o''neill';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "external_links" ( "representative" text, "years" text, "state" text, "party" text, "lifespan" text ); Question: What years did Representative Frank A. Oliver serve? <|assistant|> SELECT "years" FROM "external_links" WHERE "representative"='frank a. oliver';<|endoftext|>
<|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, "time" text, "att" real, "record" text ); Question: Name the record for october 11 <|assistant|> SELECT "record" FROM "game_log" WHERE "date"='october 11';<|endoftext|>
<|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 score with record of 68-66 <|assistant|> SELECT "score" FROM "game_log" WHERE "record"='68-66';<|endoftext|>
<|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 record for august 28 <|assistant|> SELECT "record" FROM "game_log" WHERE "date"='august 28';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: What was the score for Leo Diegel? <|assistant|> SELECT "score" FROM "first_round" WHERE "player"='leo diegel';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: What is the name of the player with a To par of –4? <|assistant|> SELECT "player" FROM "first_round" WHERE "to_par"='–4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_20_10_10" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: What was the surface for the game that was played with partner Tiya Rolle? <|assistant|> SELECT "surface" FROM "doubles_20_10_10" WHERE "partner"='tiya rolle';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_20_10_10" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: What is the final score for the game played on January 10, 2011 with partner Mashona Washington? <|assistant|> SELECT "score" FROM "doubles_20_10_10" WHERE "partner"='mashona washington' AND "date"='january 10, 2011';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_20_10_10" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: What was the outcome for the game that was played on 07-Jun-2010? <|assistant|> SELECT "outcome" FROM "doubles_20_10_10" WHERE "date"='07-jun-2010';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_20_10_10" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: What is the score for the game that was played on 29-Jun-2009? <|assistant|> SELECT "score" FROM "doubles_20_10_10" WHERE "date"='29-jun-2009';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_20_10_10" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: What was the surface for the game that was played on 12-Apr-2005? <|assistant|> SELECT "surface" FROM "doubles_20_10_10" WHERE "date"='12-apr-2005';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "global_challenge_2004_5" ( "overall_place" text, "yacht_name" text, "skipper" text, "points" text, "combined_elapsed_time" text ); Question: What points has james allen as the skipper? <|assistant|> SELECT "points" FROM "global_challenge_2004_5" WHERE "skipper"='james allen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "global_challenge_2004_5" ( "overall_place" text, "yacht_name" text, "skipper" text, "points" text, "combined_elapsed_time" text ); Question: What is the name of the yacht where 12 is the overall place? <|assistant|> SELECT "yacht_name" FROM "global_challenge_2004_5" WHERE "overall_place"='12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "global_challenge_2004_5" ( "overall_place" text, "yacht_name" text, "skipper" text, "points" text, "combined_elapsed_time" text ); Question: Which skipper has a combine elapsed time of 174d 01h 11m 59s? <|assistant|> SELECT "skipper" FROM "global_challenge_2004_5" WHERE "combined_elapsed_time"='174d 01h 11m 59s';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "global_challenge_2004_5" ( "overall_place" text, "yacht_name" text, "skipper" text, "points" text, "combined_elapsed_time" text ); Question: Which skipper has barclays adventurer as the name of the yacht? <|assistant|> SELECT "skipper" FROM "global_challenge_2004_5" WHERE "yacht_name"='barclays adventurer';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "global_challenge_2004_5" ( "overall_place" text, "yacht_name" text, "skipper" text, "points" text, "combined_elapsed_time" text ); Question: What is the overall place that has 170d 11h 31m 10s as the combined elapsed time? <|assistant|> SELECT "overall_place" FROM "global_challenge_2004_5" WHERE "combined_elapsed_time"='170d 11h 31m 10s';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_judges" ( "state" text, "born_died" text, "chief_judge" text, "senior_status" text, "appointed_by" text, "reason_for_termination" text ); Question: What was the senior status for the judge who was terminated because of death, with a Chief Judge entry of β€”? <|assistant|> SELECT "senior_status" FROM "former_judges" WHERE "reason_for_termination"='death' AND "chief_judge"='β€”';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "paralympic_men" ( "classification" text, "fastest_time_s" real, "athlete" text, "country" text, "date" text, "location" text ); Question: What is the location of Classification of T12? <|assistant|> SELECT "location" FROM "paralympic_men" WHERE "classification"='t12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "paralympic_men" ( "classification" text, "fastest_time_s" real, "athlete" text, "country" text, "date" text, "location" text ); Question: What is the fastest time for athlete Jason Smyth? <|assistant|> SELECT "fastest_time_s" FROM "paralympic_men" WHERE "athlete"='jason smyth';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nominations" ( "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "no_10" text, "no_11" text, "no_12" text, "no_13" text, "no_14" text, "no_15" text, "final" text ); Question: What was the final of play No. 2, Alzira Ricardo B.? <|assistant|> SELECT "final" FROM "nominations" WHERE "no_2"='alzira ricardo b.';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nominations" ( "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "no_10" text, "no_11" text, "no_12" text, "no_13" text, "no_14" text, "no_15" text, "final" text ); Question: What was the No. 10 team that has No. 8 of Diana? <|assistant|> SELECT "no_10" FROM "nominations" WHERE "no_8"='diana';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Name the total number of years for chassis of ensign n175 <|assistant|> SELECT COUNT("year") FROM "complete_formula_one_world_championship_" WHERE "chassis"='ensign n175';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: What was the Blue Jays lowest attendance when their record was 52-48? <|assistant|> SELECT MIN("attendance") FROM "game_log" WHERE "record"='52-48';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "home_away" text, "field" text, "result" text ); Question: What is the result when you play at home against Pride <|assistant|> SELECT "result" FROM "schedule" WHERE "home_away"='home' AND "opponent"='pride';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "home_away" text, "field" text, "result" text ); Question: What is the result of games played at frontier field <|assistant|> SELECT "result" FROM "schedule" WHERE "field"='frontier field';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "home_away" text, "field" text, "result" text ); Question: What days were games played at Hofstra Stadium? <|assistant|> SELECT "date" FROM "schedule" WHERE "field"='hofstra stadium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "home_away" text, "field" text, "result" text ); Question: What Field was played at in an away game against the bayhawks? <|assistant|> SELECT "field" FROM "schedule" WHERE "home_away"='away' AND "opponent"='bayhawks';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What is the score of the game played on February 18? <|assistant|> SELECT "score" FROM "regular_season" WHERE "date"='february 18';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: Who was the home team that played against the Boston Bruins on January 11? <|assistant|> SELECT "home" FROM "regular_season" WHERE "visitor"='boston bruins' AND "date"='january 11';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_euro_basket_2007_squads" ( "player" text, "height" real, "position" text, "year_born" real, "current_club" text ); Question: Name the sum of year for olimpija ljubljana with height less than 2.04 <|assistant|> SELECT SUM("year_born") FROM "fiba_euro_basket_2007_squads" WHERE "current_club"='olimpija ljubljana' AND "height"<2.04;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_euro_basket_2007_squads" ( "player" text, "height" real, "position" text, "year_born" real, "current_club" text ); Question: Name the position with height of 2.09 <|assistant|> SELECT "position" FROM "fiba_euro_basket_2007_squads" WHERE "height"=2.09;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: What was the attendance at the ballpark during the game where the Blue Jays had a record of 26-35 during the 1996 season? <|assistant|> SELECT COUNT("attendance") FROM "game_log" WHERE "record"='26-35';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "nominated_work" text, "result" text ); Question: What nominated work received a tony award in 2009? <|assistant|> SELECT "nominated_work" FROM "awards_and_nominations" WHERE "award"='tony award' AND "year"=2009;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "nominated_work" text, "result" text ); Question: What result in the table is from the year 2012? <|assistant|> SELECT "result" FROM "awards_and_nominations" WHERE "year"=2012;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_doubles" ( "tournament" text, "2008" text, "2010" text, "2011" text, "2012" text, "2013" text ); Question: Name the 2011 with 2010 of 2r <|assistant|> SELECT "2011" FROM "women_s_doubles" WHERE "2010"='2r';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_doubles" ( "tournament" text, "2008" text, "2010" text, "2011" text, "2012" text, "2013" text ); Question: Name the 2012 when 2011 is qf <|assistant|> SELECT "2012" FROM "women_s_doubles" WHERE "2011"='qf';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_doubles" ( "tournament" text, "2008" text, "2010" text, "2011" text, "2012" text, "2013" text ); Question: Name the 2012 for 2011 being 1r <|assistant|> SELECT "2012" FROM "women_s_doubles" WHERE "2011"='1r';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_doubles" ( "tournament" text, "2008" text, "2010" text, "2011" text, "2012" text, "2013" text ); Question: Name the 2012 for 2011 being qf <|assistant|> SELECT "2012" FROM "women_s_doubles" WHERE "2011"='qf';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_doubles" ( "tournament" text, "2008" text, "2010" text, "2011" text, "2012" text, "2013" text ); Question: Name the 2008 for 2012 f <|assistant|> SELECT "2008" FROM "women_s_doubles" WHERE "2012"='f';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "recent_results_and_forthcoming_fixtures" ( "date" text, "location" text, "score" text, "scorers_for_chad" text, "competition" text ); Question: What is the location of the match on February 29, 2012? <|assistant|> SELECT "location" FROM "recent_results_and_forthcoming_fixtures" WHERE "date"='february 29, 2012';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "recent_results_and_forthcoming_fixtures" ( "date" text, "location" text, "score" text, "scorers_for_chad" text, "competition" text ); Question: What is the score of the match on November 15, 2011? <|assistant|> SELECT "score" FROM "recent_results_and_forthcoming_fixtures" WHERE "date"='november 15, 2011';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "race" real, "circuit" text, "location_state" text, "date" text, "winner" text, "team" text ); Question: How many races were in the Mallala Motor Sport Park circuit? <|assistant|> SELECT COUNT("race") FROM "race_calendar" WHERE "circuit"='mallala motor sport park';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "race" real, "circuit" text, "location_state" text, "date" text, "winner" text, "team" text ); Question: What was the first race in Launceston, Tasmania? <|assistant|> SELECT MIN("race") FROM "race_calendar" WHERE "location_state"='launceston, tasmania';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_16" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: Name the 2nd leg for team 1 of hamburg <|assistant|> SELECT "2nd_leg" FROM "round_of_16" WHERE "team_1"='hamburg';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1935" ( "title" text, "studio" text, "role" text, "leading_lady" text, "director" text ); Question: Name the role for mono studio and title of paradise canyon <|assistant|> SELECT "role" FROM "1935" WHERE "studio"='mono' AND "title"='paradise canyon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1935" ( "title" text, "studio" text, "role" text, "leading_lady" text, "director" text ); Question: Name the title for marion burns leading lady and role of john mason <|assistant|> SELECT "title" FROM "1935" WHERE "leading_lady"='marion burns' AND "role"='john mason';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1935" ( "title" text, "studio" text, "role" text, "leading_lady" text, "director" text ); Question: Name the role for studio of rep with sheila mannors leading lady and title of westward ho <|assistant|> SELECT "role" FROM "1935" WHERE "studio"='rep' AND "leading_lady"='sheila mannors' AND "title"='westward ho';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1935" ( "title" text, "studio" text, "role" text, "leading_lady" text, "director" text ); Question: Name the studio for john scott <|assistant|> SELECT "studio" FROM "1935" WHERE "role"='john scott';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "emigration_of_jews_and_their_family_memb" ( "year" text, "total_000s" real, "israel" real, "germany" real, "jews_halakha_in_israel" text ); Question: What is the amount of 000s from 1996? <|assistant|> SELECT SUM("total_000s") FROM "emigration_of_jews_and_their_family_memb" WHERE "year"='1996';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "emigration_of_jews_and_their_family_memb" ( "year" text, "total_000s" real, "israel" real, "germany" real, "jews_halakha_in_israel" text ); Question: What was the amount of 000s when Germany had 16.6? <|assistant|> SELECT "total_000s" FROM "emigration_of_jews_and_their_family_memb" WHERE "germany"=16.6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_appearances" ( "player" text, "period" text, "league" real, "concacaf" real, "libertadores" real, "merconorte" real, "inter_liga" real, "superliga" real, "matches" real ); Question: Name the average concacaf for merconorte larger than 0 and player of jared borgetti <|assistant|> SELECT AVG("concacaf") FROM "most_appearances" WHERE "merconorte">0 AND "player"='jared borgetti' AND "superliga">0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_appearances" ( "player" text, "period" text, "league" real, "concacaf" real, "libertadores" real, "merconorte" real, "inter_liga" real, "superliga" real, "matches" real ); Question: Name the least merconorte for interliga of 2 and matches more than 260 with superliga more than 7 <|assistant|> SELECT MIN("merconorte") FROM "most_appearances" WHERE "inter_liga"=2 AND "matches">260 AND "superliga">7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_8_4" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents_in_final" text, "score_in_final" text ); Question: What was the outcome for the match that ended in a score of 5–7, 6–4, [10–7]? <|assistant|> SELECT "outcome" FROM "doubles_8_4" WHERE "score_in_final"='5–7, 6–4, [10–7]';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_8_4" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents_in_final" text, "score_in_final" text ); Question: What was the surface of the match that ended in a score of 5–7, 6–4, [10–7]? <|assistant|> SELECT "surface" FROM "doubles_8_4" WHERE "score_in_final"='5–7, 6–4, [10–7]';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_8_4" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents_in_final" text, "score_in_final" text ); Question: Who were the opponents in the match or matches that ended in a score of W/O? <|assistant|> SELECT "opponents_in_final" FROM "doubles_8_4" WHERE "score_in_final"='w/o';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: What kind of Chassis supports a Maserati Straight-6 engine with Points greater than 0 and built in the year 1955? <|assistant|> SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "engine"='maserati straight-6' AND "points">0 AND "year"=1955;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: What kind of Chassis supports an Equipe Gordini Entrant? <|assistant|> SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "entrant"='equipe gordini';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: What kind of Entrant has a Maserati Straight-6 Engine, built in the year 1958 or early, and has a Maserati 250f Chassis with points less than 4? <|assistant|> SELECT "entrant" FROM "complete_formula_one_world_championship_" WHERE "engine"='maserati straight-6' AND "year"<1958 AND "chassis"='maserati 250f' AND "points"<4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: What is the average year for Maserati Straight-4 Engines? <|assistant|> SELECT AVG("year") FROM "complete_formula_one_world_championship_" WHERE "engine"='maserati straight-4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); Question: Name the sum of ERP W for class of d and frequency mhz of 98.7 <|assistant|> SELECT SUM("erp_w") FROM "translators" WHERE "class"='d' AND "frequency_m_hz"=98.7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); Question: Name the ERP W with a frequency mhz more than 93.3 and city license of washington, georgia <|assistant|> SELECT "erp_w" FROM "translators" WHERE "frequency_m_hz">93.3 AND "city_of_license"='washington, georgia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "location" text ); Question: Which record has a result of loss in the Hero's 3 event? <|assistant|> SELECT "record" FROM "mixed_martial_arts_record" WHERE "res"='loss' AND "event"='hero''s 3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "location" text ); Question: Which event led to a 4-0 record? <|assistant|> SELECT "event" FROM "mixed_martial_arts_record" WHERE "record"='4-0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "location" text ); Question: Which location led to a 10-3 record? <|assistant|> SELECT "location" FROM "mixed_martial_arts_record" WHERE "record"='10-3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "location" text ); Question: In the match against Masahiro Oishi, what was the record? <|assistant|> SELECT "record" FROM "mixed_martial_arts_record" WHERE "opponent"='masahiro oishi';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_round" ( "team" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: What is the fewest number of points for clubs with less than 2 draws and more than 8 matches played? <|assistant|> SELECT MIN("points") FROM "league_round" WHERE "drawn"<2 AND "played">8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_round" ( "team" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: What is the fewest drawn matches for teams with 2 points and fewer than 6 losses? <|assistant|> SELECT MIN("drawn") FROM "league_round" WHERE "points"=2 AND "lost"<6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_round" ( "team" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: What is the most number of losses for Quetta Zorawar? <|assistant|> SELECT MAX("lost") FROM "league_round" WHERE "team"='quetta zorawar';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_round" ( "team" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: What is the sum of the drawn values for teams with 2 losses? <|assistant|> SELECT SUM("drawn") FROM "league_round" WHERE "lost"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "greatest_winning_margins" ( "rank" text, "margin" text, "club" text, "opponent" text, "year" text, "round" text, "venue" text ); Question: which round has a margin of 178? <|assistant|> SELECT "round" FROM "greatest_winning_margins" WHERE "margin"='178';<|endoftext|>