text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_professional_football_teams" (
"team" text,
"sport" text,
"played" text,
"venue" text,
"championships" text
);
Question: What sport was played at the bosse field?
<|assistant|>
SELECT "s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_professional_football_teams" (
"team" text,
"sport" text,
"played" text,
"venue" text,
"championships" text
);
Question: What sport was played between the years of 2008-2010?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_professional_football_teams" (
"team" text,
"sport" text,
"played" text,
"venue" text,
"championships" text
);
Question: What venue did the team, evansville bluecats play on?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_professional_football_teams" (
"team" text,
"sport" text,
"played" text,
"venue" text,
"championships" text
);
Question: What team played between the years of 2008-2010?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: Name the Score of craig stadler?
<|assistant|>
SELECT "score" FROM "second_round" WHERE "pl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: Name the Score that has a Place of t5 of tom watson?
<|assistant|>
SELECT "score" FROM "sec... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: Name the Place with a Score of 72-68=140?
<|assistant|>
SELECT "place" FROM "second_round" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: Name the Score of jack nicklaus, united states, ?
<|assistant|>
SELECT "score" FROM "second... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: Name the Place of seve ballesteros?
<|assistant|>
SELECT "place" FROM "second_round" WHERE ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "female_names" (
"region_year" text,
"no_1" text,
"no_2" text,
"no_3" text,
"no_4" text,
"no_5" text,
"no_6" text,
"no_7" text,
"no_8" text,
"no_9" text
);
Question: Who was No. 9 when... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "female_names" (
"region_year" text,
"no_1" text,
"no_2" text,
"no_3" text,
"no_4" text,
"no_5" text,
"no_6" text,
"no_7" text,
"no_8" text,
"no_9" text
);
Question: What was the No. 6... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "female_names" (
"region_year" text,
"no_1" text,
"no_2" text,
"no_3" text,
"no_4" text,
"no_5" text,
"no_6" text,
"no_7" text,
"no_8" text,
"no_9" text
);
Question: What was the No. 8... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "female_names" (
"region_year" text,
"no_1" text,
"no_2" text,
"no_3" text,
"no_4" text,
"no_5" text,
"no_6" text,
"no_7" text,
"no_8" text,
"no_9" text
);
Question: What was the No. 4... |
<|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" real
);
Question: Which player had a to par score of +2?
<|assistant|>
SELECT "player" FROM "f... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"urban_area_locality" text,
"population" real,
"land_area_hectares" real,
"density_inh_km" real,
"code" real
);
Question: How many codes have a density of 621.68, and a Land area ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"urban_area_locality" text,
"population" real,
"land_area_hectares" real,
"density_inh_km" real,
"code" real
);
Question: What is the average density with a land area of 123.02, a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"urban_area_locality" text,
"population" real,
"land_area_hectares" real,
"density_inh_km" real,
"code" real
);
Question: What is the average land area with a density of 815.48, a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_finals_36_18_18" (
"outcome" text,
"date" text,
"location" text,
"surface" text,
"partnering" text,
"opponent_in_final" text,
"score" text
);
Question: What is the Date, when Partne... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_finals_36_18_18" (
"outcome" text,
"date" text,
"location" text,
"surface" text,
"partnering" text,
"opponent_in_final" text,
"score" text
);
Question: What is Score, when Outcome i... |
<|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 is Tie No., when Away Team is "Manchester United"?
<|assistant|>
SELECT "ti... |
<|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 is Away Team, when Home Team is "Ipswich Town", and when Date is "6 Februar... |
<|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 is Date, when Home Team is "Luton Town"?
<|assistant|>
SELECT "date" 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: What is Away Team, when Date is "25 January 1986", and when Tie No is "6"?
<|ass... |
<|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 LEAGUE WITH A ROUND LARGER THAN 6?
<|assistant|>... |
<|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 ROUND FOR ZACH BOYCHUK?
<|assistant|>
SELECT COU... |
<|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 POSITION FOR CANADA, ROUND SMALLER THAN 7, PLAYE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: What was the date of week 8?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "week"=8;<|en... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: What was the result of the September 8, 1985 game?
<|assistant|>
SELECT "result" FROM "sched... |
<|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,
"bills_points" real,
"opponents" real,
"bills_first_downs" real,
"record" text,
"attendance" real
);
Question: Whic... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_in_paraguayan_football" (
"date" text,
"venue" text,
"score" text,
"comp" text,
"paraguay_scorers" text,
"report" text
);
Question: Who were the Paraguay scorers on June 15, 2008?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
Question: What is the To par of the player with a t14 Finish?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
Question: What country is player Raymond Floyd from?
<|assistant|>
SELECT "coun... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
Question: What is the Year(s) won from the United States as country with a To P... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
Question: Who is the player from the United States and a place of t2?
<|assistant|>
SELECT "player" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "acute_toxicity" (
"method_of_administration_citation_needed" text,
"category_1" real,
"category_2" real,
"category_3" text,
"category_4" text,
"category_5" text
);
Question: What's the sum of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "acute_toxicity" (
"method_of_administration_citation_needed" text,
"category_1" real,
"category_2" real,
"category_3" text,
"category_4" text,
"category_5" text
);
Question: If category 1 is ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_wickets" (
"player" text,
"team" text,
"matches" real,
"wickets" real,
"average" real,
"best_bowling" text
);
Question: Which player has an average of 38.22?
<|assistant|>
SELECT "player... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_wickets" (
"player" text,
"team" text,
"matches" real,
"wickets" real,
"average" real,
"best_bowling" text
);
Question: What is the highest number of matches for Australia when the wicke... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_wickets" (
"player" text,
"team" text,
"matches" real,
"wickets" real,
"average" real,
"best_bowling" text
);
Question: What is the total average for the England team when the wickets ar... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
Question: Which To par has a Money ($) larger than 5,500?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
Question: Which Score has a Place of 4?
<|assistant|>
SELECT "score" FROM "final... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "religious_affiliation_by_geography_and_b" (
"ethnic_group" text,
"main_regions" text,
"population" real,
"percentage_of_total_population" text,
"christians" text,
"muslims" text,
"other" tex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "religious_affiliation_by_geography_and_b" (
"ethnic_group" text,
"main_regions" text,
"population" real,
"percentage_of_total_population" text,
"christians" text,
"muslims" text,
"other" tex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What is the Venue when the score was 1 β 1, and the result was 2 β 2?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What is the score of the 2006 Fifa World Cup Qualification?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What venue was the game held at when the Score was 3 β 0?
<|assistant|>
SELECT "ve... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What is the result of the game when the competition was a friendly match, and the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tac_v8_supercar_showdown" (
"driver" text,
"race_1" text,
"race_2" text,
"race_3" text,
"race_4" text
);
Question: What is Race 1, when Race 4 is 1?
<|assistant|>
SELECT "race_1" FROM "tac_v8_s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tac_v8_supercar_showdown" (
"driver" text,
"race_1" text,
"race_2" text,
"race_3" text,
"race_4" text
);
Question: What is Race 2, when Race 1 is 30?
<|assistant|>
SELECT "race_2" FROM "tac_v8_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tac_v8_supercar_showdown" (
"driver" text,
"race_1" text,
"race_2" text,
"race_3" text,
"race_4" text
);
Question: What is Race 2, when Driver is John Faulkner?
<|assistant|>
SELECT "race_2" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tac_v8_supercar_showdown" (
"driver" text,
"race_1" text,
"race_2" text,
"race_3" text,
"race_4" text
);
Question: What is Driver, when Race 2 is 14?
<|assistant|>
SELECT "driver" FROM "tac_v8_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tac_v8_supercar_showdown" (
"driver" text,
"race_1" text,
"race_2" text,
"race_3" text,
"race_4" text
);
Question: What is Race 4, when Race 1 is 28?
<|assistant|>
SELECT "race_4" FROM "tac_v8_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tac_v8_supercar_showdown" (
"driver" text,
"race_1" text,
"race_2" text,
"race_3" text,
"race_4" text
);
Question: What is Race 2, when Race 4 is 28?
<|assistant|>
SELECT "race_2" FROM "tac_v8_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international" (
"season" real,
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"competition_round" text
);
Question: What is the score of the copa libertadores... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international" (
"season" real,
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"competition_round" text
);
Question: What is the score of the copa libertadores... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international" (
"season" real,
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"competition_round" text
);
Question: What is the venue of season 1983, which ha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international" (
"season" real,
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"competition_round" text
);
Question: What is the score of the match on 3 March ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
Question: What were the Points on December 13?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_women_s_teams" (
"institution" text,
"location" text,
"nickname" text,
"enrollment" text,
"established" real
);
Question: What is the year established of North Jersey Phoenix?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_women_s_teams" (
"institution" text,
"location" text,
"nickname" text,
"enrollment" text,
"established" real
);
Question: What is the nickname of the school established in 2009?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_women_s_teams" (
"institution" text,
"location" text,
"nickname" text,
"enrollment" text,
"established" real
);
Question: What is the location of the school established in 2013?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_women_s_teams" (
"institution" text,
"location" text,
"nickname" text,
"enrollment" text,
"established" real
);
Question: What is the nickname of Columbia University?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"location" text
);
Question: The match against Valentijn Overeem had what... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"location" text
);
Question: Where was the match held when the result was... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"location" text
);
Question: What round did the match go to when the even... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"location" text
);
Question: With a method of tko (kick) what is the reco... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"location" text
);
Question: What round did the match go to when tko (cut... |
<|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" real,
"money" text
);
Question: what is the place when the score is 68-72-77-74=291?
<|assistant|>
SELECT "p... |
<|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" real,
"money" text
);
Question: how many times is the country united states and the score 72-71-73-73=289?
<... |
<|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" real,
"money" text
);
Question: Who is the player when the to par is more than 11 and the score is 71-71-71-... |
<|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" real,
"money" text
);
Question: what is the country when the player is bill nary?
<|assistant|>
SELECT "coun... |
<|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" real,
"money" text
);
Question: what is the score when the country is united states and the player is george... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "holders" (
"name" text,
"heir_of" text,
"birth" text,
"ceased_to_be_duke_of_girona" text,
"death" text
);
Question: WHAT IS THE DEATH WHEN BIRTH DATE IS 2 AUGUST 1424?
<|assistant|>
SELECT "dea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "holders" (
"name" text,
"heir_of" text,
"birth" text,
"ceased_to_be_duke_of_girona" text,
"death" text
);
Question: WHAT IS THE Ceased to be Duke of Girona THAT HAS PETER IV?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "holders" (
"name" text,
"heir_of" text,
"birth" text,
"ceased_to_be_duke_of_girona" text,
"death" text
);
Question: WHAT IS THE BIRTH DATE THAT HAS Ceased to be Duke of Girona OF 21 NOVEMBER 15... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "holders" (
"name" text,
"heir_of" text,
"birth" text,
"ceased_to_be_duke_of_girona" text,
"death" text
);
Question: WHAT IS THE BIRTH DATE WITH A DEATH OF OCTOBER 1389?
<|assistant|>
SELECT "bi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "250cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time" text,
"grid" real
);
Question: What is the total number of Laps, when Ride is Aleix Espargaro?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_ministers_for_the_police_force" (
"minister" text,
"party" text,
"start_date" text,
"end_date" text,
"prime_minister" text
);
Question: What was the start date for the party of LSAP wit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"name" text,
"built" text,
"listed" text,
"location" text,
"county" text
);
Question: What is the County of Howard Street Tunnel?
<|assistant|>
SELECT "county" FROM "references" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"name" text,
"built" text,
"listed" text,
"location" text,
"county" text
);
Question: What is the Location of the Bridge Built in 1869?
<|assistant|>
SELECT "location" FROM "refer... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"name" text,
"built" text,
"listed" text,
"location" text,
"county" text
);
Question: What is the date Listed of the B & O Bridge in Washington?
<|assistant|>
SELECT "listed" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"name" text,
"built" text,
"listed" text,
"location" text,
"county" text
);
Question: What is the date Listed of the Bridge Built CA.1876?
<|assistant|>
SELECT "listed" FROM "refe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"name" text,
"built" text,
"listed" text,
"location" text,
"county" text
);
Question: What is the date Listed of the Bridge Built in 1864?
<|assistant|>
SELECT "listed" FROM "refe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "result_of_national_final" (
"draw" real,
"song" text,
"artist" text,
"televotes" real,
"place" real
);
Question: What is the total number of Draw(s), when Televotes is greater than 1761, when S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "result_of_national_final" (
"draw" real,
"song" text,
"artist" text,
"televotes" real,
"place" real
);
Question: What is the lowest Place, when Televotes is 15424?
<|assistant|>
SELECT MIN("pla... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "result_of_national_final" (
"draw" real,
"song" text,
"artist" text,
"televotes" real,
"place" real
);
Question: What is the average Place, when Song is "Dis Oui"?
<|assistant|>
SELECT AVG("pla... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_team" (
"exit_date" text,
"pos" text,
"player" text,
"to_club" text,
"transfer_fee" text
);
Question: What club received a DF player for free?
<|assistant|>
SELECT "to_club" FROM "first_t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_team" (
"exit_date" text,
"pos" text,
"player" text,
"to_club" text,
"transfer_fee" text
);
Question: Which player was transferred to Reggina?
<|assistant|>
SELECT "player" FROM "first_te... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_team" (
"exit_date" text,
"pos" text,
"player" text,
"to_club" text,
"transfer_fee" text
);
Question: What is the exit date of the player transferred to Reggina for free?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "overall_results" (
"position" real,
"pilot" text,
"country" text,
"glider" text,
"points" real
);
Question: What is the lowest position of pilot mario kiessling from Germany?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "overall_results" (
"position" real,
"pilot" text,
"country" text,
"glider" text,
"points" real
);
Question: What is the average position of pilot petr krejcirik, who has less than 11 points?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_singles_tournament_timeline" (
"tournament" text,
"1980" text,
"1981" text,
"1982" text,
"1983" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"career_sr" text
);... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_singles_tournament_timeline" (
"tournament" text,
"1980" text,
"1981" text,
"1982" text,
"1983" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"career_sr" text
);... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_singles_tournament_timeline" (
"tournament" text,
"1980" text,
"1981" text,
"1982" text,
"1983" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"career_sr" text
);... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
Question: What is the finish of Australia?
<|assistant|>
SELECT "finish" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
Question: What is the total with a +4 to par?
<|assistant|>
SELECT "total" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
Question: What country has a +3 to par?
<|assistant|>
SELECT "country" FROM "ma... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_ten_best_selling_albums_recorded_by_" (
"rank" real,
"year" real,
"title" text,
"artist" text,
"sales" real
);
Question: What was the first year that the artist of every little thing ranked... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_13" (
"year" real,
"championship" text,
"winning_score" text,
"margin" text,
"runner_s_up" text
);
Question: Which Championship was louise suggs the runner-up by 3 strokes?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_13" (
"year" real,
"championship" text,
"winning_score" text,
"margin" text,
"runner_s_up" text
);
Question: When was the most recent year that kathy whitworth was the runner-up?
<|assista... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.