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