output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "domestic_box_office" FROM "lifetime_grosses" WHERE "foreign_box_office"='$26,600,000'; |
## Task
Generate a SQL query to answer the following question:
`What was the domestic box office for the film that had a foreign box office of $26,600,000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lifetime_grosses" (
"year" real,
"film" text,
"budget" text,
"domestic_box_office" text,
"foreign_box_office" text,
"total" text,
"us_dvd_sales" text,
"total_with_dvd_sales" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the domestic box office for the film that had a foreign box office of $26,600,000?`:
```sql
|
SELECT "domestic_box_office" FROM "lifetime_grosses" WHERE "film"='House on Haunted Hill'; |
## Task
Generate a SQL query to answer the following question:
`What was the domestic box office for "House on Haunted Hill"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lifetime_grosses" (
"year" real,
"film" text,
"budget" text,
"domestic_box_office" text,
"foreign_box_office" text,
"total" text,
"us_dvd_sales" text,
"total_with_dvd_sales" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the domestic box office for "House on Haunted Hill"?`:
```sql
|
SELECT "budget" FROM "lifetime_grosses" WHERE "film"='Thirteen Ghosts'; |
## Task
Generate a SQL query to answer the following question:
`What was the budget for "Thirteen Ghosts"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lifetime_grosses" (
"year" real,
"film" text,
"budget" text,
"domestic_box_office" text,
"foreign_box_office" text,
"total" text,
"us_dvd_sales" text,
"total_with_dvd_sales" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the budget for "Thirteen Ghosts"?`:
```sql
|
SELECT "school" FROM "current_member_schools" WHERE "location"='Adelaide'; |
## Task
Generate a SQL query to answer the following question:
`What is every school for the Adelaide location?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_member_schools" (
"school" text,
"location" text,
"enrolment" real,
"founded" real,
"denomination" text,
"boys_girls" text,
"day_boarding" text,
"school_colors" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every school for the Adelaide location?`:
```sql
|
SELECT COUNT("founded") FROM "current_member_schools" WHERE "enrolment"=850; |
## Task
Generate a SQL query to answer the following question:
`How many values for founded when enrollment is 850?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_member_schools" (
"school" text,
"location" text,
"enrolment" real,
"founded" real,
"denomination" text,
"boys_girls" text,
"day_boarding" text,
"school_colors" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many values for founded when enrollment is 850?`:
```sql
|
SELECT "denomination" FROM "current_member_schools" WHERE "school"='Seymour College'; |
## Task
Generate a SQL query to answer the following question:
`What is every denomination for the school Seymour college?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_member_schools" (
"school" text,
"location" text,
"enrolment" real,
"founded" real,
"denomination" text,
"boys_girls" text,
"day_boarding" text,
"school_colors" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every denomination for the school Seymour college?`:
```sql
|
SELECT "date" FROM "2011_events" WHERE "event_num"='38M'; |
## Task
Generate a SQL query to answer the following question:
`Event number 38m was held on which date? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2011_events" (
"date" text,
"event_num" text,
"event" text,
"winner" text,
"prize" text,
"entries" text,
"prize_pool" text,
"elapsed_time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Event number 38m was held on which date? `:
```sql
|
SELECT "winner" FROM "2011_events" WHERE "event"='$109 No Limit Hold''em w/rebuys [Turbo]'; |
## Task
Generate a SQL query to answer the following question:
`Who won the $109 no limit hold'em w/rebuys [turbo]?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2011_events" (
"date" text,
"event_num" text,
"event" text,
"winner" text,
"prize" text,
"entries" text,
"prize_pool" text,
"elapsed_time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the $109 no limit hold'em w/rebuys [turbo]?`:
```sql
|
SELECT "event" FROM "2011_events" WHERE "entries"='25,883'; |
## Task
Generate a SQL query to answer the following question:
`Which event had 25,883 entries? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2011_events" (
"date" text,
"event_num" text,
"event" text,
"winner" text,
"prize" text,
"entries" text,
"prize_pool" text,
"elapsed_time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which event had 25,883 entries? `:
```sql
|
SELECT COUNT("elapsed_time") FROM "2011_events" WHERE "event"='$16.50 Fixed-Limit Badugi'; |
## Task
Generate a SQL query to answer the following question:
`How many categories for elapsed time exist for the $16.50 fixed-limit badugi game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2011_events" (
"date" text,
"event_num" text,
"event" text,
"winner" text,
"prize" text,
"entries" text,
"prize_pool" text,
"elapsed_time" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many categories for elapsed time exist for the $16.50 fixed-limit badugi game?`:
```sql
|
SELECT COUNT("elapsed_time") FROM "2011_events" WHERE "prize_pool"='$1,678,200'; |
## Task
Generate a SQL query to answer the following question:
`How many elapsed times were recorded for the game that had a prize pool of $1,678,200?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2011_events" (
"date" text,
"event_num" text,
"event" text,
"winner" text,
"prize" text,
"entries" text,
"prize_pool" text,
"elapsed_time" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many elapsed times were recorded for the game that had a prize pool of $1,678,200?`:
```sql
|
SELECT "year_ceremony" FROM "submissions" WHERE "director"='Jaroslav Vojtek Category:Articles with hCards'; |
## Task
Generate a SQL query to answer the following question:
`What year did jaroslav vojtek category:articles with hcards Direct?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"slovak_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did jaroslav vojtek category:articles with hcards Direct?`:
```sql
|
SELECT "result" FROM "submissions" WHERE "film_title_used_in_nomination"='Gypsy'; |
## Task
Generate a SQL query to answer the following question:
`What was the result for Gypsy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"slovak_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result for Gypsy?`:
```sql
|
SELECT COUNT("film_title_used_in_nomination") FROM "submissions" WHERE "director"='Martin Repka Category:Articles with hCards'; |
## Task
Generate a SQL query to answer the following question:
`HOw many films did martin repka category:articles with hcards direct?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"slovak_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `HOw many films did martin repka category:articles with hcards direct?`:
```sql
|
SELECT "result" FROM "submissions" WHERE "film_title_used_in_nomination"='City of the Sun'; |
## Task
Generate a SQL query to answer the following question:
`What was the result for City of the Sun?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"slovak_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result for City of the Sun?`:
```sql
|
SELECT "language_s" FROM "submissions" WHERE "film_title_used_in_nomination"='Late Bloomers'; |
## Task
Generate a SQL query to answer the following question:
`What was the language for the movie "Late Bloomers"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"language_s" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the language for the movie "Late Bloomers"?`:
```sql
|
SELECT COUNT("original_title") FROM "submissions" WHERE "film_title_used_in_nomination"='If the Sun Never Returns'; |
## Task
Generate a SQL query to answer the following question:
`How many original titles were listed as "If the Sun Never Returns"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"language_s" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many original titles were listed as "If the Sun Never Returns"?`:
```sql
|
SELECT "language_s" FROM "submissions" WHERE "film_title_used_in_nomination"='Mein Name Ist Bach'; |
## Task
Generate a SQL query to answer the following question:
`What was the language of "Mein Name Ist Bach"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"language_s" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the language of "Mein Name Ist Bach"?`:
```sql
|
SELECT "year_ceremony" FROM "submissions" WHERE "original_title"='Vitus'; |
## Task
Generate a SQL query to answer the following question:
`What was the year for the film "Vitus"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"language_s" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the year for the film "Vitus"?`:
```sql
|
SELECT COUNT("film_title_used_in_nomination") FROM "submissions" WHERE "original_title"='Dans la ville blanche'; |
## Task
Generate a SQL query to answer the following question:
`How many films are titled "Dans la Ville Blanche"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"language_s" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many films are titled "Dans la Ville Blanche"?`:
```sql
|
SELECT COUNT("written_by") FROM "table1_22053239_1" WHERE "u_s_viewers_millions"='5.35'; |
## Task
Generate a SQL query to answer the following question:
`How many of the writers had 5.35 viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22053239_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many of the writers had 5.35 viewers?`:
```sql
|
SELECT "elapsed_time" FROM "2012_events" WHERE "prize"='$9,377.42'; |
## Task
Generate a SQL query to answer the following question:
`What was the elapsed time for the championship that had $9,377.42 in prize money? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2012_events" (
"date" text,
"event_num" text,
"event" text,
"winner" text,
"prize" text,
"entries" text,
"prize_pool" text,
"elapsed_time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the elapsed time for the championship that had $9,377.42 in prize money? `:
```sql
|
SELECT "winner" FROM "2012_events" WHERE "prize_pool"='$61,100'; |
## Task
Generate a SQL query to answer the following question:
`Who won a prize pool of $61,100?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2012_events" (
"date" text,
"event_num" text,
"event" text,
"winner" text,
"prize" text,
"entries" text,
"prize_pool" text,
"elapsed_time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won a prize pool of $61,100?`:
```sql
|
SELECT "prize_pool" FROM "2012_events" WHERE "event_num"='27H'; |
## Task
Generate a SQL query to answer the following question:
`What was the prize pool for the event number 27H? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2012_events" (
"date" text,
"event_num" text,
"event" text,
"winner" text,
"prize" text,
"entries" text,
"prize_pool" text,
"elapsed_time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the prize pool for the event number 27H? `:
```sql
|
SELECT "event" FROM "2012_events" WHERE "event_num"='8M'; |
## Task
Generate a SQL query to answer the following question:
`What is the event name with the number 8M? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2012_events" (
"date" text,
"event_num" text,
"event" text,
"winner" text,
"prize" text,
"entries" text,
"prize_pool" text,
"elapsed_time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the event name with the number 8M? `:
```sql
|
SELECT COUNT("1980_mil") FROM "population" WHERE "country"='Soviet Union'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number 1980 mil for soviet union`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population" (
"country" text,
"area_000s" text,
"1950_mil" text,
"1970_mil" text,
"1980_mil" text,
"1985_mil" text,
"annual_growth_1950_1985" text,
"density_1980" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number 1980 mil for soviet union`:
```sql
|
SELECT "country" FROM "population" WHERE "1985_mil"='37.23'; |
## Task
Generate a SQL query to answer the following question:
`Name the country for 37.23 1985`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population" (
"country" text,
"area_000s" text,
"1950_mil" text,
"1970_mil" text,
"1980_mil" text,
"1985_mil" text,
"annual_growth_1950_1985" text,
"density_1980" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the country for 37.23 1985`:
```sql
|
SELECT "country" FROM "population" WHERE "1970_mil"='2.16'; |
## Task
Generate a SQL query to answer the following question:
`Name the country for 2.16 `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population" (
"country" text,
"area_000s" text,
"1950_mil" text,
"1970_mil" text,
"1980_mil" text,
"1985_mil" text,
"annual_growth_1950_1985" text,
"density_1980" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the country for 2.16 `:
```sql
|
SELECT COUNT("languages") FROM "submissions" WHERE "film_title_used_in_nomination"='Elles'; |
## Task
Generate a SQL query to answer the following question:
`How many languages have elles as the film title used in nomination?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"languages" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many languages have elles as the film title used in nomination?`:
```sql
|
SELECT COUNT("languages") FROM "submissions" WHERE "film_title_used_in_nomination"='Refractaire'; |
## Task
Generate a SQL query to answer the following question:
`How many languages is refractaire as the film title used in nomination?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"languages" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many languages is refractaire as the film title used in nomination?`:
```sql
|
SELECT COUNT("languages") FROM "submissions" WHERE "original_title"='Le Roman de Renart'; |
## Task
Generate a SQL query to answer the following question:
`How many languages have le roman de renart as the original title?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"languages" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many languages have le roman de renart as the original title?`:
```sql
|
SELECT "director" FROM "submissions" WHERE "original_title"='Perl oder Pica'; |
## Task
Generate a SQL query to answer the following question:
`Who is the director of the original title perl oder pica?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"languages" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the director of the original title perl oder pica?`:
```sql
|
SELECT "result" FROM "submissions" WHERE "year_ceremony"='2005 (78th)'; |
## Task
Generate a SQL query to answer the following question:
`What is the result of the 2005 (78th) year ceremony?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"languages" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result of the 2005 (78th) year ceremony?`:
```sql
|
SELECT "title" FROM "table1_22078691_2" WHERE "u_s_viewers_millions"='14.59'; |
## Task
Generate a SQL query to answer the following question:
`What is the title that has 14.59 u.s. viewers (millions)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22078691_2" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title that has 14.59 u.s. viewers (millions)?`:
```sql
|
SELECT "no_in_series" FROM "table1_22078691_2" WHERE "title"='\"Call of Silence\"'; |
## Task
Generate a SQL query to answer the following question:
`How many number of series have the title "call of silence"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22078691_2" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many number of series have the title "call of silence"?`:
```sql
|
SELECT "title" FROM "table1_22078691_2" WHERE "u_s_viewers_millions"='13.59'; |
## Task
Generate a SQL query to answer the following question:
`What is the title that had 13.59 u.s. viewers (millions)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22078691_2" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title that had 13.59 u.s. viewers (millions)?`:
```sql
|
SELECT "money_list_rank" FROM "lpga_tour_career_summary" WHERE "earnings"='309,886'; |
## Task
Generate a SQL query to answer the following question:
`If the earning amount is $309,886, what is the money list ranking?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lpga_tour_career_summary" (
"year" real,
"tournaments_played" real,
"cuts_made" real,
"wins" real,
"3rds" real,
"top_10s" real,
"best_finish" text,
"earnings" text,
"money_list_rank" real,
"scoring_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the earning amount is $309,886, what is the money list ranking?`:
```sql
|
SELECT MAX("wins") FROM "lpga_tour_career_summary"; |
## Task
Generate a SQL query to answer the following question:
`What was the maximum number of wins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lpga_tour_career_summary" (
"year" real,
"tournaments_played" real,
"cuts_made" real,
"wins" real,
"3rds" real,
"top_10s" real,
"best_finish" text,
"earnings" text,
"money_list_rank" real,
"scoring_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the maximum number of wins?`:
```sql
|
SELECT "scoring_average" FROM "lpga_tour_career_summary" WHERE "year"=2010; |
## Task
Generate a SQL query to answer the following question:
`If the year is 2010, what was the average score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lpga_tour_career_summary" (
"year" real,
"tournaments_played" real,
"cuts_made" real,
"wins" real,
"3rds" real,
"top_10s" real,
"best_finish" text,
"earnings" text,
"money_list_rank" real,
"scoring_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the year is 2010, what was the average score?`:
```sql
|
SELECT COUNT("event") FROM "race_calendar" WHERE "fastest_lap"='Tim Macrow' AND "pole_position"='Joey Foster'; |
## Task
Generate a SQL query to answer the following question:
`How many times did Tim Macrow and Joey Foster both got the fastest lap and pole position respectively?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_calendar" (
"event" real,
"round" real,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times did Tim Macrow and Joey Foster both got the fastest lap and pole position respectively?`:
```sql
|
SELECT "winning_team" FROM "race_calendar" WHERE "circuit"='Queensland Raceway' AND "fastest_lap"='Tim Macrow'; |
## Task
Generate a SQL query to answer the following question:
`What was the winning team where Tim Macrow won the fastest lap on Queensland Raceway circuit?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_calendar" (
"event" real,
"round" real,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the winning team where Tim Macrow won the fastest lap on Queensland Raceway circuit?`:
```sql
|
SELECT MAX("no_in_series") FROM "table1_22078972_2" WHERE "written_by"='David North'; |
## Task
Generate a SQL query to answer the following question:
`What's the series number of the episode whose writer is David North?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22078972_2" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the series number of the episode whose writer is David North?`:
```sql
|
SELECT MAX("no_in_series") FROM "table1_22078972_2" WHERE "u_s_viewers_millions"='17.04'; |
## Task
Generate a SQL query to answer the following question:
`What's the series number of the episode seen by 17.04 million people in the US?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22078972_2" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the series number of the episode seen by 17.04 million people in the US?`:
```sql
|
SELECT "title" FROM "table1_22078972_2" WHERE "u_s_viewers_millions"='18.15'; |
## Task
Generate a SQL query to answer the following question:
`What's the title of the episode first seen by 18.15 million people in the US?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22078972_2" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the title of the episode first seen by 18.15 million people in the US?`:
```sql
|
SELECT "u_s_viewers_millions" FROM "table1_22078972_2" WHERE "no_in_series"=103; |
## Task
Generate a SQL query to answer the following question:
`How many millions of people in the US saw the episode with series number 103?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22078972_2" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many millions of people in the US saw the episode with series number 103?`:
```sql
|
SELECT "no_in_series" FROM "table1_22078906_2" WHERE "u_s_viewers_millions"='15.89'; |
## Task
Generate a SQL query to answer the following question:
`What number episode in the series was watched by 15.89 million U.S. viewers? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22078906_2" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What number episode in the series was watched by 15.89 million U.S. viewers? `:
```sql
|
SELECT "title" FROM "table1_22078906_2" WHERE "directed_by"='William Webb'; |
## Task
Generate a SQL query to answer the following question:
`What is the title of the episode directed by William Webb? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22078906_2" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the episode directed by William Webb? `:
```sql
|
SELECT "u_s_viewers_millions" FROM "table1_22078906_2" WHERE "title"='\"Once a Hero\"'; |
## Task
Generate a SQL query to answer the following question:
`How many millions of U.S. viewers watched the episode titled "Once a Hero"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22078906_2" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many millions of U.S. viewers watched the episode titled "Once a Hero"?`:
```sql
|
SELECT "written_by" FROM "table1_22078906_2" WHERE "title"='\"In the Dark\"'; |
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode titled "In the Dark"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22078906_2" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode titled "In the Dark"?`:
```sql
|
SELECT "result" FROM "finals" WHERE "runner_up"='River Plate'; |
## Task
Generate a SQL query to answer the following question:
`What was the final score when River Plate was the runner-up?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "finals" (
"season" text,
"champion" text,
"runner_up" text,
"result" text,
"league_mvp" text,
"finals_mvp" text,
"winning_coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score when River Plate was the runner-up?`:
```sql
|
SELECT "spent_per_voter_php" FROM "campaign_expenses" WHERE "amount_spent_php"='210,280,000'; |
## Task
Generate a SQL query to answer the following question:
`What was spent per voter when total amount spent was 210,280,000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campaign_expenses" (
"candidate_party" text,
"amount_raised_php" text,
"amount_spent_php" text,
"votes" real,
"spent_per_vote_php" text,
"spent_per_voter_php" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was spent per voter when total amount spent was 210,280,000?`:
```sql
|
SELECT "spent_per_voter_php" FROM "campaign_expenses" WHERE "spent_per_vote_php"='20.07'; |
## Task
Generate a SQL query to answer the following question:
`What was spent per voter when the spent per vote was 20.07?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campaign_expenses" (
"candidate_party" text,
"amount_raised_php" text,
"amount_spent_php" text,
"votes" real,
"spent_per_vote_php" text,
"spent_per_voter_php" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was spent per voter when the spent per vote was 20.07?`:
```sql
|
SELECT "shows_sellout" FROM "table1_22123920_4" WHERE "sellout_pct"='75%'; |
## Task
Generate a SQL query to answer the following question:
`Between November 25–30, 2008 the sellout rate was at 75%, indicating that the ration between shows to sellout was what?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22123920_4" (
"dates_mdy" text,
"gross_sales" text,
"tickets_sold_available" text,
"shows_sellout" text,
"sellout_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `Between November 25–30, 2008 the sellout rate was at 75%, indicating that the ration between shows to sellout was what?`:
```sql
|
SELECT "tickets_sold_available" FROM "table1_22123920_4" WHERE "gross_sales"='$2,628,457'; |
## Task
Generate a SQL query to answer the following question:
`During the period in which gross sales totals for "The Show Girl Must Go On" reached $2,628,457, what did the numbers show for tickets sold/ available at the box office? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22123920_4" (
"dates_mdy" text,
"gross_sales" text,
"tickets_sold_available" text,
"shows_sellout" text,
"sellout_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `During the period in which gross sales totals for "The Show Girl Must Go On" reached $2,628,457, what did the numbers show for tickets sold/ available at the box office? `:
```sql
|
SELECT "dates_mdy" FROM "table1_22123920_4" WHERE "gross_sales"='$2,877,906'; |
## Task
Generate a SQL query to answer the following question:
`Which specific dates encompass the time period when "The Show Girl Must Go On" showed a gross sales figure total of $2,877,906?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22123920_4" (
"dates_mdy" text,
"gross_sales" text,
"tickets_sold_available" text,
"shows_sellout" text,
"sellout_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which specific dates encompass the time period when "The Show Girl Must Go On" showed a gross sales figure total of $2,877,906?`:
```sql
|
SELECT "year_ceremony" FROM "table1_22102732_1" WHERE "english_title"='Time Out'; |
## Task
Generate a SQL query to answer the following question:
`What year and the corresponding ceremony was the english titled movie "time out" submitted?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22102732_1" (
"year_ceremony" text,
"english_title" text,
"spanish_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year and the corresponding ceremony was the english titled movie "time out" submitted?`:
```sql
|
SELECT COUNT("english_title") FROM "table1_22102732_1" WHERE "director"='Carlos Moreno'; |
## Task
Generate a SQL query to answer the following question:
`How many english titles were directed by carlos moreno?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22102732_1" (
"year_ceremony" text,
"english_title" text,
"spanish_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many english titles were directed by carlos moreno?`:
```sql
|
SELECT COUNT("chairman") FROM "honour_roll" WHERE "w_l_d"='13:10:0'; |
## Task
Generate a SQL query to answer the following question:
`How many years was their W/L/D record 13:10:0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "honour_roll" (
"year" real,
"w_l_d" text,
"position" text,
"chairman" text,
"ceo" text,
"coach" text,
"captain" text,
"vice_captain" text,
"best_and_fairest" text,
"leading_goalkicker" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years was their W/L/D record 13:10:0?`:
```sql
|
SELECT "ranknum" FROM "table1_22098274_1" WHERE "winning_pitcher"='Kelli Miller'; |
## Task
Generate a SQL query to answer the following question:
`What is the rank # of kelli miller the winning pitcher?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22098274_1" (
"date" text,
"time" text,
"opponent" text,
"ranknum" text,
"site" text,
"result" text,
"attendance" text,
"winning_pitcher" text,
"losing_pitcher" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank # of kelli miller the winning pitcher?`:
```sql
|
SELECT COUNT("site") FROM "table1_22098274_1" WHERE "date"='May 1, 2004'; |
## Task
Generate a SQL query to answer the following question:
`How many number of site have May 1, 2004 as the date?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22098274_1" (
"date" text,
"time" text,
"opponent" text,
"ranknum" text,
"site" text,
"result" text,
"attendance" text,
"winning_pitcher" text,
"losing_pitcher" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many number of site have May 1, 2004 as the date?`:
```sql
|
SELECT "time" FROM "table1_22098274_1" WHERE "site"='USF Softball Field • Tampa, FL' AND "result"='W4-0'; |
## Task
Generate a SQL query to answer the following question:
`At what time is the site usf softball field • tampa, fl and w4-0 is the result?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22098274_1" (
"date" text,
"time" text,
"opponent" text,
"ranknum" text,
"site" text,
"result" text,
"attendance" text,
"winning_pitcher" text,
"losing_pitcher" text
);
### SQL
Given the database schema, here is the SQL query that answers `At what time is the site usf softball field • tampa, fl and w4-0 is the result?`:
```sql
|
SELECT "result" FROM "table1_22118197_1" WHERE "english_title"='Morning Undersea'; |
## Task
Generate a SQL query to answer the following question:
`What was the result for the film with the English name of Morning Undersea? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22118197_1" (
"year_ceremony" text,
"english_title" text,
"portuguese_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result for the film with the English name of Morning Undersea? `:
```sql
|
SELECT "result" FROM "table1_22118197_1" WHERE "portuguese_title"='Um Filme Falado'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the film with the Portuguese title, Um Filme Falado? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22118197_1" (
"year_ceremony" text,
"english_title" text,
"portuguese_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the film with the Portuguese title, Um Filme Falado? `:
```sql
|
SELECT "portuguese_title" FROM "table1_22118197_1" WHERE "english_title"='Belle Toujours'; |
## Task
Generate a SQL query to answer the following question:
`What is the Portuguese name of the film who's English title is, Belle Toujours? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22118197_1" (
"year_ceremony" text,
"english_title" text,
"portuguese_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Portuguese name of the film who's English title is, Belle Toujours? `:
```sql
|
SELECT "result" FROM "submissions" WHERE "year_ceremony"='2007 (80th)'; |
## Task
Generate a SQL query to answer the following question:
`What is every result for the ceremony year of 2007 (80th)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"english_title" text,
"vietnamese_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every result for the ceremony year of 2007 (80th)?`:
```sql
|
SELECT "english_title" FROM "submissions" WHERE "result"='Nominee'; |
## Task
Generate a SQL query to answer the following question:
`What is every English title for the result of nominee?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"english_title" text,
"vietnamese_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every English title for the result of nominee?`:
```sql
|
SELECT COUNT("director") FROM "submissions" WHERE "vietnamese_title"='Gate, gate, paragate'; |
## Task
Generate a SQL query to answer the following question:
`How many directors have vietnamese titles of Gate, Gate, Paragate?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"english_title" text,
"vietnamese_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many directors have vietnamese titles of Gate, Gate, Paragate?`:
```sql
|
SELECT "year_ceremony" FROM "submissions" WHERE "result"='Nominee'; |
## Task
Generate a SQL query to answer the following question:
`What is every ceremony year for the result of nominee?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"english_title" text,
"vietnamese_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every ceremony year for the result of nominee?`:
```sql
|
SELECT "pilot" FROM "table1_221315_3" WHERE "max_altitude_miles"='55.9'; |
## Task
Generate a SQL query to answer the following question:
`Who was the pilot of max altitude of 55.9 miles?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_221315_3" (
"pilot" text,
"organization" text,
"total_flights" real,
"usaf_space_flights" real,
"fai_space_flights" real,
"max_mach" text,
"max_speed_mph" real,
"max_altitude_miles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the pilot of max altitude of 55.9 miles?`:
```sql
|
SELECT MAX("fai_space_flights") FROM "table1_221315_3" WHERE "max_mach"='5.65'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number of fai space flights when max mach is 5.65?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_221315_3" (
"pilot" text,
"organization" text,
"total_flights" real,
"usaf_space_flights" real,
"fai_space_flights" real,
"max_mach" text,
"max_speed_mph" real,
"max_altitude_miles" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of fai space flights when max mach is 5.65?`:
```sql
|
SELECT "max_altitude_miles" FROM "table1_221315_3" WHERE "pilot"='Neil Armstrong'; |
## Task
Generate a SQL query to answer the following question:
`What was the maximum altitude for Neil Armstrong?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_221315_3" (
"pilot" text,
"organization" text,
"total_flights" real,
"usaf_space_flights" real,
"fai_space_flights" real,
"max_mach" text,
"max_speed_mph" real,
"max_altitude_miles" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the maximum altitude for Neil Armstrong?`:
```sql
|
SELECT COUNT("max_speed_mph") FROM "table1_221315_3" WHERE "usaf_space_flights"=1 AND "total_flights"=34; |
## Task
Generate a SQL query to answer the following question:
`How many numbers were recorded under max speed for 1 USAF space flight and total flights 34?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_221315_3" (
"pilot" text,
"organization" text,
"total_flights" real,
"usaf_space_flights" real,
"fai_space_flights" real,
"max_mach" text,
"max_speed_mph" real,
"max_altitude_miles" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many numbers were recorded under max speed for 1 USAF space flight and total flights 34?`:
```sql
|
SELECT "usaf_space_flights" FROM "table1_221315_3" WHERE "max_speed_mph"=3822; |
## Task
Generate a SQL query to answer the following question:
`What were all USAF space flights when the aximum speed was 3822?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_221315_3" (
"pilot" text,
"organization" text,
"total_flights" real,
"usaf_space_flights" real,
"fai_space_flights" real,
"max_mach" text,
"max_speed_mph" real,
"max_altitude_miles" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were all USAF space flights when the aximum speed was 3822?`:
```sql
|
SELECT "max_mach" FROM "table1_221315_3" WHERE "max_speed_mph"=3887; |
## Task
Generate a SQL query to answer the following question:
`What was the max mach when the maximum speed was 3887?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_221315_3" (
"pilot" text,
"organization" text,
"total_flights" real,
"usaf_space_flights" real,
"fai_space_flights" real,
"max_mach" text,
"max_speed_mph" real,
"max_altitude_miles" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the max mach when the maximum speed was 3887?`:
```sql
|
SELECT "away_leg" FROM "european_record" WHERE "round"=1 AND "aggregate"='2-0'; |
## Task
Generate a SQL query to answer the following question:
`What is the record for the away leg in round 1 and aggregate 2-0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_record" (
"season" text,
"round" real,
"opponents" text,
"home_leg" text,
"away_leg" text,
"aggregate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record for the away leg in round 1 and aggregate 2-0?`:
```sql
|
SELECT COUNT("parishes") FROM "table1_221375_1" WHERE "province_of_1936"='Beira Baixa Province'; |
## Task
Generate a SQL query to answer the following question:
`Name the parishes for beira baixa province`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_221375_1" (
"district" text,
"municipalities" real,
"parishes" real,
"province_of_1936" text,
"region" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the parishes for beira baixa province`:
```sql
|
SELECT MAX("municipalities") FROM "table1_221375_1" WHERE "province_of_1936"='Alto Alentejo Province (partly Ribatejo)'; |
## Task
Generate a SQL query to answer the following question:
`Name the most municipalities for alto alentejo province (partly ribatejo)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_221375_1" (
"district" text,
"municipalities" real,
"parishes" real,
"province_of_1936" text,
"region" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most municipalities for alto alentejo province (partly ribatejo)`:
```sql
|
SELECT "province_of_1936" FROM "table1_221375_1" WHERE "district"='Viana do Castelo'; |
## Task
Generate a SQL query to answer the following question:
`Name province of 1936 viana do castelo`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_221375_1" (
"district" text,
"municipalities" real,
"parishes" real,
"province_of_1936" text,
"region" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name province of 1936 viana do castelo`:
```sql
|
SELECT "score" FROM "doubles_9_finals_5_titles_4_runner_ups" WHERE "partner"='Rafael Osuna'; |
## Task
Generate a SQL query to answer the following question:
`What was the score when the partner is Rafael Osuna?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_9_finals_5_titles_4_runner_ups" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when the partner is Rafael Osuna?`:
```sql
|
SELECT "outcome" FROM "doubles_9_finals_5_titles_4_runner_ups" WHERE "partner"='Rafael Osuna'; |
## Task
Generate a SQL query to answer the following question:
`What was the outcome of the game when the partner is Rafael Osuna?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_9_finals_5_titles_4_runner_ups" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the outcome of the game when the partner is Rafael Osuna?`:
```sql
|
SELECT "surface" FROM "doubles_9_finals_5_titles_4_runner_ups" WHERE "championship"='French Championships'; |
## Task
Generate a SQL query to answer the following question:
`What is the surface of the French Championships?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_9_finals_5_titles_4_runner_ups" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the surface of the French Championships?`:
```sql
|
SELECT COUNT("outcome") FROM "doubles_9_finals_5_titles_4_runner_ups" WHERE "surface"='Grass' AND "partner"='Chuck McKinley' AND "year"=1962; |
## Task
Generate a SQL query to answer the following question:
`How many outcomes were there for matches played with Chuck McKinley on grass in 1962?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_9_finals_5_titles_4_runner_ups" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many outcomes were there for matches played with Chuck McKinley on grass in 1962?`:
```sql
|
SELECT "home_leg" FROM "european_record" WHERE "opponents"='Partizani Tirana'; |
## Task
Generate a SQL query to answer the following question:
`What was the home leg score against partizani tirana?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_record" (
"season" real,
"round" real,
"opponents" text,
"home_leg" text,
"away_leg" text,
"aggregate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the home leg score against partizani tirana?`:
```sql
|
SELECT COUNT("round") FROM "european_record" WHERE "opponents"='FC St. Gallen'; |
## Task
Generate a SQL query to answer the following question:
`What round did they face fc st. gallen?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_record" (
"season" real,
"round" real,
"opponents" text,
"home_leg" text,
"away_leg" text,
"aggregate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round did they face fc st. gallen?`:
```sql
|
SELECT "home_leg" FROM "european_record" WHERE "opponents"='FC Schalke 04'; |
## Task
Generate a SQL query to answer the following question:
`What was the home leg score against fc schalke 04?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_record" (
"season" real,
"round" real,
"opponents" text,
"home_leg" text,
"away_leg" text,
"aggregate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the home leg score against fc schalke 04?`:
```sql
|
SELECT COUNT("dfb_pokal") FROM "goalscorers" WHERE "player"='Kevin-Prince Boateng'; |
## Task
Generate a SQL query to answer the following question:
`How many dfb-pokal did kevin-prince boateng have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "goalscorers" (
"player" text,
"bundesliga" real,
"dfb_pokal" real,
"uefa_intertoto_cup" real,
"uefa_cup" real,
"dfb_ligapokal" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many dfb-pokal did kevin-prince boateng have?`:
```sql
|
SELECT "head_coach" FROM "conference_tournament_championships" WHERE "championship_game_opponent"='Miami University'; |
## Task
Generate a SQL query to answer the following question:
`Who is the head coach when Miami University is the championship game opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "conference_tournament_championships" (
"tournament" real,
"conference" text,
"championship_game_opponent" text,
"score" text,
"location" text,
"head_coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the head coach when Miami University is the championship game opponent?`:
```sql
|
SELECT "location" FROM "conference_tournament_championships" WHERE "score"='2-1'; |
## Task
Generate a SQL query to answer the following question:
`What is the location when 2-1 is the score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "conference_tournament_championships" (
"tournament" real,
"conference" text,
"championship_game_opponent" text,
"score" text,
"location" text,
"head_coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location when 2-1 is the score?`:
```sql
|
SELECT "conference" FROM "conference_tournament_championships" WHERE "championship_game_opponent"='Ferris State'; |
## Task
Generate a SQL query to answer the following question:
`What is the conference when Ferris State is the championship game opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "conference_tournament_championships" (
"tournament" real,
"conference" text,
"championship_game_opponent" text,
"score" text,
"location" text,
"head_coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the conference when Ferris State is the championship game opponent?`:
```sql
|
SELECT "location" FROM "conference_tournament_championships" WHERE "tournament"=1999; |
## Task
Generate a SQL query to answer the following question:
`What is the location of the 1999 tournament?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "conference_tournament_championships" (
"tournament" real,
"conference" text,
"championship_game_opponent" text,
"score" text,
"location" text,
"head_coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location of the 1999 tournament?`:
```sql
|
SELECT COUNT("score") FROM "conference_tournament_championships" WHERE "championship_game_opponent"='Miami University'; |
## Task
Generate a SQL query to answer the following question:
`How many scores are there when the championship game opponent is Miami University?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "conference_tournament_championships" (
"tournament" real,
"conference" text,
"championship_game_opponent" text,
"score" text,
"location" text,
"head_coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many scores are there when the championship game opponent is Miami University?`:
```sql
|
SELECT "head_coach" FROM "conference_tournament_championships" WHERE "score"='4-3'; |
## Task
Generate a SQL query to answer the following question:
`Who is the head coach for the score of 4-3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "conference_tournament_championships" (
"tournament" real,
"conference" text,
"championship_game_opponent" text,
"score" text,
"location" text,
"head_coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the head coach for the score of 4-3?`:
```sql
|
SELECT "bleeding_time" FROM "laboratory_findings_in_various_platelet_" WHERE "platelet_count"='Decreased or unaffected'; |
## Task
Generate a SQL query to answer the following question:
`What is the bleeding time when the platelet count is decreased or unaffected?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the bleeding time when the platelet count is decreased or unaffected?`:
```sql
|
SELECT "partial_thromboplastin_time" FROM "laboratory_findings_in_various_platelet_" WHERE "condition"='Factor X deficiency as seen in amyloid purpura'; |
## Task
Generate a SQL query to answer the following question:
`What is the partial thromboplastin time when the condition factor x deficiency as seen in amyloid purpura?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the partial thromboplastin time when the condition factor x deficiency as seen in amyloid purpura?`:
```sql
|
SELECT COUNT("platelet_count") FROM "laboratory_findings_in_various_platelet_" WHERE "prothrombin_time"='Prolonged' AND "bleeding_time"='Prolonged'; |
## Task
Generate a SQL query to answer the following question:
`How many time does the platelet count occur when prothrombin time and bleeding time are prolonged?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many time does the platelet count occur when prothrombin time and bleeding time are prolonged?`:
```sql
|
SELECT COUNT("bleeding_time") FROM "laboratory_findings_in_various_platelet_" WHERE "condition"='Disseminated intravascular coagulation'; |
## Task
Generate a SQL query to answer the following question:
`What is the bleeding time for the disseminated intravascular coagulation condition?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the bleeding time for the disseminated intravascular coagulation condition?`:
```sql
|
SELECT "partial_thromboplastin_time" FROM "laboratory_findings_in_various_platelet_" WHERE "prothrombin_time"='Prolonged' AND "bleeding_time"='Prolonged'; |
## Task
Generate a SQL query to answer the following question:
`What is the result for partial thromboplastin time when prothrombin time and bleeding time are prolonged?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result for partial thromboplastin time when prothrombin time and bleeding time are prolonged?`:
```sql
|
SELECT "platelet_count" FROM "laboratory_findings_in_various_platelet_" WHERE "partial_thromboplastin_time"='Unaffected' AND "bleeding_time"='Unaffected'; |
## Task
Generate a SQL query to answer the following question:
`What is the platelet count when partial thromboplastin time and bleeding time are unaffected?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the platelet count when partial thromboplastin time and bleeding time are unaffected?`:
```sql
|
SELECT MIN("top_50_ranking") FROM "new_zealand_tv2" WHERE "title"='The God-Why-Don''t-You-Love-Me Blues'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest top 50 ranking that the episode titled "the god-why-don't-you-love-me blues" received?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "new_zealand_tv2" (
"episode_number" real,
"title" text,
"original_airing" text,
"timeslot" text,
"viewers" real,
"top_50_ranking" real,
"scripted_show_ranking" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest top 50 ranking that the episode titled "the god-why-don't-you-love-me blues" received?`:
```sql
|
SELECT "title" FROM "new_zealand_tv2" WHERE "original_airing"='April 19, 2010'; |
## Task
Generate a SQL query to answer the following question:
`Which episodes originally aired on April 19, 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "new_zealand_tv2" (
"episode_number" real,
"title" text,
"original_airing" text,
"timeslot" text,
"viewers" real,
"top_50_ranking" real,
"scripted_show_ranking" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which episodes originally aired on April 19, 2010?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.