text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_season" ( "year" text, "class" text, "team" text, "bike" text, "races" real, "wins" real, "podiums" real, "poles" real, "f_laps" real, "points" real ); Question: How many Poles have a Class of 125cc, and a Team of matteoni racing team, and Points larger than 3? <|assistant|> SELECT SUM("poles") FROM "by_season" WHERE "class"='125cc' AND "team"='matteoni racing team' AND "points">3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_season" ( "year" text, "class" text, "team" text, "bike" text, "races" real, "wins" real, "podiums" real, "poles" real, "f_laps" real, "points" real ); Question: How many Podiums have a Class of 250cc, and an F laps of 0? <|assistant|> SELECT SUM("podiums") FROM "by_season" WHERE "class"='250cc' AND "f_laps"=0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stadia_and_attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real ); Question: Team of elgin city, and a Highest smaller than 537 had what total number of average? <|assistant|> SELECT COUNT("average") FROM "stadia_and_attendances" WHERE "team"='elgin city' AND "highest"<537;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stadia_and_attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real ); Question: Average larger than 450, and a Capacity smaller than 5,177, and a Stadium of ochilview park is what sum of the highest? <|assistant|> SELECT SUM("highest") FROM "stadia_and_attendances" WHERE "average">450 AND "capacity"<'5,177' AND "stadium"='ochilview park';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stadia_and_attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real ); Question: Capacity smaller than 3,292, and a Highest larger than 812, and a Stadium of strathclyde homes stadium has what sum of the average? <|assistant|> SELECT SUM("average") FROM "stadia_and_attendances" WHERE "capacity"<'3,292' AND "highest">812 AND "stadium"='strathclyde homes stadium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stadia_and_attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real ); Question: Lowest larger than 288, and a Team of east stirlingshire has what lowest average? <|assistant|> SELECT MIN("average") FROM "stadia_and_attendances" WHERE "lowest">288 AND "team"='east stirlingshire';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "locomotives" ( "locomotive" text, "entered_service" text, "owner" text, "operator" text, "livery" text, "status" text ); Question: what is the owner of the c501 <|assistant|> SELECT "owner" FROM "locomotives" WHERE "locomotive"='c501';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "december" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which Record has a Game larger than 32, and a December smaller than 21? <|assistant|> SELECT "record" FROM "regular_season" WHERE "game">32 AND "december"<21;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "december" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which Score has Points larger than 46, and a Game smaller than 35, and a December of 21? <|assistant|> SELECT "score" FROM "regular_season" WHERE "points">46 AND "game"<35 AND "december"=21;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "december" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which December is the lowest one that has Points of 52? <|assistant|> SELECT MIN("december") FROM "regular_season" WHERE "points"=52;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "december" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which December has Points of 48, and a Game larger than 33? <|assistant|> SELECT SUM("december") FROM "regular_season" WHERE "points"=48 AND "game">33;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions_by_year" ( "year" text, "regular_season_champion_s" text, "record" text, "tournament_champion" text, "tournament_venue" text, "tournament_city" text ); Question: WHich Regular Season Champions has a Year of 1943–44? <|assistant|> SELECT "regular_season_champion_s" FROM "champions_by_year" WHERE "year"='1943–44';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions_by_year" ( "year" text, "regular_season_champion_s" text, "record" text, "tournament_champion" text, "tournament_venue" text, "tournament_city" text ); Question: WHich Tournament venue has a Tournament Champion of duke and a Record of 15–1? <|assistant|> SELECT "tournament_venue" FROM "champions_by_year" WHERE "tournament_champion"='duke' AND "record"='15–1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions_by_year" ( "year" text, "regular_season_champion_s" text, "record" text, "tournament_champion" text, "tournament_venue" text, "tournament_city" text ); Question: When has a Tournament venue of richmond arena, and a Record of 12–1, and a Regular Season Champion(s) of virginia tech? <|assistant|> SELECT "year" FROM "champions_by_year" WHERE "tournament_venue"='richmond arena' AND "record"='12–1' AND "regular_season_champion_s"='virginia tech';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions_by_year" ( "year" text, "regular_season_champion_s" text, "record" text, "tournament_champion" text, "tournament_venue" text, "tournament_city" text ); Question: When has a Record of 9–1, and a Tournament Champion of duke? <|assistant|> SELECT "year" FROM "champions_by_year" WHERE "record"='9–1' AND "tournament_champion"='duke';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions_by_year" ( "year" text, "regular_season_champion_s" text, "record" text, "tournament_champion" text, "tournament_venue" text, "tournament_city" text ); Question: Which Regular Season Champion(s) has a Tournament Champion of west virginia in 1955–56? <|assistant|> SELECT "regular_season_champion_s" FROM "champions_by_year" WHERE "tournament_champion"='west virginia' AND "year"='1955–56';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions_by_year" ( "year" text, "regular_season_champion_s" text, "record" text, "tournament_champion" text, "tournament_venue" text, "tournament_city" text ); Question: Which Regular Season Champion(s) has a Record of 9–0, and a Tournament Champion of north carolina? <|assistant|> SELECT "regular_season_champion_s" FROM "champions_by_year" WHERE "record"='9–0' AND "tournament_champion"='north carolina';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: What is the lowest round for a player selected from a college of New Hampshire? <|assistant|> SELECT MIN("round") FROM "draft_picks" WHERE "college_junior_club_team_league"='new hampshire';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: What nationality is Rod Langway? <|assistant|> SELECT "nationality" FROM "draft_picks" WHERE "player"='rod langway';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: What position is the player selected that has a round value over 3? <|assistant|> SELECT "position" FROM "draft_picks" WHERE "round">3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: What college did the player selected in rounds over 3 play for? <|assistant|> SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "round">3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: What is the highest round that has a player selected from Clarkson University? <|assistant|> SELECT MAX("round") FROM "draft_picks" WHERE "college_junior_club_team_league"='clarkson university';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000" ( "rank" real, "name" text, "headquarters" text, "primary_industry" text, "market_value_usd_million" real ); Question: What is the lowest rank of Deutsche Telekom with a market value over 209,628? <|assistant|> SELECT MIN("rank") FROM "2000" WHERE "name"='deutsche telekom' AND "market_value_usd_million">'209,628';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000" ( "rank" real, "name" text, "headquarters" text, "primary_industry" text, "market_value_usd_million" real ); Question: What is the total market value of all corporations headquartered in Germany? <|assistant|> SELECT COUNT("market_value_usd_million") FROM "2000" WHERE "headquarters"='germany';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real ); Question: What is the lowest earnings of Vijay Singh who had more than 24 wins? <|assistant|> SELECT MIN("earnings") FROM "leaders" WHERE "player"='vijay singh' AND "wins">24;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ranking" ( "rank" real, "centre" text, "country" text, "rating" real, "change" real ); Question: Which Rank is the highest one that has a Change smaller than 44, and a Centre of buenos aires, and a Rating larger than 628? <|assistant|> SELECT MAX("rank") FROM "ranking" WHERE "change"<44 AND "centre"='buenos aires' AND "rating">628;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ranking" ( "rank" real, "centre" text, "country" text, "rating" real, "change" real ); Question: Which Centre has a Rank of 42? <|assistant|> SELECT "centre" FROM "ranking" WHERE "rank"=42;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ranking" ( "rank" real, "centre" text, "country" text, "rating" real, "change" real ); Question: Which Rating has a Centre of helsinki? <|assistant|> SELECT SUM("rating") FROM "ranking" WHERE "centre"='helsinki';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ranking" ( "rank" real, "centre" text, "country" text, "rating" real, "change" real ); Question: Which Change is the average one that has a Centre of buenos aires, and a Rank smaller than 46? <|assistant|> SELECT AVG("change") FROM "ranking" WHERE "centre"='buenos aires' AND "rank"<46;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparison_of_theoretic_bounds_for_varia" ( "operation" text, "binary" text, "binomial" text, "fibonacci" text, "pairing" text, "brodal" text, "strict_fibonacci_heap" text ); Question: Binomial of θ(log n), and a Strict Fibonacci Heap of o(log n) is what operation? <|assistant|> SELECT "operation" FROM "comparison_of_theoretic_bounds_for_varia" WHERE "binomial"='θ(log n)' AND "strict_fibonacci_heap"='o(log n)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparison_of_theoretic_bounds_for_varia" ( "operation" text, "binary" text, "binomial" text, "fibonacci" text, "pairing" text, "brodal" text, "strict_fibonacci_heap" text ); Question: Operation of find-min has what Fibonacci? <|assistant|> SELECT "fibonacci" FROM "comparison_of_theoretic_bounds_for_varia" WHERE "operation"='find-min';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparison_of_theoretic_bounds_for_varia" ( "operation" text, "binary" text, "binomial" text, "fibonacci" text, "pairing" text, "brodal" text, "strict_fibonacci_heap" text ); Question: Binomial of θ(1) has what pairing? <|assistant|> SELECT "pairing" FROM "comparison_of_theoretic_bounds_for_varia" WHERE "binomial"='θ(1)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparison_of_theoretic_bounds_for_varia" ( "operation" text, "binary" text, "binomial" text, "fibonacci" text, "pairing" text, "brodal" text, "strict_fibonacci_heap" text ); Question: Pairing of θ(1), and a Binomial of θ(1) is what binary? <|assistant|> SELECT "binary" FROM "comparison_of_theoretic_bounds_for_varia" WHERE "pairing"='θ(1)' AND "binomial"='θ(1)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparison_of_theoretic_bounds_for_varia" ( "operation" text, "binary" text, "binomial" text, "fibonacci" text, "pairing" text, "brodal" text, "strict_fibonacci_heap" text ); Question: Operation of find-min has what binary? <|assistant|> SELECT "binary" FROM "comparison_of_theoretic_bounds_for_varia" WHERE "operation"='find-min';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparison_of_theoretic_bounds_for_varia" ( "operation" text, "binary" text, "binomial" text, "fibonacci" text, "pairing" text, "brodal" text, "strict_fibonacci_heap" text ); Question: Binary of θ(log n), and a Fibonacci of θ(1) has what binomial? <|assistant|> SELECT "binomial" FROM "comparison_of_theoretic_bounds_for_varia" WHERE "binary"='θ(log n)' AND "fibonacci"='θ(1)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "track_listing" ( "title" text, "translation" text, "lyricist" text, "composer" text, "duration" text ); Question: Which of the titles have a duration time of 4:57? <|assistant|> SELECT "title" FROM "track_listing" WHERE "duration"='4:57';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "track_listing" ( "title" text, "translation" text, "lyricist" text, "composer" text, "duration" text ); Question: What composer has a duration time of 3:31? <|assistant|> SELECT "composer" FROM "track_listing" WHERE "duration"='3:31';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "track_listing" ( "title" text, "translation" text, "lyricist" text, "composer" text, "duration" text ); Question: Which one of the duration has a translation of 1000 lies? <|assistant|> SELECT "duration" FROM "track_listing" WHERE "translation"='1000 lies';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "track_listing" ( "title" text, "translation" text, "lyricist" text, "composer" text, "duration" text ); Question: Which title has a translation of I know in it? <|assistant|> SELECT "title" FROM "track_listing" WHERE "translation"='i know';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "track_listing" ( "title" text, "translation" text, "lyricist" text, "composer" text, "duration" text ); Question: Which title has a translation in it of 1000 lies? <|assistant|> SELECT "title" FROM "track_listing" WHERE "translation"='1000 lies';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_winners" ( "event" text, "gold" text, "silver" text, "bronze" text, "4th_place" text ); Question: Who won the gold when Bertil Ahlin Sweden won the silver? <|assistant|> SELECT "gold" FROM "medal_winners" WHERE "silver"='bertil ahlin sweden';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_winners" ( "event" text, "gold" text, "silver" text, "bronze" text, "4th_place" text ); Question: Who won the gold when Jules van Dyk Belgium won bronze? <|assistant|> SELECT "gold" FROM "medal_winners" WHERE "bronze"='jules van dyk belgium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_a" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text, "alternate" text ); Question: Who is the second for the curling team which has alternate Margarita Fomina? <|assistant|> SELECT "second" FROM "group_a" WHERE "alternate"='margarita fomina';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_a" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text, "alternate" text ); Question: Who is the second for the team with alternate Margarita Fomina? <|assistant|> SELECT "second" FROM "group_a" WHERE "alternate"='margarita fomina';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_a" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text, "alternate" text ); Question: Who is the alternate for the team for which Monika Wagner is the third? <|assistant|> SELECT "alternate" FROM "group_a" WHERE "third"='monika wagner';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_a" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text, "alternate" text ); Question: Who is the lead for the team with Nkeiruka Ezekh as second? <|assistant|> SELECT "lead" FROM "group_a" WHERE "second"='nkeiruka ezekh';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_a" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text, "alternate" text ); Question: Who is the lead for the team with Christina Haller as alternate? <|assistant|> SELECT "lead" FROM "group_a" WHERE "alternate"='christina haller';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "county" text, "monument_name" text, "year_built" real, "city_or_town" text, "latitude" text, "longitude" text ); Question: What County was built after 1920 with a Latitude of 37°40′30"n? <|assistant|> SELECT "county" FROM "references" WHERE "year_built">1920 AND "latitude"='37°40′30\"n';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "county" text, "monument_name" text, "year_built" real, "city_or_town" text, "latitude" text, "longitude" text ); Question: What is the Latitude of the monument built in 1901? <|assistant|> SELECT "latitude" FROM "references" WHERE "year_built"=1901;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "county" text, "monument_name" text, "year_built" real, "city_or_town" text, "latitude" text, "longitude" text ); Question: What is the City or Town of the monument with a Longitude of 89°11′w? <|assistant|> SELECT "city_or_town" FROM "references" WHERE "longitude"='89°11′w';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "county" text, "monument_name" text, "year_built" real, "city_or_town" text, "latitude" text, "longitude" text ); Question: What Monument was built after 1887 in Warren County? <|assistant|> SELECT "monument_name" FROM "references" WHERE "year_built">1887 AND "county"='warren';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "county" text, "monument_name" text, "year_built" real, "city_or_town" text, "latitude" text, "longitude" text ); Question: What County has a Longitude of 85°45′43″w? <|assistant|> SELECT "county" FROM "references" WHERE "longitude"='85°45′43″w';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_6" ( "date" text, "tournament" text, "surface" text, "partner" text, "opponent_in_the_final" text, "score" text ); Question: What is the Opponent from the final with a Partner named jorgelina cravero? <|assistant|> SELECT "opponent_in_the_final" FROM "doubles_6" WHERE "partner"='jorgelina cravero';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_23_12_11" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: What was the outcome for the match at the leipzig tournament with a score w/o? <|assistant|> SELECT "outcome" FROM "singles_23_12_11" WHERE "tournament"='leipzig' AND "score"='w/o';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_23_12_11" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: Who was the opponent that anke huber played against in the leipzig tournament? <|assistant|> SELECT "opponent" FROM "singles_23_12_11" WHERE "tournament"='leipzig';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_23_12_11" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: What was the outcome of the match against Magdalena Maleeva? <|assistant|> SELECT "outcome" FROM "singles_23_12_11" WHERE "opponent"='magdalena maleeva';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What is the name of the player that was Pick 15? <|assistant|> SELECT "player" FROM "round_one" WHERE "pick_num"='15';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: To which college/junior/club team did the player that was Pick 12 belong? <|assistant|> SELECT "college_junior_club_team" FROM "round_one" WHERE "pick_num"='12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What NHL team has a player in the position of Left Wing that came from the Toronto Marlboros (omjhl)? <|assistant|> SELECT "nhl_team" FROM "round_one" WHERE "position"='left wing' AND "college_junior_club_team"='toronto marlboros (omjhl)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: To which college/junior/club team did the player that was Pick 16 belong? <|assistant|> SELECT "college_junior_club_team" FROM "round_one" WHERE "pick_num"='16';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "theatre_credits" ( "year" real, "production" text, "role" text, "director" text, "company" text ); Question: What company does Simon Stone direct earlier than 2011? <|assistant|> SELECT "company" FROM "theatre_credits" WHERE "director"='simon stone' AND "year"<2011;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "brazil_national_team" ( "date" text, "result" text, "score" text, "brazil_scorers" text, "competition" text ); Question: Which Result has a Competition of world cup qualifying, and a Date of march 21, 1954? <|assistant|> SELECT "result" FROM "brazil_national_team" WHERE "competition"='world cup qualifying' AND "date"='march 21, 1954';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "brazil_national_team" ( "date" text, "result" text, "score" text, "brazil_scorers" text, "competition" text ); Question: Which Competition has a Result of w, and a Score of 2-0, and a Date of may 9, 1954? <|assistant|> SELECT "competition" FROM "brazil_national_team" WHERE "result"='w' AND "score"='2-0' AND "date"='may 9, 1954';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "brazil_national_team" ( "date" text, "result" text, "score" text, "brazil_scorers" text, "competition" text ); Question: Which Result has a Score of 4-1, and a Competition of world cup qualifying? <|assistant|> SELECT "result" FROM "brazil_national_team" WHERE "score"='4-1' AND "competition"='world cup qualifying';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "brazil_national_team" ( "date" text, "result" text, "score" text, "brazil_scorers" text, "competition" text ); Question: Which Score has a Competition of world cup qualifying, and a Brazil scorers of baltazar, and a Date of march 14, 1954? <|assistant|> SELECT "score" FROM "brazil_national_team" WHERE "competition"='world cup qualifying' AND "brazil_scorers"='baltazar' AND "date"='march 14, 1954';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "brazil_national_team" ( "date" text, "result" text, "score" text, "brazil_scorers" text, "competition" text ); Question: Which Brazil scorers have a Result of w, and a Competition of world cup qualifying, and a Date of february 28, 1954? <|assistant|> SELECT "brazil_scorers" FROM "brazil_national_team" WHERE "result"='w' AND "competition"='world cup qualifying' AND "date"='february 28, 1954';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); Question: when first elected was 1900 what was the district? <|assistant|> SELECT "district" FROM "south_carolina" WHERE "first_elected"='1900';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); Question: when first elected was 1898 what was the party? <|assistant|> SELECT "party" FROM "south_carolina" WHERE "first_elected"='1898';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championship_group_a_soviet_union" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real ); Question: How many Games have a Lost of 6, and Points smaller than 7? <|assistant|> SELECT SUM("games") FROM "world_championship_group_a_soviet_union" WHERE "lost"=6 AND "points"<7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "receiving" ( "player" text, "number" real, "yards" real, "average" real, "long" real, "touchdowns" real ); Question: What is Larry Centers' average number when there were less than 600 yards? <|assistant|> SELECT AVG("number") FROM "receiving" WHERE "player"='larry centers' AND "yards"<600;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "receiving" ( "player" text, "number" real, "yards" real, "average" real, "long" real, "touchdowns" real ); Question: What is the highest number when there were more than 50 long and less than 762 yards? <|assistant|> SELECT MAX("number") FROM "receiving" WHERE "long">50 AND "yards"<762;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "receiving" ( "player" text, "number" real, "yards" real, "average" real, "long" real, "touchdowns" real ); Question: What is the highest amount of yards when the average is 9.5? <|assistant|> SELECT MAX("yards") FROM "receiving" WHERE "average"=9.5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_tour_wins_7" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_up" text ); Question: Who was the runner-up on 5 aug 1990? <|assistant|> SELECT "runner_up" FROM "european_tour_wins_7" WHERE "date"='5 aug 1990';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_tour_wins_7" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_up" text ); Question: Which Tournament has a Winning score of −14 (65-69-72-68=274)? <|assistant|> SELECT "tournament" FROM "european_tour_wins_7" WHERE "winning_score"='−14 (65-69-72-68=274)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_tour_wins_7" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_up" text ); Question: Which Runner-up has a Winning score of −20 (70-69-64-65=268)? <|assistant|> SELECT "runner_up" FROM "european_tour_wins_7" WHERE "winning_score"='−20 (70-69-64-65=268)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_tour_wins_7" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_up" text ); Question: Which Date has a Winning score of −15 (71-69-68-65=273)? <|assistant|> SELECT "date" FROM "european_tour_wins_7" WHERE "winning_score"='−15 (71-69-68-65=273)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_tour_wins_7" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_up" text ); Question: In which tournament was vijay singh a runner-up? <|assistant|> SELECT "tournament" FROM "european_tour_wins_7" WHERE "runner_up"='vijay singh';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_tour_wins_7" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_up" text ); Question: In which tournament was vijay singh a runner-up? <|assistant|> SELECT "tournament" FROM "european_tour_wins_7" WHERE "runner_up"='vijay singh';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "five_cent_test_tokens" ( "year_of_issue" real, "description" text, "weight" text, "diameter" text, "thickness" text, "edge" text ); Question: Which Description has a Year of Issue of 1983, and a Weight of 3.50grams? <|assistant|> SELECT "description" FROM "five_cent_test_tokens" WHERE "year_of_issue"=1983 AND "weight"='3.50grams';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "five_cent_test_tokens" ( "year_of_issue" real, "description" text, "weight" text, "diameter" text, "thickness" text, "edge" text ); Question: Which Thickness has a Year of Issue smaller than 1983? <|assistant|> SELECT "thickness" FROM "five_cent_test_tokens" WHERE "year_of_issue"<1983;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "five_cent_test_tokens" ( "year_of_issue" real, "description" text, "weight" text, "diameter" text, "thickness" text, "edge" text ); Question: Which Description has a Year of Issue of 1983, and a Thickness of 1.7mm, and a Weight of 3.50grams? <|assistant|> SELECT "description" FROM "five_cent_test_tokens" WHERE "year_of_issue"=1983 AND "thickness"='1.7mm' AND "weight"='3.50grams';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "five_cent_test_tokens" ( "year_of_issue" real, "description" text, "weight" text, "diameter" text, "thickness" text, "edge" text ); Question: Which Thickness has a Weight of 3.50grams? <|assistant|> SELECT "thickness" FROM "five_cent_test_tokens" WHERE "weight"='3.50grams';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "five_cent_test_tokens" ( "year_of_issue" real, "description" text, "weight" text, "diameter" text, "thickness" text, "edge" text ); Question: Which Thickness has a Diameter of 21.9mm? <|assistant|> SELECT "thickness" FROM "five_cent_test_tokens" WHERE "diameter"='21.9mm';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1958_state_election_results" ( "office" text, "republican_ticket" text, "democratic_ticket" text, "liberal_ticket" text, "independent_socialist_ticket" text, "socialist_labor_ticket" text ); Question: Who was on the Socialist Labor ticket in the race against W. Averell Harriman? <|assistant|> SELECT "socialist_labor_ticket" FROM "1958_state_election_results" WHERE "liberal_ticket"='w. averell harriman';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1958_state_election_results" ( "office" text, "republican_ticket" text, "democratic_ticket" text, "liberal_ticket" text, "independent_socialist_ticket" text, "socialist_labor_ticket" text ); Question: Who was the Republican candidate against the Democratic candidate Arthur Levitt? <|assistant|> SELECT "republican_ticket" FROM "1958_state_election_results" WHERE "democratic_ticket"='arthur levitt';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1958_state_election_results" ( "office" text, "republican_ticket" text, "democratic_ticket" text, "liberal_ticket" text, "independent_socialist_ticket" text, "socialist_labor_ticket" text ); Question: Who was the Independent Socialist candidate for the office of comptroller? <|assistant|> SELECT "independent_socialist_ticket" FROM "1958_state_election_results" WHERE "office"='comptroller';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1958_state_election_results" ( "office" text, "republican_ticket" text, "democratic_ticket" text, "liberal_ticket" text, "independent_socialist_ticket" text, "socialist_labor_ticket" text ); Question: Who was the Independent Socialist candidate who ran against the Liberal candidate Edward Goodell? <|assistant|> SELECT "independent_socialist_ticket" FROM "1958_state_election_results" WHERE "liberal_ticket"='edward goodell';<|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" text, "record" text ); Question: Which Att has a Time of 2:14? <|assistant|> SELECT "att" FROM "game_log" WHERE "time"='2:14';<|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" text, "record" text ); Question: when is Record of 66-95? <|assistant|> SELECT "time" FROM "game_log" WHERE "record"='66-95';<|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" text, "record" text ); Question: Which Opponent has a Record of 65-95? <|assistant|> SELECT "opponent" FROM "game_log" WHERE "record"='65-95';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text ); Question: What is the to par that has ernie els as the player? <|assistant|> SELECT "to_par" FROM "final_round" WHERE "player"='ernie els';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text ); Question: What player has money of (£) 159,500, and france is the country? <|assistant|> SELECT "player" FROM "final_round" WHERE "money"='159,500' AND "country"='france';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text ); Question: What player has 69-70-68-73=280 as the score? <|assistant|> SELECT "player" FROM "final_round" WHERE "score"='69-70-68-73=280';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_prix_motorcycle_racing_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real ); Question: What is the average year that has a win less than 1, yamaha as the team, with points greater than 2? <|assistant|> SELECT AVG("year") FROM "grand_prix_motorcycle_racing_results" WHERE "wins"<1 AND "team"='yamaha' AND "points">2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_prix_motorcycle_racing_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real ); Question: What is the highest wins that has 350cc as the class, yamaha for the team, with points less than 37, and a year after 1979? <|assistant|> SELECT MAX("wins") FROM "grand_prix_motorcycle_racing_results" WHERE "class"='350cc' AND "team"='yamaha' AND "points"<37 AND "year">1979;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_prix_motorcycle_racing_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real ); Question: How many points have 500cc for the class, a win greater than 0, with a year after 1974? <|assistant|> SELECT SUM("points") FROM "grand_prix_motorcycle_racing_results" WHERE "class"='500cc' AND "wins">0 AND "year">1974;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_prix_motorcycle_racing_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real ); Question: How many wins have a year after 1976, and 350cc as the class? <|assistant|> SELECT SUM("wins") FROM "grand_prix_motorcycle_racing_results" WHERE "year">1976 AND "class"='350cc';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "games" ( "la_wins" real, "draws" real, "san_jose_wins" real, "la_goals" real, "san_jose_goals" real ); Question: How many San Jose wins have an LA goals larger than 6, and an LA wins smaller than 21? <|assistant|> SELECT COUNT("san_jose_wins") FROM "games" WHERE "la_goals">6 AND "la_wins"<21;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "games" ( "la_wins" real, "draws" real, "san_jose_wins" real, "la_goals" real, "san_jose_goals" real ); Question: Which San Jose goals have a San Jose wins smaller than 0? <|assistant|> SELECT MIN("san_jose_goals") FROM "games" WHERE "san_jose_wins"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "april" real, "opponent" text, "score" text, "record" text ); Question: Name the most april with record of 38-33-10 <|assistant|> SELECT MAX("april") FROM "schedule_and_results" WHERE "record"='38-33-10';<|endoftext|>