text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s_rebroadcaster_of_cbqt_fm" ( "city_of_license" text, "identifier" text, "frequency" text, "power" text, "class" text, "rec_net" text ); Question: What is Power, when City of License is Sioux...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s_rebroadcaster_of_cbqt_fm" ( "city_of_license" text, "identifier" text, "frequency" text, "power" text, "class" text, "rec_net" text ); Question: What is Identifier, when City of License is ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s_rebroadcaster_of_cbqt_fm" ( "city_of_license" text, "identifier" text, "frequency" text, "power" text, "class" text, "rec_net" text ); Question: What is City of License, when Frequency is 1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "le_5_model_specifications" ( "le_5_model" text, "le_5" text, "le_5_a" text, "le_5_b" text, "le_5_b_2" text ); Question: Which LE-5 Model has an LE-5A of 130? <|assistant|> SELECT "le_5_model" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" text, "series" text, "team" text, "races" real, "wins" real, "poles" real, "podiums" real, "points" text, "position" text ); Question: What Series had 14 race...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" text, "series" text, "team" text, "races" real, "wins" real, "poles" real, "podiums" real, "points" text, "position" text ); Question: What season was the For...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" text, "series" text, "team" text, "races" real, "wins" real, "poles" real, "podiums" real, "points" text, "position" text ); Question: What series had more th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "newly_named_dinosaurs" ( "name" text, "novelty" text, "status" text, "authors" text, "unit" text, "location" text ); Question: What is the Status with an Author that is colbert? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text ); Question: What college was the draft pick number larger than 18 that went to the Barangay gin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text ); Question: What is the sum of the pick numbers for the player that went to San Miguel Beermen ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text ); Question: What is the total number of picks for PBA team san miguel beermen who picked rommel...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text ); Question: What player came from the United States and went to Ohlone college? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "year" real, "champions" text, "result" text, "runners_up" text, "playoffs_mvp" text ); Question: Who won after 1999 with changwon lg sakers as runners-up? <|assistant|> SELECT "cham...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "year" real, "champions" text, "result" text, "runners_up" text, "playoffs_mvp" text ); Question: What is the result for the champions jeonju kcc egis with runners-up seoul samsung t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "year" real, "venue" text, "winning_team" text, "score" text, "usa_captain" text, "europe_captain" text ); Question: What was the winning team in 2013? <|assistant|> SELECT "winnin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "year" real, "venue" text, "winning_team" text, "score" text, "usa_captain" text, "europe_captain" text ); Question: What is the highest year that Europe won, when the USA's Captai...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "year" real, "venue" text, "winning_team" text, "score" text, "usa_captain" text, "europe_captain" text ); Question: When the USA's captain was Beth Daniel, who was the winning tea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_by_season" ( "season" text, "tier" real, "league" text, "postseason" text, "european_competitions" text ); Question: What is the Season when league shows bundesliga, and a European compe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_by_season" ( "season" text, "tier" real, "league" text, "postseason" text, "european_competitions" text ); Question: What is the average Tier when the postseason shows -, and the season ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_by_season" ( "season" text, "tier" real, "league" text, "postseason" text, "european_competitions" text ); Question: What is the European competition when the tier is more than 2? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_7_4_titles_3_runner_ups" ( "outcome" text, "date_final" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: What was the outcome of the ma...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_7_4_titles_3_runner_ups" ( "outcome" text, "date_final" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: What was the outcome of the ma...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_b" ( "pos" real, "team" text, "wins" real, "ties" real, "losses" real, "goals" text, "diff" text, "points" text ); Question: How many average wins have USA as the team? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_b" ( "pos" real, "team" text, "wins" real, "ties" real, "losses" real, "goals" text, "diff" text, "points" text ); Question: What are the average wins that have great britain as the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick_num" real, "player" text, "position" text, "college" text ); Question: What's the average draft pick number from Carson-Newman College before Round 7? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick_num" real, "player" text, "position" text, "college" text ); Question: Which college has a pick number of 155? <|assistant|> SELECT "college" FROM "nfl_draft" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "itf_circuit_doubles_9_4_5" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: What score ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "itf_circuit_doubles_9_4_5" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: What surfac...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "itf_circuit_doubles_9_4_5" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: What outcom...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "itf_circuit_doubles_9_4_5" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: What score ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "itf_circuit_doubles_9_4_5" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: What date h...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" text, "date_weekend_of" text, "matches" real, "clubs" text, "prize_money" text ); Question: What is the Round with a Prize of money that is £120,000? <|assistant|> SELECT "r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" text, "date_weekend_of" text, "matches" real, "clubs" text, "prize_money" text ); Question: What is the Match with a Prize of money that is £1,000,000? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "film" ( "year" real, "title" text, "producer" text, "actor" text, "role" text ); Question: When alvin and the chipmunks meet frankenstein, what was the role? <|assistant|> SELECT "role" FROM "f...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "film" ( "year" real, "title" text, "producer" text, "actor" text, "role" text ); Question: What's the earliest year with a role of alvin seville simon seville david 'dave' seville, and a Title ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "film" ( "year" real, "title" text, "producer" text, "actor" text, "role" text ); Question: What's the average year for the Role of alvin seville simon seville david 'dave' seville, and a Title ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "film" ( "year" real, "title" text, "producer" text, "actor" text, "role" text ); Question: What was the role in the chipmunk adventure? <|assistant|> SELECT "role" FROM "film" WHERE "title"='th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "film" ( "year" real, "title" text, "producer" text, "actor" text, "role" text ); Question: What role was played in 2007? <|assistant|> SELECT "role" FROM "film" WHERE "year"=2007;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_car_series" ( "year" real, "team" text, "chassis" text, "engine" text, "rank" text, "points" real ); Question: What is the total number of points for the KV Racing Technology team when t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_car_series" ( "year" real, "team" text, "chassis" text, "engine" text, "rank" text, "points" real ); Question: Which engine has a chassis of dallara, is ranked 6th, and has 384 points? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_car_series" ( "year" real, "team" text, "chassis" text, "engine" text, "rank" text, "points" real ); Question: Which engine is used when there is a 3rd place rank and 513 points? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_car_series" ( "year" real, "team" text, "chassis" text, "engine" text, "rank" text, "points" real ); Question: What is the chassis when the rank is 3rd? <|assistant|> SELECT "chassis" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_car_series" ( "year" real, "team" text, "chassis" text, "engine" text, "rank" text, "points" real ); Question: What are the years that Andretti Autosport is a team? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_car_series" ( "year" real, "team" text, "chassis" text, "engine" text, "rank" text, "points" real ); Question: Which team is ranked 3rd in 2008? <|assistant|> SELECT "team" FROM "indy_ca...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "oilers_points" real, "opponents" real, "oilers_first_downs" real, "record" text, "attendance" real ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "oilers_points" real, "opponents" real, "oilers_first_downs" real, "record" text, "attendance" real ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "oilers_points" real, "opponents" real, "oilers_first_downs" real, "record" text, "attendance" real ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "country" text, "date" text, "label" text, "format" text, "catalog" text ); Question: What is the name of the country that has 18 May 2004 as the date? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "country" text, "date" text, "label" text, "format" text, "catalog" text ); Question: What catalog has Australia as the country? <|assistant|> SELECT "catalog" FROM "release_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "country" text, "date" text, "label" text, "format" text, "catalog" text ); Question: In what format was the release that was dated 7 April 2003 from catalog 584 2112? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "country" text, "date" text, "label" text, "format" text, "catalog" text ); Question: What date was the release when the format was lp? <|assistant|> SELECT "date" FROM "rele...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "country" text, "date" text, "label" text, "format" text, "catalog" text ); Question: What date is the release when the label was Parlophone and the catalog was 582 2912? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "country" text, "date" text, "label" text, "format" text, "catalog" text ); Question: What catalog has the United Kingdom as the country? <|assistant|> SELECT "catalog" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "a" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text ); Question: What is the nationality of the guard for the chool/Club Team in Virginia? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "a" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text ); Question: What is the School/Club Team with a nationality of United States for Arron...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "a" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text ); Question: What is the Years in Orlando for carlos arroyo? <|assistant|> SELECT "year...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "a" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text ); Question: What is the Player for Orlando in 1989–1991? <|assistant|> SELECT "player"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "a" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text ); Question: What is the Position for Orlando for 1989–1999? <|assistant|> SELECT "posi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mcla_division_2" ( "year" real, "team" text, "player" text, "position" text, "school" text ); Question: Which player was from Western Washington University, played midfield, and was from years ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mcla_division_2" ( "year" real, "team" text, "player" text, "position" text, "school" text ); Question: Which team was Bubba Vanegdom from? <|assistant|> SELECT "team" FROM "mcla_division_2" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mcla_division_2" ( "year" real, "team" text, "player" text, "position" text, "school" text ); Question: What was the position of the player from Pacific Lutheran University named Greg Fredlund ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mcla_division_2" ( "year" real, "team" text, "player" text, "position" text, "school" text ); Question: What was the position of Greg Fredlund in years after 2008? <|assistant|> SELECT "positio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text, "attendance" real ); Question: What home team has 8 ties? <|assistant|> SELECT "home_team" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "winner_male" text, "winner_female" text, "talent_male" text, "talent_female" text ); Question: What year had Kim Gevaert as the female winner and Xavier de Baerdemaeker...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "winner_male" text, "winner_female" text, "talent_male" text, "talent_female" text ); Question: Who is the female talent in 1999? <|assistant|> SELECT "talent_female" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "winner_male" text, "winner_female" text, "talent_male" text, "talent_female" text ); Question: Who is the male talent in 1991? <|assistant|> SELECT "talent_male" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "winner_male" text, "winner_female" text, "talent_male" text, "talent_female" text ); Question: Who is the male winner the year after 1998 with Marleen Renders as the fe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passing" ( "name" text, "gp_gs" text, "effic" real, "att_cmp_int" text, "avg_g" real ); Question: What is the lowest avg/g that has an effic greater than 34.36, with wesley carroll as the name?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passing" ( "name" text, "gp_gs" text, "effic" real, "att_cmp_int" text, "avg_g" real ); Question: What is the lowest avg/g that has 2-9-0 for the att-cmp-int? <|assistant|> SELECT MIN("avg_g") ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passing" ( "name" text, "gp_gs" text, "effic" real, "att_cmp_int" text, "avg_g" real ); Question: What is the att-cmp-int that has 12 for the gp-gs and 174.3 as the avg/g? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "volume_issue" text, "issue_date_s" text, "weeks_on_top" real, "song" text, "artist" text ); Question: What is the Song with an Issue Date(s) that is 19 june? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tunnels" ( "milepost" real, "name_of_the_tunnel" text, "length" text, "maximum_height" text, "minimum_height" text ); Question: What is the minimum Height of the Little Switzerland Tunnel? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tunnels" ( "milepost" real, "name_of_the_tunnel" text, "length" text, "maximum_height" text, "minimum_height" text ); Question: What is the Milepost of the Twin Tunnel #1 North? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_population" ( "rank" real, "province" text, "population" real, "area" real, "density" real ); Question: WHat is the number of Population has a Density of 50.09 and a Rank larger than 30? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_population" ( "rank" real, "province" text, "population" real, "area" real, "density" real ); Question: What is the Density that has a Population larger than 290,458, and an Area of 91.6? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "words_derived_from_non_indo_european_lan" ( "english" text, "german" text, "dutch" text, "icelandic" text, "latin" text, "greek" text, "russian" text ); Question: What is the Icelandic word...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "words_derived_from_non_indo_european_lan" ( "english" text, "german" text, "dutch" text, "icelandic" text, "latin" text, "greek" text, "russian" text ); Question: What is the ENglish word f...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "words_derived_from_non_indo_european_lan" ( "english" text, "german" text, "dutch" text, "icelandic" text, "latin" text, "greek" text, "russian" text ); Question: What is the Russian word f...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "words_derived_from_non_indo_european_lan" ( "english" text, "german" text, "dutch" text, "icelandic" text, "latin" text, "greek" text, "russian" text ); Question: What is the English word f...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "words_derived_from_non_indo_european_lan" ( "english" text, "german" text, "dutch" text, "icelandic" text, "latin" text, "greek" text, "russian" text ); Question: What is the Latin word for...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_ladder" ( "ballarat_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the lowest against that has bacchus marsh as a ballarat fl, with ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_ladder" ( "ballarat_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the lowest draws that have losses greater than 0, an against less...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_ladder" ( "ballarat_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: How many losses have byes greater than 2? <|assistant|> SELECT COUNT("los...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_ladder" ( "ballarat_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the lowest draws that have losses less than 0, an against greater...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "winner" text, "school" text, "position" text, "points" text, "pct_of_points_possible" text ); Question: What is the total year of the winner who plays the halfback po...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "winner" text, "school" text, "position" text, "points" text, "pct_of_points_possible" text ); Question: What is the year of the winner from the army school, plays the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "winner" text, "school" text, "position" text, "points" text, "pct_of_points_possible" text ); Question: What position does the winner from Ohio State with 412 points ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "winner" text, "school" text, "position" text, "points" text, "pct_of_points_possible" text ); Question: What is the % of points possible of the winner from Penn State...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "winner" text, "school" text, "position" text, "points" text, "pct_of_points_possible" text ); Question: What is the position of the winner with 792 points? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "at_vs" text, "opponent" text, "score" text, "attendance" real, "record" text ); Question: How many were in Attendance on February 21, 1988 against the New Jersey Sai...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "at_vs" text, "opponent" text, "score" text, "attendance" real, "record" text ); Question: What was the Opponent on February 6, 1988? <|assistant|> SELECT "opponent" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the highest Top-10, when Top-25 is 4, and when To...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is Wins, when Top-25 is less than 4, and when Top-5 ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the total number of Wins, when Top-25 is less tha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: Which home team played in the matchup with an away team of Liverpool? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What was the date of tie number 5? <|assistant|> SELECT "date" FROM "fourth_roun...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: Who was the away team for tie number 9? <|assistant|> SELECT "away_team" FROM "f...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What was the score of the replay at Millwall? <|assistant|> SELECT "score" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: Who was the home team for tie number 16? <|assistant|> SELECT "home_team" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the sum of the golds of the nation with 5 total and less than 0 bronze ...