text
stringlengths 310
1.28k
|
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_228973_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: when was the premiere of the episode called "force recon"?
<|assistant|>
SELECT "original_air_date" FROM "table1_228973_3" WHERE "title"='\"Force Recon\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_228973_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: which is the number of the season episode whose premiere was in january 3, 1997?
<|assistant|>
SELECT COUNT("no_in_season") FROM "table1_228973_3" WHERE "original_air_date"='January 3, 1997';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_228973_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: which is the number of the season episode whose writer is R. Scott Gemmill and the Director is Ray Austin?
<|assistant|>
SELECT "no_in_season" FROM "table1_228973_3" WHERE "written_by"='R. Scott Gemmill' AND "directed_by"='Ray Austin';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_228973_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: what is the name of the episode whose number of the series episode was 31?
<|assistant|>
SELECT "title" FROM "table1_228973_3" WHERE "no_in_series"=31;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_228973_7" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: When 129 is the number in the series who is the writer?
<|assistant|>
SELECT "written_by" FROM "table1_228973_7" WHERE "no_in_series"=129;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_228973_7" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: When "past tense" is the title who is the writer?
<|assistant|>
SELECT "written_by" FROM "table1_228973_7" WHERE "title"='\"Past Tense\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2289806_1" (
"episode_num" real,
"prod_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"originalairdate" text
);
Question: How manu original airdates have "a cellar full of silence" as the title?
<|assistant|>
SELECT COUNT("originalairdate") FROM "table1_2289806_1" WHERE "title"='\"A Cellar Full of Silence\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2289806_1" (
"episode_num" real,
"prod_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"originalairdate" text
);
Question: How many product # have episode 1?
<|assistant|>
SELECT MAX("prod_num") FROM "table1_2289806_1" WHERE "episode_num"=1;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_22903426_1" (
"name" text,
"platform" text,
"license" text,
"windows_builders" text,
"java_builders" text,
"other_builders" text,
"scm_system" text,
"notification" text,
"ide_integration" text,
"other_integration" text
);
Question: Name the windows builders for apache gump
<|assistant|>
SELECT "windows_builders" FROM "table1_22903426_1" WHERE "name"='Apache Gump';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_22903426_1" (
"name" text,
"platform" text,
"license" text,
"windows_builders" text,
"java_builders" text,
"other_builders" text,
"scm_system" text,
"notification" text,
"ide_integration" text,
"other_integration" text
);
Question: Name the number of scm system for nant, visual studio
<|assistant|>
SELECT COUNT("scm_system") FROM "table1_22903426_1" WHERE "windows_builders"='NAnt, Visual Studio';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_22903426_1" (
"name" text,
"platform" text,
"license" text,
"windows_builders" text,
"java_builders" text,
"other_builders" text,
"scm_system" text,
"notification" text,
"ide_integration" text,
"other_integration" text
);
Question: Name the number of other builders for nant, visual studio
<|assistant|>
SELECT COUNT("other_builders") FROM "table1_22903426_1" WHERE "windows_builders"='NAnt, Visual Studio';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_country_tally" (
"rank" real,
"country_territory" text,
"manhunt_international" real,
"1st_runner_up" real,
"2nd_runner_up" real,
"3rd_runner_up" real,
"4th_runner_up" real,
"semifinalists" real,
"total" real
);
Question: What is the minimum for 2nd runner-up?
<|assistant|>
SELECT MIN("2nd_runner_up") FROM "by_country_tally";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_country_tally" (
"rank" real,
"country_territory" text,
"manhunt_international" real,
"1st_runner_up" real,
"2nd_runner_up" real,
"3rd_runner_up" real,
"4th_runner_up" real,
"semifinalists" real,
"total" real
);
Question: What is the total number of 4th runner-up where the 2nd runner-up is smaller than 1.0 and the 1st runner-up is smaller than 1.0 and the total is 2?
<|assistant|>
SELECT COUNT("4th_runner_up") FROM "by_country_tally" WHERE "2nd_runner_up"<1.0 AND "1st_runner_up"<1.0 AND "total"=2;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_228973_9" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: If the original air date is February 4, 2003, what is the episode title?
<|assistant|>
SELECT "title" FROM "table1_228973_9" WHERE "original_air_date"='February 4, 2003';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_228973_9" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: If the original air date is April 1, 2003, what number in the series is this episode?
<|assistant|>
SELECT "no_in_series" FROM "table1_228973_9" WHERE "original_air_date"='April 1, 2003';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_228973_9" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: What is the maximum number in the series for the episode directed by Harvey S. Laidman?
<|assistant|>
SELECT MAX("no_in_series") FROM "table1_228973_9" WHERE "directed_by"='Harvey S. Laidman';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_22904752_1" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"u_s_viewers_million" text,
"rank_week" text,
"original_air_date" text
);
Question: When is the original air date written by sean whitesell?
<|assistant|>
SELECT "original_air_date" FROM "table1_22904752_1" WHERE "written_by"='Sean Whitesell';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_22904752_1" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"u_s_viewers_million" text,
"rank_week" text,
"original_air_date" text
);
Question: Who is no. 79 directed by?
<|assistant|>
SELECT "directed_by" FROM "table1_22904752_1" WHERE "no"=79;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_22904752_1" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"u_s_viewers_million" text,
"rank_week" text,
"original_air_date" text
);
Question: What is the # when u.s. viewers (million) is 17.44?
<|assistant|>
SELECT COUNT("num") FROM "table1_22904752_1" WHERE "u_s_viewers_million"='17.44';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_22904752_1" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"u_s_viewers_million" text,
"rank_week" text,
"original_air_date" text
);
Question: How many # were written by david hoselton?
<|assistant|>
SELECT MAX("num") FROM "table1_22904752_1" WHERE "written_by"='David Hoselton';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar_and_results" (
"event" real,
"circuit" text,
"date" text,
"pole_position" text,
"race_1_winner" text,
"race_2_winner" text,
"race_3_winner" text
);
Question: How many race 3 winners were there when Mitch Evans won race 2?
<|assistant|>
SELECT COUNT("race_3_winner") FROM "race_calendar_and_results" WHERE "race_2_winner"='Mitch Evans';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar_and_results" (
"event" real,
"circuit" text,
"date" text,
"pole_position" text,
"race_1_winner" text,
"race_2_winner" text,
"race_3_winner" text
);
Question: What date was the race at the Symmons Plains Raceway?
<|assistant|>
SELECT "date" FROM "race_calendar_and_results" WHERE "circuit"='Symmons Plains Raceway';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar_and_results" (
"event" real,
"circuit" text,
"date" text,
"pole_position" text,
"race_1_winner" text,
"race_2_winner" text,
"race_3_winner" text
);
Question: Who was the race 1 winner at the race held at Winton Motor Raceway?
<|assistant|>
SELECT "race_1_winner" FROM "race_calendar_and_results" WHERE "circuit"='Winton Motor Raceway';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar_and_results" (
"event" real,
"circuit" text,
"date" text,
"pole_position" text,
"race_1_winner" text,
"race_2_winner" text,
"race_3_winner" text
);
Question: Who was the race 1 winner of the race at Hidden Valley Raceway?
<|assistant|>
SELECT "race_1_winner" FROM "race_calendar_and_results" WHERE "circuit"='Hidden Valley Raceway';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"country" text,
"score" text,
"margin_of_victory" text,
"tournament_location" text,
"purse" real,
"winners_share" real
);
Question: In how many years did Pat Bradley became the champion?
<|assistant|>
SELECT COUNT("year") FROM "winners" WHERE "champion"='Pat Bradley';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"country" text,
"score" text,
"margin_of_victory" text,
"tournament_location" text,
"purse" real,
"winners_share" real
);
Question: When was the tournament in Forest Lake Country Club held?
<|assistant|>
SELECT "dates" FROM "winners" WHERE "tournament_location"='Forest Lake Country Club';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"country" text,
"score" text,
"margin_of_victory" text,
"tournament_location" text,
"purse" real,
"winners_share" real
);
Question: How many different countries did the champion Se Ri Pak (2) represent?
<|assistant|>
SELECT COUNT("country") FROM "winners" WHERE "champion"='Se Ri Pak (2)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"country" text,
"score" text,
"margin_of_victory" text,
"tournament_location" text,
"purse" real,
"winners_share" real
);
Question: What was the score in 1978?
<|assistant|>
SELECT "score" FROM "winners" WHERE "year"=1978;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"country" text,
"score" text,
"margin_of_victory" text,
"tournament_location" text,
"purse" real,
"winners_share" real
);
Question: What was the winner share (in $) in the year when Se Ri Pak (2) was the champion?
<|assistant|>
SELECT MIN("winners_share") FROM "winners" WHERE "champion"='Se Ri Pak (2)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"country" text,
"score" text,
"margin_of_victory" text,
"tournament_location" text,
"purse" real,
"winners_share" real
);
Question: What was the score in the tournament won by Jan Stephenson?
<|assistant|>
SELECT "score" FROM "winners" WHERE "champion"='Jan Stephenson';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"location" text,
"opponent" text,
"sooners_points" real,
"opp_points" real,
"record" text
);
Question: How many points did the opponents score at the game in Knoxville?
<|assistant|>
SELECT MIN("opp_points") FROM "schedule" WHERE "location"='Knoxville';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"location" text,
"opponent" text,
"sooners_points" real,
"opp_points" real,
"record" text
);
Question: What game date had a record of 17-7?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "record"='17-7';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"location" text,
"opponent" text,
"sooners_points" real,
"opp_points" real,
"record" text
);
Question: How many points did the opponents score on the game where Sooners' record was 16-5?
<|assistant|>
SELECT MAX("opp_points") FROM "schedule" WHERE "record"='16-5';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_22904780_1" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"u_s_viewers_million" text,
"rank_week" real,
"original_air_date" text
);
Question: List the number of shows that had 12.04 million viewers in the united states
<|assistant|>
SELECT COUNT("title") FROM "table1_22904780_1" WHERE "u_s_viewers_million"='12.04';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_22904780_1" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"u_s_viewers_million" text,
"rank_week" real,
"original_air_date" text
);
Question: List the original air date for week 5.
<|assistant|>
SELECT "original_air_date" FROM "table1_22904780_1" WHERE "rank_week"=5;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_22904780_1" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"u_s_viewers_million" text,
"rank_week" real,
"original_air_date" text
);
Question: List the 1st air date for the show where the writers are russel friend & garrett lerner.
<|assistant|>
SELECT "original_air_date" FROM "table1_22904780_1" WHERE "written_by"='Russel Friend & Garrett Lerner';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "four_cylinder_engines" (
"engine" text,
"crankshaft" text,
"ignition_timing" text,
"graphical" text,
"example" text
);
Question: When shinya nakano's kawasaki ninja zx-rr is the example what is the graphical?
<|assistant|>
SELECT "graphical" FROM "four_cylinder_engines" WHERE "example"='Shinya Nakano''s Kawasaki Ninja ZX-RR';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "four_cylinder_engines" (
"engine" text,
"crankshaft" text,
"ignition_timing" text,
"graphical" text,
"example" text
);
Question: When 1985-2007 yamaha v-max honda vfr800 is the example what is the engine is it?
<|assistant|>
SELECT "engine" FROM "four_cylinder_engines" WHERE "example"='1985-2007 Yamaha V-Max Honda VFR800';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "four_cylinder_engines" (
"engine" text,
"crankshaft" text,
"ignition_timing" text,
"graphical" text,
"example" text
);
Question: When shinya nakano's kawasaki ninja zx-rr is the example what is the engine type?
<|assistant|>
SELECT "engine" FROM "four_cylinder_engines" WHERE "example"='Shinya Nakano''s Kawasaki Ninja ZX-RR';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "four_cylinder_engines" (
"engine" text,
"crankshaft" text,
"ignition_timing" text,
"graphical" text,
"example" text
);
Question: When 68-292-68-292 is the ignition timing how many graphicals is it?
<|assistant|>
SELECT COUNT("graphical") FROM "four_cylinder_engines" WHERE "ignition_timing"='68-292-68-292';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "four_cylinder_engines" (
"engine" text,
"crankshaft" text,
"ignition_timing" text,
"graphical" text,
"example" text
);
Question: When i4 is the engine what is the graphical?
<|assistant|>
SELECT "graphical" FROM "four_cylinder_engines" WHERE "engine"='I4';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "four_cylinder_engines" (
"engine" text,
"crankshaft" text,
"ignition_timing" text,
"graphical" text,
"example" text
);
Question: When 1-1-0-0-1-1-0-0- is the graphical how many ignition timings are there?
<|assistant|>
SELECT COUNT("ignition_timing") FROM "four_cylinder_engines" WHERE "graphical"='1-1-0-0-1-1-0-0-';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goals" (
"r" real,
"player" text,
"position" text,
"league" real,
"champions_league" real,
"copa_del_rey" real,
"total" real
);
Question: Name the least total for sergio ramos
<|assistant|>
SELECT MIN("total") FROM "goals" WHERE "player"='Sergio Ramos';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goals" (
"r" real,
"player" text,
"position" text,
"league" real,
"champions_league" real,
"copa_del_rey" real,
"total" real
);
Question: Name the least copa del rey
<|assistant|>
SELECT MIN("copa_del_rey") FROM "goals";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goals" (
"r" real,
"player" text,
"position" text,
"league" real,
"champions_league" real,
"copa_del_rey" real,
"total" real
);
Question: Name the most copa del rey for karim benzema
<|assistant|>
SELECT MAX("copa_del_rey") FROM "goals" WHERE "player"='Karim Benzema';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "assists" (
"r" real,
"player" text,
"position" text,
"league" real,
"champions_league" real,
"copa_del_rey" real,
"total" real
);
Question: If the total is 6, what is the maximum R?
<|assistant|>
SELECT MAX("r") FROM "assists" WHERE "total"=6;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "assists" (
"r" real,
"player" text,
"position" text,
"league" real,
"champions_league" real,
"copa_del_rey" real,
"total" real
);
Question: If the player is Marcelo, what is the minimum R?
<|assistant|>
SELECT MIN("r") FROM "assists" WHERE "player"='Marcelo';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "assists" (
"r" real,
"player" text,
"position" text,
"league" real,
"champions_league" real,
"copa_del_rey" real,
"total" real
);
Question: If the position is FB, what is the Copa Del Rey?
<|assistant|>
SELECT "copa_del_rey" FROM "assists" WHERE "position"='FB';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "assists" (
"r" real,
"player" text,
"position" text,
"league" real,
"champions_league" real,
"copa_del_rey" real,
"total" real
);
Question: If the player is Marcelo, what is the position?
<|assistant|>
SELECT "position" FROM "assists" WHERE "player"='Marcelo';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "assists" (
"r" real,
"player" text,
"position" text,
"league" real,
"champions_league" real,
"copa_del_rey" real,
"total" real
);
Question: If the position is AM and the league is larger than 7.0, what is the total R number?
<|assistant|>
SELECT COUNT("r") FROM "assists" WHERE "position"='AM' AND "league">7.0;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "assists" (
"r" real,
"player" text,
"position" text,
"league" real,
"champions_league" real,
"copa_del_rey" real,
"total" real
);
Question: What is the maximum possible Copa Del Rey?
<|assistant|>
SELECT MAX("copa_del_rey") FROM "assists";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "category_leadership_table" (
"stage" real,
"winner" text,
"general_classification_ta_koszulka" text,
"mountains_classification_klasyfikacja_g_rska" text,
"intermediate_sprints_classification_klasyfikacja_najaktywniejszych" text,
"points_classification_klasyfikacja_punktowa" text
);
Question: Who was the Stage 1 winner?
<|assistant|>
SELECT "winner" FROM "category_leadership_table" WHERE "stage"=1;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "category_leadership_table" (
"stage" real,
"winner" text,
"general_classification_ta_koszulka" text,
"mountains_classification_klasyfikacja_g_rska" text,
"intermediate_sprints_classification_klasyfikacja_najaktywniejszych" text,
"points_classification_klasyfikacja_punktowa" text
);
Question: Who won Stage 7?
<|assistant|>
SELECT "winner" FROM "category_leadership_table" WHERE "stage"=7;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "category_leadership_table" (
"stage" real,
"winner" text,
"general_classification_ta_koszulka" text,
"mountains_classification_klasyfikacja_g_rska" text,
"intermediate_sprints_classification_klasyfikacja_najaktywniejszych" text,
"points_classification_klasyfikacja_punktowa" text
);
Question: Who was the mountain classification winner in the stage won by Alessandro Ballan?
<|assistant|>
SELECT "mountains_classification_klasyfikacja_g_rska" FROM "category_leadership_table" WHERE "winner"='Alessandro Ballan';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "incorporated_places_with_a_density_of_ov" (
"rank" real,
"incorporated_place" text,
"metropolitan_area" text,
"state" text,
"population_2010_census" real,
"land_area_mi_2" text,
"population_density_people_per_mi_2" text
);
Question: For the city whose land area was 135.09, what was the total population density?
<|assistant|>
SELECT "population_density_people_per_mi_2" FROM "incorporated_places_with_a_density_of_ov" WHERE "land_area_mi_2"='135.09';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "incorporated_places_with_a_density_of_ov" (
"rank" real,
"incorporated_place" text,
"metropolitan_area" text,
"state" text,
"population_2010_census" real,
"land_area_mi_2" text,
"population_density_people_per_mi_2" text
);
Question: Which major metropolitan area had a land area of 23.80?
<|assistant|>
SELECT "metropolitan_area" FROM "incorporated_places_with_a_density_of_ov" WHERE "land_area_mi_2"='23.80';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "incorporated_places_with_a_density_of_ov" (
"rank" real,
"incorporated_place" text,
"metropolitan_area" text,
"state" text,
"population_2010_census" real,
"land_area_mi_2" text,
"population_density_people_per_mi_2" text
);
Question: How many states had a population density of 10188.8?
<|assistant|>
SELECT COUNT("state") FROM "incorporated_places_with_a_density_of_ov" WHERE "population_density_people_per_mi_2"='10188.8';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "charter_members" (
"institution" text,
"nickname" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" real,
"left" real
);
Question: Name the number of left for cardinals
<|assistant|>
SELECT COUNT("left") FROM "charter_members" WHERE "nickname"='Cardinals';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "charter_members" (
"institution" text,
"nickname" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" real,
"left" real
);
Question: Name the school that is private
<|assistant|>
SELECT "institution" FROM "charter_members" WHERE "type"='Private';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "charter_members" (
"institution" text,
"nickname" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" real,
"left" real
);
Question: Name the location that was founded 1798
<|assistant|>
SELECT "location" FROM "charter_members" WHERE "founded"=1798;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "charter_members" (
"institution" text,
"nickname" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" real,
"left" real
);
Question: Name the nickname that was founded 1798
<|assistant|>
SELECT "nickname" FROM "charter_members" WHERE "founded"=1798;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "metropolitan_areas" (
"rank" real,
"metropolitan_area" text,
"principal_city" text,
"10_000_places" real,
"densest_incorporated_place" text,
"density" text
);
Question: Name the least 10,000+ places for louisville
<|assistant|>
SELECT MIN("10_000_places") FROM "metropolitan_areas" WHERE "principal_city"='Louisville';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "metropolitan_areas" (
"rank" real,
"metropolitan_area" text,
"principal_city" text,
"10_000_places" real,
"densest_incorporated_place" text,
"density" text
);
Question: Name the density for pennsbury village
<|assistant|>
SELECT "density" FROM "metropolitan_areas" WHERE "densest_incorporated_place"='Pennsbury Village';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "metropolitan_areas" (
"rank" real,
"metropolitan_area" text,
"principal_city" text,
"10_000_places" real,
"densest_incorporated_place" text,
"density" text
);
Question: Name the number of rank for stone park
<|assistant|>
SELECT COUNT("rank") FROM "metropolitan_areas" WHERE "densest_incorporated_place"='Stone Park';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "metropolitan_areas" (
"rank" real,
"metropolitan_area" text,
"principal_city" text,
"10_000_places" real,
"densest_incorporated_place" text,
"density" text
);
Question: Name the area for north bay village
<|assistant|>
SELECT "metropolitan_area" FROM "metropolitan_areas" WHERE "densest_incorporated_place"='North Bay Village';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2293510_1" (
"region_nuts_2006" text,
"total_million" text,
"per_capita_2005" real,
"ppp_million" real,
"ppp_per_capita" real,
"pct_of_eu_average_gdp_ppp" text
);
Question: Where is the PPP 23164 million €?
<|assistant|>
SELECT "region_nuts_2006" FROM "table1_2293510_1" WHERE "ppp_million"=23164;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2293510_1" (
"region_nuts_2006" text,
"total_million" text,
"per_capita_2005" real,
"ppp_million" real,
"ppp_per_capita" real,
"pct_of_eu_average_gdp_ppp" text
);
Question: What's the total (in million €) in the region where PPP is 21779 million €?
<|assistant|>
SELECT "total_million" FROM "table1_2293510_1" WHERE "ppp_million"=21779;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2293510_1" (
"region_nuts_2006" text,
"total_million" text,
"per_capita_2005" real,
"ppp_million" real,
"ppp_per_capita" real,
"pct_of_eu_average_gdp_ppp" text
);
Question: What's the percentage of EU average GDP (PPP) in the region where € per capita is 2519
<|assistant|>
SELECT "pct_of_eu_average_gdp_ppp" FROM "table1_2293510_1" WHERE "per_capita_2005"=2519;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "riders_jersey_progress_table" (
"stage" real,
"winner" text,
"general_classification" text,
"mountains_classification" text,
"points_classification" text,
"sprints_classification" text,
"team_classification" text
);
Question: If the winner is Bernhard Eisel, what is the stage maximum?
<|assistant|>
SELECT MAX("stage") FROM "riders_jersey_progress_table" WHERE "winner"='Bernhard Eisel';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "riders_jersey_progress_table" (
"stage" real,
"winner" text,
"general_classification" text,
"mountains_classification" text,
"points_classification" text,
"sprints_classification" text,
"team_classification" text
);
Question: What is the mountain classification name if the winner is Bernhard Eisel?
<|assistant|>
SELECT "mountains_classification" FROM "riders_jersey_progress_table" WHERE "winner"='Bernhard Eisel';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "riders_jersey_progress_table" (
"stage" real,
"winner" text,
"general_classification" text,
"mountains_classification" text,
"points_classification" text,
"sprints_classification" text,
"team_classification" text
);
Question: If the stage is 3, what is the points classification name?
<|assistant|>
SELECT "points_classification" FROM "riders_jersey_progress_table" WHERE "stage"=3;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "riders_jersey_progress_table" (
"stage" real,
"winner" text,
"general_classification" text,
"mountains_classification" text,
"points_classification" text,
"sprints_classification" text,
"team_classification" text
);
Question: If the stage is 9, what is the team classification name?
<|assistant|>
SELECT "team_classification" FROM "riders_jersey_progress_table" WHERE "stage"=9;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "riders_jersey_progress_table" (
"stage" real,
"winner" text,
"general_classification" text,
"mountains_classification" text,
"points_classification" text,
"sprints_classification" text,
"team_classification" text
);
Question: If the winner is Michael Albasini, what is the mountains classification name?
<|assistant|>
SELECT "mountains_classification" FROM "riders_jersey_progress_table" WHERE "winner"='Michael Albasini';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "riders_jersey_progress_table" (
"stage" real,
"winner" text,
"general_classification" text,
"mountains_classification" text,
"points_classification" text,
"sprints_classification" text,
"team_classification" text
);
Question: What is the name of the winner when the sprints classification is no award?
<|assistant|>
SELECT "winner" FROM "riders_jersey_progress_table" WHERE "sprints_classification"='no award';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_22951088_3" (
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text,
"18_49_rating_share" text
);
Question: What was the 18-49 rating share for the episode "pilot"?
<|assistant|>
SELECT "18_49_rating_share" FROM "table1_22951088_3" WHERE "title"='\"Pilot\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_22951088_3" (
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text,
"18_49_rating_share" text
);
Question: How many viewers (in millions) watched the episode written by deidre shaw?
<|assistant|>
SELECT "u_s_viewers_in_millions" FROM "table1_22951088_3" WHERE "written_by"='Deidre Shaw';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_22951088_3" (
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text,
"18_49_rating_share" text
);
Question: What was the original air date of episode number 1?
<|assistant|>
SELECT "original_air_date" FROM "table1_22951088_3" WHERE "no"=1;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_hat_tricks" (
"no" real,
"season" real,
"bowler" text,
"batsmen" text,
"for" text,
"against" text,
"ground" text,
"scorecard" text
);
Question: Who was the bowler when the batsmen was dwaraka ravi teja rp singh pragyan ojha?
<|assistant|>
SELECT "bowler" FROM "list_of_hat_tricks" WHERE "batsmen"='Dwaraka Ravi Teja RP Singh Pragyan Ojha';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_hat_tricks" (
"no" real,
"season" real,
"bowler" text,
"batsmen" text,
"for" text,
"against" text,
"ground" text,
"scorecard" text
);
Question: How many bowlers were there when david hussey azhar mahmood gurkeerat singh was the batsmen?
<|assistant|>
SELECT COUNT("bowler") FROM "list_of_hat_tricks" WHERE "batsmen"='David Hussey Azhar Mahmood Gurkeerat Singh';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_hat_tricks" (
"no" real,
"season" real,
"bowler" text,
"batsmen" text,
"for" text,
"against" text,
"ground" text,
"scorecard" text
);
Question: What season was herschelle gibbs andrew symonds venugopal rao batsmen?
<|assistant|>
SELECT "season" FROM "list_of_hat_tricks" WHERE "batsmen"='Herschelle Gibbs Andrew Symonds Venugopal Rao';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_hat_tricks" (
"no" real,
"season" real,
"bowler" text,
"batsmen" text,
"for" text,
"against" text,
"ground" text,
"scorecard" text
);
Question: What was the scorecard when robin uthappa mark boucher jacques kallis was the batsmen?
<|assistant|>
SELECT "scorecard" FROM "list_of_hat_tricks" WHERE "batsmen"='Robin Uthappa Mark Boucher Jacques Kallis';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_hat_tricks" (
"no" real,
"season" real,
"bowler" text,
"batsmen" text,
"for" text,
"against" text,
"ground" text,
"scorecard" text
);
Question: How many sesason were there when for is deccan chargers and bowler is amit mishra?
<|assistant|>
SELECT COUNT("season") FROM "list_of_hat_tricks" WHERE "for"='Deccan Chargers' AND "bowler"='Amit Mishra';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_hat_tricks" (
"no" real,
"season" real,
"bowler" text,
"batsmen" text,
"for" text,
"against" text,
"ground" text,
"scorecard" text
);
Question: What is the number when against is rajasthan royals?
<|assistant|>
SELECT MAX("no") FROM "list_of_hat_tricks" WHERE "against"='Rajasthan Royals';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sun_like_stars_with_hot_dust_disks" (
"star" text,
"stellar_classification" text,
"distance_from_earth_ly" text,
"constellation" text,
"dust_or_debris_temperature_k" text,
"system" text,
"dust_or_debris_location_au" text,
"cool_dust_10_au" text,
"stellar_age_myr" text
);
Question: Name number of stellar classification for 3 neptune planets < 1 au
<|assistant|>
SELECT COUNT("stellar_classification") FROM "sun_like_stars_with_hot_dust_disks" WHERE "system"='3 Neptune planets < 1 AU';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sun_like_stars_with_hot_dust_disks" (
"star" text,
"stellar_classification" text,
"distance_from_earth_ly" text,
"constellation" text,
"dust_or_debris_temperature_k" text,
"system" text,
"dust_or_debris_location_au" text,
"cool_dust_10_au" text,
"stellar_age_myr" text
);
Question: Name the system for aries
<|assistant|>
SELECT "system" FROM "sun_like_stars_with_hot_dust_disks" WHERE "constellation"='Aries';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sun_like_stars_with_hot_dust_disks" (
"star" text,
"stellar_classification" text,
"distance_from_earth_ly" text,
"constellation" text,
"dust_or_debris_temperature_k" text,
"system" text,
"dust_or_debris_location_au" text,
"cool_dust_10_au" text,
"stellar_age_myr" text
);
Question: Name the stellar age for f3v
<|assistant|>
SELECT "stellar_age_myr" FROM "sun_like_stars_with_hot_dust_disks" WHERE "stellar_classification"='F3V';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sun_like_stars_with_hot_dust_disks" (
"star" text,
"stellar_classification" text,
"distance_from_earth_ly" text,
"constellation" text,
"dust_or_debris_temperature_k" text,
"system" text,
"dust_or_debris_location_au" text,
"cool_dust_10_au" text,
"stellar_age_myr" text
);
Question: Name the dust for star being hd 69830
<|assistant|>
SELECT "dust_or_debris_location_au" FROM "sun_like_stars_with_hot_dust_disks" WHERE "star"='HD 69830';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sun_like_stars_with_hot_dust_disks" (
"star" text,
"stellar_classification" text,
"distance_from_earth_ly" text,
"constellation" text,
"dust_or_debris_temperature_k" text,
"system" text,
"dust_or_debris_location_au" text,
"cool_dust_10_au" text,
"stellar_age_myr" text
);
Question: Name the dust for star being η corvi
<|assistant|>
SELECT "dust_or_debris_temperature_k" FROM "sun_like_stars_with_hot_dust_disks" WHERE "star"='η Corvi';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_22977424_8" (
"season" text,
"name" text,
"teams" real,
"relegated_to_league" text,
"promoted_to_league" text,
"promoted_from_league" text,
"relegated_from_league" text
);
Question: Name the number of names for exeter chiefs
<|assistant|>
SELECT COUNT("name") FROM "table1_22977424_8" WHERE "promoted_from_league"='Exeter Chiefs';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_22977424_8" (
"season" text,
"name" text,
"teams" real,
"relegated_to_league" text,
"promoted_to_league" text,
"promoted_from_league" text,
"relegated_from_league" text
);
Question: Name the name for henley manchester
<|assistant|>
SELECT "name" FROM "table1_22977424_8" WHERE "promoted_to_league"='Henley Manchester';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_22977424_8" (
"season" text,
"name" text,
"teams" real,
"relegated_to_league" text,
"promoted_to_league" text,
"promoted_from_league" text,
"relegated_from_league" text
);
Question: Name the name for doncaster newbury
<|assistant|>
SELECT "name" FROM "table1_22977424_8" WHERE "promoted_to_league"='Doncaster Newbury';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_22977424_8" (
"season" text,
"name" text,
"teams" real,
"relegated_to_league" text,
"promoted_to_league" text,
"promoted_from_league" text,
"relegated_from_league" text
);
Question: Name the season for rotherham titans
<|assistant|>
SELECT "season" FROM "table1_22977424_8" WHERE "promoted_from_league"='Rotherham Titans';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_22977424_8" (
"season" text,
"name" text,
"teams" real,
"relegated_to_league" text,
"promoted_to_league" text,
"promoted_from_league" text,
"relegated_from_league" text
);
Question: Name the name for plymouth albion orrell
<|assistant|>
SELECT "name" FROM "table1_22977424_8" WHERE "promoted_to_league"='Plymouth Albion Orrell';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_229917_2" (
"date_dd_mm_yyyy" text,
"tail_number" text,
"location" text,
"fatalities" text,
"brief_description" text
);
Question: What's the tail number of the airplane involved in the accident described as crashed?
<|assistant|>
SELECT "tail_number" FROM "table1_229917_2" WHERE "brief_description"='Crashed';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_229917_2" (
"date_dd_mm_yyyy" text,
"tail_number" text,
"location" text,
"fatalities" text,
"brief_description" text
);
Question: How many different brief descriptions are there for crashes with 0/161 fatalities?
<|assistant|>
SELECT COUNT("brief_description") FROM "table1_229917_2" WHERE "fatalities"='0/161';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_229917_2" (
"date_dd_mm_yyyy" text,
"tail_number" text,
"location" text,
"fatalities" text,
"brief_description" text
);
Question: When did the airplane with tail number RA-85282 crash?
<|assistant|>
SELECT "date_dd_mm_yyyy" FROM "table1_229917_2" WHERE "tail_number"='RA-85282';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_229917_2" (
"date_dd_mm_yyyy" text,
"tail_number" text,
"location" text,
"fatalities" text,
"brief_description" text
);
Question: How many fatalities were there in the crash described as ditched 300 m short of runway?
<|assistant|>
SELECT "fatalities" FROM "table1_229917_2" WHERE "brief_description"='Ditched 300 m short of runway';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_229917_2" (
"date_dd_mm_yyyy" text,
"tail_number" text,
"location" text,
"fatalities" text,
"brief_description" text
);
Question: How many fatalities were there in the crash described as crashed at take-off due to engine failure?
<|assistant|>
SELECT "fatalities" FROM "table1_229917_2" WHERE "brief_description"='Crashed at take-off due to engine failure';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sycamores_in_professional_leagues_50" (
"player" text,
"class_year" real,
"position" text,
"teams" text,
"career" text,
"highlight_s" text
);
Question: What class year was Vencie Glenn from?
<|assistant|>
SELECT MIN("class_year") FROM "sycamores_in_professional_leagues_50" WHERE "player"='Vencie Glenn';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sycamores_in_professional_leagues_50" (
"player" text,
"class_year" real,
"position" text,
"teams" text,
"career" text,
"highlight_s" text
);
Question: What position did the player whose highlights were 5 career INTs play?
<|assistant|>
SELECT "position" FROM "sycamores_in_professional_leagues_50" WHERE "highlight_s"='5 Career INTs';<|endoftext|>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.