text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stations" (
"station" text,
"city_of_license" text,
"channels_tv_rf" text,
"first_air_date" text,
"haat" text,
"facility_id" real,
"public_license_information" text
);
Question: Which HAAT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stations" (
"station" text,
"city_of_license" text,
"channels_tv_rf" text,
"first_air_date" text,
"haat" text,
"facility_id" real,
"public_license_information" text
);
Question: Which City ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"country" text,
"date" text,
"label" text,
"format" text,
"catalogue_num" text
);
Question: What format is dated October 29, 2004?
<|assistant|>
SELECT "format" FROM "release... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"country" text,
"date" text,
"label" text,
"format" text,
"catalogue_num" text
);
Question: What is the date with the catalogue number ptcd-1015-6?
<|assistant|>
SELECT "date... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"country" text,
"date" text,
"label" text,
"format" text,
"catalogue_num" text
);
Question: What is the label for December 2004?
<|assistant|>
SELECT "label" FROM "release_hi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"country" text,
"date" text,
"label" text,
"format" text,
"catalogue_num" text
);
Question: What is the date for Hydra Head Records with a CD format?
<|assistant|>
SELECT "da... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"country" text,
"date" text,
"label" text,
"format" text,
"catalogue_num" text
);
Question: Which country has Hydra Head Records on February 2005?
<|assistant|>
SELECT "count... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"country" text,
"date" text,
"label" text,
"format" text,
"catalogue_num" text
);
Question: Which country has Hydra Head Records with a 2lp format?
<|assistant|>
SELECT "coun... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_starters" (
"saddle_cloth" real,
"horse" text,
"trainer" text,
"jockey" text,
"weight_kg" real,
"barrier_b" text,
"placing" text
);
Question: Who rode mad rush?
<|assistant|>
SELECT "j... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_starters" (
"saddle_cloth" real,
"horse" text,
"trainer" text,
"jockey" text,
"weight_kg" real,
"barrier_b" text,
"placing" text
);
Question: What place was the horse with a barrier of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_starters" (
"saddle_cloth" real,
"horse" text,
"trainer" text,
"jockey" text,
"weight_kg" real,
"barrier_b" text,
"placing" text
);
Question: What place was the viewed horse?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" real,
"avg_finish" real,
"winnings" text,
"position" text
);... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" real,
"avg_finish" real,
"winnings" text,
"position" text
);... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "notable_works" (
"year" real,
"play" text,
"author" text,
"theatre" text,
"type" text,
"role" text
);
Question: Author of stanisław wyspiański, and a Year of 1969 happened in what theatre?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text
);
Question: Which game did New Jersey Devils played in?
<|assistant|>
SELECT "game" FROM "sch... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text
);
Question: What score has a record of 21-25-7-4?
<|assistant|>
SELECT "score" FROM "schedule... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text
);
Question: What score has a record of 22-28-7-4?
<|assistant|>
SELECT "score" FROM "schedule... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000_01_season_as_a_two_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" real,
"time" text,
"jockey" text,
"winner_2nd" tex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000_01_season_as_a_two_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" real,
"time" text,
"jockey" text,
"winner_2nd" tex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: What's the highest P... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: What's the sum of Lo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: What's the highest P... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: What's the sum of WI... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: What's the lowest Po... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series" (
"model" text,
"processors_supported" text,
"fsb_ht_frequency_m_hz" text,
"memory" text,
"pci_express" text,
"sata" text,
"pata" text,
"sound" text
);
Question: Which processors ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series" (
"model" text,
"processors_supported" text,
"fsb_ht_frequency_m_hz" text,
"memory" text,
"pci_express" text,
"sata" text,
"pata" text,
"sound" text
);
Question: What are the proc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series" (
"model" text,
"processors_supported" text,
"fsb_ht_frequency_m_hz" text,
"memory" text,
"pci_express" text,
"sata" text,
"pata" text,
"sound" text
);
Question: What is the PCI-e... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "liquid_measures" (
"unit" text,
"russian" text,
"translation" text,
"ratio" text,
"cubic_inches_exact" text,
"metric_value" text,
"imperial" text,
"us_customary" text
);
Question: What is... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "liquid_measures" (
"unit" text,
"russian" text,
"translation" text,
"ratio" text,
"cubic_inches_exact" text,
"metric_value" text,
"imperial" text,
"us_customary" text
);
Question: What ar... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "liquid_measures" (
"unit" text,
"russian" text,
"translation" text,
"ratio" text,
"cubic_inches_exact" text,
"metric_value" text,
"imperial" text,
"us_customary" text
);
Question: How big... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "liquid_measures" (
"unit" text,
"russian" text,
"translation" text,
"ratio" text,
"cubic_inches_exact" text,
"metric_value" text,
"imperial" text,
"us_customary" text
);
Question: How lar... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "liquid_measures" (
"unit" text,
"russian" text,
"translation" text,
"ratio" text,
"cubic_inches_exact" text,
"metric_value" text,
"imperial" text,
"us_customary" text
);
Question: What is... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "liquid_measures" (
"unit" text,
"russian" text,
"translation" text,
"ratio" text,
"cubic_inches_exact" text,
"metric_value" text,
"imperial" text,
"us_customary" text
);
Question: What Ru... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"pos" real,
"matches" real,
"wins" real,
"loses" real,
"results" text,
"points" real,
"diff" text
);
Question: Points larger than 6, and a Results of 522:443 had what lowest matc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"pos" real,
"matches" real,
"wins" real,
"loses" real,
"results" text,
"points" real,
"diff" text
);
Question: Loses of 2, and a Pos. smaller than 2 had how many highest matches?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_6_5_titles_1_runner_up" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponent" text,
"score" text
);
Question: What was the outcome when the ga... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_6_5_titles_1_runner_up" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponent" text,
"score" text
);
Question: What person was played against w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_6_5_titles_1_runner_up" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponent" text,
"score" text
);
Question: With the score of 6–3, 2–6, [10–... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1900_1912" (
"average_population_x_1_000" real,
"live_births" real,
"deaths" real,
"natural_change" real,
"crude_birth_rate_per_1_000" real,
"crude_death_rate_per_1_000" real,
"natural_chang... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1900_1912" (
"average_population_x_1_000" real,
"live_births" real,
"deaths" real,
"natural_change" real,
"crude_birth_rate_per_1_000" real,
"crude_death_rate_per_1_000" real,
"natural_chang... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2013_winners" (
"category" text,
"rank" real,
"2013_recipient" text,
"location" text,
"vote" text
);
Question: What is the rank of the park in pigeon forge, tennessee in the best food category?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "under_construction" (
"name" text,
"pinnacle_height" text,
"floors" real,
"completion" real,
"city" text
);
Question: What building is in Shenzhen, have less than 115 floors, and was completed ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "official_versions" (
"version" text,
"length" text,
"album" text,
"remixed_by" text,
"year" real
);
Question: What is the earliest year having a length of 11:25?
<|assistant|>
SELECT MIN("year"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "official_versions" (
"version" text,
"length" text,
"album" text,
"remixed_by" text,
"year" real
);
Question: What year had a version called Wolf Mix?
<|assistant|>
SELECT AVG("year") FROM "off... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cowboys_drafted_into_the_nfl" (
"draft_year" real,
"player" text,
"position" text,
"round" real,
"overall" real,
"nfl_team" text
);
Question: In 1978 what is the NFL team?
<|assistant|>
SELEC... |
<|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,
"game_site" text,
"record" text,
"attendance" text
);
Question: Who was the opponent with attendance at 64,002?
<|assis... |
<|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,
"game_site" text,
"record" text,
"attendance" text
);
Question: What was the highest week with 84,856 in attendance?
<|... |
<|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,
"game_site" text,
"record" text,
"attendance" text
);
Question: What was the record in a week less than 13 on November ... |
<|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,
"game_site" text,
"record" text,
"attendance" text
);
Question: On what date was the result w 20-17?
<|assistant|>
SELE... |
<|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,
"game_site" text,
"record" text,
"attendance" text
);
Question: What was the attendance for record 2-0?
<|assistant|>
S... |
<|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,
"game_site" text,
"record" text,
"attendance" text
);
Question: On what date was the game at Lincoln Financial Field?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: Which player has a pick of 175?
<|assistant|>
SELECT "player" FROM "nfl_draft" WHERE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: Zack Jordan has the lowest pick and a round of less than 28?
<|assistant|>
SELECT MI... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: What is the sum of the pick for player roger zatkoff?
<|assistant|>
SELECT SUM("pick... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "aluminium_series" (
"denomination" text,
"metal" text,
"weight" text,
"shape" text,
"size" text
);
Question: Which metal has a size that is 26mm (across scallops)?
<|assistant|>
SELECT "metal" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "aluminium_series" (
"denomination" text,
"metal" text,
"weight" text,
"shape" text,
"size" text
);
Question: What is the weight with the shape of scalloped, and that is a size of 20mm (across s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "aluminium_series" (
"denomination" text,
"metal" text,
"weight" text,
"shape" text,
"size" text
);
Question: What is the weight with a denomination that is three paise?
<|assistant|>
SELECT "we... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "aluminium_series" (
"denomination" text,
"metal" text,
"weight" text,
"shape" text,
"size" text
);
Question: What is the weight with a denomination that is ten paise?
<|assistant|>
SELECT "weig... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championship_group_c_hungary" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
Question: What is the highest number of games drawn, where the games pl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: Which October is the lowest one that has an Opponent of washington capitals?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: Which Score has a Game larger than 7, and Points smaller than 14?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: How many Points have an Opponent of @ calgary flames?
<|assistant|>
SELECT SU... |
<|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,
"events" real,
"wins" real
);
Question: What is the mean number of events where the rank is 1 and there are more than 3... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "argentine_clubs_in_international_competi" (
"team" text,
"recopa_1994" text,
"supercopa_1994" text,
"conmebol_1994" text,
"copa_libertadores_1995" text
);
Question: Which Supercopa 1994 has a T... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "argentine_clubs_in_international_competi" (
"team" text,
"recopa_1994" text,
"supercopa_1994" text,
"conmebol_1994" text,
"copa_libertadores_1995" text
);
Question: Which CONMEBOL 1994 has a Su... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "argentine_clubs_in_international_competi" (
"team" text,
"recopa_1994" text,
"supercopa_1994" text,
"conmebol_1994" text,
"copa_libertadores_1995" text
);
Question: Which Recopa 1994 has a Supe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "argentine_clubs_in_international_competi" (
"team" text,
"recopa_1994" text,
"supercopa_1994" text,
"conmebol_1994" text,
"copa_libertadores_1995" text
);
Question: Which Team has a Recopa 1994... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary_of_election_results_1973_2003" (
"election" real,
"labour" real,
"conservative" real,
"liberal" real,
"social_democratic_party" real,
"social_and_liberal_democrats_liberal_democrats" r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary_of_election_results_1973_2003" (
"election" real,
"labour" real,
"conservative" real,
"liberal" real,
"social_democratic_party" real,
"social_and_liberal_democrats_liberal_democrats" r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary_of_election_results_1973_2003" (
"election" real,
"labour" real,
"conservative" real,
"liberal" real,
"social_democratic_party" real,
"social_and_liberal_democrats_liberal_democrats" r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary_of_election_results_1973_2003" (
"election" real,
"labour" real,
"conservative" real,
"liberal" real,
"social_democratic_party" real,
"social_and_liberal_democrats_liberal_democrats" r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What is the total number of overall figures when duke... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which of the highest pick numbers had a round of less... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which pick number had a round of less than 7, an over... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which highest overall figure had Robert Alford as a n... |
<|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,
"game_site" text,
"attendance" real
);
Question: What Game site has an Opponent of Miami Dolphins?
<|assistant|>
SELECT "... |
<|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,
"game_site" text,
"attendance" real
);
Question: What's the Lowest Attendance with a Game site of Riverfront Stadium?
<|a... |
<|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,
"game_site" text,
"attendance" real
);
Question: What's the lowest Attendance for a Week of 2?
<|assistant|>
SELECT MIN("... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many bronze medals does South Korea have?
<|assistant|>
SELECT "bronze" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the smallest number of total medals for Georgia with 0 silver and 1 bro... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
);
Question: What is the lowest year that had foil team as the event at Melbourne?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
);
Question: What is the number of years that the event was foil team and took place in Los Angeles?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
);
Question: What was the position at the venue of lyon?
<|assistant|>
SELECT "position" FROM "achie... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
);
Question: What was the position for mauro at the world championships in 1985 during the foil indi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_by_season_record" (
"season" text,
"points" text,
"finish" text,
"playoffs" text,
"head_coach" text
);
Question: What was the playoff status when the head coach was Brent Sutter, the fin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_tournaments" (
"tournament" text,
"1998" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_tournaments" (
"tournament" text,
"1998" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_tournaments" (
"tournament" text,
"1998" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_tournaments" (
"tournament" text,
"1998" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_tournaments" (
"tournament" text,
"1998" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_tournaments" (
"tournament" text,
"1998" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championship_group_c_poland" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
Question: What is the smallest number of drawn games when there are fewe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championship_group_c_poland" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
Question: What is the sum of the points when there are fewer than 4 game... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"country" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: Who holds the lead role when Aanders Brorson is third?
<|assistant|>
SELECT "lead" FROM "teams" WHERE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"country" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: Who has the role of skip when the lead is Dominik Greindl?
<|assistant|>
SELECT "skip" FROM "teams" W... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.