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 hav... |
<|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 h... |
<|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 ... |
<|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, ... |
<|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, ... |
<|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... |
<|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" F... |
<|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... |
<|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... |
<|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|>
... |
<|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?
<|assistan... |
<|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 Seaso... |
<|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 ve... |
<|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 Tourname... |
<|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 o... |
<|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 Seaso... |
<|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 Seaso... |
<|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 colleg... |
<|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 "natio... |
<|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 ... |
<|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 f... |
<|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 Cl... |
<|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... |
<|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 ... |
<|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("... |
<|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, a... |
<|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;<|en... |
<|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 "... |
<|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?
<... |
<|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: Bino... |
<|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: Oper... |
<|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: Bino... |
<|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: Pair... |
<|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: Oper... |
<|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: Bina... |
<|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" ... |
<|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... |
<|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 ... |
<|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" FRO... |
<|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" ... |
<|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" FRO... |
<|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 ... |
<|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?
<|a... |
<|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|>
SE... |
<|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?
<|assist... |
<|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... |
<|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|>
S... |
<|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 3... |
<|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?
<... |
<|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 Longi... |
<|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?
... |
<|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?
<|assistan... |
<|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 j... |
<|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 wit... |
<|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 leipz... |
<|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?
<|a... |
<|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... |
<|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 playe... |
<|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 L... |
<|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 playe... |
<|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 "compan... |
<|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 ma... |
<|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 m... |
<|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 qualifyi... |
<|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 scor... |
<|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 ... |
<|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 "dist... |
<|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" ... |
<|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... |
<|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?... |
<|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... |
<|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|>... |
<|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 "... |
<|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=27... |
<|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... |
<|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)?
<|... |
<|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?
<|assistan... |
<|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?
<|assistan... |
<|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, an... |
<|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 ... |
<|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, an... |
<|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?
<|assi... |
<|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?
<|assis... |
<|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
);
... |
<|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
);
... |
<|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
);
... |
<|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
);
... |
<|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_... |
<|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"... |
<|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... |
<|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 "t... |
<|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... |
<|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" ... |
<|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, ... |
<|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... |
<|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 ye... |
<|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... |
<|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 th... |
<|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 M... |
<|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 "... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.