text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "connecticut" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text
);
Question: Which incumbent was first elected in 1987?
<|assistant|>
SELECT "incumbent" FRO... |
<|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: From which country is the player who made less than $216?
<|assistant|... |
<|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: Where did the player place who is from the United States, who made mor... |
<|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 player placed in t5 and had a score of 72-71-73-78=294?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "recordings" (
"pianist" text,
"conductor" text,
"record_company" text,
"year_of_recording" real,
"format" text
);
Question: What is the year that a record was recorded with Libor Pesek as condu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "recordings" (
"pianist" text,
"conductor" text,
"record_company" text,
"year_of_recording" real,
"format" text
);
Question: What record company did pianist Solomon Cutner record for?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "recordings" (
"pianist" text,
"conductor" text,
"record_company" text,
"year_of_recording" real,
"format" text
);
Question: What record company did conductor Mikhail Snitko record for after 199... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualification" (
"shooter" text,
"event" text,
"rank_points" text,
"score_points" text,
"total" text
);
Question: Which event had a total of 28?
<|assistant|>
SELECT "event" FROM "qualification... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualification" (
"shooter" text,
"event" text,
"rank_points" text,
"score_points" text,
"total" text
);
Question: Who was the shooter when the rank points was 8 and the event was WC Kerrville?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualification" (
"shooter" text,
"event" text,
"rank_points" text,
"score_points" text,
"total" text
);
Question: What was the total when the score points was 12 and the rank points was 15?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_cup_goals" (
"date" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
);
Question: What is the score at the Champions League, when the result shows win?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_cup_goals" (
"date" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
);
Question: What was the competition when the opponent was the Randers?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_cup_goals" (
"date" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
);
Question: What is the result of the UEFA Cup, against Palermo?
<|assistant|>
SELECT "resul... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "european_cup_goals" (
"date" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
);
Question: What date was the UEFA Cup against Panathinaikos?
<|assistant|>
SELECT "date" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "attacks_against_israeli_diplomatic_missi" (
"israeli_deaths" real,
"other_deaths" text,
"total_deaths" text,
"israeli_and_or_foreigner_wounded" text,
"total_casualties" text
);
Question: What i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "attacks_against_israeli_diplomatic_missi" (
"israeli_deaths" real,
"other_deaths" text,
"total_deaths" text,
"israeli_and_or_foreigner_wounded" text,
"total_casualties" text
);
Question: How ma... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "attacks_against_israeli_diplomatic_missi" (
"israeli_deaths" real,
"other_deaths" text,
"total_deaths" text,
"israeli_and_or_foreigner_wounded" text,
"total_casualties" text
);
Question: How ma... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "attacks_against_israeli_diplomatic_missi" (
"israeli_deaths" real,
"other_deaths" text,
"total_deaths" text,
"israeli_and_or_foreigner_wounded" text,
"total_casualties" text
);
Question: What i... |
<|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: What place did the golfer who had a score of 69-68-69-70=276 finish in?
<|as... |
<|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: What was the to par score for Mike Weir?
<|assistant|>
SELECT "to_par" FROM ... |
<|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: What country was Jay Haas representing?
<|assistant|>
SELECT "country" FROM ... |
<|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: What country has the t7 place, and player Peter Oosterhuis?
<|assistant|>
SELECT "country" ... |
<|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: What is the score for Sandy Lyle?
<|assistant|>
SELECT "score" FROM "second_round" WHERE "p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances_and_goals" (
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" text,
"fa_cup_goals" real,
"league_cup_apps" text,
"league_cup_goals" real,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances_and_goals" (
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" text,
"fa_cup_goals" real,
"league_cup_apps" text,
"league_cup_goals" real,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "dvd_releases" (
"season" text,
"date_released" text,
"num_of_episodes" real,
"num_of_discs" real,
"special_features" text
);
Question: What is the lowest # Of Episodes, when Date Released is "1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "dvd_releases" (
"season" text,
"date_released" text,
"num_of_episodes" real,
"num_of_discs" real,
"special_features" text
);
Question: What Date Released, when # Of Discs is greater than 4?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "dvd_releases" (
"season" text,
"date_released" text,
"num_of_episodes" real,
"num_of_discs" real,
"special_features" text
);
Question: What is Season, when # Of Episodes is "10", and when Date ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What was the score when Sheffield United was the home team?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: Who was the away team against Newton Heath?
<|assistant|>
SELECT "away_team" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What is the home team when the tie is 11?
<|assistant|>
SELECT "home_team" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances_goals" (
"squad_no" real,
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" text,
"fa_cup_goals" real,
"league_cup_apps" text,
"league_cup_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances_goals" (
"squad_no" real,
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" text,
"fa_cup_goals" real,
"league_cup_apps" text,
"league_cup_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "appearances_goals" (
"squad_no" real,
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" text,
"fa_cup_goals" real,
"league_cup_apps" text,
"league_cup_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fall_1997" (
"7_00_am" text,
"7_30_am" text,
"8_00_am" text,
"9_00_am" text,
"11_00_am" text,
"noon" text,
"12_30_pm" text,
"1_00_pm" text,
"1_30_pm" text,
"2_00_pm" text,
"3_00_pm" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fall_1997" (
"7_00_am" text,
"7_30_am" text,
"8_00_am" text,
"9_00_am" text,
"11_00_am" text,
"noon" text,
"12_30_pm" text,
"1_00_pm" text,
"1_30_pm" text,
"2_00_pm" text,
"3_00_pm" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fall_1997" (
"7_00_am" text,
"7_30_am" text,
"8_00_am" text,
"9_00_am" text,
"11_00_am" text,
"noon" text,
"12_30_pm" text,
"1_00_pm" text,
"1_30_pm" text,
"2_00_pm" text,
"3_00_pm" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fall_1997" (
"7_00_am" text,
"7_30_am" text,
"8_00_am" text,
"9_00_am" text,
"11_00_am" text,
"noon" text,
"12_30_pm" text,
"1_00_pm" text,
"1_30_pm" text,
"2_00_pm" text,
"3_00_pm" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fall_1997" (
"7_00_am" text,
"7_30_am" text,
"8_00_am" text,
"9_00_am" text,
"11_00_am" text,
"noon" text,
"12_30_pm" text,
"1_00_pm" text,
"1_30_pm" text,
"2_00_pm" text,
"3_00_pm" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
);
Question: How many points for Newman/Haas Racing with fewer than 40 laps?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
);
Question: Which driver has fewer than 2 points, larger grid that 4 and is on American Spiri... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bcs_standings" (
"week_8_oct_26" text,
"week_10_nov_9" text,
"week_11_nov_16" text,
"week_12_nov_23" text,
"week_13_nov_30" text,
"week_14_final_dec_7" text
);
Question: What is the week 11 n... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bcs_standings" (
"week_8_oct_26" text,
"week_10_nov_9" text,
"week_11_nov_16" text,
"week_12_nov_23" text,
"week_13_nov_30" text,
"week_14_final_dec_7" text
);
Question: What is the week 13 N... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bcs_standings" (
"week_8_oct_26" text,
"week_10_nov_9" text,
"week_11_nov_16" text,
"week_12_nov_23" text,
"week_13_nov_30" text,
"week_14_final_dec_7" text
);
Question: What is the week 8 Oc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bcs_standings" (
"week_8_oct_26" text,
"week_10_nov_9" text,
"week_11_nov_16" text,
"week_12_nov_23" text,
"week_13_nov_30" text,
"week_14_final_dec_7" text
);
Question: What is the week 14 (... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "out" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" text,
"transfer_fee" text,
"source" text
);
Question: What player is associated with soenderjyske.dk?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "out" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" text,
"transfer_fee" text,
"source" text
);
Question: What is the transfer fee for Gravgaard?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classical_games" (
"white" text,
"black" text,
"year" real,
"result" text,
"moves" real,
"tournament" text,
"opening" text
);
Question: What's the result when there's more than 41 moves wit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classical_games" (
"white" text,
"black" text,
"year" real,
"result" text,
"moves" real,
"tournament" text,
"opening" text
);
Question: What's the total number of moves with a result of ½–... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classical_games" (
"white" text,
"black" text,
"year" real,
"result" text,
"moves" real,
"tournament" text,
"opening" text
);
Question: What's the black with 24 moves in the dortmund tourna... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classical_games" (
"white" text,
"black" text,
"year" real,
"result" text,
"moves" real,
"tournament" text,
"opening" text
);
Question: What's the opening when white is Anand with fewer tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classical_games" (
"white" text,
"black" text,
"year" real,
"result" text,
"moves" real,
"tournament" text,
"opening" text
);
Question: What's the white for a black of Anand, a result of ½... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"draw" real,
"language" text,
"artist" text,
"song" text,
"english_translation" text,
"place" real,
"points" real
);
Question: What is the lowest draw that has We The Lovers for ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"draw" real,
"language" text,
"artist" text,
"song" text,
"english_translation" text,
"place" real,
"points" real
);
Question: How many draws have french as the language, with a ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships_attacked" (
"date" text,
"name_of_ship" text,
"flag" text,
"tonnage" real,
"fate" text
);
Question: What is the Fate of the HMS Manistee (f 104) with a Tonnage of 4,671 or more?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships_attacked" (
"date" text,
"name_of_ship" text,
"flag" text,
"tonnage" real,
"fate" text
);
Question: What is the Tonnage of the ship from Canada?
<|assistant|>
SELECT MAX("tonnage") FROM "... |
<|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: In what place did the golfer representing Zimbabwe finish?
<|assistant|>
SELECT "place" FROM... |
<|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: In what place did Des Smyth, who scored less than 71, finish?
<|assistant|>
SELECT "place" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "spaceports_with_achieved_vertical_launch" (
"spaceport" text,
"launch_complex" text,
"launcher" text,
"spacecraft" text,
"flights" text,
"years" text
);
Question: What is the spaceport locati... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "spaceports_with_achieved_vertical_launch" (
"spaceport" text,
"launch_complex" text,
"launcher" text,
"spacecraft" text,
"flights" text,
"years" text
);
Question: Which spacecraft were launch... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "spaceports_with_achieved_vertical_launch" (
"spaceport" text,
"launch_complex" text,
"launcher" text,
"spacecraft" text,
"flights" text,
"years" text
);
Question: What was the launcher vehicl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "spaceports_with_achieved_vertical_launch" (
"spaceport" text,
"launch_complex" text,
"launcher" text,
"spacecraft" text,
"flights" text,
"years" text
);
Question: Which complex used the Soyuz... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
Question: what is 2008 when the tournament ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
Question: what is 2012 when the tournament ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
Question: what is 2008 when 2012 is 3r and ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" real,
"winners" text,
"location" text,
"event_director" text,
"winner_s_prize" text
);
Question: What is the Winner's Prize at the 2009 Providence, RI Championship?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tallest_buildings" (
"rank" text,
"name" text,
"height_ft_m" text,
"floors" real,
"year" real
);
Question: How tall is the structure built in 1907?
<|assistant|>
SELECT "height_ft_m" FROM "tall... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tallest_buildings" (
"rank" text,
"name" text,
"height_ft_m" text,
"floors" real,
"year" real
);
Question: Which building has more than 34 floors?
<|assistant|>
SELECT "name" FROM "tallest_buil... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performances_by_nation" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Which rank has 0 bronze and 2 silver?
<|assistant|>
SELECT MIN("gold") FROM "performa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performances_by_nation" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How much silver does the rank have that has gold smaller than 4, and a total of 1 and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performances_by_nation" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Which rank has a more than 0 silver, 4 bronze, and a total smaller than 10?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performances_by_nation" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How much gold does the tank have that has 3 silver and more than 3 bronze?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "performances_by_nation" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the total number that 0 silver?
<|assistant|>
SELECT COUNT("total") FROM "per... |
<|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" real,
"money" real
);
Question: Which Score has a To par larger than 17, and a Player of mike brady?
<... |
<|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" real,
"money" real
);
Question: Which Place that has Money of 150, and a Player of bobby cruickshank?
... |
<|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" real,
"money" real
);
Question: Which Place has a To par smaller than 15, and a Score of 74-74-74-75=2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What is the score when the tie number is 8?
<|assistant|>
SELECT "score" FROM "fi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What is the score when the tie number is 6?
<|assistant|>
SELECT "score" FROM "fi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What is the tie number for Middlesbrough?
<|assistant|>
SELECT "tie_no" FROM "fif... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1967" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
);
Question: What status has 15/04/1967 as the date?
<|assistant|>
SELECT "status" FROM "1967" WHERE "dat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1967" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
);
Question: What venue has Scotland as the opposing teams?
<|assistant|>
SELECT "venue" FROM "1967" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1967" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
);
Question: What status has France as the opposing teams?
<|assistant|>
SELECT "status" FROM "1967" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nominations" (
"week_1" text,
"week_2" text,
"week_3" text,
"week_4" text,
"week_5" text,
"week_6" text,
"week_7" text,
"week_8" text,
"week_9" text,
"week_10_final" text
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nominations" (
"week_1" text,
"week_2" text,
"week_3" text,
"week_4" text,
"week_5" text,
"week_6" text,
"week_7" text,
"week_8" text,
"week_9" text,
"week_10_final" text
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nominations" (
"week_1" text,
"week_2" text,
"week_3" text,
"week_4" text,
"week_5" text,
"week_6" text,
"week_7" text,
"week_8" text,
"week_9" text,
"week_10_final" text
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nominations" (
"week_1" text,
"week_2" text,
"week_3" text,
"week_4" text,
"week_5" text,
"week_6" text,
"week_7" text,
"week_8" text,
"week_9" text,
"week_10_final" text
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nominations" (
"week_1" text,
"week_2" text,
"week_3" text,
"week_4" text,
"week_5" text,
"week_6" text,
"week_7" text,
"week_8" text,
"week_9" text,
"week_10_final" text
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nominations" (
"week_1" text,
"week_2" text,
"week_3" text,
"week_4" text,
"week_5" text,
"week_6" text,
"week_7" text,
"week_8" text,
"week_9" text,
"week_10_final" text
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_ladder" (
"geelong_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: Which Against has more than 11 wins, and a Geelong FL of st josephs?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "postseason" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text,
"arena" text
);
Question: What is the Attendance of the game with a Loss of Hiller (... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: Who is the away team that tottenham hotspur played?
<|assistant|>
SELECT "away_t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What was the score of the game with away team chelsea on 29 january 1983?
<|assi... |
<|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 date was the game that home team torquay united played?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: Who is the team that played away team watford?
<|assistant|>
SELECT "home_team" ... |
<|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 date was the game when home team crystal palace played?
<|assistant|>
SELEC... |
<|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: What country is Retief Goosen from?
<|assistant|>
SELECT "country" FROM "second_round" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statistics" (
"player" text,
"played" real,
"legs_won" real,
"legs_lost" real,
"lwat" real,
"100" real,
"140" real,
"180s" real,
"high_checkout" real,
"3_dart_average" real
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statistics" (
"player" text,
"played" real,
"legs_won" real,
"legs_lost" real,
"lwat" real,
"100" real,
"140" real,
"180s" real,
"high_checkout" real,
"3_dart_average" real
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "statistics" (
"player" text,
"played" real,
"legs_won" real,
"legs_lost" real,
"lwat" real,
"100" real,
"140" real,
"180s" real,
"high_checkout" real,
"3_dart_average" real
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What Player is in Place 1?
<|assistant|>
SELECT "player" FROM "third_round" WHERE "place"='1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.