text
stringlengths 310
1.28k
|
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "l" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: What is the position of the player that came from the school/club team/country of Purdue?
<|assistant|>
SELECT "position" FROM "l" WHERE "school_club_team_country"='Purdue';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "l" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: Who is the player who's number is 3?
<|assistant|>
SELECT "player" FROM "l" WHERE "no_s"='3';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "l" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: What is the height for the player in 1968-72?
<|assistant|>
SELECT "height_in_ft" FROM "l" WHERE "years_for_rockets"='1968-72';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "l" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: Which player had a height of 6-0?
<|assistant|>
SELECT "player" FROM "l" WHERE "height_in_ft"='6-0';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "l" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: What is the position for the player that played in 2006?
<|assistant|>
SELECT "position" FROM "l" WHERE "years_for_rockets"='2006';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "k" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: What are all the names of the players who are 7-0 tall?
<|assistant|>
SELECT "player" FROM "k" WHERE "height_in_ft"='7-0';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "k" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: Kimball, toby toby kimball is a player; How many times at school/ club team/country was the player present?
<|assistant|>
SELECT COUNT("school_club_team_country") FROM "k" WHERE "player"='Kimball, Toby Toby Kimball';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "k" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: In connecticut the school/club team/country had a set height in ft. what is true for them?
<|assistant|>
SELECT "height_in_ft" FROM "k" WHERE "school_club_team_country"='Connecticut';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "k" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: Rockets height was 6-6 in feet, list the time frame where this was true?
<|assistant|>
SELECT "years_for_rockets" FROM "k" WHERE "height_in_ft"='6-6';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s" (
"player" text,
"no_s" real,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: What is the hight of the player who's tenure lasted from 1969-70?
<|assistant|>
SELECT "height_in_ft" FROM "s" WHERE "years_for_rockets"='1969-70';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s" (
"player" text,
"no_s" real,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: What school did the 7-4 player attend?
<|assistant|>
SELECT "school_club_team_country" FROM "s" WHERE "height_in_ft"='7-4';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "w" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: what's the years for rockets where position is guard / forward
<|assistant|>
SELECT "years_for_rockets" FROM "w" WHERE "position"='Guard / Forward';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "w" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: what is the total number of player where years for rockets is 1975-79
<|assistant|>
SELECT COUNT("player") FROM "w" WHERE "years_for_rockets"='1975-79';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "w" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: what is the total number of player where years for rockets is 2004-06
<|assistant|>
SELECT COUNT("player") FROM "w" WHERE "years_for_rockets"='2004-06';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "w" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: what's the position where player is williams, bernie bernie williams
<|assistant|>
SELECT "position" FROM "w" WHERE "player"='Williams, Bernie Bernie Williams';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "w" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: what is the total number of years for rockets where school/club team/country is baylor
<|assistant|>
SELECT COUNT("years_for_rockets") FROM "w" WHERE "school_club_team_country"='Baylor';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "t" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: How many positions had jersey number 32
<|assistant|>
SELECT COUNT("position") FROM "t" WHERE "no_s"='32';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "t" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: Which years had a jersey number 55
<|assistant|>
SELECT "years_for_rockets" FROM "t" WHERE "no_s"='55';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "c" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: Which school, club team, or country played for the rockets in the years 2000-01?
<|assistant|>
SELECT "school_club_team_country" FROM "c" WHERE "years_for_rockets"='2000-01';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "c" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: During which years did number 13 play for the Rockets?
<|assistant|>
SELECT "years_for_rockets" FROM "c" WHERE "no_s"='13';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "suburbs" (
"suburb" text,
"population_in_2008" real,
"median_age_in_2006" text,
"mean_household_size_in_2006" text,
"area_km" text,
"density_km" real,
"date_first_settled_as_a_suburb" real,
"gazetted_as_a_division_name" text
);
Question: What is the lowest date settled for chifley?
<|assistant|>
SELECT MIN("date_first_settled_as_a_suburb") FROM "suburbs" WHERE "suburb"='Chifley';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "suburbs" (
"suburb" text,
"population_in_2008" real,
"median_age_in_2006" text,
"mean_household_size_in_2006" text,
"area_km" text,
"density_km" real,
"date_first_settled_as_a_suburb" real,
"gazetted_as_a_division_name" text
);
Question: What is the density in Garran?
<|assistant|>
SELECT MIN("density_km") FROM "suburbs" WHERE "suburb"='Garran';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "suburbs" (
"suburb" text,
"population_in_2008" real,
"median_age_in_2006" text,
"mean_household_size_in_2006" text,
"area_km" text,
"density_km" real,
"date_first_settled_as_a_suburb" real,
"gazetted_as_a_division_name" text
);
Question: What is the date settled for 40 years?
<|assistant|>
SELECT "date_first_settled_as_a_suburb" FROM "suburbs" WHERE "median_age_in_2006"='40 years';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "suburbs" (
"suburb" text,
"population_in_2008" real,
"median_age_in_2006" text,
"mean_household_size_in_2006" text,
"area_km" text,
"density_km" real,
"date_first_settled_as_a_suburb" real,
"gazetted_as_a_division_name" text
);
Question: What is the median age where the area is 1.7?
<|assistant|>
SELECT "median_age_in_2006" FROM "suburbs" WHERE "area_km"='1.7';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "presenters" (
"series" text,
"monday" text,
"tuesday" text,
"wednesday" text,
"thursday" text,
"friday" text,
"saturday" text,
"sunday" text
);
Question: Who is the thursday presenter of the show Big Brother 13?
<|assistant|>
SELECT "thursday" FROM "presenters" WHERE "series"='Big Brother 13';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "presenters" (
"series" text,
"monday" text,
"tuesday" text,
"wednesday" text,
"thursday" text,
"friday" text,
"saturday" text,
"sunday" text
);
Question: Who is the friday presenter for each show, when the monday presenter is Emma Willis Jamie East?
<|assistant|>
SELECT "friday" FROM "presenters" WHERE "monday"='Emma Willis Jamie East';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "presenters" (
"series" text,
"monday" text,
"tuesday" text,
"wednesday" text,
"thursday" text,
"friday" text,
"saturday" text,
"sunday" text
);
Question: Who is the Tuesday presenter of Celebrity Big Brother 8?
<|assistant|>
SELECT "tuesday" FROM "presenters" WHERE "series"='Celebrity Big Brother 8';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "presenters" (
"series" text,
"monday" text,
"tuesday" text,
"wednesday" text,
"thursday" text,
"friday" text,
"saturday" text,
"sunday" text
);
Question: Who is the Wednesday presenter of the show Big Brother 13?
<|assistant|>
SELECT "wednesday" FROM "presenters" WHERE "series"='Big Brother 13';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "presenters" (
"series" text,
"monday" text,
"tuesday" text,
"wednesday" text,
"thursday" text,
"friday" text,
"saturday" text,
"sunday" text
);
Question: List all of the shows with Alice Levine Jamie East is the Sunday presenter.
<|assistant|>
SELECT "series" FROM "presenters" WHERE "sunday"='Alice Levine Jamie East';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "g" (
"player" text,
"no_s" real,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: What are all the positions for the rockets in 2008?
<|assistant|>
SELECT "position" FROM "g" WHERE "years_for_rockets"='2008';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "g" (
"player" text,
"no_s" real,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: What is the height of the school club team members in clemson?
<|assistant|>
SELECT "height_in_ft" FROM "g" WHERE "school_club_team_country"='Clemson';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "f" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: What years for the rockets did player ford, alton alton ford play?
<|assistant|>
SELECT "years_for_rockets" FROM "f" WHERE "player"='Ford, Alton Alton Ford';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "f" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: What years for the rockets did the player ford, phil phil ford play?
<|assistant|>
SELECT "years_for_rockets" FROM "f" WHERE "player"='Ford, Phil Phil Ford';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "f" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: What school/club team/country did the player fitch, gerald gerald fitch play for?
<|assistant|>
SELECT "school_club_team_country" FROM "f" WHERE "player"='Fitch, Gerald Gerald Fitch';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "u_s_nielsen_ratings" (
"num" real,
"episode" text,
"air_date" text,
"timeslot" text,
"rating" text,
"share" real,
"18_49" text,
"viewers" text,
"weekly_rank" text
);
Question: What is the weekly rank where the number is 4?
<|assistant|>
SELECT "weekly_rank" FROM "u_s_nielsen_ratings" WHERE "num"=4;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "u_s_nielsen_ratings" (
"num" real,
"episode" text,
"air_date" text,
"timeslot" text,
"rating" text,
"share" real,
"18_49" text,
"viewers" text,
"weekly_rank" text
);
Question: What is the viewers for the episode "woman marries heart"?
<|assistant|>
SELECT "viewers" FROM "u_s_nielsen_ratings" WHERE "episode"='\"Woman Marries Heart\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ground_history" (
"name_of_ground" text,
"location" text,
"year" text,
"fc_matches" real,
"la_matches" real,
"t20_matches" real,
"total" real
);
Question: What is the minimum of t20 matches?
<|assistant|>
SELECT MIN("t20_matches") FROM "ground_history";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ground_history" (
"name_of_ground" text,
"location" text,
"year" text,
"fc_matches" real,
"la_matches" real,
"t20_matches" real,
"total" real
);
Question: Where is ropery lane located?
<|assistant|>
SELECT "location" FROM "ground_history" WHERE "name_of_ground"='Ropery Lane';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ground_history" (
"name_of_ground" text,
"location" text,
"year" text,
"fc_matches" real,
"la_matches" real,
"t20_matches" real,
"total" real
);
Question: Where is ropery lane and la matches 7 location?
<|assistant|>
SELECT "location" FROM "ground_history" WHERE "la_matches"=7 AND "name_of_ground"='Ropery Lane';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ground_history" (
"name_of_ground" text,
"location" text,
"year" text,
"fc_matches" real,
"la_matches" real,
"t20_matches" real,
"total" real
);
Question: What is the maximum fc matches?
<|assistant|>
SELECT MAX("fc_matches") FROM "ground_history";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ground_history" (
"name_of_ground" text,
"location" text,
"year" text,
"fc_matches" real,
"la_matches" real,
"t20_matches" real,
"total" real
);
Question: What is the maximum fc matches at the racecourse?
<|assistant|>
SELECT MAX("fc_matches") FROM "ground_history" WHERE "name_of_ground"='The Racecourse';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ground_history" (
"name_of_ground" text,
"location" text,
"year" text,
"fc_matches" real,
"la_matches" real,
"t20_matches" real,
"total" real
);
Question: What is the maximum t20 on green lane?
<|assistant|>
SELECT MAX("t20_matches") FROM "ground_history" WHERE "name_of_ground"='Green Lane';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "petrol_engines" (
"model" text,
"cylinders_valves" text,
"displacement_cc" real,
"max_power_k_w_ps_at_rpm" text,
"max_torque_nm_at_rpm" text,
"engine_code" text,
"top_speed_km_h" real,
"production_period" text
);
Question: what's the cylinders/ valves with model being 1.8 20v
<|assistant|>
SELECT "cylinders_valves" FROM "petrol_engines" WHERE "model"='1.8 20V';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11793221_2" (
"unit" text,
"commander" text,
"complement" text,
"killed" text,
"wounded" text,
"missing" text
);
Question: Which units are commanded by Lieutenant Colonel Francis Hepburn?
<|assistant|>
SELECT "unit" FROM "table1_11793221_2" WHERE "commander"='Lieutenant Colonel Francis Hepburn';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11793221_2" (
"unit" text,
"commander" text,
"complement" text,
"killed" text,
"wounded" text,
"missing" text
);
Question: What are the complements when the commander is Major William Lloyd?
<|assistant|>
SELECT "complement" FROM "table1_11793221_2" WHERE "commander"='Major William Lloyd';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11793221_2" (
"unit" text,
"commander" text,
"complement" text,
"killed" text,
"wounded" text,
"missing" text
);
Question: How many were wounded when the complement was 173 off 2059 men?
<|assistant|>
SELECT "wounded" FROM "table1_11793221_2" WHERE "complement"='173 off 2059 men';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11793221_2" (
"unit" text,
"commander" text,
"complement" text,
"killed" text,
"wounded" text,
"missing" text
);
Question: How many where killed under Major-General Jean Victor de Constant Rebecque's command?
<|assistant|>
SELECT "killed" FROM "table1_11793221_2" WHERE "commander"='Major-General Jean Victor de Constant Rebecque';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11793221_2" (
"unit" text,
"commander" text,
"complement" text,
"killed" text,
"wounded" text,
"missing" text
);
Question: Who were the commanders when 8 off 0 men were wounded?
<|assistant|>
SELECT "commander" FROM "table1_11793221_2" WHERE "wounded"='8 off 0 men';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "prospective_members" (
"country" text,
"population" real,
"area_km" real,
"gdp_nominal" text,
"gdp_per_capita_nominal" text
);
Question: What is the gpa per capita (nominal) for the country with gdp (nominal) is $52.0 billion?
<|assistant|>
SELECT "gdp_per_capita_nominal" FROM "prospective_members" WHERE "gdp_nominal"='$52.0 billion';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "prospective_members" (
"country" text,
"population" real,
"area_km" real,
"gdp_nominal" text,
"gdp_per_capita_nominal" text
);
Question: How many countries has a gdp (nominal) of $29.9 billion?
<|assistant|>
SELECT COUNT("gdp_per_capita_nominal") FROM "prospective_members" WHERE "gdp_nominal"='$29.9 billion';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "prospective_members" (
"country" text,
"population" real,
"area_km" real,
"gdp_nominal" text,
"gdp_per_capita_nominal" text
);
Question: What is the GDP (nominal) for Uzbekistan?
<|assistant|>
SELECT "gdp_nominal" FROM "prospective_members" WHERE "country"='Uzbekistan';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "prospective_members" (
"country" text,
"population" real,
"area_km" real,
"gdp_nominal" text,
"gdp_per_capita_nominal" text
);
Question: What is the area (km²) for the country with a population of 16967000?
<|assistant|>
SELECT MIN("area_km") FROM "prospective_members" WHERE "population"=16967000;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "dvd_releases" (
"dvd_name" text,
"released" text,
"audio" text,
"aspect_ratio" text,
"duration" text,
"number_of_episodes" real,
"num_of_discs" real
);
Question: What is the aspect ratio of the DVD released on 12/10/2009?
<|assistant|>
SELECT "aspect_ratio" FROM "dvd_releases" WHERE "released"='12/10/2009';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "dvd_releases" (
"dvd_name" text,
"released" text,
"audio" text,
"aspect_ratio" text,
"duration" text,
"number_of_episodes" real,
"num_of_discs" real
);
Question: What is the name of the DVD where the number of discs is greater than 2.0
<|assistant|>
SELECT "dvd_name" FROM "dvd_releases" WHERE "num_of_discs">2.0;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "dvd_releases" (
"dvd_name" text,
"released" text,
"audio" text,
"aspect_ratio" text,
"duration" text,
"number_of_episodes" real,
"num_of_discs" real
);
Question: How many releases did the DVD River Cottage forever have?
<|assistant|>
SELECT COUNT("released") FROM "dvd_releases" WHERE "dvd_name"='River Cottage Forever';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "dvd_releases" (
"dvd_name" text,
"released" text,
"audio" text,
"aspect_ratio" text,
"duration" text,
"number_of_episodes" real,
"num_of_discs" real
);
Question: What is the total number of discs where the run time was 4 hours 40 minutes?
<|assistant|>
SELECT COUNT("num_of_discs") FROM "dvd_releases" WHERE "duration"='4 hours 40 minutes';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "dvd_releases" (
"dvd_name" text,
"released" text,
"audio" text,
"aspect_ratio" text,
"duration" text,
"number_of_episodes" real,
"num_of_discs" real
);
Question: What is the name of the DVD where the number of discs is greater than 2.0
<|assistant|>
SELECT "dvd_name" FROM "dvd_releases" WHERE "num_of_discs">2.0;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11793221_4" (
"unit" text,
"commander" text,
"complement" text,
"killed" text,
"wounded" text,
"missing" text
);
Question: What were the wounded for complement of 46 off 656 men?
<|assistant|>
SELECT "wounded" FROM "table1_11793221_4" WHERE "complement"='46 off 656 men';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11793221_4" (
"unit" text,
"commander" text,
"complement" text,
"killed" text,
"wounded" text,
"missing" text
);
Question: What was the missing for lieutenant general sir thomas picton?
<|assistant|>
SELECT "missing" FROM "table1_11793221_4" WHERE "commander"='Lieutenant General Sir Thomas Picton';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11793221_4" (
"unit" text,
"commander" text,
"complement" text,
"killed" text,
"wounded" text,
"missing" text
);
Question: Name the number of complement for 4th hanoverian brigade
<|assistant|>
SELECT COUNT("complement") FROM "table1_11793221_4" WHERE "unit"='4th Hanoverian Brigade';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11793221_4" (
"unit" text,
"commander" text,
"complement" text,
"killed" text,
"wounded" text,
"missing" text
);
Question: Name the commander of 167 off 2348 men
<|assistant|>
SELECT "commander" FROM "table1_11793221_4" WHERE "complement"='167 off 2348 men';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_draft_picks" (
"round" real,
"overall" real,
"player" text,
"position" text,
"nationality" text,
"club_team" text
);
Question: HOW MUCH WAS THE OVERALL FOR ERIK KARLSSON?
<|assistant|>
SELECT MIN("overall") FROM "2008_draft_picks";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_draft_picks" (
"round" real,
"overall" real,
"player" text,
"position" text,
"nationality" text,
"club_team" text
);
Question: WHAT ROUND WAS FORWARD ANDRE PETERSSON SELECTED?
<|assistant|>
SELECT MIN("round") FROM "2008_draft_picks" WHERE "position"='Forward';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_draft_picks" (
"round" real,
"overall" real,
"player" text,
"position" text,
"nationality" text,
"club_team" text
);
Question: WHAT POSITION DOES PATRICK WIERCIOCH PLAY?
<|assistant|>
SELECT "position" FROM "2008_draft_picks" WHERE "player"='Patrick Wiercioch';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_draft_picks" (
"round" real,
"overall" real,
"player" text,
"position" text,
"nationality" text,
"club_team" text
);
Question: NAME THE OVERALL FOR THE OMAHA (USHL) CLUB TEAM
<|assistant|>
SELECT MIN("overall") FROM "2008_draft_picks" WHERE "club_team"='Omaha (USHL)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_draft_picks" (
"round" real,
"overall" real,
"player" text,
"position" text,
"nationality" text,
"club_team" text
);
Question: WHERE IS ANDRE PETERSSON FROM?
<|assistant|>
SELECT "nationality" FROM "2008_draft_picks" WHERE "player"='Andre Petersson';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_draft_picks" (
"round" real,
"overall" text,
"player" text,
"position" text,
"nationality" text,
"club_team" text
);
Question: What club team did JArrod Maidens play for?
<|assistant|>
SELECT "club_team" FROM "2012_draft_picks" WHERE "player"='Jarrod Maidens';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_draft_picks" (
"round" real,
"overall" text,
"player" text,
"position" text,
"nationality" text,
"club_team" text
);
Question: What position does Cody Ceci play?
<|assistant|>
SELECT "position" FROM "2012_draft_picks" WHERE "player"='Cody Ceci';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_draft_picks" (
"round" real,
"overall" text,
"player" text,
"position" text,
"nationality" text,
"club_team" text
);
Question: What is the Nationality when the club team is Peterborough Petes (OHL)?
<|assistant|>
SELECT "nationality" FROM "2011_draft_picks" WHERE "club_team"='Peterborough Petes (OHL)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_draft_picks" (
"round" real,
"overall" text,
"player" text,
"position" text,
"nationality" text,
"club_team" text
);
Question: Which player is in round 5?
<|assistant|>
SELECT "player" FROM "2011_draft_picks" WHERE "round"=5;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_draft_picks" (
"round" real,
"overall" text,
"player" text,
"position" text,
"nationality" text,
"club_team" text
);
Question: What position is associated with an overall value of 126?
<|assistant|>
SELECT "position" FROM "2011_draft_picks" WHERE "overall"='126';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_draft_picks" (
"round" real,
"overall" text,
"player" text,
"position" text,
"nationality" text,
"club_team" text
);
Question: What position is the player Jordan Fransoo in?
<|assistant|>
SELECT "position" FROM "2011_draft_picks" WHERE "player"='Jordan Fransoo';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_draft_picks" (
"round" real,
"overall" text,
"player" text,
"position" text,
"nationality" text,
"club_team" text
);
Question: How many rounds is the player Matthew Puempel associated with?
<|assistant|>
SELECT COUNT("round") FROM "2011_draft_picks" WHERE "player"='Matthew Puempel';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2013_draft_picks" (
"round" real,
"overall" text,
"player" text,
"position" text,
"nationality" text,
"club_team" text
);
Question: What is the position of player Tobias Lindberg?
<|assistant|>
SELECT "position" FROM "2013_draft_picks" WHERE "player"='Tobias Lindberg';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2013_draft_picks" (
"round" real,
"overall" text,
"player" text,
"position" text,
"nationality" text,
"club_team" text
);
Question: How many players had overall 78?
<|assistant|>
SELECT COUNT("player") FROM "2013_draft_picks" WHERE "overall"='78';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2013_draft_picks" (
"round" real,
"overall" text,
"player" text,
"position" text,
"nationality" text,
"club_team" text
);
Question: What is the last round with club team Guelph Storm (ohl)?
<|assistant|>
SELECT MAX("round") FROM "2013_draft_picks" WHERE "club_team"='Guelph Storm (OHL)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2013_draft_picks" (
"round" real,
"overall" text,
"player" text,
"position" text,
"nationality" text,
"club_team" text
);
Question: How many positions did player Ben Harpur play?
<|assistant|>
SELECT COUNT("position") FROM "2013_draft_picks" WHERE "player"='Ben Harpur';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2013_draft_picks" (
"round" real,
"overall" text,
"player" text,
"position" text,
"nationality" text,
"club_team" text
);
Question: What is the position of player Marcus Hogberg?
<|assistant|>
SELECT "position" FROM "2013_draft_picks" WHERE "player"='Marcus Hogberg';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"nickname" text,
"joined" real
);
Question: 3488 is the enrollment amount of what college?
<|assistant|>
SELECT "institution" FROM "current_members" WHERE "enrollment"=3488;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"nickname" text,
"joined" real
);
Question: Barry University had the highest enrollment of what number?
<|assistant|>
SELECT MAX("enrollment") FROM "current_members" WHERE "institution"='Barry University';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"nickname" text,
"joined" real
);
Question: The fighting knights has what type of nickname?
<|assistant|>
SELECT "type" FROM "current_members" WHERE "nickname"='Fighting Knights';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"nickname" text,
"joined" real
);
Question: Boca Raton, Florida had what joined amount?
<|assistant|>
SELECT "joined" FROM "current_members" WHERE "location"='Boca Raton, Florida';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"nickname" text,
"joined" real
);
Question: If the enrollment is 3584, what's the largest founded?
<|assistant|>
SELECT MAX("founded") FROM "current_members" WHERE "enrollment"=3584;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"nickname" text,
"joined" real
);
Question: Barry University had a maximum enrollment of what?
<|assistant|>
SELECT MAX("enrollment") FROM "current_members" WHERE "institution"='Barry University';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11820086_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
Question: What was the series number for the episode "I Forgot to Remember to Forget"?
<|assistant|>
SELECT MIN("no_in_series") FROM "table1_11820086_1" WHERE "title"='\"I Forgot to Remember to Forget\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11820086_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
Question: Who directed the episode that was viewed by 2.57 million people in the U.S.?
<|assistant|>
SELECT "directed_by" FROM "table1_11820086_1" WHERE "u_s_viewers_millions"='2.57';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11820086_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
Question: Who directed the episode that was viewed by 2.50 million people in the U.S.?
<|assistant|>
SELECT "directed_by" FROM "table1_11820086_1" WHERE "u_s_viewers_millions"='2.50';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11820086_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
Question: Which episode number in season 5 was viewed by 3.00 million U.S. viziers?
<|assistant|>
SELECT MIN("no_in_season") FROM "table1_11820086_1" WHERE "u_s_viewers_millions"='3.00';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "norwegian_americans_by_state" (
"state" text,
"norwegian_americans_1980" real,
"percent_1980" text,
"norwegian_americans_1990" real,
"percent_1990" text,
"norwegian_americans_2000" real,
"percent_2000" text,
"norwegian_americans_2009" real,
"percent_2009" text
);
Question: what are all the percent (1990) where state is united states
<|assistant|>
SELECT "percent_1990" FROM "norwegian_americans_by_state" WHERE "state"='United States';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "norwegian_americans_by_state" (
"state" text,
"norwegian_americans_1980" real,
"percent_1980" text,
"norwegian_americans_1990" real,
"percent_1990" text,
"norwegian_americans_2000" real,
"percent_2000" text,
"norwegian_americans_2009" real,
"percent_2009" text
);
Question: what is the total number of percent (2000) where percent (1980) is 3.4%
<|assistant|>
SELECT COUNT("percent_2000") FROM "norwegian_americans_by_state" WHERE "percent_1980"='3.4%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "norwegian_americans_by_state" (
"state" text,
"norwegian_americans_1980" real,
"percent_1980" text,
"norwegian_americans_1990" real,
"percent_1990" text,
"norwegian_americans_2000" real,
"percent_2000" text,
"norwegian_americans_2009" real,
"percent_2009" text
);
Question: what are all the percent (1990) where state is mississippi
<|assistant|>
SELECT "percent_1990" FROM "norwegian_americans_by_state" WHERE "state"='Mississippi';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "norwegian_americans_by_state" (
"state" text,
"norwegian_americans_1980" real,
"percent_1980" text,
"norwegian_americans_1990" real,
"percent_1990" text,
"norwegian_americans_2000" real,
"percent_2000" text,
"norwegian_americans_2009" real,
"percent_2009" text
);
Question: what is the maximum norwegian americans (2000) where norwegian americans (1990) is 9170
<|assistant|>
SELECT MAX("norwegian_americans_2000") FROM "norwegian_americans_by_state" WHERE "norwegian_americans_1990"=9170;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "norwegian_americans_by_state" (
"state" text,
"norwegian_americans_1980" real,
"percent_1980" text,
"norwegian_americans_1990" real,
"percent_1990" text,
"norwegian_americans_2000" real,
"percent_2000" text,
"norwegian_americans_2009" real,
"percent_2009" text
);
Question: what is the minimum norwegian americans (1980) where state is rhode island
<|assistant|>
SELECT MIN("norwegian_americans_1980") FROM "norwegian_americans_by_state" WHERE "state"='Rhode Island';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "track_listing" (
"disc" real,
"track" real,
"english_title" text,
"japanese_title" text,
"r_maji_title" text,
"artist" text,
"track_time" text
);
Question: What is the English version of the title Getto Daun?
<|assistant|>
SELECT "english_title" FROM "track_listing" WHERE "r_maji_title"='Getto Daun';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "track_listing" (
"disc" real,
"track" real,
"english_title" text,
"japanese_title" text,
"r_maji_title" text,
"artist" text,
"track_time" text
);
Question: What is the smallest track number?
<|assistant|>
SELECT MIN("track") FROM "track_listing";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "track_listing" (
"disc" real,
"track" real,
"english_title" text,
"japanese_title" text,
"r_maji_title" text,
"artist" text,
"track_time" text
);
Question: How many tracks are titled Mō Sukoshi Tōku?
<|assistant|>
SELECT COUNT("track") FROM "track_listing" WHERE "r_maji_title"='Mō Sukoshi Tōku';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "track_listing" (
"disc" real,
"track" real,
"english_title" text,
"japanese_title" text,
"r_maji_title" text,
"artist" text,
"track_time" text
);
Question: What is the Japanese title for Fantasy?
<|assistant|>
SELECT "japanese_title" FROM "track_listing" WHERE "english_title"='Fantasy';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "track_listing" (
"disc" real,
"track" real,
"english_title" text,
"japanese_title" text,
"r_maji_title" text,
"artist" text,
"track_time" text
);
Question: How long is track number 8?
<|assistant|>
SELECT "track_time" FROM "track_listing" WHERE "track"=8;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11875915_2" (
"rnd" real,
"circuit" text,
"wsc_winning_team" text,
"gt1_winning_team" text,
"gt2_winning_team" text,
"gt3_winning_team" text,
"results" text
);
Question: Who was the GT2 winning team when the GT3 winning team was #1 PTG?
<|assistant|>
SELECT "gt2_winning_team" FROM "table1_11875915_2" WHERE "gt3_winning_team"='#1 PTG';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "events" (
"tournament" text,
"date" text,
"city" text,
"country" text,
"surface" text,
"singles_champions" text,
"doubles_champions" text
);
Question: How many doubles champions were there for the Serbia f6 Futures tournament?
<|assistant|>
SELECT COUNT("doubles_champions") FROM "events" WHERE "tournament"='Serbia F6 Futures';<|endoftext|>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.