output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "previous_school" FROM "roster" WHERE "height"='ft7in (m)'; |
## Task
Generate a SQL query to answer the following question:
`What was the previous school of the ft7in (m) tall player?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "roster" (
"name" text,
"num" real,
"position" text,
"height" text,
"weight_lb" real,
"year" text,
"hometown" text,
"previous_school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the previous school of the ft7in (m) tall player?`:
```sql
|
SELECT "previous_school" FROM "roster" WHERE "num"=22; |
## Task
Generate a SQL query to answer the following question:
`What was the previous school of #22?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "roster" (
"name" text,
"num" real,
"position" text,
"height" text,
"weight_lb" real,
"year" text,
"hometown" text,
"previous_school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the previous school of #22?`:
```sql
|
SELECT "title" FROM "table1_24938621_2" WHERE "production_code"='3X5402'; |
## Task
Generate a SQL query to answer the following question:
`What is the title of the episode with production code 3x5402?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24938621_2" (
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the episode with production code 3x5402?`:
```sql
|
SELECT "title" FROM "table1_24938621_2" WHERE "production_code"='3X5405'; |
## Task
Generate a SQL query to answer the following question:
`What is the title of the episode with production code 3x5405?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24938621_2" (
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the episode with production code 3x5405?`:
```sql
|
SELECT "home_team" FROM "league" WHERE "date"='5 October 2011'; |
## Task
Generate a SQL query to answer the following question:
`Who as the home team for game on 5 october 2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "league" (
"season" text,
"date" text,
"home_team" text,
"result" text,
"away_team" text,
"stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who as the home team for game on 5 october 2011?`:
```sql
|
SELECT "stadium" FROM "league" WHERE "home_team"='Shamrock Rovers' AND "result"='3–0'; |
## Task
Generate a SQL query to answer the following question:
`What was the stadium for the home team of shamrock rovers and result of 3–0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "league" (
"season" text,
"date" text,
"home_team" text,
"result" text,
"away_team" text,
"stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the stadium for the home team of shamrock rovers and result of 3–0?`:
```sql
|
SELECT "away_team" FROM "league" WHERE "result"='2–1' AND "home_team"='Bohemians'; |
## Task
Generate a SQL query to answer the following question:
`What was the away team when the result was 2–1 and home team was the bohemians?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "league" (
"season" text,
"date" text,
"home_team" text,
"result" text,
"away_team" text,
"stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the away team when the result was 2–1 and home team was the bohemians?`:
```sql
|
SELECT "home_team" FROM "league" WHERE "season"='2013' AND "result"='0–0'; |
## Task
Generate a SQL query to answer the following question:
`Who was the home team for the 2013 season and the result was 0–0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "league" (
"season" text,
"date" text,
"home_team" text,
"result" text,
"away_team" text,
"stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team for the 2013 season and the result was 0–0?`:
```sql
|
SELECT "date" FROM "league" WHERE "stadium"='Tallaght Stadium' AND "result"='0–1'; |
## Task
Generate a SQL query to answer the following question:
`What is the date for the game at the tallaght stadium and result was 0–1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "league" (
"season" text,
"date" text,
"home_team" text,
"result" text,
"away_team" text,
"stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date for the game at the tallaght stadium and result was 0–1?`:
```sql
|
SELECT "opponent" FROM "table1_24951872_2" WHERE "game_site"='Waldstadion'; |
## Task
Generate a SQL query to answer the following question:
`What opponents played Waldstadion in a game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24951872_2" (
"week" real,
"date" text,
"kickoff" text,
"opponent" text,
"final_score" text,
"team_record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What opponents played Waldstadion in a game?`:
```sql
|
SELECT MAX("week") FROM "table1_24951872_2" WHERE "attendance"=10738; |
## Task
Generate a SQL query to answer the following question:
`What was the maximum week that had attendance of 10738?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24951872_2" (
"week" real,
"date" text,
"kickoff" text,
"opponent" text,
"final_score" text,
"team_record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the maximum week that had attendance of 10738?`:
```sql
|
SELECT "written_by" FROM "table1_24938621_3" WHERE "title"='\"Concordia\"'; |
## Task
Generate a SQL query to answer the following question:
`Who wrote "Concordia"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24938621_3" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote "Concordia"?`:
```sql
|
SELECT "production_code" FROM "table1_24938621_3" WHERE "written_by"='Cathryn Humphris'; |
## Task
Generate a SQL query to answer the following question:
`What is the production code of the episode written by Cathryn Humphris?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24938621_3" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the production code of the episode written by Cathryn Humphris?`:
```sql
|
SELECT "production_code" FROM "table1_24938621_3" WHERE "u_s_viewers_million"='5.43'; |
## Task
Generate a SQL query to answer the following question:
`What is the production code of the episode that had 5.43 million viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24938621_3" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the production code of the episode that had 5.43 million viewers?`:
```sql
|
SELECT "production_code" FROM "table1_24938621_3" WHERE "directed_by"='Jesse Warn'; |
## Task
Generate a SQL query to answer the following question:
`What was the title of the episode directed by Jesse Warn?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24938621_3" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the title of the episode directed by Jesse Warn?`:
```sql
|
SELECT "no" FROM "table1_24938621_3" WHERE "written_by"='Gregg Hurwitz'; |
## Task
Generate a SQL query to answer the following question:
`What episode number was written by Gregg Hurwitz?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24938621_3" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode number was written by Gregg Hurwitz?`:
```sql
|
SELECT "drying_shrinkage_pct" FROM "properties_of_foamed_concrete" WHERE "dry_density_kg_m3"=800; |
## Task
Generate a SQL query to answer the following question:
`If the dry density is 800, what is the drying shrinkage %?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "properties_of_foamed_concrete" (
"dry_density_kg_m3" real,
"7_day_compressive_strength_n_mm2" text,
"thermal_conductivity_w_m_k" text,
"modulus_of_elasticity_k_n_mm2" text,
"drying_shrinkage_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the dry density is 800, what is the drying shrinkage %?`:
```sql
|
SELECT "series_num" FROM "table1_24961421_1" WHERE "season_num"=7; |
## Task
Generate a SQL query to answer the following question:
`What number in the series was episode 7 in the season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24961421_1" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What number in the series was episode 7 in the season?`:
```sql
|
SELECT "written_by" FROM "table1_24961421_1" WHERE "title"='\"Voir Dire\"'; |
## Task
Generate a SQL query to answer the following question:
`Who wrote "Voir Dire"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24961421_1" (
"series_num" real,
"season_num" 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 `Who wrote "Voir Dire"?`:
```sql
|
SELECT "original_air_date" FROM "table1_24961421_1" WHERE "title"='\"Rewind\"'; |
## Task
Generate a SQL query to answer the following question:
`When was "Rewind" originally aired?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24961421_1" (
"series_num" real,
"season_num" 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 `When was "Rewind" originally aired?`:
```sql
|
SELECT COUNT("season_num") FROM "table1_24961421_1" WHERE "title"='\"Rise and Fall\"'; |
## Task
Generate a SQL query to answer the following question:
`How many episodes had the title "Rise and Fall"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24961421_1" (
"series_num" real,
"season_num" 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 episodes had the title "Rise and Fall"?`:
```sql
|
SELECT "written_by" FROM "table1_24961421_1" WHERE "u_s_viewers_millions"='12.15'; |
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode that had 12.15 million viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24961421_1" (
"series_num" real,
"season_num" 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 `Who wrote the episode that had 12.15 million viewers?`:
```sql
|
SELECT "season_num" FROM "table1_24961421_1" WHERE "u_s_viewers_millions"='12.23'; |
## Task
Generate a SQL query to answer the following question:
`What number in the season was the episode with 12.23 million viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24961421_1" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What number in the season was the episode with 12.23 million viewers?`:
```sql
|
SELECT "date" FROM "table1_24989925_2" WHERE "game_site"='Olympic Stadium'; |
## Task
Generate a SQL query to answer the following question:
`What is the date of the game at Olympic Stadium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24989925_2" (
"week" real,
"date" text,
"kickoff" text,
"opponent" text,
"final_score" text,
"team_record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the game at Olympic Stadium?`:
```sql
|
SELECT MAX("week") FROM "table1_24989925_2"; |
## Task
Generate a SQL query to answer the following question:
`How many weeks total are there?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24989925_2" (
"week" real,
"date" text,
"kickoff" text,
"opponent" text,
"final_score" text,
"team_record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many weeks total are there?`:
```sql
|
SELECT "team_record" FROM "table1_24989925_2" WHERE "game_site"='RheinEnergieStadion'; |
## Task
Generate a SQL query to answer the following question:
`What was the team's record when they played at Rheinenergiestadion?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24989925_2" (
"week" real,
"date" text,
"kickoff" text,
"opponent" text,
"final_score" text,
"team_record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the team's record when they played at Rheinenergiestadion?`:
```sql
|
SELECT MIN("09_10_oi_2nd") FROM "pairs"; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest overall number of 09-10 oi 2nd?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pairs" (
"rank" real,
"ws_points" real,
"name" text,
"country" text,
"09_10_i_o_best" real,
"09_10_gp_jgp_best" real,
"09_10_gp_jgp_2nd" real,
"09_10_oi_best" real,
"09_10_oi_2nd" real,
"08_09_i_o_best" real,
"08_09_gp_jgp_best" real,
"08_09_gp_jgp_2nd" real,
"08_09_oi_best" real,
"08_09_oi_2nd" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest overall number of 09-10 oi 2nd?`:
```sql
|
SELECT MIN("09_10_oi_2nd") FROM "pairs"; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest overall number for 09-10 oi 2nd?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pairs" (
"rank" real,
"ws_points" real,
"name" text,
"country" text,
"09_10_i_o_best" real,
"09_10_gp_jgp_best" real,
"09_10_gp_jgp_2nd" real,
"09_10_oi_best" real,
"09_10_oi_2nd" real,
"08_09_i_o_best" real,
"08_09_gp_jgp_best" real,
"08_09_gp_jgp_2nd" real,
"08_09_oi_best" real,
"08_09_oi_2nd" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest overall number for 09-10 oi 2nd?`:
```sql
|
SELECT MAX("09_10_i_o_best") FROM "men"; |
## Task
Generate a SQL query to answer the following question:
`What was the maximum 09-10 i/o best?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men" (
"rank" real,
"ws_points" real,
"name" text,
"country" text,
"09_10_i_o_best" real,
"09_10_gp_jgp_best" real,
"09_10_gp_jgp_2nd" real,
"09_10_oi_best" real,
"09_10_oi_2nd" real,
"08_09_i_o_best" real,
"08_09_gp_jgp_best" real,
"08_09_gp_jgp_2nd" real,
"08_09_oi_best" real,
"08_09_oi_2nd" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the maximum 09-10 i/o best?`:
```sql
|
SELECT MAX("09_10_gp_jgp_2nd") FROM "ice_dancing" WHERE "09_10_i_o_best"=972; |
## Task
Generate a SQL query to answer the following question:
`If 09-10 i/o best is 972, what is the 09-10 gp/jgp 2nd maximum?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ice_dancing" (
"rank" real,
"ws_points" real,
"name" text,
"country" text,
"09_10_i_o_best" real,
"09_10_gp_jgp_best" real,
"09_10_gp_jgp_2nd" real,
"09_10_oi_best" real,
"09_10_oi_2nd" real,
"08_09_i_o_best" real,
"08_09_gp_jgp_best" real,
"08_09_gp_jgp_2nd" real,
"08_09_oi_best" real,
"08_09_oi_2nd" real
);
### SQL
Given the database schema, here is the SQL query that answers `If 09-10 i/o best is 972, what is the 09-10 gp/jgp 2nd maximum?`:
```sql
|
SELECT "name" FROM "ice_dancing" WHERE "rank"=17; |
## Task
Generate a SQL query to answer the following question:
`If the rank is 17, what are the names?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ice_dancing" (
"rank" real,
"ws_points" real,
"name" text,
"country" text,
"09_10_i_o_best" real,
"09_10_gp_jgp_best" real,
"09_10_gp_jgp_2nd" real,
"09_10_oi_best" real,
"09_10_oi_2nd" real,
"08_09_i_o_best" real,
"08_09_gp_jgp_best" real,
"08_09_gp_jgp_2nd" real,
"08_09_oi_best" real,
"08_09_oi_2nd" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the rank is 17, what are the names?`:
```sql
|
SELECT "08_09_gp_jgp_2nd" FROM "ice_dancing" WHERE "ws_points"=947; |
## Task
Generate a SQL query to answer the following question:
`If the WS points is 947, what is the 08-09 gp/jgp 2nd ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ice_dancing" (
"rank" real,
"ws_points" real,
"name" text,
"country" text,
"09_10_i_o_best" real,
"09_10_gp_jgp_best" real,
"09_10_gp_jgp_2nd" real,
"09_10_oi_best" real,
"09_10_oi_2nd" real,
"08_09_i_o_best" real,
"08_09_gp_jgp_best" real,
"08_09_gp_jgp_2nd" real,
"08_09_oi_best" real,
"08_09_oi_2nd" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the WS points is 947, what is the 08-09 gp/jgp 2nd ?`:
```sql
|
SELECT "08_09_oi_best" FROM "ice_dancing" WHERE "08_09_gp_jgp_best"=252 AND "08_09_gp_jgp_2nd">227.0; |
## Task
Generate a SQL query to answer the following question:
`If the 08-09 gp/jgp 2nd is bigger than 227.0 and the 08-09 gp/jgp best is 252, what is the 08-09 oi best?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ice_dancing" (
"rank" real,
"ws_points" real,
"name" text,
"country" text,
"09_10_i_o_best" real,
"09_10_gp_jgp_best" real,
"09_10_gp_jgp_2nd" real,
"09_10_oi_best" real,
"09_10_oi_2nd" real,
"08_09_i_o_best" real,
"08_09_gp_jgp_best" real,
"08_09_gp_jgp_2nd" real,
"08_09_oi_best" real,
"08_09_oi_2nd" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the 08-09 gp/jgp 2nd is bigger than 227.0 and the 08-09 gp/jgp best is 252, what is the 08-09 oi best?`:
```sql
|
SELECT "points" FROM "career_summary" WHERE "position"='34th'; |
## Task
Generate a SQL query to answer the following question:
`How many points did he have when he has in the 34th 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,
"poles" real,
"f_l" real,
"podiums" real,
"points" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did he have when he has in the 34th position? `:
```sql
|
SELECT "wins" FROM "career_summary" WHERE "points"='112'; |
## Task
Generate a SQL query to answer the following question:
`How many wins were listed when he had 112 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,
"poles" real,
"f_l" real,
"podiums" real,
"points" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins were listed when he had 112 points? `:
```sql
|
SELECT "series" FROM "career_summary" WHERE "position"='7th'; |
## Task
Generate a SQL query to answer the following question:
`In what series did he have the 7th 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,
"poles" real,
"f_l" real,
"podiums" real,
"points" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what series did he have the 7th position? `:
```sql
|
SELECT "points" FROM "career_summary" WHERE "position"='8th'; |
## Task
Generate a SQL query to answer the following question:
`what were his points when he was in 8th 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,
"poles" real,
"f_l" real,
"podiums" real,
"points" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `what were his points when he was in 8th position? `:
```sql
|
SELECT "vote" FROM "table1_25016824_2" WHERE "air_date"='4 October 1997'; |
## Task
Generate a SQL query to answer the following question:
`What was the vote when the air date is 4 october 1997?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25016824_2" (
"air_date" text,
"reward" text,
"immunity" text,
"eliminated" text,
"vote" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the vote when the air date is 4 october 1997?`:
```sql
|
SELECT "eliminated" FROM "table1_25016824_2" WHERE "immunity"='Kent (Jürgen)'; |
## Task
Generate a SQL query to answer the following question:
`Who was eliminated when immunity went to kent (jürgen)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25016824_2" (
"air_date" text,
"reward" text,
"immunity" text,
"eliminated" text,
"vote" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was eliminated when immunity went to kent (jürgen)?`:
```sql
|
SELECT "eliminated" FROM "table1_25016824_2" WHERE "vote"='8-1'; |
## Task
Generate a SQL query to answer the following question:
`Who was eliminated when the vote was 8-1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25016824_2" (
"air_date" text,
"reward" text,
"immunity" text,
"eliminated" text,
"vote" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was eliminated when the vote was 8-1?`:
```sql
|
SELECT COUNT("vote") FROM "table1_25016824_2" WHERE "air_date"='15 November 1997'; |
## Task
Generate a SQL query to answer the following question:
`How many entries are there for vote when the air date was 15 november 1997?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25016824_2" (
"air_date" text,
"reward" text,
"immunity" text,
"eliminated" text,
"vote" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many entries are there for vote when the air date was 15 november 1997?`:
```sql
|
SELECT "reward" FROM "table1_25016824_2" WHERE "immunity"='Martin' AND "finish"='13th Voted Out 8th Jury Member Day 46'; |
## Task
Generate a SQL query to answer the following question:
`What was the reward when immunity went to martin and finish is 13th voted out 8th jury member day 46?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25016824_2" (
"air_date" text,
"reward" text,
"immunity" text,
"eliminated" text,
"vote" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the reward when immunity went to martin and finish is 13th voted out 8th jury member day 46?`:
```sql
|
SELECT "position" FROM "round_four" WHERE "player"='Christopher Smith'; |
## Task
Generate a SQL query to answer the following question:
`Name the position for christopher smith`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_four" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the position for christopher smith`:
```sql
|
SELECT "college" FROM "round_four" WHERE "player"='Nate Binder'; |
## Task
Generate a SQL query to answer the following question:
`Name the college for nate binder`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_four" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the college for nate binder`:
```sql
|
SELECT MIN("pick_num") FROM "round_four" WHERE "player"='Steven Turner'; |
## Task
Generate a SQL query to answer the following question:
`Name the least pick number for steven turner`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_four" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least pick number for steven turner`:
```sql
|
SELECT "cfl_team" FROM "round_four" WHERE "player"='Steven Turner'; |
## Task
Generate a SQL query to answer the following question:
`Name the cfl team for steven turner`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_four" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the cfl team for steven turner`:
```sql
|
SELECT "cfl_team" FROM "table1_25017530_6" WHERE "position"='LB'; |
## Task
Generate a SQL query to answer the following question:
`Name the cfl team for lb position`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25017530_6" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the cfl team for lb position`:
```sql
|
SELECT "cfl_team" FROM "table1_25017530_6" WHERE "college"='Saskatchewan'; |
## Task
Generate a SQL query to answer the following question:
`Name the cfl team for saskatchewan`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25017530_6" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the cfl team for saskatchewan`:
```sql
|
SELECT "position" FROM "table1_25017530_6" WHERE "player"='Michael Warner'; |
## Task
Generate a SQL query to answer the following question:
`Name the position for michael warner`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25017530_6" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the position for michael warner`:
```sql
|
SELECT COUNT("production_count") FROM "series_2_2000_2001" WHERE "episode_num"=5; |
## Task
Generate a SQL query to answer the following question:
`How many episodes were numbered 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_2_2000_2001" (
"episode_num" real,
"production_count" real,
"original_airdate" text,
"prod_code" text,
"title" text,
"viewing_figures_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes were numbered 5?`:
```sql
|
SELECT "original_airdate" FROM "series_2_2000_2001" WHERE "prod_code"='IPEA343L'; |
## Task
Generate a SQL query to answer the following question:
`What are the original air date(s) for episodes with production code ipea343l?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_2_2000_2001" (
"episode_num" real,
"production_count" real,
"original_airdate" text,
"prod_code" text,
"title" text,
"viewing_figures_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the original air date(s) for episodes with production code ipea343l?`:
```sql
|
SELECT "original_airdate" FROM "series_2_2000_2001" WHERE "prod_code"='IPEA345A'; |
## Task
Generate a SQL query to answer the following question:
`What are the original air date(s) for episodes with production code ipea345a?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_2_2000_2001" (
"episode_num" real,
"production_count" real,
"original_airdate" text,
"prod_code" text,
"title" text,
"viewing_figures_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the original air date(s) for episodes with production code ipea345a?`:
```sql
|
SELECT "original_airdate" FROM "series_2_2000_2001" WHERE "viewing_figures_millions"='8.63'; |
## Task
Generate a SQL query to answer the following question:
`What are the original air date(s) for episodes with 8.63 million viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_2_2000_2001" (
"episode_num" real,
"production_count" real,
"original_airdate" text,
"prod_code" text,
"title" text,
"viewing_figures_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the original air date(s) for episodes with 8.63 million viewers?`:
```sql
|
SELECT "power" FROM "third_generation_fd" WHERE "model"='Type R'; |
## Task
Generate a SQL query to answer the following question:
`What is the power of the Type R?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_generation_fd" (
"model" text,
"power" text,
"torque" text,
"gearbox" text,
"weight" text,
"seating" text,
"brakes" text,
"wheels" text,
"tyres" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the power of the Type R?`:
```sql
|
SELECT "brakes" FROM "third_generation_fd" WHERE "wheels"='16x8.0JJ (front) 16x8.0JJ (rear)' AND "tyres"='225/50R16 92V(front) 225/50R16 92V(rear)' AND "model"='Type RB 4AT'; |
## Task
Generate a SQL query to answer the following question:
`What kind of brakes for the model type rb 4at with 16x8.0jj (front) 16x8.0jj (rear) wheels and 225/50r16 92v(front) 225/50r16 92v(rear) tyres?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_generation_fd" (
"model" text,
"power" text,
"torque" text,
"gearbox" text,
"weight" text,
"seating" text,
"brakes" text,
"wheels" text,
"tyres" text
);
### SQL
Given the database schema, here is the SQL query that answers `What kind of brakes for the model type rb 4at with 16x8.0jj (front) 16x8.0jj (rear) wheels and 225/50r16 92v(front) 225/50r16 92v(rear) tyres?`:
```sql
|
SELECT "brakes" FROM "third_generation_fd" WHERE "gearbox"='4-speed automatic'; |
## Task
Generate a SQL query to answer the following question:
`What brakes for the 4-speed automatic gearbox?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_generation_fd" (
"model" text,
"power" text,
"torque" text,
"gearbox" text,
"weight" text,
"seating" text,
"brakes" text,
"wheels" text,
"tyres" text
);
### SQL
Given the database schema, here is the SQL query that answers `What brakes for the 4-speed automatic gearbox?`:
```sql
|
SELECT "power" FROM "third_generation_fd" WHERE "model"='Spirit R (Type B)'; |
## Task
Generate a SQL query to answer the following question:
`What is the power for the Spirit R (Type B)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_generation_fd" (
"model" text,
"power" text,
"torque" text,
"gearbox" text,
"weight" text,
"seating" text,
"brakes" text,
"wheels" text,
"tyres" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the power for the Spirit R (Type B)?`:
```sql
|
SELECT "gearbox" FROM "third_generation_fd" WHERE "torque"='Torque'; |
## Task
Generate a SQL query to answer the following question:
`What is the gearbox when the torque is torque?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_generation_fd" (
"model" text,
"power" text,
"torque" text,
"gearbox" text,
"weight" text,
"seating" text,
"brakes" text,
"wheels" text,
"tyres" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the gearbox when the torque is torque?`:
```sql
|
SELECT COUNT("first_elected") FROM "alabama" WHERE "district"='Alabama 3'; |
## Task
Generate a SQL query to answer the following question:
`Name the first elected for alabama 3`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "alabama" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the first elected for alabama 3`:
```sql
|
SELECT "party" FROM "alabama" WHERE "incumbent"='Spencer Bachus'; |
## Task
Generate a SQL query to answer the following question:
`Name the party for spencer bachus`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "alabama" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the party for spencer bachus`:
```sql
|
SELECT "district" FROM "alabama" WHERE "incumbent"='Mike Rogers'; |
## Task
Generate a SQL query to answer the following question:
`Name the district for mike rogers`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "alabama" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the district for mike rogers`:
```sql
|
SELECT "district" FROM "alabama" WHERE "incumbent"='Spencer Bachus'; |
## Task
Generate a SQL query to answer the following question:
`Name the district for spencer bachus`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "alabama" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the district for spencer bachus`:
```sql
|
SELECT "district" FROM "minnesota" WHERE "incumbent"='Keith Ellison'; |
## Task
Generate a SQL query to answer the following question:
`In what district was keith ellison the incumbent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "minnesota" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what district was keith ellison the incumbent?`:
```sql
|
SELECT "day_power_w" FROM "am" WHERE "city"='Moline'; |
## Task
Generate a SQL query to answer the following question:
`List the kilo watt hoours per day for moline.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "am" (
"freq" real,
"call" text,
"city" text,
"owner" text,
"start" real,
"day_power_w" real,
"night_power" real,
"nickname" text,
"format" text,
"stereo" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the kilo watt hoours per day for moline.`:
```sql
|
SELECT "start" FROM "am" WHERE "nickname"='Voice of Muscatine'; |
## Task
Generate a SQL query to answer the following question:
`In which year did the voice of muscatine show start?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "am" (
"freq" real,
"call" text,
"city" text,
"owner" text,
"start" real,
"day_power_w" real,
"night_power" real,
"nickname" text,
"format" text,
"stereo" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which year did the voice of muscatine show start?`:
```sql
|
SELECT MIN("start") FROM "am" WHERE "owner"='Cumulus'; |
## Task
Generate a SQL query to answer the following question:
`In what year was cumulus founded?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "am" (
"freq" real,
"call" text,
"city" text,
"owner" text,
"start" real,
"day_power_w" real,
"night_power" real,
"nickname" text,
"format" text,
"stereo" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what year was cumulus founded?`:
```sql
|
SELECT "stereo" FROM "am" WHERE "city"='Moline'; |
## Task
Generate a SQL query to answer the following question:
`Does the city of moline have stereo?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "am" (
"freq" real,
"call" text,
"city" text,
"owner" text,
"start" real,
"day_power_w" real,
"night_power" real,
"nickname" text,
"format" text,
"stereo" text
);
### SQL
Given the database schema, here is the SQL query that answers `Does the city of moline have stereo?`:
```sql
|
SELECT "company" FROM "assembly_plants" WHERE "parent_company"='Wrightbus'; |
## Task
Generate a SQL query to answer the following question:
`what is the company with the parent company wrightbus?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "assembly_plants" (
"company" text,
"parent_company" text,
"parent_headquarters" text,
"plant" text,
"models_produced" text,
"production_latest_figures" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the company with the parent company wrightbus?`:
```sql
|
SELECT "company" FROM "assembly_plants" WHERE "plant"='Burnaston'; |
## Task
Generate a SQL query to answer the following question:
`what is the name ofhte company where the plant is in burnaston?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "assembly_plants" (
"company" text,
"parent_company" text,
"parent_headquarters" text,
"plant" text,
"models_produced" text,
"production_latest_figures" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the name ofhte company where the plant is in burnaston?`:
```sql
|
SELECT "models_produced" FROM "assembly_plants" WHERE "plant"='Scarborough'; |
## Task
Generate a SQL query to answer the following question:
`what models are produced where the plant is scarborough?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "assembly_plants" (
"company" text,
"parent_company" text,
"parent_headquarters" text,
"plant" text,
"models_produced" text,
"production_latest_figures" text
);
### SQL
Given the database schema, here is the SQL query that answers `what models are produced where the plant is scarborough?`:
```sql
|
SELECT COUNT("models_produced") FROM "assembly_plants" WHERE "plant"='Castle Bromwich'; |
## Task
Generate a SQL query to answer the following question:
`how many models produced where the plant is castle bromwich?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "assembly_plants" (
"company" text,
"parent_company" text,
"parent_headquarters" text,
"plant" text,
"models_produced" text,
"production_latest_figures" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many models produced where the plant is castle bromwich?`:
```sql
|
SELECT "production_latest_figures" FROM "assembly_plants" WHERE "parent_company"='Ariel'; |
## Task
Generate a SQL query to answer the following question:
`what is the production where the parent company is ariel?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "assembly_plants" (
"company" text,
"parent_company" text,
"parent_headquarters" text,
"plant" text,
"models_produced" text,
"production_latest_figures" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the production where the parent company is ariel?`:
```sql
|
SELECT "chassis" FROM "active_part_time_indy_car_series_teams" WHERE "primary_sponsor"='Angie''s List'; |
## Task
Generate a SQL query to answer the following question:
`What kind of chassis on the angie's list sponsored car?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "active_part_time_indy_car_series_teams" (
"team" text,
"num" real,
"primary_sponsor" text,
"driver_s" text,
"listed_owner_s" text,
"engine" text,
"chassis" text
);
### SQL
Given the database schema, here is the SQL query that answers `What kind of chassis on the angie's list sponsored car?`:
```sql
|
SELECT "team" FROM "active_part_time_indy_car_series_teams" WHERE "listed_owner_s"='Chip Ganassi'; |
## Task
Generate a SQL query to answer the following question:
`What team owns the car owned by chip ganassi?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "active_part_time_indy_car_series_teams" (
"team" text,
"num" real,
"primary_sponsor" text,
"driver_s" text,
"listed_owner_s" text,
"engine" text,
"chassis" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team owns the car owned by chip ganassi?`:
```sql
|
SELECT "chassis" FROM "active_part_time_indy_car_series_teams" WHERE "team"='Rahal Letterman Lanigan Racing'; |
## Task
Generate a SQL query to answer the following question:
`What chassis is on the car repped by team rahal letterman lanigan racing?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "active_part_time_indy_car_series_teams" (
"team" text,
"num" real,
"primary_sponsor" text,
"driver_s" text,
"listed_owner_s" text,
"engine" text,
"chassis" text
);
### SQL
Given the database schema, here is the SQL query that answers `What chassis is on the car repped by team rahal letterman lanigan racing?`:
```sql
|
SELECT "driver_s" FROM "active_part_time_indy_car_series_teams" WHERE "primary_sponsor"='ABC Supply'; |
## Task
Generate a SQL query to answer the following question:
`Who drives the abc supply sponsored cor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "active_part_time_indy_car_series_teams" (
"team" text,
"num" real,
"primary_sponsor" text,
"driver_s" text,
"listed_owner_s" text,
"engine" text,
"chassis" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who drives the abc supply sponsored cor?`:
```sql
|
SELECT COUNT("district") FROM "pennsylvania" WHERE "incumbent"='Tom Marino'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of district for tom marino`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pennsylvania" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of district for tom marino`:
```sql
|
SELECT "district" FROM "pennsylvania" WHERE "first_elected"=1994; |
## Task
Generate a SQL query to answer the following question:
`Name the district for 1994`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pennsylvania" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the district for 1994`:
```sql
|
SELECT "party" FROM "pennsylvania" WHERE "district"='Pennsylvania 10'; |
## Task
Generate a SQL query to answer the following question:
`Name the party for pennsylvania 10`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pennsylvania" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the party for pennsylvania 10`:
```sql
|
SELECT "result" FROM "pennsylvania" WHERE "incumbent"='Glenn Thompson'; |
## Task
Generate a SQL query to answer the following question:
`Name the result for glenn thompson`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pennsylvania" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the result for glenn thompson`:
```sql
|
SELECT COUNT("district") FROM "pennsylvania" WHERE "incumbent"='Bill Shuster'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of district for bill shuster`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pennsylvania" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of district for bill shuster`:
```sql
|
SELECT MAX("minutes") FROM "all_time_statistics" WHERE "starts"=11; |
## Task
Generate a SQL query to answer the following question:
`List the total play time for 11 starts.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "all_time_statistics" (
"name" text,
"nationality" text,
"position" text,
"boston_breakers_career" text,
"appearances" real,
"starts" real,
"minutes" real,
"goals" real,
"assists" real
);
### SQL
Given the database schema, here is the SQL query that answers `List the total play time for 11 starts.`:
```sql
|
SELECT "region" FROM "by_net_enrollment_ratio_in_education" WHERE "primary_6_13_years"='94.40'; |
## Task
Generate a SQL query to answer the following question:
`In what region is the enrollment ratio in primary 94.40?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_net_enrollment_ratio_in_education" (
"region" text,
"preschool_0_5_years" text,
"primary_6_13_years" text,
"secondary_14_17_years" text,
"tertiary_18_24_years" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what region is the enrollment ratio in primary 94.40?`:
```sql
|
SELECT "preschool_0_5_years" FROM "by_net_enrollment_ratio_in_education" WHERE "tertiary_18_24_years"='29.55'; |
## Task
Generate a SQL query to answer the following question:
`What is the enrollment ratio for preschool in the region where enrollment ratio for tertiary is 29.55?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_net_enrollment_ratio_in_education" (
"region" text,
"preschool_0_5_years" text,
"primary_6_13_years" text,
"secondary_14_17_years" text,
"tertiary_18_24_years" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the enrollment ratio for preschool in the region where enrollment ratio for tertiary is 29.55?`:
```sql
|
SELECT "primary_6_13_years" FROM "by_net_enrollment_ratio_in_education" WHERE "preschool_0_5_years"='38.14'; |
## Task
Generate a SQL query to answer the following question:
`What is the enrollment ratio in primary in the region where the enrollment ratio in preschool is 38.14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_net_enrollment_ratio_in_education" (
"region" text,
"preschool_0_5_years" text,
"primary_6_13_years" text,
"secondary_14_17_years" text,
"tertiary_18_24_years" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the enrollment ratio in primary in the region where the enrollment ratio in preschool is 38.14?`:
```sql
|
SELECT "tertiary_18_24_years" FROM "by_net_enrollment_ratio_in_education" WHERE "secondary_14_17_years"='71.43'; |
## Task
Generate a SQL query to answer the following question:
`What is the enrollment ratio in tertiary in the region where the enrollment ration in secondary is 71.43?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_net_enrollment_ratio_in_education" (
"region" text,
"preschool_0_5_years" text,
"primary_6_13_years" text,
"secondary_14_17_years" text,
"tertiary_18_24_years" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the enrollment ratio in tertiary in the region where the enrollment ration in secondary is 71.43?`:
```sql
|
SELECT "preschool_0_5_years" FROM "by_net_enrollment_ratio_in_education" WHERE "primary_6_13_years"='93.10'; |
## Task
Generate a SQL query to answer the following question:
`What is the enrollment ratio in preschool in the region where the enrollment ratio in primary is 93.10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_net_enrollment_ratio_in_education" (
"region" text,
"preschool_0_5_years" text,
"primary_6_13_years" text,
"secondary_14_17_years" text,
"tertiary_18_24_years" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the enrollment ratio in preschool in the region where the enrollment ratio in primary is 93.10?`:
```sql
|
SELECT "primary_6_13_years" FROM "by_net_enrollment_ratio_in_education" WHERE "preschool_0_5_years"='50.23'; |
## Task
Generate a SQL query to answer the following question:
`What is the enrollment ration in primary in the region where the enrollment ratio in preschool is 50.23? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_net_enrollment_ratio_in_education" (
"region" text,
"preschool_0_5_years" text,
"primary_6_13_years" text,
"secondary_14_17_years" text,
"tertiary_18_24_years" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the enrollment ration in primary in the region where the enrollment ratio in preschool is 50.23? `:
```sql
|
SELECT "enrolled_women" FROM "by_electorate" WHERE "e_vap_ratio_women"='108.6%'; |
## Task
Generate a SQL query to answer the following question:
`what is the number of registered female voters where the percentage is 108.6%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_electorate" (
"region" text,
"enrolled_men" real,
"enrolled_women" real,
"enrolled_total" real,
"men_of_voting_age" real,
"women_of_voting_age" real,
"voting_age_population" real,
"e_vap_ratio_men" text,
"e_vap_ratio_women" text,
"e_vap_ratio_total" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the number of registered female voters where the percentage is 108.6%`:
```sql
|
SELECT "e_vap_ratio_total" FROM "by_electorate" WHERE "men_of_voting_age"=123726; |
## Task
Generate a SQL query to answer the following question:
`what is the percentage of male voters where the level of maturity is 123726`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_electorate" (
"region" text,
"enrolled_men" real,
"enrolled_women" real,
"enrolled_total" real,
"men_of_voting_age" real,
"women_of_voting_age" real,
"voting_age_population" real,
"e_vap_ratio_men" text,
"e_vap_ratio_women" text,
"e_vap_ratio_total" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the percentage of male voters where the level of maturity is 123726`:
```sql
|
SELECT COUNT("incarceration_rate_total") FROM "by_prison_inmates_and_incarceration_rate" WHERE "prison_inmates_women"=153; |
## Task
Generate a SQL query to answer the following question:
`How many regions had 153 women prison inmates?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_prison_inmates_and_incarceration_rate" (
"region" text,
"prison_inmates_men" real,
"prison_inmates_women" real,
"prison_inmates_total" real,
"incarceration_rate_male" real,
"incarceration_rate_female" real,
"incarceration_rate_total" real,
"country_comparison" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many regions had 153 women prison inmates?`:
```sql
|
SELECT COUNT("incarceration_rate_total") FROM "by_prison_inmates_and_incarceration_rate" WHERE "incarceration_rate_female"=63; |
## Task
Generate a SQL query to answer the following question:
`How many regions had an incarceration rate for females of 63?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_prison_inmates_and_incarceration_rate" (
"region" text,
"prison_inmates_men" real,
"prison_inmates_women" real,
"prison_inmates_total" real,
"incarceration_rate_male" real,
"incarceration_rate_female" real,
"incarceration_rate_total" real,
"country_comparison" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many regions had an incarceration rate for females of 63?`:
```sql
|
SELECT MAX("incarceration_rate_male") FROM "by_prison_inmates_and_incarceration_rate" WHERE "region"='Maule'; |
## Task
Generate a SQL query to answer the following question:
`What is the male incarceration rate of maule?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_prison_inmates_and_incarceration_rate" (
"region" text,
"prison_inmates_men" real,
"prison_inmates_women" real,
"prison_inmates_total" real,
"incarceration_rate_male" real,
"incarceration_rate_female" real,
"incarceration_rate_total" real,
"country_comparison" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the male incarceration rate of maule?`:
```sql
|
SELECT "region" FROM "by_ownership_of_goods_and_services" WHERE "automatic_washing_machine"='60.9%'; |
## Task
Generate a SQL query to answer the following question:
`Name the region for automatic washing machine being 60.9%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_ownership_of_goods_and_services" (
"region" text,
"vehicle" text,
"automatic_washing_machine" text,
"refrigerator" text,
"water_heater" text,
"fixed_telephone_line" text,
"mobile_phone" text,
"cable_sat_tv_connection" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the region for automatic washing machine being 60.9%`:
```sql
|
SELECT "fixed_telephone_line" FROM "by_ownership_of_goods_and_services" WHERE "vehicle"='25.6%'; |
## Task
Generate a SQL query to answer the following question:
`Name the fixed telephone line for 25.6% vehicle`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_ownership_of_goods_and_services" (
"region" text,
"vehicle" text,
"automatic_washing_machine" text,
"refrigerator" text,
"water_heater" text,
"fixed_telephone_line" text,
"mobile_phone" text,
"cable_sat_tv_connection" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the fixed telephone line for 25.6% vehicle`:
```sql
|
SELECT "region" FROM "by_ownership_of_goods_and_services" WHERE "vehicle"='39.2%'; |
## Task
Generate a SQL query to answer the following question:
`Name the region for 39.2% vehicle`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_ownership_of_goods_and_services" (
"region" text,
"vehicle" text,
"automatic_washing_machine" text,
"refrigerator" text,
"water_heater" text,
"fixed_telephone_line" text,
"mobile_phone" text,
"cable_sat_tv_connection" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the region for 39.2% vehicle`:
```sql
|
SELECT "region" FROM "by_access_to_electricity" WHERE "solar_panel"='0.3%'; |
## Task
Generate a SQL query to answer the following question:
`What region has 0.3% solar panel?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_access_to_electricity" (
"region" text,
"public_network" text,
"own_community_generator" text,
"solar_panel" text,
"other_source" text,
"none" text
);
### SQL
Given the database schema, here is the SQL query that answers `What region has 0.3% solar panel?`:
```sql
|
SELECT "solar_panel" FROM "by_access_to_electricity" WHERE "region"='Atacama'; |
## Task
Generate a SQL query to answer the following question:
`What is atacama's percentage of solar panels?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_access_to_electricity" (
"region" text,
"public_network" text,
"own_community_generator" text,
"solar_panel" text,
"other_source" text,
"none" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is atacama's percentage of solar panels?`:
```sql
|
SELECT "region" FROM "by_access_to_electricity" WHERE "none"='0.6%'; |
## Task
Generate a SQL query to answer the following question:
`Which region has 0.6% none?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_access_to_electricity" (
"region" text,
"public_network" text,
"own_community_generator" text,
"solar_panel" text,
"other_source" text,
"none" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which region has 0.6% none?`:
```sql
|
SELECT "public_network" FROM "by_access_to_electricity" WHERE "other_source"='0.1%' AND "solar_panel"='0.0%' AND "region"='Maule'; |
## Task
Generate a SQL query to answer the following question:
`What is the percentage of public network in the region that has 0.1% other sources, 0.0% solar, and is named maule?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_access_to_electricity" (
"region" text,
"public_network" text,
"own_community_generator" text,
"solar_panel" text,
"other_source" text,
"none" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the percentage of public network in the region that has 0.1% other sources, 0.0% solar, and is named maule?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.