output
stringlengths 27
479
| instruction
stringlengths 407
1.39k
|
|---|---|
SELECT "home_or_away" FROM "scores" WHERE "record"='Biggest win';
|
## Task
Generate a SQL query to answer the following question:
`Is the biggest win recorded as home or away?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scores" (
"record" text,
"date_and_time" text,
"competition" text,
"home_or_away" text,
"opponent" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Is the biggest win recorded as home or away?`:
```sql
|
SELECT "competition" FROM "scores" WHERE "date_and_time"='17.04.1920 at 15:00';
|
## Task
Generate a SQL query to answer the following question:
`What competitions record a date and time of 17.04.1920 at 15:00?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scores" (
"record" text,
"date_and_time" text,
"competition" text,
"home_or_away" text,
"opponent" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What competitions record a date and time of 17.04.1920 at 15:00?`:
```sql
|
SELECT "record" FROM "scores" WHERE "opponent"='Aylesbury United';
|
## Task
Generate a SQL query to answer the following question:
`What records are hit where the opponent is Aylesbury United?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scores" (
"record" text,
"date_and_time" text,
"competition" text,
"home_or_away" text,
"opponent" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What records are hit where the opponent is Aylesbury United?`:
```sql
|
SELECT "opponent" FROM "scores" WHERE "record"='Biggest defeat';
|
## Task
Generate a SQL query to answer the following question:
`Who was the opponent during the biggest defeat?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scores" (
"record" text,
"date_and_time" text,
"competition" text,
"home_or_away" text,
"opponent" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent during the biggest defeat?`:
```sql
|
SELECT COUNT("result") FROM "table1_12369913_1" WHERE "original_title"='Ani Ohev Otach Roza (אני אוהב אותך רוזה)';
|
## Task
Generate a SQL query to answer the following question:
`How many results are there with the original title of ani ohev otach roza (אני אוהב אותך רוזה)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_12369913_1" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many results are there with the original title of ani ohev otach roza (אני אוהב אותך רוזה)?`:
```sql
|
SELECT "power_k_w" FROM "rjtv_stations_nationwide_2nd_avenue" WHERE "ch_num"='TV-26' AND "callsign"='DYFJ-TV';
|
## Task
Generate a SQL query to answer the following question:
`What is the power when ch# is tv-26 and dyfj-tv?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "rjtv_stations_nationwide_2nd_avenue" (
"branding" text,
"callsign" text,
"ch_num" text,
"power_k_w" text,
"station_type" text,
"coverage_transmitter_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the power when ch# is tv-26 and dyfj-tv?`:
```sql
|
SELECT "coverage_transmitter_site" FROM "rjtv_stations_nationwide_2nd_avenue" WHERE "station_type"='Relay' AND "ch_num"='TV-37';
|
## Task
Generate a SQL query to answer the following question:
`What is the coverage for relay tv-37?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "rjtv_stations_nationwide_2nd_avenue" (
"branding" text,
"callsign" text,
"ch_num" text,
"power_k_w" text,
"station_type" text,
"coverage_transmitter_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the coverage for relay tv-37?`:
```sql
|
SELECT "ch_num" FROM "rjtv_stations_nationwide_2nd_avenue" WHERE "callsign"='DWLJ-TV';
|
## Task
Generate a SQL query to answer the following question:
`What is the ch# of dwlj-tv?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "rjtv_stations_nationwide_2nd_avenue" (
"branding" text,
"callsign" text,
"ch_num" text,
"power_k_w" text,
"station_type" text,
"coverage_transmitter_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ch# of dwlj-tv?`:
```sql
|
SELECT "coverage_transmitter_site" FROM "rjtv_stations_nationwide_2nd_avenue" WHERE "station_type"='Relay' AND "power_k_w"='5kW' AND "callsign"='DYFJ-TV';
|
## Task
Generate a SQL query to answer the following question:
`What is the coverage of relay 5kw of dyfj-tv?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "rjtv_stations_nationwide_2nd_avenue" (
"branding" text,
"callsign" text,
"ch_num" text,
"power_k_w" text,
"station_type" text,
"coverage_transmitter_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the coverage of relay 5kw of dyfj-tv?`:
```sql
|
SELECT "running" FROM "women" WHERE "athlete"='Marlene Sanchez';
|
## Task
Generate a SQL query to answer the following question:
`What is the running of marlene sanchez?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women" (
"num" real,
"athlete" text,
"shooting" text,
"fencing" text,
"swimming" text,
"riding" text,
"running" text,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the running of marlene sanchez?`:
```sql
|
SELECT COUNT("running") FROM "women" WHERE "athlete"='Pamela Zapata';
|
## Task
Generate a SQL query to answer the following question:
`What is the numberof running wiht pamela zapata?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women" (
"num" real,
"athlete" text,
"shooting" text,
"fencing" text,
"swimming" text,
"riding" text,
"running" text,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the numberof running wiht pamela zapata?`:
```sql
|
SELECT "shooting" FROM "men" WHERE "athlete_noc"='Luis Siri';
|
## Task
Generate a SQL query to answer the following question:
`What's Luis Siri's shooting score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men" (
"num" real,
"athlete_noc" text,
"shooting" text,
"fencing" text,
"swimming" text,
"riding" text,
"running" text,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's Luis Siri's shooting score?`:
```sql
|
SELECT "riding" FROM "men" WHERE "athlete_noc"='Eduardo Salas';
|
## Task
Generate a SQL query to answer the following question:
`What's Eduardo Salas' riding score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men" (
"num" real,
"athlete_noc" text,
"shooting" text,
"fencing" text,
"swimming" text,
"riding" text,
"running" text,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's Eduardo Salas' riding score?`:
```sql
|
SELECT MAX("num") FROM "men" WHERE "riding"='68.46 (1144 pts)';
|
## Task
Generate a SQL query to answer the following question:
`What's the number of the player with 68.46 (1144 pts) in riding?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men" (
"num" real,
"athlete_noc" text,
"shooting" text,
"fencing" text,
"swimming" text,
"riding" text,
"running" text,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the number of the player with 68.46 (1144 pts) in riding?`:
```sql
|
SELECT "athlete_noc" FROM "men" WHERE "swimming"='2:05.63 (1296 pts)';
|
## Task
Generate a SQL query to answer the following question:
`Who's the player with 2:05.63 (1296 pts) swimming score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men" (
"num" real,
"athlete_noc" text,
"shooting" text,
"fencing" text,
"swimming" text,
"riding" text,
"running" text,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the player with 2:05.63 (1296 pts) swimming score?`:
```sql
|
SELECT "fencing" FROM "men" WHERE "running"='9:40.31 (1080 pts)';
|
## Task
Generate a SQL query to answer the following question:
`What's the fencing score of the player with 9:40.31 (1080 pts) in running?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men" (
"num" real,
"athlete_noc" text,
"shooting" text,
"fencing" text,
"swimming" text,
"riding" text,
"running" text,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the fencing score of the player with 9:40.31 (1080 pts) in running?`:
```sql
|
SELECT "fencing" FROM "men" WHERE "athlete_noc"='Eli Bremer';
|
## Task
Generate a SQL query to answer the following question:
`What's Eli Bremer's fencing score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men" (
"num" real,
"athlete_noc" text,
"shooting" text,
"fencing" text,
"swimming" text,
"riding" text,
"running" text,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's Eli Bremer's fencing score?`:
```sql
|
SELECT COUNT("title") FROM "table1_12419515_4" WHERE "written_by"='Casey Johnson';
|
## Task
Generate a SQL query to answer the following question:
`What is the total number of titles written by Casey Johnson?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_12419515_4" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"total_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of titles written by Casey Johnson?`:
```sql
|
SELECT "written_by" FROM "table1_12419515_4" WHERE "total_viewers_in_millions"='1.211';
|
## Task
Generate a SQL query to answer the following question:
`Who wrote the title that received 1.211 million total viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_12419515_4" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"total_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the title that received 1.211 million total viewers?`:
```sql
|
SELECT "directed_by" FROM "table1_12419515_4" WHERE "written_by"='Adam Milch';
|
## Task
Generate a SQL query to answer the following question:
`Who directed the title that was written by Adam Milch?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_12419515_4" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"total_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the title that was written by Adam Milch?`:
```sql
|
SELECT COUNT("total_viewers_in_millions") FROM "table1_12419515_4" WHERE "series_num"=57;
|
## Task
Generate a SQL query to answer the following question:
`How many millions of total viewers watched series #57?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_12419515_4" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"total_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many millions of total viewers watched series #57?`:
```sql
|
SELECT "total_viewers_in_millions" FROM "table1_12419515_4" WHERE "season_num"=8;
|
## Task
Generate a SQL query to answer the following question:
`How many millions of total viewers watched season #8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_12419515_4" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"total_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many millions of total viewers watched season #8?`:
```sql
|
SELECT "english_spelling" FROM "table_of_theophoric_names_with_yah_and_y" WHERE "strongs_transliteration"='''Adoniyah';
|
## Task
Generate a SQL query to answer the following question:
`What is the English spelling of the strongs transliteration: 'adoniyah?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_of_theophoric_names_with_yah_and_y" (
"strongs_num" text,
"hebrew_word" text,
"strongs_transliteration" text,
"strongs_words_compounded" text,
"english_spelling" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the English spelling of the strongs transliteration: 'adoniyah?`:
```sql
|
SELECT "hebrew_word" FROM "table_of_theophoric_names_with_yah_and_y" WHERE "strongs_num"='5418';
|
## Task
Generate a SQL query to answer the following question:
`What is the hebrew word listed for strongs # 5418?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_of_theophoric_names_with_yah_and_y" (
"strongs_num" text,
"hebrew_word" text,
"strongs_transliteration" text,
"strongs_words_compounded" text,
"english_spelling" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the hebrew word listed for strongs # 5418?`:
```sql
|
SELECT "hebrew_word" FROM "table_of_theophoric_names_with_yah_and_y" WHERE "strongs_words_compounded"='''adown [# 113] & Yahu';
|
## Task
Generate a SQL query to answer the following question:
`List the hebrew word for the strongs words compounded of 'adown [# 113] & yahu`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_of_theophoric_names_with_yah_and_y" (
"strongs_num" text,
"hebrew_word" text,
"strongs_transliteration" text,
"strongs_words_compounded" text,
"english_spelling" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the hebrew word for the strongs words compounded of 'adown [# 113] & yahu`:
```sql
|
SELECT "strongs_num" FROM "table_of_theophoric_names_with_yah_and_y" WHERE "hebrew_word"='יִרְמְיָה';
|
## Task
Generate a SQL query to answer the following question:
`What is the strongs # for the hebrew word יִרְמְיָה?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_of_theophoric_names_with_yah_and_y" (
"strongs_num" text,
"hebrew_word" text,
"strongs_transliteration" text,
"strongs_words_compounded" text,
"english_spelling" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the strongs # for the hebrew word יִרְמְיָה?`:
```sql
|
SELECT "strongs_num" FROM "table_of_theophoric_names_with_yah_and_y" WHERE "english_spelling"='Jirmejah';
|
## Task
Generate a SQL query to answer the following question:
`What is the strongs # for the english spelling of the word jirmejah?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_of_theophoric_names_with_yah_and_y" (
"strongs_num" text,
"hebrew_word" text,
"strongs_transliteration" text,
"strongs_words_compounded" text,
"english_spelling" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the strongs # for the english spelling of the word jirmejah?`:
```sql
|
SELECT MAX("year") FROM "year_by_year" WHERE "regular_season"='6th, Heartland';
|
## Task
Generate a SQL query to answer the following question:
`What is the latest year that 6th, Heartland is regular season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest year that 6th, Heartland is regular season?`:
```sql
|
SELECT "regular_season" FROM "year_by_year" WHERE "playoffs"='Division Finals';
|
## Task
Generate a SQL query to answer the following question:
`Which regular season contains playoffs in division finals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which regular season contains playoffs in division finals?`:
```sql
|
SELECT MIN("year") FROM "year_by_year" WHERE "regular_season"='4th, Rocky Mountain';
|
## Task
Generate a SQL query to answer the following question:
`What is the lowest year that regular season is 4th, Rocky Mountain?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest year that regular season is 4th, Rocky Mountain?`:
```sql
|
SELECT COUNT("lost_to_eventual_winner") FROM "table1_12444503_1" WHERE "lost_to_eventual_runner_up"='ASC Jeanne d''Arc';
|
## Task
Generate a SQL query to answer the following question:
`How many players lost to eventual winner in the season when ASC Jeanne d'Arc lost to eventual runner up?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_12444503_1" (
"season" text,
"winner" text,
"score" text,
"runner_up" text,
"lost_to_eventual_winner" text,
"lost_to_eventual_runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many players lost to eventual winner in the season when ASC Jeanne d'Arc lost to eventual runner up?`:
```sql
|
SELECT COUNT("season") FROM "table1_12444503_1" WHERE "lost_to_eventual_runner_up"='USC Bassam';
|
## Task
Generate a SQL query to answer the following question:
`What's the number of seasons i which USC Bassam lost to eventual runner-up?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_12444503_1" (
"season" text,
"winner" text,
"score" text,
"runner_up" text,
"lost_to_eventual_winner" text,
"lost_to_eventual_runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the number of seasons i which USC Bassam lost to eventual runner-up?`:
```sql
|
SELECT "season" FROM "table1_12444503_1" WHERE "runner_up"='Jeanne d''Arc (Bamako)';
|
## Task
Generate a SQL query to answer the following question:
`In which season was Jeanne d'Arc (Bamako) the runner-up?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_12444503_1" (
"season" text,
"winner" text,
"score" text,
"runner_up" text,
"lost_to_eventual_winner" text,
"lost_to_eventual_runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which season was Jeanne d'Arc (Bamako) the runner-up?`:
```sql
|
SELECT "regular_season" FROM "year_by_year" WHERE "year"='2007';
|
## Task
Generate a SQL query to answer the following question:
`What was the regular season listing in 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" text,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the regular season listing in 2007?`:
```sql
|
SELECT "playoffs" FROM "year_by_year" WHERE "year"='2002';
|
## Task
Generate a SQL query to answer the following question:
`What was the playoff result in 2002?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" text,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the playoff result in 2002?`:
```sql
|
SELECT "open_cup" FROM "year_by_year" WHERE "year"='2004';
|
## Task
Generate a SQL query to answer the following question:
`What was the open cup results in 2004?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" text,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the open cup results in 2004?`:
```sql
|
SELECT COUNT("division") FROM "year_by_year" WHERE "year"='2006';
|
## Task
Generate a SQL query to answer the following question:
`How many divisions were listed in 2006?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" text,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many divisions were listed in 2006?`:
```sql
|
SELECT "recurring_cast_seasons" FROM "cast_members" WHERE "character"='Kevin Lucas';
|
## Task
Generate a SQL query to answer the following question:
`Kevin lucas appears in which seasons?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cast_members" (
"character" text,
"portrayed_by" text,
"main_cast_seasons" text,
"recurring_cast_seasons" text,
"num_of_episodes" real
);
### SQL
Given the database schema, here is the SQL query that answers `Kevin lucas appears in which seasons?`:
```sql
|
SELECT COUNT("portrayed_by") FROM "cast_members" WHERE "character"='Nick Lucas';
|
## Task
Generate a SQL query to answer the following question:
`How many people named Nick Lucas are on the show?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cast_members" (
"character" text,
"portrayed_by" text,
"main_cast_seasons" text,
"recurring_cast_seasons" text,
"num_of_episodes" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many people named Nick Lucas are on the show?`:
```sql
|
SELECT "main_cast_seasons" FROM "cast_members" WHERE "character"='Stella Malone';
|
## Task
Generate a SQL query to answer the following question:
`What seasons does stella malone appear?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cast_members" (
"character" text,
"portrayed_by" text,
"main_cast_seasons" text,
"recurring_cast_seasons" text,
"num_of_episodes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What seasons does stella malone appear?`:
```sql
|
SELECT "main_cast_seasons" FROM "cast_members" WHERE "character"='Nick Lucas';
|
## Task
Generate a SQL query to answer the following question:
`What seasons does Nick lucas appear?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cast_members" (
"character" text,
"portrayed_by" text,
"main_cast_seasons" text,
"recurring_cast_seasons" text,
"num_of_episodes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What seasons does Nick lucas appear?`:
```sql
|
SELECT "main_cast_seasons" FROM "cast_members" WHERE "portrayed_by"='Kevin Jonas';
|
## Task
Generate a SQL query to answer the following question:
`What seasons does Kevin Jonas appear?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cast_members" (
"character" text,
"portrayed_by" text,
"main_cast_seasons" text,
"recurring_cast_seasons" text,
"num_of_episodes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What seasons does Kevin Jonas appear?`:
```sql
|
SELECT "recurring_cast_seasons" FROM "cast_members" WHERE "character"='Nick Lucas';
|
## Task
Generate a SQL query to answer the following question:
`What seasons does Nick Lucas appear in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cast_members" (
"character" text,
"portrayed_by" text,
"main_cast_seasons" text,
"recurring_cast_seasons" text,
"num_of_episodes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What seasons does Nick Lucas appear in?`:
```sql
|
SELECT COUNT("network") FROM "all_in_the_family_till_death_us_do_part" WHERE "dates_aired"='1981';
|
## Task
Generate a SQL query to answer the following question:
`How many networks aired the franchise in 1981 only?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "all_in_the_family_till_death_us_do_part" (
"region_country" text,
"local_name" text,
"network" text,
"dates_aired" text,
"starring" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many networks aired the franchise in 1981 only?`:
```sql
|
SELECT COUNT("network") FROM "all_in_the_family_till_death_us_do_part" WHERE "local_name"='In Sickness and in Health';
|
## Task
Generate a SQL query to answer the following question:
`In how many networks the local name of the franchise was "in sickness and in health"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "all_in_the_family_till_death_us_do_part" (
"region_country" text,
"local_name" text,
"network" text,
"dates_aired" text,
"starring" text
);
### SQL
Given the database schema, here is the SQL query that answers `In how many networks the local name of the franchise was "in sickness and in health"?`:
```sql
|
SELECT "title" FROM "table1_12451376_3" WHERE "season_3_ep_num"=12;
|
## Task
Generate a SQL query to answer the following question:
`What is the title of season 3 ep# 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_12451376_3" (
"series_ep_num" real,
"season_3_ep_num" real,
"title" text,
"director" text,
"writer_s" text,
"original_airdate" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of season 3 ep# 12?`:
```sql
|
SELECT "length" FROM "isc_tracks" WHERE "track_name"='Michigan International Speedway';
|
## Task
Generate a SQL query to answer the following question:
`What is the length of the track named michigan international speedway?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "isc_tracks" (
"track_name" text,
"location" text,
"length" text,
"seating" real,
"year_opened" real,
"year_acquired_a" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the length of the track named michigan international speedway?`:
```sql
|
SELECT "location" FROM "isc_tracks" WHERE "year_opened"=1995;
|
## Task
Generate a SQL query to answer the following question:
`Where is the track that opened in 1995?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "isc_tracks" (
"track_name" text,
"location" text,
"length" text,
"seating" real,
"year_opened" real,
"year_acquired_a" real
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the track that opened in 1995?`:
```sql
|
SELECT "location" FROM "isc_tracks" WHERE "track_name"='Daytona International Speedway';
|
## Task
Generate a SQL query to answer the following question:
`What is the location of the daytona international speedway?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "isc_tracks" (
"track_name" text,
"location" text,
"length" text,
"seating" real,
"year_opened" real,
"year_acquired_a" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location of the daytona international speedway?`:
```sql
|
SELECT "location" FROM "isc_tracks" WHERE "year_opened"=1950;
|
## Task
Generate a SQL query to answer the following question:
`What is the location of the track that opened in 1950?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "isc_tracks" (
"track_name" text,
"location" text,
"length" text,
"seating" real,
"year_opened" real,
"year_acquired_a" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location of the track that opened in 1950?`:
```sql
|
SELECT "power" FROM "table1_1245350_1" WHERE "quattroporte_iv"='3.2i V8 32v';
|
## Task
Generate a SQL query to answer the following question:
`What is the power of the 3.2i v8 32v?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1245350_1" (
"quattroporte_iv" text,
"units_produced" real,
"production_period" text,
"engine_capacity" text,
"power" text,
"max_speed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the power of the 3.2i v8 32v?`:
```sql
|
SELECT "quattroporte_iv" FROM "table1_1245350_1" WHERE "units_produced"=340;
|
## Task
Generate a SQL query to answer the following question:
`What type of quattroporte iv only produced 340 units?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1245350_1" (
"quattroporte_iv" text,
"units_produced" real,
"production_period" text,
"engine_capacity" text,
"power" text,
"max_speed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of quattroporte iv only produced 340 units?`:
```sql
|
SELECT "production_period" FROM "table1_1245350_1" WHERE "units_produced"=668;
|
## Task
Generate a SQL query to answer the following question:
`When were 668 units produced?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1245350_1" (
"quattroporte_iv" text,
"units_produced" real,
"production_period" text,
"engine_capacity" text,
"power" text,
"max_speed" text
);
### SQL
Given the database schema, here is the SQL query that answers `When were 668 units produced?`:
```sql
|
SELECT "overall_record" FROM "table1_1246208_5" WHERE "club"='Dallas Burn';
|
## Task
Generate a SQL query to answer the following question:
`what is the overall record when the club is dallas burn?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1246208_5" (
"club" text,
"overall_record" text,
"goals_for" real,
"goals_for_avg" text,
"goals_against" real,
"goals_against_avg" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the overall record when the club is dallas burn?`:
```sql
|
SELECT "goals_for" FROM "table1_1246208_5" WHERE "club"='New England Revolution';
|
## Task
Generate a SQL query to answer the following question:
`what is the goals for when the club is new england revolution?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1246208_5" (
"club" text,
"overall_record" text,
"goals_for" real,
"goals_for_avg" text,
"goals_against" real,
"goals_against_avg" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the goals for when the club is new england revolution?`:
```sql
|
SELECT "prize_money" FROM "main_event_winners" WHERE "runner_up"='John Tabatabai';
|
## Task
Generate a SQL query to answer the following question:
`What was the total prize money where John Tabatabai was the runner-up?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "main_event_winners" (
"year" real,
"winner" text,
"winning_hand" text,
"prize_money" text,
"entrants" real,
"runner_up" text,
"losing_hand" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total prize money where John Tabatabai was the runner-up?`:
```sql
|
SELECT "winner" FROM "main_event_winners" WHERE "losing_hand"='Ah 7s';
|
## Task
Generate a SQL query to answer the following question:
`Who is the winner where the losing hand is Ah 7s?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "main_event_winners" (
"year" real,
"winner" text,
"winning_hand" text,
"prize_money" text,
"entrants" real,
"runner_up" text,
"losing_hand" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the winner where the losing hand is Ah 7s?`:
```sql
|
SELECT "losing_hand" FROM "main_event_winners" WHERE "winning_hand"='7h 7s';
|
## Task
Generate a SQL query to answer the following question:
`What was the losing hand where the winning hand was 7h 7s?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "main_event_winners" (
"year" real,
"winner" text,
"winning_hand" text,
"prize_money" text,
"entrants" real,
"runner_up" text,
"losing_hand" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the losing hand where the winning hand was 7h 7s?`:
```sql
|
SELECT COUNT("losing_hand") FROM "main_event_winners" WHERE "year"=2007;
|
## Task
Generate a SQL query to answer the following question:
`How many losing hands are there before 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "main_event_winners" (
"year" real,
"winner" text,
"winning_hand" text,
"prize_money" text,
"entrants" real,
"runner_up" text,
"losing_hand" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many losing hands are there before 2007?`:
```sql
|
SELECT "prize_money" FROM "main_event_winners" WHERE "runner_up"='Fabrizio Baldassari';
|
## Task
Generate a SQL query to answer the following question:
`When Fabrizio Baldassari is the runner-up what is the total prize money?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "main_event_winners" (
"year" real,
"winner" text,
"winning_hand" text,
"prize_money" text,
"entrants" real,
"runner_up" text,
"losing_hand" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Fabrizio Baldassari is the runner-up what is the total prize money?`:
```sql
|
SELECT MAX("population_august_15_2012") FROM "list_of_nyagatare_sectors_by_population_" WHERE "population_density_2012_km_2"=307;
|
## Task
Generate a SQL query to answer the following question:
`What is the August 15, 2012 population when the population density of 2012 is 307?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_nyagatare_sectors_by_population_" (
"rank_in_nyagatare_sectors_2012" real,
"sector" text,
"area_in_sqkm" real,
"population_august_15_2012" real,
"population_august_15_2002" real,
"population_change_2002_2012_pct" text,
"population_density_2012_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the August 15, 2012 population when the population density of 2012 is 307?`:
```sql
|
SELECT "sector" FROM "list_of_nyagatare_sectors_by_population_" WHERE "population_change_2002_2012_pct"='79.6';
|
## Task
Generate a SQL query to answer the following question:
`What is the sector when the population change 2002-2012 (%) is 79.6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_nyagatare_sectors_by_population_" (
"rank_in_nyagatare_sectors_2012" real,
"sector" text,
"area_in_sqkm" real,
"population_august_15_2012" real,
"population_august_15_2002" real,
"population_change_2002_2012_pct" text,
"population_density_2012_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sector when the population change 2002-2012 (%) is 79.6?`:
```sql
|
SELECT COUNT("population_august_15_2012") FROM "list_of_nyagatare_sectors_by_population_" WHERE "sector"='Gatunda';
|
## Task
Generate a SQL query to answer the following question:
`For the sector of Gatunda how many entires are show for the August 15, 2012 population?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_nyagatare_sectors_by_population_" (
"rank_in_nyagatare_sectors_2012" real,
"sector" text,
"area_in_sqkm" real,
"population_august_15_2012" real,
"population_august_15_2002" real,
"population_change_2002_2012_pct" text,
"population_density_2012_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `For the sector of Gatunda how many entires are show for the August 15, 2012 population?`:
```sql
|
SELECT MAX("rank_in_nyagatare_sectors_2012") FROM "list_of_nyagatare_sectors_by_population_" WHERE "population_change_2002_2012_pct"='35.5';
|
## Task
Generate a SQL query to answer the following question:
`When the population change 2002-2012 (%) is 35.5 what is the rank in nyagatare sectors?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_nyagatare_sectors_by_population_" (
"rank_in_nyagatare_sectors_2012" real,
"sector" text,
"area_in_sqkm" real,
"population_august_15_2012" real,
"population_august_15_2002" real,
"population_change_2002_2012_pct" text,
"population_density_2012_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the population change 2002-2012 (%) is 35.5 what is the rank in nyagatare sectors?`:
```sql
|
SELECT MIN("population_density_2012_km_2") FROM "list_of_nyagatare_sectors_by_population_" WHERE "sector"='Gatunda';
|
## Task
Generate a SQL query to answer the following question:
`What is the population density for 2012 for Gatunda sector?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_nyagatare_sectors_by_population_" (
"rank_in_nyagatare_sectors_2012" real,
"sector" text,
"area_in_sqkm" real,
"population_august_15_2012" real,
"population_august_15_2002" real,
"population_change_2002_2012_pct" text,
"population_density_2012_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the population density for 2012 for Gatunda sector?`:
```sql
|
SELECT MAX("population_august_15_2002") FROM "list_of_nyagatare_sectors_by_population_";
|
## Task
Generate a SQL query to answer the following question:
`What is the highest population for the `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_nyagatare_sectors_by_population_" (
"rank_in_nyagatare_sectors_2012" real,
"sector" text,
"area_in_sqkm" real,
"population_august_15_2012" real,
"population_august_15_2002" real,
"population_change_2002_2012_pct" text,
"population_density_2012_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest population for the `:
```sql
|
SELECT MAX("biggenden") FROM "population" WHERE "year"=1947;
|
## Task
Generate a SQL query to answer the following question:
`What is the biggended for 1947?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population" (
"year" real,
"total_region" real,
"biggenden" real,
"eidsvold" real,
"gayndah" real,
"monto" real,
"mundubbera" real,
"perry" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the biggended for 1947?`:
```sql
|
SELECT COUNT("monto") FROM "population" WHERE "total_region"=11230;
|
## Task
Generate a SQL query to answer the following question:
`What is the monto where the total region is 11230?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population" (
"year" real,
"total_region" real,
"biggenden" real,
"eidsvold" real,
"gayndah" real,
"monto" real,
"mundubbera" real,
"perry" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the monto where the total region is 11230?`:
```sql
|
SELECT MAX("gayndah") FROM "population" WHERE "perry"=304;
|
## Task
Generate a SQL query to answer the following question:
`What is the gayndah when perry is 304?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population" (
"year" real,
"total_region" real,
"biggenden" real,
"eidsvold" real,
"gayndah" real,
"monto" real,
"mundubbera" real,
"perry" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the gayndah when perry is 304?`:
```sql
|
SELECT MIN("mundubbera") FROM "population" WHERE "biggenden"=1882;
|
## Task
Generate a SQL query to answer the following question:
`What is the minimum mundubbera when biggenden is 1882`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population" (
"year" real,
"total_region" real,
"biggenden" real,
"eidsvold" real,
"gayndah" real,
"monto" real,
"mundubbera" real,
"perry" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum mundubbera when biggenden is 1882`:
```sql
|
SELECT "goals_against_avg" FROM "table1_1253396_5" WHERE "overall_record"='9-10-9';
|
## Task
Generate a SQL query to answer the following question:
`The Kansas City Wizards had a 9-10-9 record and what goals against avg? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1253396_5" (
"club" text,
"overall_record" text,
"goals_for" real,
"goals_for_avg" text,
"goals_against" real,
"goals_against_avg" text
);
### SQL
Given the database schema, here is the SQL query that answers `The Kansas City Wizards had a 9-10-9 record and what goals against avg? `:
```sql
|
SELECT "goals_for" FROM "table1_1253396_5" WHERE "overall_record"='12-9-7';
|
## Task
Generate a SQL query to answer the following question:
`The Dallas Burn had a 12-9-7 record and what number of goals for? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1253396_5" (
"club" text,
"overall_record" text,
"goals_for" real,
"goals_for_avg" text,
"goals_against" real,
"goals_against_avg" text
);
### SQL
Given the database schema, here is the SQL query that answers `The Dallas Burn had a 12-9-7 record and what number of goals for? `:
```sql
|
SELECT "goals_against_avg" FROM "table1_1253396_5" WHERE "overall_record"='9-14-5';
|
## Task
Generate a SQL query to answer the following question:
`D.C. United had a 9-14-5 record and what goals against avg.?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1253396_5" (
"club" text,
"overall_record" text,
"goals_for" real,
"goals_for_avg" text,
"goals_against" real,
"goals_against_avg" text
);
### SQL
Given the database schema, here is the SQL query that answers `D.C. United had a 9-14-5 record and what goals against avg.?`:
```sql
|
SELECT MAX("goals_against") FROM "goalkeeping_leaders";
|
## Task
Generate a SQL query to answer the following question:
`What is the highest value under the column goals against?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "goalkeeping_leaders" (
"no" real,
"player" text,
"club" text,
"games_played" real,
"minutes" real,
"goals_against" real,
"ga_average" text,
"wins" real,
"loses" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest value under the column goals against?`:
```sql
|
SELECT "date_from" FROM "list_of_town_tramway_systems_in_the_neth" WHERE "date_to"='1919';
|
## Task
Generate a SQL query to answer the following question:
`what is the date (from) where date (to) is 1919?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_town_tramway_systems_in_the_neth" (
"name_of_system" text,
"location" text,
"traction_type" text,
"date_from" text,
"date_to" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the date (from) where date (to) is 1919?`:
```sql
|
SELECT COUNT("notes") FROM "list_of_town_tramway_systems_in_the_neth" WHERE "date_to"='1919';
|
## Task
Generate a SQL query to answer the following question:
`how many times is the date (to) 1919?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_town_tramway_systems_in_the_neth" (
"name_of_system" text,
"location" text,
"traction_type" text,
"date_from" text,
"date_to" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many times is the date (to) 1919?`:
```sql
|
SELECT "date_from" FROM "list_of_town_tramway_systems_in_the_neth" WHERE "notes"='Apeldoornsche Tramweg-Maatschappij';
|
## Task
Generate a SQL query to answer the following question:
`what is the date (from) where the notes are apeldoornsche tramweg-maatschappij?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_town_tramway_systems_in_the_neth" (
"name_of_system" text,
"location" text,
"traction_type" text,
"date_from" text,
"date_to" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the date (from) where the notes are apeldoornsche tramweg-maatschappij?`:
```sql
|
SELECT COUNT("notes") FROM "list_of_town_tramway_systems_in_the_neth" WHERE "date_from"='14 March 1910';
|
## Task
Generate a SQL query to answer the following question:
`how many notes are form the date (from) 14 march 1910?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_town_tramway_systems_in_the_neth" (
"name_of_system" text,
"location" text,
"traction_type" text,
"date_from" text,
"date_to" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many notes are form the date (from) 14 march 1910?`:
```sql
|
SELECT "location" FROM "list_of_town_tramway_systems_in_the_neth" WHERE "date_to"='8 October 1922';
|
## Task
Generate a SQL query to answer the following question:
`what is the location for the date (to) 8 october 1922?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_town_tramway_systems_in_the_neth" (
"name_of_system" text,
"location" text,
"traction_type" text,
"date_from" text,
"date_to" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the location for the date (to) 8 october 1922?`:
```sql
|
SELECT "notes" FROM "list_of_town_tramway_systems_in_the_neth" WHERE "date_from"='12 August 1897';
|
## Task
Generate a SQL query to answer the following question:
`what are the notes for date (from) 12 august 1897?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_town_tramway_systems_in_the_neth" (
"name_of_system" text,
"location" text,
"traction_type" text,
"date_from" text,
"date_to" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `what are the notes for date (from) 12 august 1897?`:
```sql
|
SELECT "livingstone" FROM "population" WHERE "fitzroy"=9499;
|
## Task
Generate a SQL query to answer the following question:
`what's the livingstone with fitzroy being 9499`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population" (
"year" real,
"total_region" real,
"rockhampton" real,
"livingstone" real,
"fitzroy" real,
"mt_morgan" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the livingstone with fitzroy being 9499`:
```sql
|
SELECT MAX("total_region") FROM "population" WHERE "fitzroy"=8047;
|
## Task
Generate a SQL query to answer the following question:
`what is the maximum total region with fitzroy being 8047`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population" (
"year" real,
"total_region" real,
"rockhampton" real,
"livingstone" real,
"fitzroy" real,
"mt_morgan" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the maximum total region with fitzroy being 8047`:
```sql
|
SELECT MIN("rockhampton") FROM "population";
|
## Task
Generate a SQL query to answer the following question:
`what is the minimum rockhampton`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population" (
"year" real,
"total_region" real,
"rockhampton" real,
"livingstone" real,
"fitzroy" real,
"mt_morgan" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the minimum rockhampton`:
```sql
|
SELECT COUNT("population_glengallan") FROM "population" WHERE "population_region_total"=30554;
|
## Task
Generate a SQL query to answer the following question:
`How many population figures are given for Glengallen for the year when the region's total is 30554?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population" (
"year" real,
"population_region_total" real,
"population_stanthorpe" real,
"population_warwick" real,
"population_allora" real,
"population_glengallan" real,
"population_rosenthal" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many population figures are given for Glengallen for the year when the region's total is 30554?`:
```sql
|
SELECT MAX("population_stanthorpe") FROM "population";
|
## Task
Generate a SQL query to answer the following question:
`What is the maximum population size in the town of Stanthorpe?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population" (
"year" real,
"population_region_total" real,
"population_stanthorpe" real,
"population_warwick" real,
"population_allora" real,
"population_glengallan" real,
"population_rosenthal" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum population size in the town of Stanthorpe?`:
```sql
|
SELECT MAX("population_glengallan") FROM "population";
|
## Task
Generate a SQL query to answer the following question:
`What is the maximum population size in the town of Glengallen?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population" (
"year" real,
"population_region_total" real,
"population_stanthorpe" real,
"population_warwick" real,
"population_allora" real,
"population_glengallan" real,
"population_rosenthal" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum population size in the town of Glengallen?`:
```sql
|
SELECT MAX("population_stanthorpe") FROM "population" WHERE "population_rosenthal"=1548;
|
## Task
Generate a SQL query to answer the following question:
`What was the population in Stanthorpe in the year when the population in Rosenthal was 1548?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population" (
"year" real,
"population_region_total" real,
"population_stanthorpe" real,
"population_warwick" real,
"population_allora" real,
"population_glengallan" real,
"population_rosenthal" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the population in Stanthorpe in the year when the population in Rosenthal was 1548?`:
```sql
|
SELECT COUNT("population_region_total") FROM "population" WHERE "population_allora"=2132;
|
## Task
Generate a SQL query to answer the following question:
`How many population total figures are there for the year when Allora's population was 2132?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population" (
"year" real,
"population_region_total" real,
"population_stanthorpe" real,
"population_warwick" real,
"population_allora" real,
"population_glengallan" real,
"population_rosenthal" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many population total figures are there for the year when Allora's population was 2132?`:
```sql
|
SELECT "launched" FROM "ships" WHERE "commissioned_or_completed"='6 June 1864';
|
## Task
Generate a SQL query to answer the following question:
`When was the ship launched when the commissioned or completed(*) is 6 june 1864?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ships" (
"ship" text,
"builder" text,
"namesake" text,
"renamed" text,
"laid_down" real,
"launched" text,
"commissioned_or_completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the ship launched when the commissioned or completed(*) is 6 june 1864?`:
```sql
|
SELECT "launched" FROM "ships" WHERE "ship"='Tecumseh';
|
## Task
Generate a SQL query to answer the following question:
`When was the ship tecumseh launched?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ships" (
"ship" text,
"builder" text,
"namesake" text,
"renamed" text,
"laid_down" real,
"launched" text,
"commissioned_or_completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the ship tecumseh launched?`:
```sql
|
SELECT "namesake" FROM "ships" WHERE "commissioned_or_completed"='16 April 1864';
|
## Task
Generate a SQL query to answer the following question:
`What is the namesake of the ship that was commissioned or completed(*) 16 april 1864?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ships" (
"ship" text,
"builder" text,
"namesake" text,
"renamed" text,
"laid_down" real,
"launched" text,
"commissioned_or_completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the namesake of the ship that was commissioned or completed(*) 16 april 1864?`:
```sql
|
SELECT MIN("laid_down") FROM "ships";
|
## Task
Generate a SQL query to answer the following question:
`What is the minimum laid down?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ships" (
"ship" text,
"builder" text,
"namesake" text,
"renamed" text,
"laid_down" real,
"launched" text,
"commissioned_or_completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum laid down?`:
```sql
|
SELECT "program" FROM "postgraduate" WHERE "focus"='General Management';
|
## Task
Generate a SQL query to answer the following question:
`What is the program where the focus is general management?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "postgraduate" (
"program" text,
"degree" text,
"focus" text,
"teaching_language" text,
"duration_years" text,
"full_time_part_time" text,
"ects_credit_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the program where the focus is general management?`:
```sql
|
SELECT "teaching_language" FROM "postgraduate" WHERE "focus"='Auditing';
|
## Task
Generate a SQL query to answer the following question:
`what is teaching language where the focus is auditing?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "postgraduate" (
"program" text,
"degree" text,
"focus" text,
"teaching_language" text,
"duration_years" text,
"full_time_part_time" text,
"ects_credit_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is teaching language where the focus is auditing?`:
```sql
|
SELECT "program" FROM "postgraduate" WHERE "duration_years"='1.5' AND "teaching_language"='German/English';
|
## Task
Generate a SQL query to answer the following question:
`WHat is the program where duration (years) is 1.5 and teaching language is german/english?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "postgraduate" (
"program" text,
"degree" text,
"focus" text,
"teaching_language" text,
"duration_years" text,
"full_time_part_time" text,
"ects_credit_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHat is the program where duration (years) is 1.5 and teaching language is german/english?`:
```sql
|
SELECT "teaching_language" FROM "postgraduate" WHERE "duration_years"='3.5';
|
## Task
Generate a SQL query to answer the following question:
`What is the teaching language with the duration (years) 3.5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "postgraduate" (
"program" text,
"degree" text,
"focus" text,
"teaching_language" text,
"duration_years" text,
"full_time_part_time" text,
"ects_credit_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the teaching language with the duration (years) 3.5?`:
```sql
|
SELECT "program" FROM "postgraduate" WHERE "focus"='Risk Management and Regulation';
|
## Task
Generate a SQL query to answer the following question:
`What is the program where the focus is risk management and regulation?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "postgraduate" (
"program" text,
"degree" text,
"focus" text,
"teaching_language" text,
"duration_years" text,
"full_time_part_time" text,
"ects_credit_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the program where the focus is risk management and regulation?`:
```sql
|
SELECT "release_date" FROM "table1_12588029_3" WHERE "year"=2003;
|
## Task
Generate a SQL query to answer the following question:
`What are the release dates for songs in 2003?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_12588029_3" (
"year" real,
"song_title" text,
"artist" text,
"master_recording" text,
"release_date" text,
"single_pack" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the release dates for songs in 2003?`:
```sql
|
SELECT "single_pack" FROM "table1_12588029_3" WHERE "song_title"='\"Antisocial\"';
|
## Task
Generate a SQL query to answer the following question:
`How many singles have a song titled "Antisocial"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_12588029_3" (
"year" real,
"song_title" text,
"artist" text,
"master_recording" text,
"release_date" text,
"single_pack" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many singles have a song titled "Antisocial"?`:
```sql
|
SELECT "artist" FROM "table1_12588029_3" WHERE "song_title"='\"Soothsayer\"';
|
## Task
Generate a SQL query to answer the following question:
`Which artist has a song titled "Soothsayer"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_12588029_3" (
"year" real,
"song_title" text,
"artist" text,
"master_recording" text,
"release_date" text,
"single_pack" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which artist has a song titled "Soothsayer"?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.