text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"volume_issue" text,
"issue_date_s" text,
"weeks_on_top" real,
"song" text,
"artist" text
);
Question: What is the Issue with less than 6 weeks on top and for the song " the friends... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"volume_issue" text,
"issue_date_s" text,
"weeks_on_top" real,
"song" text,
"artist" text
);
Question: What is the sum of Weeks on Top for the Volume:Issue 34:9-12?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "clausura_2008_standings" (
"place_posici_n" real,
"team_equipo" text,
"played_pj" real,
"won_pg" real,
"draw_pe" real,
"lost_pp" real,
"goals_scored_gf" real,
"goals_conceded_gc" real,
"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "topscorers_in_order_of_league_goals" (
"player" text,
"club" text,
"league" real,
"fa_cup" real,
"fa_trophy" real,
"league_cup" real,
"total" real
);
Question: How many league cups have yeo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "topscorers_in_order_of_league_goals" (
"player" text,
"club" text,
"league" real,
"fa_cup" real,
"fa_trophy" real,
"league_cup" real,
"total" real
);
Question: What is the average FA Cup th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "topscorers_in_order_of_league_goals" (
"player" text,
"club" text,
"league" real,
"fa_cup" real,
"fa_trophy" real,
"league_cup" real,
"total" real
);
Question: What FA trophys have tony hem... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"country" text,
"score" text,
"purse" real,
"winner_s_share" real
);
Question: What is the score where the country is Japan?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"country" text,
"score" text,
"purse" real,
"winner_s_share" real
);
Question: What year has a winner's share smaller than 14,000?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "provinces_of_unified_silla" (
"former_kingdom" text,
"province" text,
"hangul" text,
"hanja" text,
"capital" text,
"modern_equivalent" text
);
Question: Which province has muju as the capital... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "provinces_of_unified_silla" (
"former_kingdom" text,
"province" text,
"hangul" text,
"hanja" text,
"capital" text,
"modern_equivalent" text
);
Question: What is the modern equivalent of 良州 in... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "provinces_of_unified_silla" (
"former_kingdom" text,
"province" text,
"hangul" text,
"hanja" text,
"capital" text,
"modern_equivalent" text
);
Question: What is the capital of the province wi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "provinces_of_unified_silla" (
"former_kingdom" text,
"province" text,
"hangul" text,
"hanja" text,
"capital" text,
"modern_equivalent" text
);
Question: What is the capital of the province wi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "provinces_of_unified_silla" (
"former_kingdom" text,
"province" text,
"hangul" text,
"hanja" text,
"capital" text,
"modern_equivalent" text
);
Question: What is the Hanja for the sakju provin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What is the fewest number of top-25s for events with more than 0 wins?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What is the highest number of top-10s in events with more than 0 wins?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What is the number of top-25s in events under 13, cuts made under 3, and ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "last_place_couples_average_ranks" (
"rank" real,
"celebrity" text,
"professional_partner" text,
"season" real,
"average" real
);
Question: Which season had an average under 28, a rank under 10,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "last_place_couples_average_ranks" (
"rank" real,
"celebrity" text,
"professional_partner" text,
"season" real,
"average" real
);
Question: What is the highest season that had rank under 1?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "last_place_couples_average_ranks" (
"rank" real,
"celebrity" text,
"professional_partner" text,
"season" real,
"average" real
);
Question: Who was the professional partner in season 4?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Wh... |
<|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 much gold received by nation of uzbekistan (uzb)?
<|assistant|>
SELECT MAX(... |
<|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: Which team has the lowest gold and 0 silver?
<|assistant|>
SELECT MIN("gold") F... |
<|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 much gold when silver, bronze and total is smaller than 1?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"airline" text,
"airline_in_arabic" text,
"icao" text,
"callsign" text,
"commenced_operations" real
);
Question: What is the ICAO with commenced operations before 1989?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"airline" text,
"airline_in_arabic" text,
"icao" text,
"callsign" text,
"commenced_operations" real
);
Question: What is the lowest commenced operations that has a nouvelair callsig... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"airline" text,
"airline_in_arabic" text,
"icao" text,
"callsign" text,
"commenced_operations" real
);
Question: What callsign has commenced operations in 2011?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "primafila" (
"television_service" text,
"country" text,
"language" text,
"content" text,
"hdtv" text,
"package_option" text
);
Question: What language is used when the service is sky primafil... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "primafila" (
"television_service" text,
"country" text,
"language" text,
"content" text,
"hdtv" text,
"package_option" text
);
Question: What is the content when the package/option is qualsia... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "local_channels" (
"television_service" text,
"country" text,
"language" text,
"content" text,
"hdtv" text,
"package_option" text
);
Question: What is the HDTV that has television service of t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"city" text,
"province" text,
"country" text,
"iata" text,
"airport" text
);
Question: Which city's IATA is nkg?
<|assistant|>
SELECT "city" FROM "list" WHERE "iata"='nkg';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"city" text,
"province" text,
"country" text,
"iata" text,
"airport" text
);
Question: Which airport is in Xinjiang province in the city Kuqa?
<|assistant|>
SELECT "airport" FROM "list"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"city" text,
"province" text,
"country" text,
"iata" text,
"airport" text
);
Question: Which province's IATA is kix?
<|assistant|>
SELECT "province" FROM "list" WHERE "iata"='kix';<|end... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"city" text,
"province" text,
"country" text,
"iata" text,
"airport" text
);
Question: Which airport's IATA is pen?
<|assistant|>
SELECT "airport" FROM "list" WHERE "iata"='pen';<|endof... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women" (
"event" text,
"record" text,
"nation" text,
"date" text,
"venue" text
);
Question: Which Event has a Record of 4:02.54?
<|assistant|>
SELECT "event" FROM "women" WHERE "record"='4:02.5... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women" (
"event" text,
"record" text,
"nation" text,
"date" text,
"venue" text
);
Question: Whcih Date has an Event of 3000 m?
<|assistant|>
SELECT "date" FROM "women" WHERE "event"='3000 m';<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women" (
"event" text,
"record" text,
"nation" text,
"date" text,
"venue" text
);
Question: Which Record has a Date of 23 february 1986?
<|assistant|>
SELECT "record" FROM "women" WHERE "date"=... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women" (
"event" text,
"record" text,
"nation" text,
"date" text,
"venue" text
);
Question: Which Date has a Record of 8:39.49?
<|assistant|>
SELECT "date" FROM "women" WHERE "record"='8:39.49'... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women" (
"event" text,
"record" text,
"nation" text,
"date" text,
"venue" text
);
Question: Which Record has a Date of 3 march 2013?
<|assistant|>
SELECT "record" FROM "women" WHERE "date"='3 m... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women" (
"event" text,
"record" text,
"nation" text,
"date" text,
"venue" text
);
Question: Which Nation has a Record of 15.16 m?
<|assistant|>
SELECT "nation" FROM "women" WHERE "record"='15.1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_statistics" (
"pos" text,
"nationality" text,
"player" text,
"apps" real,
"goals" real
);
Question: What is the Nationality of the Player with more than 8 Goals and Apps of 52?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_statistics" (
"pos" text,
"nationality" text,
"player" text,
"apps" real,
"goals" real
);
Question: How many Apps did Player Gilberto with more than 1 Goals have?
<|assistant|>
SELECT AV... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_three_matches" (
"round" text,
"date" text,
"home_team" text,
"score" text,
"away_team" text
);
Question: On what date was the 4th round, with home team Itabuna, played?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_three_matches" (
"round" text,
"date" text,
"home_team" text,
"score" text,
"away_team" text
);
Question: In the 6th round match with home team Bahia, who was the away team?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_three_matches" (
"round" text,
"date" text,
"home_team" text,
"score" text,
"away_team" text
);
Question: For the 5th round match with away team of Bahia, what was the final score?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" real,
"division" text,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
Question: Which League has a Regular Season of 2nd, southeast?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" real,
"division" text,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
Question: Who Playoffs has a Regular Season of on hiatus.?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "city_status_since_after_1996" (
"city" text,
"municipality" text,
"county" text,
"town_status" text,
"population" real
);
Question: What is the population of Kragerø?
<|assistant|>
SELECT MIN("... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "city_status_since_after_1996" (
"city" text,
"municipality" text,
"county" text,
"town_status" text,
"population" real
);
Question: What is the highest population of a city that has a town stat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "city_status_since_after_1996" (
"city" text,
"municipality" text,
"county" text,
"town_status" text,
"population" real
);
Question: What is the highest population within the municipality of Por... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_number" real,
"name_v_t_e" text,
"height_cm" real,
"weight_kg" real,
"birthplace" text,
"2009_10_team" text,
"nhl_right... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_number" real,
"name_v_t_e" text,
"height_cm" real,
"weight_kg" real,
"birthplace" text,
"2009_10_team" text,
"nhl_right... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: What's the total points that Scuderia Ferrari with a Ferrari V... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: What's the least amount of points that Walter Wolf Racing had ... |
<|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 sum of Year(s), when Postion is 6th, and when Competition is Commonwealth G... |
<|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 highest Year, when the Venue is Beijing, PR China?
<|assistant|>
SELECT MAX... |
<|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 average Year, when Competition is Oceania Youth Championships?
<|assistant|... |
<|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 Event, when Position is 4th?
<|assistant|>
SELECT "event" FROM "achievements" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: What is the Date with a Format that is cd?
<|assistant|>
SELECT "date" FROM "release_hist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: What is the Catalog with a Date that is march 13, 2002?
<|assistant|>
SELECT "catalog" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: What is the Label with a Catalog that is mhcl-20017?
<|assistant|>
SELECT "label" FROM "r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: What is the Catalog with a Date that is february 20, 2002?
<|assistant|>
SELECT "catalog"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_num" real,
"name" text,
"height_cm" real,
"weight_kg" real,
"birthdate" text,
"birthplace" text,
"1999_2000_team" text,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_num" real,
"name" text,
"height_cm" real,
"weight_kg" real,
"birthdate" text,
"birthplace" text,
"1999_2000_team" text,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_num" real,
"name" text,
"height_cm" real,
"weight_kg" real,
"birthdate" text,
"birthplace" text,
"1999_2000_team" text,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"game_site" text,
"final_score" text,
"record" text,
"tv_time" text,
"attendance" text
);
Question: What was the final score for the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"game_site" text,
"final_score" text,
"record" text,
"tv_time" text,
"attendance" text
);
Question: What average week number had the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"game_site" text,
"final_score" text,
"record" text,
"tv_time" text,
"attendance" text
);
Question: What is the record for the game ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indianapolis_500" (
"year" real,
"chassis" text,
"engine" text,
"start" text,
"finish" real,
"team" text
);
Question: What did the Dallara chassis with a 5 start in 2006 finish?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indianapolis_500" (
"year" real,
"chassis" text,
"engine" text,
"start" text,
"finish" real,
"team" text
);
Question: What is the chassis of the Honda Engine from 2008?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indianapolis_500" (
"year" real,
"chassis" text,
"engine" text,
"start" text,
"finish" real,
"team" text
);
Question: What is the earliest year of the Honda Engine with a finish of 4?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
);
Question: What was the lowest wins of Larry Nelson, who ranked less than 5?
<|assistant|>
SELECT MIN("wins... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
);
Question: What is the sum of the earnings for rank 3?
<|assistant|>
SELECT SUM("earnings") FROM "leaders" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
);
Question: What was the lowest rank which earned 24,920,665?
<|assistant|>
SELECT MIN("rank") FROM "leaders... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
);
Question: What is the sum of wins for a rank less than 3, and earnings more than 24,920,665?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
);
Question: What is the country is ranked more than 4?
<|assistant|>
SELECT "country" FROM "leaders" WHERE "... |
<|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" text
);
Question: What the total of Week with attendance of 53,147
<|assistant|>
SELECT SUM("week") FROM "sche... |
<|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" text
);
Question: What is the lowest week for December 26, 1999
<|assistant|>
SELECT MIN("week") FROM "schedul... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" text,
"series" text,
"team" text,
"races" real,
"wins" real
);
Question: What season has 6 races and the team is Australia?
<|assistant|>
SELECT "season" FROM "career... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" text,
"series" text,
"team" text,
"races" real,
"wins" real
);
Question: What is the total number of Races when there were more than 8 wins?
<|assistant|>
SELECT COUN... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1936_state_election_results" (
"office" text,
"democratic_ticket" text,
"republican_ticket" text,
"american_labor_ticket" text,
"socialist_ticket" text
);
Question: Who's the Socialist ticket w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1936_state_election_results" (
"office" text,
"democratic_ticket" text,
"republican_ticket" text,
"american_labor_ticket" text,
"socialist_ticket" text
);
Question: Who's the Republican ticket ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1936_state_election_results" (
"office" text,
"democratic_ticket" text,
"republican_ticket" text,
"american_labor_ticket" text,
"socialist_ticket" text
);
Question: Who's the Socialist ticket w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1936_state_election_results" (
"office" text,
"democratic_ticket" text,
"republican_ticket" text,
"american_labor_ticket" text,
"socialist_ticket" text
);
Question: Who's the Republican ticket ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1936_state_election_results" (
"office" text,
"democratic_ticket" text,
"republican_ticket" text,
"american_labor_ticket" text,
"socialist_ticket" text
);
Question: Who's the Republican ticket ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women" (
"aces" real,
"player" text,
"opponent" text,
"year" real,
"event" text,
"sets" real,
"result" text
);
Question: what's the earliest year that serena williams had more than 2 sets?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women" (
"aces" real,
"player" text,
"opponent" text,
"year" real,
"event" text,
"sets" real,
"result" text
);
Question: what's the earliest year that the wimbledon opponent was zheng jie?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women" (
"aces" real,
"player" text,
"opponent" text,
"year" real,
"event" text,
"sets" real,
"result" text
);
Question: what year was the opponent caroline garcia?
<|assistant|>
SELECT SUM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women" (
"aces" real,
"player" text,
"opponent" text,
"year" real,
"event" text,
"sets" real,
"result" text
);
Question: what's the most recent year that samantha stosur was the opponent wi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women" (
"aces" real,
"player" text,
"opponent" text,
"year" real,
"event" text,
"sets" real,
"result" text
);
Question: what year was the memphis event?
<|assistant|>
SELECT SUM("year") FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "a" (
"name" text,
"position" text,
"number" real,
"school_club_team" text,
"season" real,
"acquisition_via" text
);
Question: What season did the player who had the number 26 play on who came... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "a" (
"name" text,
"position" text,
"number" real,
"school_club_team" text,
"season" real,
"acquisition_via" text
);
Question: What season did the player who came from Cebu play in?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"country" text,
"score" text,
"tournament_location" text,
"purse" real,
"winner_s_share" real
);
Question: How much did Champion jes... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"country" text,
"score" text,
"tournament_location" text,
"purse" real,
"winner_s_share" real
);
Question: What was the country in t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"country" text,
"score" text,
"tournament_location" text,
"purse" real,
"winner_s_share" real
);
Question: How many purses were ther... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"country" text,
"automobile_name" text,
"manufacturer" text,
"engine_make_capacity" text,
"year" text
);
Question: In what year was Letecke Zavody N.P., Jinonice the manufacturer?
<|ass... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.