text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ratings" (
"season" text,
"episodes" real,
"first_airdate" text,
"last_airdate" text,
"nielsen_ranking" text
);
Question: How many episodes were in the season that first aired on September 22, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ratings" (
"season" text,
"episodes" real,
"first_airdate" text,
"last_airdate" text,
"nielsen_ranking" text
);
Question: How many episodes were in the season that ended on April 29, 1986?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"ship" text,
"built_as" text,
"reclassified_as" text,
"class" text,
"commissioned_decommissioned" text,
"nvr_link" text
);
Question: Where the ship is Dahlgren what is the build... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"ship" text,
"built_as" text,
"reclassified_as" text,
"class" text,
"commissioned_decommissioned" text,
"nvr_link" text
);
Question: Where the NRV link is CGN38, what is the rec... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"ship" text,
"built_as" text,
"reclassified_as" text,
"class" text,
"commissioned_decommissioned" text,
"nvr_link" text
);
Question: Where the built as is DLG-23, what is the cl... |
<|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 Total medals won by the nation in Rank 6 with less than 2 Bronze me... |
<|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 Gold medals were won by the Nation that had more than 12 Bronze medals... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text
);
Question: December smaller than 21, and a Opponent of buffalo sabres had what score?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text
);
Question: Score of 8 - 1 happened on what day in December?
<|assistant|>
SELECT "december" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text
);
Question: December larger than 21, and a Opponent of Pittsburgh penguins had what average g... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text
);
Question: December smaller than 14, and a Game smaller than 28, and a Score of 6 - 6 involv... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_ships" (
"kanji" text,
"name_translation" text,
"builder" text,
"laid_down" text,
"launched" text,
"completed" text
);
Question: What is the date that the item was laid down if it was... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_ships" (
"kanji" text,
"name_translation" text,
"builder" text,
"laid_down" text,
"launched" text,
"completed" text
);
Question: Which builder is associated with ikazuchi "thunder"?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_ships" (
"kanji" text,
"name_translation" text,
"builder" text,
"laid_down" text,
"launched" text,
"completed" text
);
Question: Which builder has the the kanji of 曙?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_montreal_boroughs" (
"number_map" real,
"borough" text,
"population_canada_2011_census" real,
"area_in_km" real,
"density_per_km" real
);
Question: Which Density per km² is the lowest o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_montreal_boroughs" (
"number_map" real,
"borough" text,
"population_canada_2011_census" real,
"area_in_km" real,
"density_per_km" real
);
Question: Which Area in km² has a Population Ca... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_montreal_boroughs" (
"number_map" real,
"borough" text,
"population_canada_2011_census" real,
"area_in_km" real,
"density_per_km" real
);
Question: How much #s have an Area in km² large... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_montreal_boroughs" (
"number_map" real,
"borough" text,
"population_canada_2011_census" real,
"area_in_km" real,
"density_per_km" real
);
Question: Which Number (map) is the lowest one ... |
<|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: Attendance of 19,741 had what average week?
<|assistant|>
SELECT AVG("week") FROM "schedule"... |
<|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: Attendance of 29,000 occurred on what date?
<|assistant|>
SELECT "date" FROM "schedule" WHER... |
<|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: Opponent of Philadelphia eagles had what attendance?
<|assistant|>
SELECT "attendance" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_3_2004" (
"celebrity" text,
"famous_for" text,
"entered" text,
"exited" text,
"finished" text
);
Question: What day did Alex Best exit?
<|assistant|>
SELECT "exited" FROM "series_3_2004"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_3_2004" (
"celebrity" text,
"famous_for" text,
"entered" text,
"exited" text,
"finished" text
);
Question: What place did the celebrity who is famous for being an athlete finish?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_3_2004" (
"celebrity" text,
"famous_for" text,
"entered" text,
"exited" text,
"finished" text
);
Question: What place did the singer in atomic kitten finish?
<|assistant|>
SELECT "finish... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_3_2004" (
"celebrity" text,
"famous_for" text,
"entered" text,
"exited" text,
"finished" text
);
Question: Who was the celebrity who exited on day 13?
<|assistant|>
SELECT "celebrity" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_3_2004" (
"celebrity" text,
"famous_for" text,
"entered" text,
"exited" text,
"finished" text
);
Question: Who was the celebrity who finished in 7th place?
<|assistant|>
SELECT "celebrit... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_capped_players" (
"name" text,
"caps" real,
"goals" real,
"first_cap" text,
"latest_cap" text
);
Question: Name of gilmar, and a Caps smaller than 94 had how many highest goals?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_capped_players" (
"name" text,
"caps" real,
"goals" real,
"first_cap" text,
"latest_cap" text
);
Question: Caps of 93 had how many goals?
<|assistant|>
SELECT "goals" FROM "most_capped_pla... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_capped_players" (
"name" text,
"caps" real,
"goals" real,
"first_cap" text,
"latest_cap" text
);
Question: Latest cap of september 5, 2011 had how many goals?
<|assistant|>
SELECT "goals" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_capped_players" (
"name" text,
"caps" real,
"goals" real,
"first_cap" text,
"latest_cap" text
);
Question: Name of rivelino had how many highest caps?
<|assistant|>
SELECT MAX("caps") FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_indoor" (
"pos" real,
"mark" text,
"athlete" text,
"venue" text,
"date" text
);
Question: Which athlete played at the Birmingham venue?
<|assistant|>
SELECT "athlete" FROM "women_indoor" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "long_range_am_stations" (
"frequency" real,
"callsign" text,
"brand" text,
"city_of_license" text,
"website" text,
"webcast" text
);
Question: Which Frequency has a Webcast of •, and a Callsi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "long_range_am_stations" (
"frequency" real,
"callsign" text,
"brand" text,
"city_of_license" text,
"website" text,
"webcast" text
);
Question: Which Website has a Frequency smaller than 760 a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "long_range_am_stations" (
"frequency" real,
"callsign" text,
"brand" text,
"city_of_license" text,
"website" text,
"webcast" text
);
Question: Which Webcast has a Callsign of kgbt?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "long_range_am_stations" (
"frequency" real,
"callsign" text,
"brand" text,
"city_of_license" text,
"website" text,
"webcast" text
);
Question: Which Frequency has a Website of •, and a Webcas... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_career_leaders" (
"rank" text,
"player" text,
"goals" text,
"assists" text,
"points" text,
"years" text
);
Question: What years did the player play when he scored 78 points and 22 go... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_career_leaders" (
"rank" text,
"player" text,
"goals" text,
"assists" text,
"points" text,
"years" text
);
Question: How many goals did Joey Worthen have when he had 15 assists?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_career_leaders" (
"rank" text,
"player" text,
"goals" text,
"assists" text,
"points" text,
"years" text
);
Question: How many goals were scored when 158 points were collected?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_career_leaders" (
"rank" text,
"player" text,
"goals" text,
"assists" text,
"points" text,
"years" text
);
Question: What years had players who scored 36 goals?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_career_leaders" (
"rank" text,
"player" text,
"goals" text,
"assists" text,
"points" text,
"years" text
);
Question: What was the rank of the player who had 13 assists?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: What is the sum of the weeks during which the Redskins played against the Houston Oilers and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: What is the highest attendance for week 1?
<|assistant|>
SELECT MAX("attendance") 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" real
);
Question: What is the total number in attendance for the game after week 8 that was on November 25, 19... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_10_wins_per_season" (
"player" text,
"ranking" text,
"event" text,
"surface" text,
"round" text,
"score" text
);
Question: Which Surface has a Score of 2009 wta tour?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_10_wins_per_season" (
"player" text,
"ranking" text,
"event" text,
"surface" text,
"round" text,
"score" text
);
Question: Which Round has a Ranking of 2008 wta tour?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_10_wins_per_season" (
"player" text,
"ranking" text,
"event" text,
"surface" text,
"round" text,
"score" text
);
Question: Which Surface has a Round of 4th round, and a Player of maria sh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_10_wins_per_season" (
"player" text,
"ranking" text,
"event" text,
"surface" text,
"round" text,
"score" text
);
Question: Which Player has a Score of 6–4, 7–6 (7–5)?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_10_wins_per_season" (
"player" text,
"ranking" text,
"event" text,
"surface" text,
"round" text,
"score" text
);
Question: Which Round has a Player of anna chakvetadze?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
Question: Record of 89-67 had what loss?
<|assistant|>
SELECT "loss" FROM "game_log" WHERE "record"='89-67'... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
Question: Score of 3 - 2 had what record?
<|assistant|>
SELECT "record" FROM "game_log" WHERE "score"='3 - ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
Question: Opponent of @ blue jays, and a Loss of lyon (5-4) had what opponent?
<|assistant|>
SELECT "record... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
Question: Loss of lyon (5-4) had what score?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "loss"='lyo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
Question: Loss of finley (8-7) had what record?
<|assistant|>
SELECT "record" FROM "game_log" WHERE "loss"=... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
Question: Opponent of @ blue jays, and a Date of october 6 had what score?
<|assistant|>
SELECT "score" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"series" text
);
Question: What is the score for game 5?
<|assistant|>
SELECT "score" FROM "playoffs" WHERE "game"=5;<|endof... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"series" text
);
Question: What is the score that has a game greater than 3, with buffalo sabres as the opponent?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"series" text
);
Question: What score has may 9 as the date?
<|assistant|>
SELECT "score" FROM "playoffs" WHERE "date"='may ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_5_4_1" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What was the score on October 16, 1983?
<|assistant|>
SELECT "score... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_5_4_1" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What was the score when she was a runner-up?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_5_4_1" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What tournament was being played on August 11, 1984?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What was the Venue on June 8, 2005?
<|assistant|>
SELECT "venue" FROM "internation... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: On what Date was the Venue Los Angeles?
<|assistant|>
SELECT "date" FROM "internat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What was the Score on September 29, 2003?
<|assistant|>
SELECT "score" FROM "inter... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: On what Date was the Venue in Carson?
<|assistant|>
SELECT "date" FROM "internatio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What was the competition on October 21, 2003?
<|assistant|>
SELECT "competition" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What was the Competition on September 29, 2003?
<|assistant|>
SELECT "competition"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_results" (
"position" real,
"name" text,
"country" text,
"win_loss" text,
"spread" real
);
Question: What country has chunkath, mohan verghese as the name?
<|assistant|>
SELECT "countr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_results" (
"position" real,
"name" text,
"country" text,
"win_loss" text,
"spread" real
);
Question: What position has a spread greater than -319, and United States as the country, a w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_results" (
"position" real,
"name" text,
"country" text,
"win_loss" text,
"spread" real
);
Question: What name has a spread of 69?
<|assistant|>
SELECT "name" FROM "complete_results" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_8" (
"date" text,
"episode" real,
"performer_1" text,
"performer_2" text,
"performer_3" text,
"performer_4" text
);
Question: Which Performer 2 has an Episode of 5?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "naya_paisa_series" (
"denomination" text,
"metal" text,
"weight" text,
"shape" text,
"size" text
);
Question: What weight has one rupee as the denomination?
<|assistant|>
SELECT "weight" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "naya_paisa_series" (
"denomination" text,
"metal" text,
"weight" text,
"shape" text,
"size" text
);
Question: What is the size that has nickel as the metal, and one rupee as the denomination?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "naya_paisa_series" (
"denomination" text,
"metal" text,
"weight" text,
"shape" text,
"size" text
);
Question: What metal has one rupee as the denomination?
<|assistant|>
SELECT "metal" FROM "na... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "naya_paisa_series" (
"denomination" text,
"metal" text,
"weight" text,
"shape" text,
"size" text
);
Question: What shape has nickel as the metal, and one rupee as the denomination?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2002" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2002" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2002" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2002" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2002" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2002" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: Which Date has a Home of minnesota?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: Which Visitor has a Decision of myre, and a Record o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_11" (
"year" real,
"championship" text,
"winning_score" text,
"margin" text,
"runner_s_up" text
);
Question: What Championship had a Winning score of 6 & 5?
<|assistant|>
SELECT "champions... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_11" (
"year" real,
"championship" text,
"winning_score" text,
"margin" text,
"runner_s_up" text
);
Question: What was the Winning Score when Betsy Rawls was the Runner(s)-up?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_11" (
"year" real,
"championship" text,
"winning_score" text,
"margin" text,
"runner_s_up" text
);
Question: In 1946, what is the Runner(s)-up of the Women's Western Open Championship?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_11" (
"year" real,
"championship" text,
"winning_score" text,
"margin" text,
"runner_s_up" text
);
Question: What is the Margin in 1953 when Patty Berg was Runner(s)-up?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_11" (
"year" real,
"championship" text,
"winning_score" text,
"margin" text,
"runner_s_up" text
);
Question: What is the Margin when the Winning score is +8 (70-69-70-75=284)?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "north_east" (
"name" text,
"faith" text,
"type" text,
"dcsf_number" real,
"ofsted_number" real
);
Question: What is the name of the primary with a DCSF number larger than 2337 and an Ofsted num... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "north_east" (
"name" text,
"faith" text,
"type" text,
"dcsf_number" real,
"ofsted_number" real
);
Question: What name that has a DCSF number bigger than 2448 and an Ofsted number of 131319?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "north_east" (
"name" text,
"faith" text,
"type" text,
"dcsf_number" real,
"ofsted_number" real
);
Question: What faith has a DCSF number bigger than 2448 in Holtsmere End?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "north_east" (
"name" text,
"faith" text,
"type" text,
"dcsf_number" real,
"ofsted_number" real
);
Question: What's the lowest DCSF number in Aycliffe Drive but an Ofsted number smaller than 117... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: what city is the toamasina airport in?
<|assistant|>
SELECT "city" FROM "destinations" WHERE "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: What country has the city, Sydney?
<|assistant|>
SELECT "country" FROM "destinations" WHERE "c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: What city is in the country of Mayotte?
<|assistant|>
SELECT "city" FROM "destinations" WHERE ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: What is the IATA for the chennai international airport?
<|assistant|>
SELECT "iata" FROM "dest... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: What is the airport name that has nos listed as the IATA?
<|assistant|>
SELECT "airport" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "energy_efficient_e_series" (
"model_number" text,
"stepping" text,
"frequency" text,
"l2_cache" text,
"multi_1" text,
"v_core" text,
"socket" text,
"release_date" text,
"part_number_s" t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "energy_efficient_e_series" (
"model_number" text,
"stepping" text,
"frequency" text,
"l2_cache" text,
"multi_1" text,
"v_core" text,
"socket" text,
"release_date" text,
"part_number_s" t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "energy_efficient_e_series" (
"model_number" text,
"stepping" text,
"frequency" text,
"l2_cache" text,
"multi_1" text,
"v_core" text,
"socket" text,
"release_date" text,
"part_number_s" t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "energy_efficient_e_series" (
"model_number" text,
"stepping" text,
"frequency" text,
"l2_cache" text,
"multi_1" text,
"v_core" text,
"socket" text,
"release_date" text,
"part_number_s" t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.