output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "location" FROM "former_members" WHERE "years"='2005-2010'; |
## Task
Generate a SQL query to answer the following question:
`What location is listed from 2005-2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"team_nickname" text,
"years" text,
"new_conference" text,
"new_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `What location is listed from 2005-2010?`:
```sql
|
SELECT "location" FROM "former_members" WHERE "team_nickname"='Red Raiders'; |
## Task
Generate a SQL query to answer the following question:
`Where is the nickname the Red Raiders?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"team_nickname" text,
"years" text,
"new_conference" text,
"new_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the nickname the Red Raiders?`:
```sql
|
SELECT "institution" FROM "former_members" WHERE "new_conference"='SELC'; |
## Task
Generate a SQL query to answer the following question:
`What school has the new conference as SELC?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"team_nickname" text,
"years" text,
"new_conference" text,
"new_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school has the new conference as SELC?`:
```sql
|
SELECT "years" FROM "former_members" WHERE "new_classification"='MCLA Division I'; |
## Task
Generate a SQL query to answer the following question:
`What are the years that the new classification was MCLA division i?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"team_nickname" text,
"years" text,
"new_conference" text,
"new_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the years that the new classification was MCLA division i?`:
```sql
|
SELECT "colors" FROM "table1_26466528_1" WHERE "location"='North Canton'; |
## Task
Generate a SQL query to answer the following question:
`Name the colors for north canton`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_26466528_1" (
"school" text,
"nickname" text,
"location" text,
"colors" text,
"join_date" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the colors for north canton`:
```sql
|
SELECT MAX("join_date") FROM "table1_26466528_1"; |
## Task
Generate a SQL query to answer the following question:
`Name the most join date`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_26466528_1" (
"school" text,
"nickname" text,
"location" text,
"colors" text,
"join_date" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most join date`:
```sql
|
SELECT MIN("join_date") FROM "table1_26466528_1"; |
## Task
Generate a SQL query to answer the following question:
`Name the least join date`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_26466528_1" (
"school" text,
"nickname" text,
"location" text,
"colors" text,
"join_date" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least join date`:
```sql
|
SELECT "location" FROM "table1_26466528_1" WHERE "colors"='Black, Orange'; |
## Task
Generate a SQL query to answer the following question:
`Name the location for black, orange`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_26466528_1" (
"school" text,
"nickname" text,
"location" text,
"colors" text,
"join_date" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the location for black, orange`:
```sql
|
SELECT "join_date" FROM "table1_26466528_1" WHERE "location"='North Canton'; |
## Task
Generate a SQL query to answer the following question:
`Name when north canton joined`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_26466528_1" (
"school" text,
"nickname" text,
"location" text,
"colors" text,
"join_date" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name when north canton joined`:
```sql
|
SELECT COUNT("series") FROM "career_summary" WHERE "position"='12th'; |
## Task
Generate a SQL query to answer the following question:
`How many "series" were in the 12th "position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"f_laps" real,
"podiums" real,
"points" real,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many "series" were in the 12th "position?`:
```sql
|
SELECT COUNT("team") FROM "career_summary" WHERE "points"=10; |
## Task
Generate a SQL query to answer the following question:
`How many teams were at 10 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"f_laps" real,
"podiums" real,
"points" real,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many teams were at 10 points?`:
```sql
|
SELECT "podiums" FROM "career_summary" WHERE "position"='12th'; |
## Task
Generate a SQL query to answer the following question:
`What was the number of podiums in 12th position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"f_laps" real,
"podiums" real,
"points" real,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the number of podiums in 12th position?`:
```sql
|
SELECT COUNT("finish") FROM "career_nascar_statistics" WHERE "start"='21.6'; |
## Task
Generate a SQL query to answer the following question:
`Where did he finish when he started at 21.6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_nascar_statistics" (
"year" real,
"races" real,
"wins" real,
"poles" real,
"top_5" real,
"top_10" real,
"dnf" real,
"finish" text,
"start" text,
"winnings" text,
"season_rank" text,
"team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did he finish when he started at 21.6?`:
```sql
|
SELECT "team_s" FROM "career_nascar_statistics" WHERE "start"='39.1'; |
## Task
Generate a SQL query to answer the following question:
`What teams started at 39.1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_nascar_statistics" (
"year" real,
"races" real,
"wins" real,
"poles" real,
"top_5" real,
"top_10" real,
"dnf" real,
"finish" text,
"start" text,
"winnings" text,
"season_rank" text,
"team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What teams started at 39.1?`:
```sql
|
SELECT "season_rank" FROM "career_nascar_statistics" WHERE "winnings"='$491,977'; |
## Task
Generate a SQL query to answer the following question:
`Where did they finish in the season when when they won $491,977?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_nascar_statistics" (
"year" real,
"races" real,
"wins" real,
"poles" real,
"top_5" real,
"top_10" real,
"dnf" real,
"finish" text,
"start" text,
"winnings" text,
"season_rank" text,
"team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did they finish in the season when when they won $491,977?`:
```sql
|
SELECT MIN("vocal_parts") FROM "track_listing" WHERE "year_year_of_songs_original_release_as_listed_in_rock_band_3"=2000; |
## Task
Generate a SQL query to answer the following question:
`How many vocal parts are there when the year of songs original release date as listed in rock band 3 was 2000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "track_listing" (
"song_title" text,
"artist" text,
"year_year_of_songs_original_release_as_listed_in_rock_band_3" real,
"genre" text,
"keyboard_support" text,
"vocal_parts" real,
"nintendo_ds_setlist" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many vocal parts are there when the year of songs original release date as listed in rock band 3 was 2000?`:
```sql
|
SELECT COUNT("genre") FROM "track_listing" WHERE "artist"='The Jimi Hendrix Experience'; |
## Task
Generate a SQL query to answer the following question:
`How many different genres appear for the Jimi Hendrix Experience?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "track_listing" (
"song_title" text,
"artist" text,
"year_year_of_songs_original_release_as_listed_in_rock_band_3" real,
"genre" text,
"keyboard_support" text,
"vocal_parts" real,
"nintendo_ds_setlist" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different genres appear for the Jimi Hendrix Experience?`:
```sql
|
SELECT "total_viewers_on_fx" FROM "united_kingdom" WHERE "title"='Night on the Sun'; |
## Task
Generate a SQL query to answer the following question:
`Name the total viewers on fx+ for night on the sun `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_kingdom" (
"episode_number_production_number" text,
"title" text,
"original_air_date" text,
"total_viewers_on_fx" text,
"total_viewers_on_fx" text,
"total_viewers" text,
"rank_on_channel" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total viewers on fx+ for night on the sun `:
```sql
|
SELECT "episode_number_production_number" FROM "united_kingdom" WHERE "total_viewers_on_fx"='102,000'; |
## Task
Generate a SQL query to answer the following question:
`Name the episode number for total viewers on fx+ being 102,000`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_kingdom" (
"episode_number_production_number" text,
"title" text,
"original_air_date" text,
"total_viewers_on_fx" text,
"total_viewers_on_fx" text,
"total_viewers" text,
"rank_on_channel" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the episode number for total viewers on fx+ being 102,000`:
```sql
|
SELECT "title" FROM "united_kingdom" WHERE "total_viewers_on_fx"='483,000'; |
## Task
Generate a SQL query to answer the following question:
`Name the title for total viewers on fx+ being 483,000`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_kingdom" (
"episode_number_production_number" text,
"title" text,
"original_air_date" text,
"total_viewers_on_fx" text,
"total_viewers_on_fx" text,
"total_viewers" text,
"rank_on_channel" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the title for total viewers on fx+ being 483,000`:
```sql
|
SELECT "total_viewers_on_fx" FROM "united_kingdom" WHERE "total_viewers"='583,000'; |
## Task
Generate a SQL query to answer the following question:
`Name the total viewers on fx+ for 583,000 total viewers`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_kingdom" (
"episode_number_production_number" text,
"title" text,
"original_air_date" text,
"total_viewers_on_fx" text,
"total_viewers_on_fx" text,
"total_viewers" text,
"rank_on_channel" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total viewers on fx+ for 583,000 total viewers`:
```sql
|
SELECT "rank_on_channel" FROM "united_kingdom" WHERE "original_air_date"='January 21, 2011'; |
## Task
Generate a SQL query to answer the following question:
`Name the rank on channel for january 21, 2011`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_kingdom" (
"episode_number_production_number" text,
"title" text,
"original_air_date" text,
"total_viewers_on_fx" text,
"total_viewers_on_fx" text,
"total_viewers" text,
"rank_on_channel" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the rank on channel for january 21, 2011`:
```sql
|
SELECT COUNT("written_by") FROM "table1_26493520_1" WHERE "title"='\"Beautifully Broken\"'; |
## Task
Generate a SQL query to answer the following question:
`How many different people wrote the episode "Beautifully Broken"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_26493520_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different people wrote the episode "Beautifully Broken"?`:
```sql
|
SELECT COUNT("title") FROM "table1_26493520_1" WHERE "written_by"='Alexander Woo' AND "directed_by"='Scott Winant'; |
## Task
Generate a SQL query to answer the following question:
`How many episodes were written by Alexander Woo and directed by Scott Winant?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_26493520_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes were written by Alexander Woo and directed by Scott Winant?`:
```sql
|
SELECT MAX("round") FROM "2010_pacific_10_conference_football_seas" WHERE "player"='Jordan Cameron'; |
## Task
Generate a SQL query to answer the following question:
`Name the most round for jordan cameron`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_pacific_10_conference_football_seas" (
"round" real,
"overall_pick" real,
"nfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most round for jordan cameron`:
```sql
|
SELECT "position" FROM "2010_pacific_10_conference_football_seas" WHERE "player"='Jordan Cameron'; |
## Task
Generate a SQL query to answer the following question:
`Name the position for jordan cameron`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_pacific_10_conference_football_seas" (
"round" real,
"overall_pick" real,
"nfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the position for jordan cameron`:
```sql
|
SELECT "position" FROM "2010_pacific_10_conference_football_seas" WHERE "player"='Stanley Havili'; |
## Task
Generate a SQL query to answer the following question:
`Name the position for stanley havili`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_pacific_10_conference_football_seas" (
"round" real,
"overall_pick" real,
"nfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the position for stanley havili`:
```sql
|
SELECT "college" FROM "2010_pacific_10_conference_football_seas" WHERE "player"='David Carter'; |
## Task
Generate a SQL query to answer the following question:
`Name the college for david carter`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_pacific_10_conference_football_seas" (
"round" real,
"overall_pick" real,
"nfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the college for david carter`:
```sql
|
SELECT "democratic_coalition" FROM "chamber_of_deputies" WHERE "together_we_can_do_more"='Sergio Castro ( PC )'; |
## Task
Generate a SQL query to answer the following question:
`What is the democratic coalation when together we can do more is sergio castro ( pc )?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "chamber_of_deputies" (
"dist" real,
"democratic_coalition" text,
"alliance" text,
"together_we_can_do_more" text,
"independent_regional_force" text,
"independents" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the democratic coalation when together we can do more is sergio castro ( pc )?`:
```sql
|
SELECT "independent_regional_force" FROM "chamber_of_deputies" WHERE "alliance"='(R) Iván Norambuena ( UDI )'; |
## Task
Generate a SQL query to answer the following question:
`What is the independent regional force when alliance is (r) iván norambuena ( udi )?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "chamber_of_deputies" (
"dist" real,
"democratic_coalition" text,
"alliance" text,
"together_we_can_do_more" text,
"independent_regional_force" text,
"independents" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the independent regional force when alliance is (r) iván norambuena ( udi )?`:
```sql
|
SELECT "together_we_can_do_more" FROM "chamber_of_deputies" WHERE "democratic_coalition"='René Alinco ( PPD )'; |
## Task
Generate a SQL query to answer the following question:
`Who is the together we can do more when democratic coalition is rené alinco ( ppd )?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "chamber_of_deputies" (
"dist" real,
"democratic_coalition" text,
"alliance" text,
"together_we_can_do_more" text,
"independent_regional_force" text,
"independents" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the together we can do more when democratic coalition is rené alinco ( ppd )?`:
```sql
|
SELECT "independent_regional_force" FROM "chamber_of_deputies" WHERE "democratic_coalition"='(R) Jorge Tarud ( PPD )'; |
## Task
Generate a SQL query to answer the following question:
`Who is the independent regional force when democratic coalition is (r) jorge tarud ( ppd )?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "chamber_of_deputies" (
"dist" real,
"democratic_coalition" text,
"alliance" text,
"together_we_can_do_more" text,
"independent_regional_force" text,
"independents" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the independent regional force when democratic coalition is (r) jorge tarud ( ppd )?`:
```sql
|
SELECT "cons" FROM "senate" WHERE "together_we_can_do_more"='Gloria Mujica ( PH )'; |
## Task
Generate a SQL query to answer the following question:
`where together we can do more is gloria mujica ( ph ) what are all the cons.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "senate" (
"cons" text,
"democratic_coalition" text,
"alliance" text,
"together_we_can_do_more" text,
"independent_regional_force" text,
"independents" text
);
### SQL
Given the database schema, here is the SQL query that answers `where together we can do more is gloria mujica ( ph ) what are all the cons.`:
```sql
|
SELECT "alliance" FROM "senate" WHERE "democratic_coalition"='Eduardo Frei ( PDC )'; |
## Task
Generate a SQL query to answer the following question:
`where democratic coalition is eduardo frei ( pdc ) what are all the alliance`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "senate" (
"cons" text,
"democratic_coalition" text,
"alliance" text,
"together_we_can_do_more" text,
"independent_regional_force" text,
"independents" text
);
### SQL
Given the database schema, here is the SQL query that answers `where democratic coalition is eduardo frei ( pdc ) what are all the alliance`:
```sql
|
SELECT "episode_title" FROM "table1_2655016_4" WHERE "nick_prod_num"=342; |
## Task
Generate a SQL query to answer the following question:
` What's the name of the episode associated with Nick production number 342? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2655016_4" (
"season_num" real,
"series_num" real,
"episode_title" text,
"original_air_date" text,
"nick_prod_num" real
);
### SQL
Given the database schema, here is the SQL query that answers ` What's the name of the episode associated with Nick production number 342? `:
```sql
|
SELECT "original_air_date" FROM "table1_2655016_4" WHERE "season_num"=12; |
## Task
Generate a SQL query to answer the following question:
` What date did season 12 premiere? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2655016_4" (
"season_num" real,
"series_num" real,
"episode_title" text,
"original_air_date" text,
"nick_prod_num" real
);
### SQL
Given the database schema, here is the SQL query that answers ` What date did season 12 premiere? `:
```sql
|
SELECT MIN("nick_prod_num") FROM "table1_2655016_4"; |
## Task
Generate a SQL query to answer the following question:
` What is the lowest Nick production number? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2655016_4" (
"season_num" real,
"series_num" real,
"episode_title" text,
"original_air_date" text,
"nick_prod_num" real
);
### SQL
Given the database schema, here is the SQL query that answers ` What is the lowest Nick production number? `:
```sql
|
SELECT "original_air_date" FROM "table1_2655016_10" WHERE "nick_prod_num"=945; |
## Task
Generate a SQL query to answer the following question:
`When did the episode originally air with a nick production number of 945?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2655016_10" (
"season_num" real,
"series_num" real,
"episode_title" text,
"original_air_date" text,
"nick_prod_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `When did the episode originally air with a nick production number of 945?`:
```sql
|
SELECT MAX("season_num") FROM "table1_2655016_10" WHERE "nick_prod_num"=942; |
## Task
Generate a SQL query to answer the following question:
`What was the latest season with a nick production number of 942?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2655016_10" (
"season_num" real,
"series_num" real,
"episode_title" text,
"original_air_date" text,
"nick_prod_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the latest season with a nick production number of 942?`:
```sql
|
SELECT "metrical_equivalence" FROM "table1_26538461_2" WHERE "portuguese_name"='Linha'; |
## Task
Generate a SQL query to answer the following question:
`Name the metrical equivalence for linha`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_26538461_2" (
"portuguese_name" text,
"english_name" text,
"subdivides_in" text,
"equivalence_in_varas" text,
"metrical_equivalence" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the metrical equivalence for linha`:
```sql
|
SELECT "equivalence_in_varas" FROM "table1_26538461_2" WHERE "english_name"='Geometrical pace'; |
## Task
Generate a SQL query to answer the following question:
`Name the equivalence for varas for geometrical pace`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_26538461_2" (
"portuguese_name" text,
"english_name" text,
"subdivides_in" text,
"equivalence_in_varas" text,
"metrical_equivalence" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the equivalence for varas for geometrical pace`:
```sql
|
SELECT "subdivides_in" FROM "table1_26538461_2" WHERE "equivalence_in_varas"='1/5'; |
## Task
Generate a SQL query to answer the following question:
`Name the subdivides in equivalence for varas 1/5`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_26538461_2" (
"portuguese_name" text,
"english_name" text,
"subdivides_in" text,
"equivalence_in_varas" text,
"metrical_equivalence" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the subdivides in equivalence for varas 1/5`:
```sql
|
SELECT "season_num" FROM "season_10_2005" WHERE "episode_title"='\" Avril Lavigne \"'; |
## Task
Generate a SQL query to answer the following question:
`How many season # where episode title is " Avril Lavigne "? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_10_2005" (
"season_num" real,
"series_num" real,
"episode_title" text,
"original_air_date" text,
"nick_prod_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many season # where episode title is " Avril Lavigne "? `:
```sql
|
SELECT "year_ceremony" FROM "submissions" WHERE "arabic_title"='موسم زيتون'; |
## Task
Generate a SQL query to answer the following question:
`When موسم زيتون is the arabic title when is the year (ceremony)?`
### 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,
"arabic_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `When موسم زيتون is the arabic title when is the year (ceremony)?`:
```sql
|
SELECT "english_title" FROM "submissions" WHERE "arabic_title"='ملح هذا البحر'; |
## Task
Generate a SQL query to answer the following question:
`When ملح هذا البحر is the arabic title what is the english title?`
### 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,
"arabic_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `When ملح هذا البحر is the arabic title what is the english title?`:
```sql
|
SELECT "director" FROM "submissions" WHERE "result"='Nominee'; |
## Task
Generate a SQL query to answer the following question:
`When nominee is the result who is the director?`
### 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,
"arabic_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `When nominee is the result who is the director?`:
```sql
|
SELECT "result" FROM "submissions" WHERE "director"='Hany Abu-Assad Category:Articles with hCards'; |
## Task
Generate a SQL query to answer the following question:
`When hany abu-assad category:articles with hcards is the director what is the result?`
### 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,
"arabic_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `When hany abu-assad category:articles with hcards is the director what is the result?`:
```sql
|
SELECT COUNT("result") FROM "submissions" WHERE "year_ceremony"='2012 (85th)'; |
## Task
Generate a SQL query to answer the following question:
`When 2012 (85th) is the year (ceremony) how many results?`
### 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,
"arabic_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 2012 (85th) is the year (ceremony) how many results?`:
```sql
|
SELECT "director" FROM "submissions" WHERE "english_title"='Salt of this Sea'; |
## Task
Generate a SQL query to answer the following question:
`When salt of this sea is the english title who is the director?`
### 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,
"arabic_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `When salt of this sea is the english title who is the director?`:
```sql
|
SELECT "record_low" FROM "climate" WHERE "precip"='1.71 in.'; |
## Task
Generate a SQL query to answer the following question:
`What was the record lowest temperature with a precipitation of 1.71 in.?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "climate" (
"month" text,
"avg_high" text,
"avg_low" text,
"mean_avg" text,
"precip" text,
"record_high" text,
"record_low" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record lowest temperature with a precipitation of 1.71 in.?`:
```sql
|
SELECT "directed_by" FROM "table1_26561498_1" WHERE "production_code"=176452; |
## Task
Generate a SQL query to answer the following question:
`who directed and produced 176452?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_26561498_1" (
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"patient_portrayer" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `who directed and produced 176452?`:
```sql
|
SELECT "original_air_date" FROM "table1_26561498_1" WHERE "patient_portrayer"='Julie Warner'; |
## Task
Generate a SQL query to answer the following question:
`what is the original air date for julie warner?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_26561498_1" (
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"patient_portrayer" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the original air date for julie warner?`:
```sql
|
SELECT "written_by" FROM "table1_26561498_1" WHERE "patient_portrayer"='Alex Carter'; |
## Task
Generate a SQL query to answer the following question:
`what was written by alex carter?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_26561498_1" (
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"patient_portrayer" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `what was written by alex carter?`:
```sql
|
SELECT "patient_portrayer" FROM "table1_26561509_1" WHERE "production_code"='3T5004'; |
## Task
Generate a SQL query to answer the following question:
`Who is the patient portrayer of the episode with the production code 3T5004?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_26561509_1" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"patient_portrayer" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the patient portrayer of the episode with the production code 3T5004?`:
```sql
|
SELECT "directed_by" FROM "table1_26561509_1" WHERE "title"='\"Conor McNamara, 2026\"'; |
## Task
Generate a SQL query to answer the following question:
`Who directed the episode with the title "Conor McNamara, 2026"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_26561509_1" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"patient_portrayer" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode with the title "Conor McNamara, 2026"?`:
```sql
|
SELECT "written_by" FROM "table1_26561509_1" WHERE "directed_by"='Charles Haid' AND "no"=54; |
## Task
Generate a SQL query to answer the following question:
`The episode with the no. 54, directed by Charles Haid, is written by who?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_26561509_1" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"patient_portrayer" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `The episode with the no. 54, directed by Charles Haid, is written by who?`:
```sql
|
SELECT "original_air_date" FROM "table1_26561509_1" WHERE "title"='\"Monica Wilder\"'; |
## Task
Generate a SQL query to answer the following question:
`What is the original air date of the episode with the title "Monica Wilder"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_26561509_1" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"patient_portrayer" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original air date of the episode with the title "Monica Wilder"?`:
```sql
|
SELECT COUNT("directed_by") FROM "table1_26561509_1" WHERE "production_code"='3T5009'; |
## Task
Generate a SQL query to answer the following question:
`How many are directed by episodes with the production code 3T5009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_26561509_1" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"patient_portrayer" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many are directed by episodes with the production code 3T5009?`:
```sql
|
SELECT "u_s_viewers_millions" FROM "table1_26565904_2" WHERE "title"='\"The Last Word\"'; |
## Task
Generate a SQL query to answer the following question:
`How many millions of US viewers for the episode "the last word"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_26565904_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 US viewers for the episode "the last word"?`:
```sql
|
SELECT "first_broadcast_uk_bbc_four" FROM "episodes_and_ratings" WHERE "episode"=9; |
## Task
Generate a SQL query to answer the following question:
`When was the first UK broadcast for episode 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episodes_and_ratings" (
"episode" real,
"first_broadcast_denmark_dr1" text,
"official_tns_gallup_ratings" real,
"first_broadcast_uk_bbc_four" text,
"official_barb_ratings" real
);
### SQL
Given the database schema, here is the SQL query that answers `When was the first UK broadcast for episode 9?`:
```sql
|
SELECT "first_broadcast_uk_bbc_four" FROM "episodes_and_ratings" WHERE "official_tns_gallup_ratings"=1575000; |
## Task
Generate a SQL query to answer the following question:
`When was the first UK broadcast for the episode with an official TNS Gallup rating of 1575000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episodes_and_ratings" (
"episode" real,
"first_broadcast_denmark_dr1" text,
"official_tns_gallup_ratings" real,
"first_broadcast_uk_bbc_four" text,
"official_barb_ratings" real
);
### SQL
Given the database schema, here is the SQL query that answers `When was the first UK broadcast for the episode with an official TNS Gallup rating of 1575000?`:
```sql
|
SELECT "first_broadcast_uk_bbc_four" FROM "episodes_and_ratings" WHERE "official_barb_ratings"=1085000; |
## Task
Generate a SQL query to answer the following question:
`When was the first UK broadcast when the official Barb ratings was 1085000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episodes_and_ratings" (
"episode" real,
"first_broadcast_denmark_dr1" text,
"official_tns_gallup_ratings" real,
"first_broadcast_uk_bbc_four" text,
"official_barb_ratings" real
);
### SQL
Given the database schema, here is the SQL query that answers `When was the first UK broadcast when the official Barb ratings was 1085000?`:
```sql
|
SELECT "writer" FROM "episode_information" WHERE "ratings_kanto"='14.8'; |
## Task
Generate a SQL query to answer the following question:
`Who is the writer with the ratings 14.8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episode_information" (
"episode" real,
"title" text,
"writer" text,
"director" text,
"original_airdate" text,
"ratings_kanto" text,
"ratings_kansai" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the writer with the ratings 14.8?`:
```sql
|
SELECT "original_airdate" FROM "episode_information" WHERE "writer"='Tanaka Shinichi'; |
## Task
Generate a SQL query to answer the following question:
`What is the original air date for the writer tanaka shinichi?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episode_information" (
"episode" real,
"title" text,
"writer" text,
"director" text,
"original_airdate" text,
"ratings_kanto" text,
"ratings_kansai" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original air date for the writer tanaka shinichi?`:
```sql
|
SELECT "ratings_kansai" FROM "episode_information" WHERE "original_airdate"='May 25, 2010 22.00 - 22.54'; |
## Task
Generate a SQL query to answer the following question:
`What is the ratings for the original air date may 25, 2010 22.00 - 22.54?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episode_information" (
"episode" real,
"title" text,
"writer" text,
"director" text,
"original_airdate" text,
"ratings_kanto" text,
"ratings_kansai" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ratings for the original air date may 25, 2010 22.00 - 22.54?`:
```sql
|
SELECT "ratings_kanto" FROM "episode_information" WHERE "episode"=11; |
## Task
Generate a SQL query to answer the following question:
`What was the ratings for episode 11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episode_information" (
"episode" real,
"title" text,
"writer" text,
"director" text,
"original_airdate" text,
"ratings_kanto" text,
"ratings_kansai" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the ratings for episode 11?`:
```sql
|
SELECT "outgoing_manager" FROM "managerial_changes" WHERE "incoming_manager"='Dougie Freedman'; |
## Task
Generate a SQL query to answer the following question:
`Who was the outgoing manager of the team whose incoming manager was Dougie Freedman?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"position_in_table" text,
"incoming_manager" text,
"date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the outgoing manager of the team whose incoming manager was Dougie Freedman?`:
```sql
|
SELECT "position_in_table" FROM "managerial_changes" WHERE "outgoing_manager"='Brian Laws'; |
## Task
Generate a SQL query to answer the following question:
`What was the table position for the team whose outgoing manager was Brian Laws?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"position_in_table" text,
"incoming_manager" text,
"date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the table position for the team whose outgoing manager was Brian Laws?`:
```sql
|
SELECT COUNT("incoming_manager") FROM "managerial_changes" WHERE "team"='Burnley'; |
## Task
Generate a SQL query to answer the following question:
`How many incoming managers did Burnley have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"position_in_table" text,
"incoming_manager" text,
"date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many incoming managers did Burnley have?`:
```sql
|
SELECT "manner_of_departure" FROM "managerial_changes" WHERE "incoming_manager"='George Burley'; |
## Task
Generate a SQL query to answer the following question:
`What was the manner of departure for the team whose incoming manager was George Burley?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"position_in_table" text,
"incoming_manager" text,
"date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the manner of departure for the team whose incoming manager was George Burley?`:
```sql
|
SELECT "galician_reintegrationist" FROM "examples" WHERE "galician_official"='Bo día / Bos días'; |
## Task
Generate a SQL query to answer the following question:
`What is the Galician (reintegrationist) word of the Galician (Official) is bo día / bos días?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "examples" (
"english" text,
"galician_official" text,
"galician_reintegrationist" text,
"portuguese" text,
"spanish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Galician (reintegrationist) word of the Galician (Official) is bo día / bos días?`:
```sql
|
SELECT "galician_reintegrationist" FROM "examples" WHERE "galician_official"='Adeus*'; |
## Task
Generate a SQL query to answer the following question:
`What is the Galician (reintegrationist) word of the Galician (Official) is adeus*?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "examples" (
"english" text,
"galician_official" text,
"galician_reintegrationist" text,
"portuguese" text,
"spanish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Galician (reintegrationist) word of the Galician (Official) is adeus*?`:
```sql
|
SELECT "portuguese" FROM "examples" WHERE "english"='Grandfather'; |
## Task
Generate a SQL query to answer the following question:
`What is the Portuguese word for the English word 'grandfather'?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "examples" (
"english" text,
"galician_official" text,
"galician_reintegrationist" text,
"portuguese" text,
"spanish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Portuguese word for the English word 'grandfather'?`:
```sql
|
SELECT COUNT("spanish") FROM "examples" WHERE "portuguese"='Bem-vindo'; |
## Task
Generate a SQL query to answer the following question:
`How many Spanish word is there for the Portuguese bem-vindo?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "examples" (
"english" text,
"galician_official" text,
"galician_reintegrationist" text,
"portuguese" text,
"spanish" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Spanish word is there for the Portuguese bem-vindo?`:
```sql
|
SELECT "portuguese" FROM "examples" WHERE "english"='Welcome'; |
## Task
Generate a SQL query to answer the following question:
`What is the Portuguese word for the English word 'welcome'?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "examples" (
"english" text,
"galician_official" text,
"galician_reintegrationist" text,
"portuguese" text,
"spanish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Portuguese word for the English word 'welcome'?`:
```sql
|
SELECT "gender" FROM "sweetspets" WHERE "species"='Asian black bear'; |
## Task
Generate a SQL query to answer the following question:
`what gender has an asian black bear?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sweetspets" (
"name" text,
"sweet" text,
"species" text,
"gender" text,
"attribute" text,
"birthday" text,
"media_debut" text,
"voice_actor" text
);
### SQL
Given the database schema, here is the SQL query that answers `what gender has an asian black bear?`:
```sql
|
SELECT "sweet" FROM "sweetspets" WHERE "voice_actor"='Saki Fujita'; |
## Task
Generate a SQL query to answer the following question:
`what is the sweet for voice actor saki fujita?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sweetspets" (
"name" text,
"sweet" text,
"species" text,
"gender" text,
"attribute" text,
"birthday" text,
"media_debut" text,
"voice_actor" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the sweet for voice actor saki fujita?`:
```sql
|
SELECT "gender" FROM "sweetspets" WHERE "species"='Holland Lop'; |
## Task
Generate a SQL query to answer the following question:
`whatis the gender wher ethe species is holland lop?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sweetspets" (
"name" text,
"sweet" text,
"species" text,
"gender" text,
"attribute" text,
"birthday" text,
"media_debut" text,
"voice_actor" text
);
### SQL
Given the database schema, here is the SQL query that answers `whatis the gender wher ethe species is holland lop?`:
```sql
|
SELECT "media_debut" FROM "sweetspets" WHERE "species"='Asian black bear'; |
## Task
Generate a SQL query to answer the following question:
`what is the media debut for the asian black bear?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sweetspets" (
"name" text,
"sweet" text,
"species" text,
"gender" text,
"attribute" text,
"birthday" text,
"media_debut" text,
"voice_actor" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the media debut for the asian black bear?`:
```sql
|
SELECT "spanish" FROM "table1_26614365_1" WHERE "central"='cas [ˈkas]'; |
## Task
Generate a SQL query to answer the following question:
`What is the Spanish word for cas [ˈkas]?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_26614365_1" (
"western" text,
"central" text,
"eastern" text,
"old_galician_13th_15th_c" text,
"portuguese" text,
"spanish" text,
"latin" text,
"english" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Spanish word for cas [ˈkas]?`:
```sql
|
SELECT "eastern" FROM "table1_26614365_1" WHERE "english"='light'; |
## Task
Generate a SQL query to answer the following question:
`What is the eastern word for "light"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_26614365_1" (
"western" text,
"central" text,
"eastern" text,
"old_galician_13th_15th_c" text,
"portuguese" text,
"spanish" text,
"latin" text,
"english" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the eastern word for "light"?`:
```sql
|
SELECT "central" FROM "table1_26614365_1" WHERE "english"='robbers'; |
## Task
Generate a SQL query to answer the following question:
`What is the central word for "robbers"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_26614365_1" (
"western" text,
"central" text,
"eastern" text,
"old_galician_13th_15th_c" text,
"portuguese" text,
"spanish" text,
"latin" text,
"english" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the central word for "robbers"?`:
```sql
|
SELECT "latin" FROM "table1_26614365_1" WHERE "english"='you sang'; |
## Task
Generate a SQL query to answer the following question:
`What is the Latin for "you sang"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_26614365_1" (
"western" text,
"central" text,
"eastern" text,
"old_galician_13th_15th_c" text,
"portuguese" text,
"spanish" text,
"latin" text,
"english" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Latin for "you sang"?`:
```sql
|
SELECT "western" FROM "table1_26614365_1" WHERE "latin"='latrones'; |
## Task
Generate a SQL query to answer the following question:
`What is the western word for "latrones" in Latin?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_26614365_1" (
"western" text,
"central" text,
"eastern" text,
"old_galician_13th_15th_c" text,
"portuguese" text,
"spanish" text,
"latin" text,
"english" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the western word for "latrones" in Latin?`:
```sql
|
SELECT "old_galician_13th_15th_c" FROM "table1_26614365_1" WHERE "portuguese"='cantaste'; |
## Task
Generate a SQL query to answer the following question:
`What is the Old Galician for cantaste in Portuguese?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_26614365_1" (
"western" text,
"central" text,
"eastern" text,
"old_galician_13th_15th_c" text,
"portuguese" text,
"spanish" text,
"latin" text,
"english" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Old Galician for cantaste in Portuguese?`:
```sql
|
SELECT MIN("rainfall_totals_million_m_3") FROM "major_water_basins_of_jamaica"; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest overall amount of rainfall totals (million m 3)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "major_water_basins_of_jamaica" (
"hydrographic_basin" text,
"surface_area_km_2" real,
"rainfall_totals_million_m_3" real,
"evapotranspiration_million_m_3" real,
"surface_water_runoff_million_m_3" real,
"groundwater_discharge_million_m_3" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest overall amount of rainfall totals (million m 3)?`:
```sql
|
SELECT MIN("groundwater_discharge_million_m_3") FROM "major_water_basins_of_jamaica" WHERE "hydrographic_basin"='Cabarita River'; |
## Task
Generate a SQL query to answer the following question:
`When cabarita river is the hydrographic basin what is the lowest groundwater discharge (million m 3)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "major_water_basins_of_jamaica" (
"hydrographic_basin" text,
"surface_area_km_2" real,
"rainfall_totals_million_m_3" real,
"evapotranspiration_million_m_3" real,
"surface_water_runoff_million_m_3" real,
"groundwater_discharge_million_m_3" real
);
### SQL
Given the database schema, here is the SQL query that answers `When cabarita river is the hydrographic basin what is the lowest groundwater discharge (million m 3)?`:
```sql
|
SELECT "rainfall_totals_million_m_3" FROM "major_water_basins_of_jamaica" WHERE "hydrographic_basin"='Martha Brae, River'; |
## Task
Generate a SQL query to answer the following question:
`When martha brae, river is the hydrographic basin what is the rainfall totals (million m 3)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "major_water_basins_of_jamaica" (
"hydrographic_basin" text,
"surface_area_km_2" real,
"rainfall_totals_million_m_3" real,
"evapotranspiration_million_m_3" real,
"surface_water_runoff_million_m_3" real,
"groundwater_discharge_million_m_3" real
);
### SQL
Given the database schema, here is the SQL query that answers `When martha brae, river is the hydrographic basin what is the rainfall totals (million m 3)?`:
```sql
|
SELECT "average" FROM "statistics_leaders" WHERE "category"='Assists per game'; |
## Task
Generate a SQL query to answer the following question:
`Name the average for assists per game`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statistics_leaders" (
"category" text,
"player" text,
"games_played" real,
"totals" text,
"average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average for assists per game`:
```sql
|
SELECT "average" FROM "statistics_leaders" WHERE "games_played"=23; |
## Task
Generate a SQL query to answer the following question:
`Name the average for 23 games played`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statistics_leaders" (
"category" text,
"player" text,
"games_played" real,
"totals" text,
"average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average for 23 games played`:
```sql
|
SELECT "category" FROM "statistics_leaders" WHERE "totals"='50'; |
## Task
Generate a SQL query to answer the following question:
`Name the category for 50 totals`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statistics_leaders" (
"category" text,
"player" text,
"games_played" real,
"totals" text,
"average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the category for 50 totals`:
```sql
|
SELECT COUNT("average") FROM "statistics_leaders" WHERE "category"='Steals per game'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of average for steals per game`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statistics_leaders" (
"category" text,
"player" text,
"games_played" real,
"totals" text,
"average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of average for steals per game`:
```sql
|
SELECT "voice_actor" FROM "jewelpets" WHERE "species"='Hedgehog'; |
## Task
Generate a SQL query to answer the following question:
`who was the voice actor when the species is hedgehog?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jewelpets" (
"name" text,
"jewel" text,
"species" text,
"gender" text,
"jewel_power" text,
"attribute" text,
"birthday" text,
"media_debut" text,
"voice_actor" text
);
### SQL
Given the database schema, here is the SQL query that answers `who was the voice actor when the species is hedgehog?`:
```sql
|
SELECT "voice_actor" FROM "jewelpets" WHERE "birthday"='March 26'; |
## Task
Generate a SQL query to answer the following question:
`who is the voice actor with the birthday march 26?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jewelpets" (
"name" text,
"jewel" text,
"species" text,
"gender" text,
"jewel_power" text,
"attribute" text,
"birthday" text,
"media_debut" text,
"voice_actor" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the voice actor with the birthday march 26?`:
```sql
|
SELECT "jewel_power" FROM "jewelpets" WHERE "media_debut"='EP 17'; |
## Task
Generate a SQL query to answer the following question:
`what is the jewel power when the media debut is ep 17?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jewelpets" (
"name" text,
"jewel" text,
"species" text,
"gender" text,
"jewel_power" text,
"attribute" text,
"birthday" text,
"media_debut" text,
"voice_actor" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the jewel power when the media debut is ep 17?`:
```sql
|
SELECT COUNT("birthday") FROM "jewelpets" WHERE "jewel"='Malachite'; |
## Task
Generate a SQL query to answer the following question:
`how many times is the jewel malachite?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jewelpets" (
"name" text,
"jewel" text,
"species" text,
"gender" text,
"jewel_power" text,
"attribute" text,
"birthday" text,
"media_debut" text,
"voice_actor" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many times is the jewel malachite?`:
```sql
|
SELECT "species" FROM "jewelpets" WHERE "jewel"='Coal'; |
## Task
Generate a SQL query to answer the following question:
`What is the species when jewel is coal?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jewelpets" (
"name" text,
"jewel" text,
"species" text,
"gender" text,
"jewel_power" text,
"attribute" text,
"birthday" text,
"media_debut" text,
"voice_actor" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the species when jewel is coal?`:
```sql
|
SELECT "lites_2_race_two_winning_team" FROM "table1_26638600_3" WHERE "lites_1_race_one_winning_team"='#13 Inspire Motorsports'; |
## Task
Generate a SQL query to answer the following question:
`Who was the lights 2 race two winning team when the lites 1 race one winning team was #13 Inspire Motorsports?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_26638600_3" (
"rnd" real,
"circuit" text,
"lites_1_race_one_winning_team" text,
"lites_2_race_one_winning_team" text,
"lites_1_race_two_winning_team" text,
"lites_2_race_two_winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the lights 2 race two winning team when the lites 1 race one winning team was #13 Inspire Motorsports?`:
```sql
|
SELECT COUNT("lites_2_race_one_winning_team") FROM "table1_26638600_3" WHERE "lites_1_race_two_winning_team"='Gary Gibson'; |
## Task
Generate a SQL query to answer the following question:
`How many different circuits had Gary Gibson has the Lites 1 race two winning team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_26638600_3" (
"rnd" real,
"circuit" text,
"lites_1_race_one_winning_team" text,
"lites_2_race_one_winning_team" text,
"lites_1_race_two_winning_team" text,
"lites_2_race_two_winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different circuits had Gary Gibson has the Lites 1 race two winning team?`:
```sql
|
SELECT "lites_2_race_two_winning_team" FROM "table1_26638600_3" WHERE "lites_1_race_two_winning_team"='#11 Performance Tech'; |
## Task
Generate a SQL query to answer the following question:
`Who is the lites 2 race two winning team when #11 Performance Tech is the lites 1 race two winning team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_26638600_3" (
"rnd" real,
"circuit" text,
"lites_1_race_one_winning_team" text,
"lites_2_race_one_winning_team" text,
"lites_1_race_two_winning_team" text,
"lites_2_race_two_winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the lites 2 race two winning team when #11 Performance Tech is the lites 1 race two winning team?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.