text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "calendar" (
"round" real,
"race_name" text,
"circuit" text,
"city_state" text,
"date" text,
"winner_s" text,
"team" text
);
Question: Which circuit had a round larger than 5?
<|assistant|>
SELECT "circuit" FROM "calendar" WHERE "round">5;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "conan_dark_horse_comics" (
"issue" text,
"date" text,
"title" text,
"story" text,
"color" text
);
Question: What is the title of the story published on October 19, 2011?
<|assistant|>
SELECT "story" FROM "conan_dark_horse_comics" WHERE "date"='october 19, 2011';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "conan_dark_horse_comics" (
"issue" text,
"date" text,
"title" text,
"story" text,
"color" text
);
Question: What Issue number was released on August 17, 2011?
<|assistant|>
SELECT "issue" FROM "conan_dark_horse_comics" WHERE "date"='august 17, 2011';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "conan_dark_horse_comics" (
"issue" text,
"date" text,
"title" text,
"story" text,
"color" text
);
Question: What story title was included in Issue #8?
<|assistant|>
SELECT "story" FROM "conan_dark_horse_comics" WHERE "issue"='#8';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jersey_progress" (
"stage_winner" text,
"general_classification" text,
"young_classification" text,
"mountains_classification" text,
"sprint_classification" text,
"team_classification" text
);
Question: Which young classification has general classification of Christian Vande Velde for Team Columbia and Mark Cavendish?
<|assistant|>
SELECT "young_classification" FROM "jersey_progress" WHERE "general_classification"='christian vande velde' AND "team_classification"='team columbia' AND "sprint_classification"='mark cavendish';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jersey_progress" (
"stage_winner" text,
"general_classification" text,
"young_classification" text,
"mountains_classification" text,
"sprint_classification" text,
"team_classification" text
);
Question: What mountains classification corresponds to Mark Cavendish and the Garmin-Chipotle-H30?
<|assistant|>
SELECT "mountains_classification" FROM "jersey_progress" WHERE "general_classification"='mark cavendish' AND "team_classification"='garmin-chipotle-h30';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jersey_progress" (
"stage_winner" text,
"general_classification" text,
"young_classification" text,
"mountains_classification" text,
"sprint_classification" text,
"team_classification" text
);
Question: Who was the winner for a Sprint Classification and Young Classification to Mark Cavendish and Garmin-Chipotle-H30 for team?
<|assistant|>
SELECT "stage_winner" FROM "jersey_progress" WHERE "sprint_classification"='mark cavendish' AND "team_classification"='garmin-chipotle-h30' AND "young_classification"='mark cavendish';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_cities" (
"rank" real,
"municipality" text,
"population_2010_census" real,
"population_2005_census" real,
"population_2000_census" real
);
Question: What is the lowest population (2010 Census) that has a rank smaller than 45, municipality of gimpo, and populaion (2000 Census) larger than 117,594?
<|assistant|>
SELECT MIN("population_2010_census") FROM "list_of_cities" WHERE "population_2000_census">'117,594' AND "municipality"='gimpo' AND "rank"<45;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_cities" (
"rank" real,
"municipality" text,
"population_2010_census" real,
"population_2005_census" real,
"population_2000_census" real
);
Question: What is the lowest population (2000 Census) that has a population (2010 Census) larger than 1,071,913 and municipality of Suwon?
<|assistant|>
SELECT MIN("population_2000_census") FROM "list_of_cities" WHERE "municipality"='suwon' AND "population_2010_census">'1,071,913';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_cities" (
"rank" real,
"municipality" text,
"population_2010_census" real,
"population_2005_census" real,
"population_2000_census" real
);
Question: What is the highest population (2000 Census) that has a rank of 43, population (2010 Census) larger than 231,271, and population (2005 Census) larger than 157,632?
<|assistant|>
SELECT MAX("population_2000_census") FROM "list_of_cities" WHERE "population_2005_census">'157,632' AND "rank"=43 AND "population_2010_census">'231,271';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_cities" (
"rank" real,
"municipality" text,
"population_2010_census" real,
"population_2005_census" real,
"population_2000_census" real
);
Question: What is the total number of rank that has population (2005 Census) smaller than 193,398 and population (2000 Census) of 167,231?
<|assistant|>
SELECT COUNT("rank") FROM "list_of_cities" WHERE "population_2000_census"='167,231' AND "population_2005_census"<'193,398';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brazil_s_40_busiest_airports_by_passenge" (
"rank" real,
"location" text,
"total_passengers" real,
"annual_change" text,
"capacity" real,
"capacity_in_use" text
);
Question: Who had the lowest rank for a capacity of 197,13% and a capacity larger than 1,010,000?
<|assistant|>
SELECT MIN("rank") FROM "brazil_s_40_busiest_airports_by_passenge" WHERE "capacity_in_use"='197,13%' AND "capacity">'1,010,000';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brazil_s_40_busiest_airports_by_passenge" (
"rank" real,
"location" text,
"total_passengers" real,
"annual_change" text,
"capacity" real,
"capacity_in_use" text
);
Question: What is the average capacity for less than 8,261,355 passengers, and 126,06% in use?
<|assistant|>
SELECT AVG("capacity") FROM "brazil_s_40_busiest_airports_by_passenge" WHERE "total_passengers"<'8,261,355' AND "capacity_in_use"='126,06%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_10" (
"outcome" text,
"date" text,
"championship" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
Question: Which outcome has a partner named Mark Dickson, with the opponents of Hans Gildemeister Belus Prajoux?
<|assistant|>
SELECT "outcome" FROM "doubles_10" WHERE "partner"='mark dickson' AND "opponents_in_the_final"='hans gildemeister belus prajoux';<|endoftext|> |
<|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 Format with a Catalog that is vcrd 103?
<|assistant|>
SELECT "format" FROM "release_history" WHERE "catalog"='vcrd 103';<|endoftext|> |
<|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 Region with a Catalog that is vlmx 1087-3?
<|assistant|>
SELECT "region" FROM "release_history" WHERE "catalog"='vlmx 1087-3';<|endoftext|> |
<|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 Format with a Label of electropolis and a Date that is 2002?
<|assistant|>
SELECT "format" FROM "release_history" WHERE "label"='electropolis' AND "date"='2002';<|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: Which result's attendance was more than 60,705 when the week number is less than 13?
<|assistant|>
SELECT "result" FROM "schedule" WHERE "attendance">'60,705' AND "week"<13;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "composition_of_the_9th_seanad" (
"administrative_panel" real,
"agricultural_panel" real,
"cultural_and_educational_panel" real,
"industrial_and_commercial_panel" real,
"labour_panel" real,
"national_university_of_ireland" real,
"university_of_dublin" real,
"nominated_by_the_taoiseach" real,
"total" real
);
Question: How many in the cultural and educational panel have a university of Dublin of 3 & A labor panel larger than 11?
<|assistant|>
SELECT COUNT("cultural_and_educational_panel") FROM "composition_of_the_9th_seanad" WHERE "university_of_dublin"=3 AND "labour_panel">11;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "one_day_international" (
"s_no" real,
"team_a" text,
"team_b" text,
"winner" text,
"margin" text,
"match_date" text
);
Question: What is Margin, when Match Date is Oct 17, 2007?
<|assistant|>
SELECT "margin" FROM "one_day_international" WHERE "match_date"='oct 17, 2007';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "one_day_international" (
"s_no" real,
"team_a" text,
"team_b" text,
"winner" text,
"margin" text,
"match_date" text
);
Question: What is Team (B), when S No is greater than 17?
<|assistant|>
SELECT "team_b" FROM "one_day_international" WHERE "s_no">17;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "one_day_international" (
"s_no" real,
"team_a" text,
"team_b" text,
"winner" text,
"margin" text,
"match_date" text
);
Question: What is the total number of S No(s), when the Margin is 16 runs?
<|assistant|>
SELECT COUNT("s_no") FROM "one_day_international" WHERE "margin"='16 runs';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "one_day_international" (
"s_no" real,
"team_a" text,
"team_b" text,
"winner" text,
"margin" text,
"match_date" text
);
Question: What is the highest S No, when the Match Date is Nov 1, 2003?
<|assistant|>
SELECT MAX("s_no") FROM "one_day_international" WHERE "match_date"='nov 1, 2003';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "one_day_international" (
"s_no" real,
"team_a" text,
"team_b" text,
"winner" text,
"margin" text,
"match_date" text
);
Question: What is Team (B), when S No is less than 18, when Margin is 8 Wickets, and when Match Date is Oct 30, 1989?
<|assistant|>
SELECT "team_b" FROM "one_day_international" WHERE "s_no"<18 AND "margin"='8 wickets' AND "match_date"='oct 30, 1989';<|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: When was the last time, since December 14, 1986, that the attendance was lower than 47,096?
<|assistant|>
SELECT MAX("week") FROM "schedule" WHERE "date"='december 14, 1986' AND "attendance"<'47,096';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_finals" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What is the Surface of indoor/carpet Outcome on 13 October 1996
<|assistant|>
SELECT "outcome" FROM "doubles_finals" WHERE "surface"='indoor/carpet' AND "date"='13 october 1996';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_finals" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What the Outcome for the Tournament of Johannesburg, South Africa
<|assistant|>
SELECT "outcome" FROM "doubles_finals" WHERE "tournament"='johannesburg, south africa';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "block_iif" (
"date" text,
"rocket" text,
"type" text,
"launch_site" text,
"satellite" text
);
Question: What is the launch site of the delta iv rocket?
<|assistant|>
SELECT "launch_site" FROM "block_iif" WHERE "rocket"='delta iv';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "block_iif" (
"date" text,
"rocket" text,
"type" text,
"launch_site" text,
"satellite" text
);
Question: What is the type of the gps iif-10 satellite with an unknown date?
<|assistant|>
SELECT "type" FROM "block_iif" WHERE "date"='unknown' AND "satellite"='gps iif-10';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "block_iif" (
"date" text,
"rocket" text,
"type" text,
"launch_site" text,
"satellite" text
);
Question: What is the type of the gps iif-10 satellite?
<|assistant|>
SELECT "type" FROM "block_iif" WHERE "satellite"='gps iif-10';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "block_iif" (
"date" text,
"rocket" text,
"type" text,
"launch_site" text,
"satellite" text
);
Question: What is the launch site of the delta iv rocket with an unknown date and a gps iif-10 satellite?
<|assistant|>
SELECT "launch_site" FROM "block_iif" WHERE "date"='unknown' AND "rocket"='delta iv' AND "satellite"='gps iif-10';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "block_iif" (
"date" text,
"rocket" text,
"type" text,
"launch_site" text,
"satellite" text
);
Question: What is the date of the gps iif-7 satellite?
<|assistant|>
SELECT "date" FROM "block_iif" WHERE "satellite"='gps iif-7';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" real,
"chassis" text,
"engine" text,
"start" text,
"finish" text
);
Question: What was the finish for 1992?
<|assistant|>
SELECT "finish" FROM "indy_500_results" WHERE "year"=1992;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" real,
"chassis" text,
"engine" text,
"start" text,
"finish" text
);
Question: What was Andretti's finish for the year he had a Buick engine and started 16th?
<|assistant|>
SELECT "finish" FROM "indy_500_results" WHERE "engine"='buick' AND "start"='16th';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_500_results" (
"year" real,
"chassis" text,
"engine" text,
"start" text,
"finish" text
);
Question: What was Andretti's finish the year he started 16th with a Buick engine?
<|assistant|>
SELECT "finish" FROM "indy_500_results" WHERE "engine"='buick' AND "start"='16th';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
Question: How many years were there a men's double of györgy vörös gábor petrovits and a men's single of györgy vörös?
<|assistant|>
SELECT SUM("year") FROM "past_winners" WHERE "men_s_doubles"='györgy vörös gábor petrovits' AND "men_s_singles"='györgy vörös';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: Which Drawn has a Points of 6, and a Against larger than 16?
<|assistant|>
SELECT SUM("drawn") FROM "campeonato_paulista" WHERE "points"=6 AND "against">16;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: Which Points has a Difference of 3, and a Played smaller than 10?
<|assistant|>
SELECT AVG("points") FROM "campeonato_paulista" WHERE "difference"='3' AND "played"<10;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: Which Points has a Team of são paulo athletic, and a Position larger than 5?
<|assistant|>
SELECT SUM("points") FROM "campeonato_paulista" WHERE "team"='são paulo athletic' AND "position">5;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: Which Position has a Played larger than 9, and a Points smaller than 11, and a Drawn smaller than 0?
<|assistant|>
SELECT MIN("position") FROM "campeonato_paulista" WHERE "played">9 AND "points"<11 AND "drawn"<0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1997_reissue_bonus_tracks" (
"track" real,
"recorded" text,
"catalogue" text,
"release_date" text,
"song_title" text,
"time" text
);
Question: What track has a catalogue of 47-9465?
<|assistant|>
SELECT SUM("track") FROM "1997_reissue_bonus_tracks" WHERE "catalogue"='47-9465';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1997_reissue_bonus_tracks" (
"track" real,
"recorded" text,
"catalogue" text,
"release_date" text,
"song_title" text,
"time" text
);
Question: What track has a time of 2:30?
<|assistant|>
SELECT "track" FROM "1997_reissue_bonus_tracks" WHERE "time"='2:30';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1997_reissue_bonus_tracks" (
"track" real,
"recorded" text,
"catalogue" text,
"release_date" text,
"song_title" text,
"time" text
);
Question: What catalogue was recorded on 9/10/67 and a release date of 1/9/68?
<|assistant|>
SELECT "catalogue" FROM "1997_reissue_bonus_tracks" WHERE "recorded"='9/10/67' AND "release_date"='1/9/68';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_medal_tables" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Where does Norway rank in total medals among countries with fewer than 7 bronzes?
<|assistant|>
SELECT "rank" FROM "all_time_medal_tables" WHERE "bronze"<7 AND "nation"='norway';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "best_batting_strike_rate" (
"player" text,
"team" text,
"inns" real,
"runs" real,
"balls" real
);
Question: What is the Inns of 435 Runs?
<|assistant|>
SELECT "inns" FROM "best_batting_strike_rate" WHERE "runs"=435;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "total_team_ranking_open_section" (
"rank" real,
"country" text,
"1st_place" real,
"2nd_place" real,
"3rd_place" real,
"total" real
);
Question: What is the average 1st place with a Rank that is larger than 10?
<|assistant|>
SELECT AVG("1st_place") FROM "total_team_ranking_open_section" WHERE "rank">10;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"week_of" text,
"tier" text,
"winner" text,
"runner_up" text,
"semi_finalists" text
);
Question: What week was the Runner-up Lori McNeil?
<|assistant|>
SELECT "week_of" FROM "november" WHERE "runner_up"='lori mcneil';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"week_of" text,
"tier" text,
"winner" text,
"runner_up" text,
"semi_finalists" text
);
Question: When the runner-up was Jing-qian Yi, who was the winner?
<|assistant|>
SELECT "winner" FROM "november" WHERE "runner_up"='jing-qian yi';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_2" (
"episode_number" real,
"air_date" text,
"guest_host" text,
"musical_guest_song_performed" text,
"who_knows_the_most_about_the_guest_host_panelists" text
);
Question: Who was the musical guest when the panelists were Nancy Sorrell and Samia Smith?
<|assistant|>
SELECT "musical_guest_song_performed" FROM "series_2" WHERE "who_knows_the_most_about_the_guest_host_panelists"='nancy sorrell and samia smith';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_2" (
"episode_number" real,
"air_date" text,
"guest_host" text,
"musical_guest_song_performed" text,
"who_knows_the_most_about_the_guest_host_panelists" text
);
Question: Who was the guest host for episode numbers under 6 and panelists of Jade Goody and Kenzie?
<|assistant|>
SELECT "guest_host" FROM "series_2" WHERE "episode_number"<6 AND "who_knows_the_most_about_the_guest_host_panelists"='jade goody and kenzie';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_2" (
"episode_number" real,
"air_date" text,
"guest_host" text,
"musical_guest_song_performed" text,
"who_knows_the_most_about_the_guest_host_panelists" text
);
Question: Who were the panelists on episode number 4?
<|assistant|>
SELECT "who_knows_the_most_about_the_guest_host_panelists" FROM "series_2" WHERE "episode_number"=4;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_2" (
"episode_number" real,
"air_date" text,
"guest_host" text,
"musical_guest_song_performed" text,
"who_knows_the_most_about_the_guest_host_panelists" text
);
Question: What is the highest episode number in which Jamie Oliver guest-hosted?
<|assistant|>
SELECT MAX("episode_number") FROM "series_2" WHERE "guest_host"='jamie oliver';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"record" text
);
Question: What is the score of the home game for the Cavaliers where Lebron James (46) was the lead scorer?
<|assistant|>
SELECT "score" FROM "march" WHERE "home"='cavaliers' AND "leading_scorer"='lebron james (46)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"record" text
);
Question: Who was the leading scorer against the visiting team Bulls?
<|assistant|>
SELECT "leading_scorer" FROM "march" WHERE "visitor"='bulls';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"record" text
);
Question: What date was the game played against the home team Rockets?
<|assistant|>
SELECT "date" FROM "march" WHERE "home"='rockets';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "conan_dark_horse_comics" (
"issue" text,
"date" text,
"title" text,
"penciller" text,
"color" text
);
Question: What was the Date of the Cimmeria Issue for which the Penciller was Tomás Giorello?
<|assistant|>
SELECT "date" FROM "conan_dark_horse_comics" WHERE "penciller"='tomás giorello' AND "title"='cimmeria';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "conan_dark_horse_comics" (
"issue" text,
"date" text,
"title" text,
"penciller" text,
"color" text
);
Question: When did the Issue with the Title Homecoming come out?
<|assistant|>
SELECT "date" FROM "conan_dark_horse_comics" WHERE "title"='homecoming';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_league" (
"team" text,
"match" real,
"points" real,
"draw" real,
"lost" real
);
Question: Which average match has a lost greater than 0, points greater than 6, legia warszawa as the team, and a draw less than 0?
<|assistant|>
SELECT AVG("match") FROM "first_league" WHERE "lost">0 AND "points">6 AND "team"='legia warszawa' AND "draw"<0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_league" (
"team" text,
"match" real,
"points" real,
"draw" real,
"lost" real
);
Question: What draw has a lost less than 6 with 28 as the points?
<|assistant|>
SELECT "draw" FROM "first_league" WHERE "lost"<6 AND "points"=28;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_league" (
"team" text,
"match" real,
"points" real,
"draw" real,
"lost" real
);
Question: Which average lost that has a match less than 14?
<|assistant|>
SELECT AVG("lost") FROM "first_league" WHERE "match"<14;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_league" (
"team" text,
"match" text,
"points" text,
"draw" text,
"lost" text
);
Question: What is the Match for skra warszawa?
<|assistant|>
SELECT "match" FROM "second_league" WHERE "team"='skra warszawa';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_league" (
"team" text,
"match" text,
"points" text,
"draw" text,
"lost" text
);
Question: What is the Draw for skra warszawa?
<|assistant|>
SELECT "draw" FROM "second_league" WHERE "team"='skra warszawa';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_league" (
"team" text,
"match" text,
"points" text,
"draw" text,
"lost" text
);
Question: What is the Lost when the points were dissolved?
<|assistant|>
SELECT "lost" FROM "second_league" WHERE "points"='dissolved';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_league" (
"team" text,
"match" text,
"points" text,
"draw" text,
"lost" text
);
Question: What is the Draw for match 10, and the team was skra warszawa?
<|assistant|>
SELECT "draw" FROM "second_league" WHERE "match"='10' AND "team"='skra warszawa';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_league" (
"team" text,
"match" text,
"points" text,
"draw" text,
"lost" text
);
Question: What is the Draw for the team of tramwajarz łódź?
<|assistant|>
SELECT "draw" FROM "second_league" WHERE "team"='tramwajarz łódź';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_league" (
"team" text,
"match" text,
"points" text,
"draw" text,
"lost" text
);
Question: What is the Draw for the team tramwajarz łódź?
<|assistant|>
SELECT "draw" FROM "second_league" WHERE "team"='tramwajarz łódź';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "newly_named_dinosaurs" (
"name" text,
"novelty" text,
"status" text,
"authors" text,
"unit" text,
"location" text
);
Question: What is the Location when the novelty is gen?
<|assistant|>
SELECT "location" FROM "newly_named_dinosaurs" WHERE "novelty"='gen';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "newly_named_dinosaurs" (
"name" text,
"novelty" text,
"status" text,
"authors" text,
"unit" text,
"location" text
);
Question: What shows for Unit with a status of nomen oblitum?
<|assistant|>
SELECT "unit" FROM "newly_named_dinosaurs" WHERE "status"='nomen oblitum';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "newly_named_dinosaurs" (
"name" text,
"novelty" text,
"status" text,
"authors" text,
"unit" text,
"location" text
);
Question: What is the Location when the name is telmatosaurus?
<|assistant|>
SELECT "location" FROM "newly_named_dinosaurs" WHERE "name"='telmatosaurus';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "newly_named_dinosaurs" (
"name" text,
"novelty" text,
"status" text,
"authors" text,
"unit" text,
"location" text
);
Question: What is the Status with a novelty of gen et sp, and the name is haplocanthosaurus?
<|assistant|>
SELECT "status" FROM "newly_named_dinosaurs" WHERE "novelty"='gen et sp' AND "name"='haplocanthosaurus';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_scorers_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 had a total less than 25 and a league larger than 19?
<|assistant|>
SELECT COUNT("league_cup") FROM "top_scorers_in_order_of_league_goals" WHERE "total"<25 AND "league">19;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_scorers_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 FA trophies did Ceri Williams get with a smaller total than 19?
<|assistant|>
SELECT COUNT("fa_trophy") FROM "top_scorers_in_order_of_league_goals" WHERE "player"='ceri williams' AND "total"<19;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mutual_intelligibility" (
"city" text,
"comprehension_of_danish" text,
"comprehension_of_swedish" text,
"comprehension_of_norwegian" text,
"average" real
);
Question: Which City has an Average of 6.85?
<|assistant|>
SELECT "city" FROM "mutual_intelligibility" WHERE "average"=6.85;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mutual_intelligibility" (
"city" text,
"comprehension_of_danish" text,
"comprehension_of_swedish" text,
"comprehension_of_norwegian" text,
"average" real
);
Question: What is the Average of bergen, norway?
<|assistant|>
SELECT MIN("average") FROM "mutual_intelligibility" WHERE "city"='bergen, norway';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mutual_intelligibility" (
"city" text,
"comprehension_of_danish" text,
"comprehension_of_swedish" text,
"comprehension_of_norwegian" text,
"average" real
);
Question: Which Comprehension of Danish has an Average smaller than 6.85, and a Comprehension of Norwegian of 4.13?
<|assistant|>
SELECT "comprehension_of_danish" FROM "mutual_intelligibility" WHERE "average"<6.85 AND "comprehension_of_norwegian"='4.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,
"record" text,
"game_site" text,
"attendance" text
);
Question: What are the Attendance numbers for november 18, 1990?
<|assistant|>
SELECT "attendance" FROM "schedule" WHERE "date"='november 18, 1990';<|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,
"record" text,
"game_site" text,
"attendance" text
);
Question: What is the Date for a week higher than 7 with a record of 9–1?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "week">7 AND "record"='9–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 was the result of the game with an attendance over 53,731 after week 5?
<|assistant|>
SELECT "result" FROM "schedule" WHERE "attendance">'53,731' AND "week"=5;<|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 average week of a game on November 12, 1989?
<|assistant|>
SELECT AVG("week") FROM "schedule" WHERE "date"='november 12, 1989';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pool_b" (
"game" real,
"date" text,
"set_1" text,
"set_2" text,
"set_3" text,
"set_4" text,
"set_5" text,
"result_sets" text,
"result_pts" text
);
Question: What is the Set 5 with a Set 3 that is 25-23 and a Set 4 that is 23-25?
<|assistant|>
SELECT "set_5" FROM "pool_b" WHERE "set_3"='25-23' AND "set_4"='23-25';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pool_b" (
"game" real,
"date" text,
"set_1" text,
"set_2" text,
"set_3" text,
"set_4" text,
"set_5" text,
"result_sets" text,
"result_pts" text
);
Question: What is the sum of the Game with a Set 4 of 25-21 and a Set 3 of 25-23?
<|assistant|>
SELECT SUM("game") FROM "pool_b" WHERE "set_4"='25-21' AND "set_3"='25-23';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pool_b" (
"game" real,
"date" text,
"set_1" text,
"set_2" text,
"set_3" text,
"set_4" text,
"set_5" text,
"result_sets" text,
"result_pts" text
);
Question: What is the Set 5 with a Game that is 59?
<|assistant|>
SELECT "set_5" FROM "pool_b" WHERE "game"=59;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_results" (
"year" real,
"competition" text,
"club" text,
"nation" text,
"result" text
);
Question: What shows for nation when the Competition is preseason, Year less than 2011, and a Club of chivas de guadalajara?
<|assistant|>
SELECT "nation" FROM "international_results" WHERE "competition"='preseason' AND "year"<2011 AND "club"='chivas de guadalajara';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_results" (
"year" real,
"competition" text,
"club" text,
"nation" text,
"result" text
);
Question: What was the Result for the club universidad de guadalajara?
<|assistant|>
SELECT "result" FROM "international_results" WHERE "club"='club universidad de guadalajara';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_results" (
"year" real,
"competition" text,
"club" text,
"nation" text,
"result" text
);
Question: What is the Nation with 2012 as the year, and a Competition of preseason, and a Result of w 0–3?
<|assistant|>
SELECT "nation" FROM "international_results" WHERE "year"=2012 AND "competition"='preseason' AND "result"='w 0–3';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_results" (
"year" real,
"competition" text,
"club" text,
"nation" text,
"result" text
);
Question: What is the average Year when the Competition was friendly, and a Club of everton?
<|assistant|>
SELECT AVG("year") FROM "international_results" WHERE "competition"='friendly' AND "club"='everton';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_results" (
"year" real,
"competition" text,
"club" text,
"nation" text,
"result" text
);
Question: What is the Competition when the Club was costa rica u-20?
<|assistant|>
SELECT "competition" FROM "international_results" WHERE "club"='costa rica u-20';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_results" (
"year" real,
"competition" text,
"club" text,
"nation" text,
"result" text
);
Question: What is the Club of mexico, Year of 2010, and a Competition of preseason, and a Result of w 0–1?
<|assistant|>
SELECT "club" FROM "international_results" WHERE "nation"='mexico' AND "year"=2010 AND "competition"='preseason' AND "result"='w 0–1';<|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 lowest total when the nation is Sweden?
<|assistant|>
SELECT MIN("total") FROM "medal_table" WHERE "nation"='sweden';<|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 average Total when silver is less than 1, and the rank is 15?
<|assistant|>
SELECT AVG("total") FROM "medal_table" WHERE "silver"<1 AND "rank"='15';<|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 number of Bronze when rank is 11, and the total is less than 1?
<|assistant|>
SELECT COUNT("bronze") FROM "medal_table" WHERE "rank"='11' AND "total"<1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "olympic_roster" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2012_club" text
);
Question: Which name's 2012 club was deportivo nacional?
<|assistant|>
SELECT "name" FROM "olympic_roster" WHERE "2012_club"='deportivo nacional';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "olympic_roster" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2012_club" text
);
Question: Which name's 2012 club was deportivo nacional?
<|assistant|>
SELECT "name" FROM "olympic_roster" WHERE "2012_club"='deportivo nacional';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "olympic_roster" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2012_club" text
);
Question: Which weight was attached to the 2012 club San Pedro?
<|assistant|>
SELECT "weight" FROM "olympic_roster" WHERE "2012_club"='san pedro';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "filmography" (
"year" real,
"film" text,
"director" text,
"producer" text,
"writer" text
);
Question: What year is the latest year that has no under director?
<|assistant|>
SELECT MAX("year") FROM "filmography" WHERE "director"='no';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "filmography" (
"year" real,
"film" text,
"director" text,
"producer" text,
"writer" text
);
Question: With yes under writer and in 2014, what is the director?
<|assistant|>
SELECT "director" FROM "filmography" WHERE "year"=2014 AND "writer"='yes';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "filmography" (
"year" real,
"film" text,
"director" text,
"producer" text,
"writer" text
);
Question: Who is the writer of the film Run?
<|assistant|>
SELECT "writer" FROM "filmography" WHERE "film"='run';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_top_association_football_goal_sc" (
"rank" real,
"name" text,
"years" text,
"matches" real,
"goals" real
);
Question: What is the most goals made for a person with less than 208 matches and ranked lower than 12?
<|assistant|>
SELECT MAX("goals") FROM "list_of_top_association_football_goal_sc" WHERE "matches"<208 AND "rank">12;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_top_association_football_goal_sc" (
"rank" real,
"name" text,
"years" text,
"matches" real,
"goals" real
);
Question: In what years was there a rank lower than 9, under 84 goals, and more than 158 matches?
<|assistant|>
SELECT "years" FROM "list_of_top_association_football_goal_sc" WHERE "matches">158 AND "rank">9 AND "goals"<84;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "conto_tv_teleitalia" (
"television_service" text,
"country" text,
"language" text,
"content" text,
"hdtv" text,
"package_option" text
);
Question: What is the HDTV status of the r-light television service?
<|assistant|>
SELECT "hdtv" FROM "conto_tv_teleitalia" WHERE "television_service"='r-light';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.