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, 1989?
<|assistant|>
SELECT "episodes" FROM "ratings" WHERE "first_airdate"='september 22, 1989';<|endoftext|> |
<|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?
<|assistant|>
SELECT AVG("episodes") FROM "ratings" WHERE "last_airdate"='april 29, 1986';<|endoftext|> |
<|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 as?
<|assistant|>
SELECT "built_as" FROM "references" WHERE "ship"='dahlgren';<|endoftext|> |
<|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 reclassified as?
<|assistant|>
SELECT "reclassified_as" FROM "references" WHERE "nvr_link"='cgn38';<|endoftext|> |
<|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 class?
<|assistant|>
SELECT "class" FROM "references" WHERE "built_as"='dlg-23';<|endoftext|> |
<|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 medals?
<|assistant|>
SELECT SUM("total") FROM "medal_table" WHERE "rank"='6' AND "bronze"<2;<|endoftext|> |
<|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 and less than 124 Total medals?
<|assistant|>
SELECT COUNT("gold") FROM "medal_table" WHERE "bronze">12 AND "total"<124;<|endoftext|> |
<|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?
<|assistant|>
SELECT "score" FROM "schedule_and_results" WHERE "december"<21 AND "opponent"='buffalo sabres';<|endoftext|> |
<|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" FROM "schedule_and_results" WHERE "score"='8 - 1';<|endoftext|> |
<|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 game?
<|assistant|>
SELECT AVG("game") FROM "schedule_and_results" WHERE "december">21 AND "opponent"='pittsburgh penguins';<|endoftext|> |
<|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 involved what opponent?
<|assistant|>
SELECT "opponent" FROM "schedule_and_results" WHERE "december"<14 AND "game"<28 AND "score"='6 - 6';<|endoftext|> |
<|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 launched on 1899-04-25?
<|assistant|>
SELECT "laid_down" FROM "list_of_ships" WHERE "launched"='1899-04-25';<|endoftext|> |
<|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"?
<|assistant|>
SELECT "builder" FROM "list_of_ships" WHERE "name_translation"='ikazuchi \"thunder\"';<|endoftext|> |
<|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|>
SELECT "builder" FROM "list_of_ships" WHERE "kanji"='曙';<|endoftext|> |
<|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 one that has a Number (map) smaller than 13, and an Area in km² of 11.1?
<|assistant|>
SELECT MIN("density_per_km") FROM "list_of_montreal_boroughs" WHERE "number_map"<13 AND "area_in_km"=11.1;<|endoftext|> |
<|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 Canada 2011 Census larger than 18,097, and a Borough of verdun?
<|assistant|>
SELECT "area_in_km" FROM "list_of_montreal_boroughs" WHERE "population_canada_2011_census">'18,097' AND "borough"='verdun';<|endoftext|> |
<|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² larger than 13.5, and a Population Canada 2011 Census of 134,038?
<|assistant|>
SELECT COUNT("number_map") FROM "list_of_montreal_boroughs" WHERE "area_in_km">13.5 AND "population_canada_2011_census"='134,038';<|endoftext|> |
<|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 that has a Area in km² of 9.7, and a Population Canada 2011 Census larger than 66,158?
<|assistant|>
SELECT MIN("number_map") FROM "list_of_montreal_boroughs" WHERE "area_in_km"=9.7 AND "population_canada_2011_census">'66,158';<|endoftext|> |
<|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" WHERE "attendance"='19,741';<|endoftext|> |
<|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" WHERE "attendance"='29,000';<|endoftext|> |
<|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 "schedule" WHERE "opponent"='philadelphia eagles';<|endoftext|> |
<|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" WHERE "celebrity"='alex best';<|endoftext|> |
<|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?
<|assistant|>
SELECT "finished" FROM "series_3_2004" WHERE "famous_for"='athlete';<|endoftext|> |
<|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 "finished" FROM "series_3_2004" WHERE "famous_for"='singer in atomic kitten';<|endoftext|> |
<|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" FROM "series_3_2004" WHERE "exited"='day 13';<|endoftext|> |
<|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 "celebrity" FROM "series_3_2004" WHERE "finished"='7th';<|endoftext|> |
<|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?
<|assistant|>
SELECT MAX("goals") FROM "most_capped_players" WHERE "name"='gilmar' AND "caps"<94;<|endoftext|> |
<|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_players" WHERE "caps"=93;<|endoftext|> |
<|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" FROM "most_capped_players" WHERE "latest_cap"='september 5, 2011';<|endoftext|> |
<|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 "most_capped_players" WHERE "name"='rivelino';<|endoftext|> |
<|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" WHERE "venue"='birmingham';<|endoftext|> |
<|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 Callsign of xemr?
<|assistant|>
SELECT AVG("frequency") FROM "long_range_am_stations" WHERE "webcast"='•' AND "callsign"='xemr';<|endoftext|> |
<|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 and a Callsign of kkyx?
<|assistant|>
SELECT "website" FROM "long_range_am_stations" WHERE "frequency"<760 AND "callsign"='kkyx';<|endoftext|> |
<|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?
<|assistant|>
SELECT "webcast" FROM "long_range_am_stations" WHERE "callsign"='kgbt';<|endoftext|> |
<|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 Webcast of •in san antonio?
<|assistant|>
SELECT AVG("frequency") FROM "long_range_am_stations" WHERE "website"='•' AND "webcast"='•' AND "city_of_license"='san antonio';<|endoftext|> |
<|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 goals?
<|assistant|>
SELECT "years" FROM "all_time_career_leaders" WHERE "points"='78' AND "goals"='22';<|endoftext|> |
<|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?
<|assistant|>
SELECT "goals" FROM "all_time_career_leaders" WHERE "assists"='15' AND "player"='joey worthen';<|endoftext|> |
<|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?
<|assistant|>
SELECT "goals" FROM "all_time_career_leaders" WHERE "points"='158';<|endoftext|> |
<|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 "years" FROM "all_time_career_leaders" WHERE "goals"='36';<|endoftext|> |
<|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|>
SELECT "rank" FROM "all_time_career_leaders" WHERE "assists"='13';<|endoftext|> |
<|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 had more than 54,582 fans in attendance?
<|assistant|>
SELECT SUM("week") FROM "schedule" WHERE "opponent"='houston oilers' AND "attendance">'54,582';<|endoftext|> |
<|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 "schedule" WHERE "week"<1;<|endoftext|> |
<|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, 1979?
<|assistant|>
SELECT COUNT("attendance") FROM "schedule" WHERE "week">8 AND "date"='november 25, 1979';<|endoftext|> |
<|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 "surface" FROM "top_10_wins_per_season" WHERE "score"='2009 wta tour';<|endoftext|> |
<|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 "round" FROM "top_10_wins_per_season" WHERE "ranking"='2008 wta tour';<|endoftext|> |
<|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 sharapova?
<|assistant|>
SELECT "surface" FROM "top_10_wins_per_season" WHERE "round"='4th round' AND "player"='maria sharapova';<|endoftext|> |
<|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 "player" FROM "top_10_wins_per_season" WHERE "score"='6–4, 7–6 (7–5)';<|endoftext|> |
<|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|>
SELECT "round" FROM "top_10_wins_per_season" WHERE "player"='anna chakvetadze';<|endoftext|> |
<|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';<|endoftext|> |
<|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 - 2';<|endoftext|> |
<|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" FROM "game_log" WHERE "opponent"='@ blue jays' AND "loss"='lyon (5-4)';<|endoftext|> |
<|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"='lyon (5-4)';<|endoftext|> |
<|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"='finley (8-7)';<|endoftext|> |
<|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" FROM "game_log" WHERE "opponent"='@ blue jays' AND "date"='october 6';<|endoftext|> |
<|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;<|endoftext|> |
<|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?
<|assistant|>
SELECT "score" FROM "playoffs" WHERE "game">3 AND "opponent"='buffalo sabres';<|endoftext|> |
<|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 9';<|endoftext|> |
<|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" FROM "singles_5_4_1" WHERE "date"='october 16, 1983';<|endoftext|> |
<|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 "score" FROM "singles_5_4_1" WHERE "outcome"='runner-up';<|endoftext|> |
<|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|>
SELECT "tournament" FROM "singles_5_4_1" WHERE "date"='august 11, 1984';<|endoftext|> |
<|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 "international_goals" WHERE "date"='june 8, 2005';<|endoftext|> |
<|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 "international_goals" WHERE "venue"='los angeles';<|endoftext|> |
<|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 "international_goals" WHERE "date"='september 29, 2003';<|endoftext|> |
<|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 "international_goals" WHERE "venue"='carson';<|endoftext|> |
<|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" FROM "international_goals" WHERE "date"='october 21, 2003';<|endoftext|> |
<|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" FROM "international_goals" WHERE "date"='september 29, 2003';<|endoftext|> |
<|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 "country" FROM "complete_results" WHERE "name"='chunkath, mohan verghese';<|endoftext|> |
<|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 win loss of 11-13, and gabriel, marty as the name?
<|assistant|>
SELECT "position" FROM "complete_results" WHERE "spread">-319 AND "country"='united states' AND "win_loss"='11-13' AND "name"='gabriel, marty';<|endoftext|> |
<|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" WHERE "spread"=69;<|endoftext|> |
<|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|>
SELECT "performer_2" FROM "series_8" WHERE "episode"=5;<|endoftext|> |
<|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 "naya_paisa_series" WHERE "denomination"='one rupee';<|endoftext|> |
<|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?
<|assistant|>
SELECT "size" FROM "naya_paisa_series" WHERE "metal"='nickel' AND "denomination"='one rupee';<|endoftext|> |
<|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 "naya_paisa_series" WHERE "denomination"='one rupee';<|endoftext|> |
<|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|>
SELECT "shape" FROM "naya_paisa_series" WHERE "metal"='nickel' AND "denomination"='one rupee';<|endoftext|> |
<|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,
"2013" text
);
Question: Which 2007 has a 2010 of A, and a 2006 of lq?
<|assistant|>
SELECT "2007" FROM "singles_performance_timeline" WHERE "2010"='a' AND "2006"='lq';<|endoftext|> |
<|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,
"2013" text
);
Question: Which 2012 has a 2007 of 1r?
<|assistant|>
SELECT "2012" FROM "singles_performance_timeline" WHERE "2007"='1r';<|endoftext|> |
<|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,
"2013" text
);
Question: Which 2002 has a 2013 of 2–4?
<|assistant|>
SELECT "2002" FROM "singles_performance_timeline" WHERE "2013"='2–4';<|endoftext|> |
<|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,
"2013" text
);
Question: Which 2013 has a 2010 of 1r?
<|assistant|>
SELECT "2013" FROM "singles_performance_timeline" WHERE "2010"='1r';<|endoftext|> |
<|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,
"2013" text
);
Question: Which 2005 has a Tournament of grand slam tournaments?
<|assistant|>
SELECT "2005" FROM "singles_performance_timeline" WHERE "tournament"='grand slam tournaments';<|endoftext|> |
<|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,
"2013" text
);
Question: Which 2007 has a 2008 of 1r, and a Tournament of wimbledon?
<|assistant|>
SELECT "2007" FROM "singles_performance_timeline" WHERE "2008"='1r' AND "tournament"='wimbledon';<|endoftext|> |
<|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|>
SELECT "date" FROM "regular_season" WHERE "home"='minnesota';<|endoftext|> |
<|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 of 44–7–15?
<|assistant|>
SELECT "visitor" FROM "regular_season" WHERE "decision"='myre' AND "record"='44–7–15';<|endoftext|> |
<|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 "championship" FROM "wins_11" WHERE "winning_score"='6 & 5';<|endoftext|> |
<|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|>
SELECT "winning_score" FROM "wins_11" WHERE "runner_s_up"='betsy rawls';<|endoftext|> |
<|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?
<|assistant|>
SELECT "runner_s_up" FROM "wins_11" WHERE "championship"='women''s western open' AND "year"=1946;<|endoftext|> |
<|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|>
SELECT "margin" FROM "wins_11" WHERE "runner_s_up"='patty berg' AND "year"=1953;<|endoftext|> |
<|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|>
SELECT "margin" FROM "wins_11" WHERE "winning_score"='+8 (70-69-70-75=284)';<|endoftext|> |
<|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 number smaller than 135339?
<|assistant|>
SELECT "name" FROM "north_east" WHERE "type"='primary' AND "dcsf_number">2337 AND "ofsted_number"<135339;<|endoftext|> |
<|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?
<|assistant|>
SELECT "name" FROM "north_east" WHERE "dcsf_number">2448 AND "ofsted_number"=131319;<|endoftext|> |
<|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 "faith" FROM "north_east" WHERE "dcsf_number">2448 AND "name"='holtsmere end';<|endoftext|> |
<|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 117335?
<|assistant|>
SELECT MIN("dcsf_number") FROM "north_east" WHERE "name"='aycliffe drive' AND "ofsted_number"<117335;<|endoftext|> |
<|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 "airport"='toamasina airport';<|endoftext|> |
<|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 "city"='sydney';<|endoftext|> |
<|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 "country"='mayotte';<|endoftext|> |
<|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 "destinations" WHERE "airport"='chennai international airport';<|endoftext|> |
<|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 "destinations" WHERE "iata"='nos';<|endoftext|> |
<|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" text
);
Question: What is the part number of athlon x2 4850e?
<|assistant|>
SELECT "part_number_s" FROM "energy_efficient_e_series" WHERE "model_number"='athlon x2 4850e';<|endoftext|> |
<|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" text
);
Question: What's the frequency of the device that has a Multi 1 of 7.5×?
<|assistant|>
SELECT "frequency" FROM "energy_efficient_e_series" WHERE "multi_1"='7.5×';<|endoftext|> |
<|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" text
);
Question: What's amount of L2 Cache on a device that has a Frequency of 1500mhz?
<|assistant|>
SELECT "l2_cache" FROM "energy_efficient_e_series" WHERE "frequency"='1500mhz';<|endoftext|> |
<|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" text
);
Question: When is the release date for a chip that has a Frequency of 2300mhz?
<|assistant|>
SELECT "release_date" FROM "energy_efficient_e_series" WHERE "frequency"='2300mhz';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.