output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "numeral" FROM "table1_1682865_1" WHERE "english_name"='Florin'; |
## Task
Generate a SQL query to answer the following question:
`What is the numeral where the English name is Florin?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1682865_1" (
"english_name" text,
"irish_name" text,
"numeral" text,
"reverse" text,
"introduction" text,
"withdrawal" text,
"1_fraction" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the numeral where the English name is Florin?`:
```sql
|
SELECT "1_fraction" FROM "table1_1682865_1" WHERE "reverse"='Hare'; |
## Task
Generate a SQL query to answer the following question:
`What is the £1 fraction when the reverse is hare?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1682865_1" (
"english_name" text,
"irish_name" text,
"numeral" text,
"reverse" text,
"introduction" text,
"withdrawal" text,
"1_fraction" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the £1 fraction when the reverse is hare?`:
```sql
|
SELECT "introduction" FROM "table1_1682865_1" WHERE "numeral"='6d'; |
## Task
Generate a SQL query to answer the following question:
`What date was the 6d introduced?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1682865_1" (
"english_name" text,
"irish_name" text,
"numeral" text,
"reverse" text,
"introduction" text,
"withdrawal" text,
"1_fraction" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the 6d introduced?`:
```sql
|
SELECT "irish_name" FROM "table1_1682865_1" WHERE "1_fraction"='1/240'; |
## Task
Generate a SQL query to answer the following question:
`What is the Irish name for the £1 fraction of 1/240?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1682865_1" (
"english_name" text,
"irish_name" text,
"numeral" text,
"reverse" text,
"introduction" text,
"withdrawal" text,
"1_fraction" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Irish name for the £1 fraction of 1/240?`:
```sql
|
SELECT "reverse" FROM "table1_1682865_1" WHERE "1_fraction"='1/480'; |
## Task
Generate a SQL query to answer the following question:
`What is the reverse when the £1 fraction is 1/480?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1682865_1" (
"english_name" text,
"irish_name" text,
"numeral" text,
"reverse" text,
"introduction" text,
"withdrawal" text,
"1_fraction" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the reverse when the £1 fraction is 1/480?`:
```sql
|
SELECT MAX("num_of_seats_won") FROM "election_results"; |
## Task
Generate a SQL query to answer the following question:
`What is the largest number of seats won?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "election_results" (
"election" real,
"candidates_fielded" real,
"num_of_seats_won" real,
"total_votes" real,
"pct_of_popular_vote" text,
"place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest number of seats won?`:
```sql
|
SELECT COUNT("pct_of_popular_vote") FROM "election_results" WHERE "election"=1983; |
## Task
Generate a SQL query to answer the following question:
`How many percentages are listed for the election in 1983?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "election_results" (
"election" real,
"candidates_fielded" real,
"num_of_seats_won" real,
"total_votes" real,
"pct_of_popular_vote" text,
"place" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many percentages are listed for the election in 1983?`:
```sql
|
SELECT "place" FROM "election_results" WHERE "pct_of_popular_vote"='0.86%'; |
## Task
Generate a SQL query to answer the following question:
`What place did the party finish in the year when they earned 0.86% of the vote?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "election_results" (
"election" real,
"candidates_fielded" real,
"num_of_seats_won" real,
"total_votes" real,
"pct_of_popular_vote" text,
"place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What place did the party finish in the year when they earned 0.86% of the vote?`:
```sql
|
SELECT "ncbi_accession_number_m_rna_protein" FROM "homologs" WHERE "length_bp_aa"='5304bp/377aa'; |
## Task
Generate a SQL query to answer the following question:
`What is the NCBI Accession Number for the length of 5304bp/377aa?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "homologs" (
"species" text,
"species_common_name" text,
"ncbi_accession_number_m_rna_protein" text,
"length_bp_aa" text,
"protein_identity" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the NCBI Accession Number for the length of 5304bp/377aa?`:
```sql
|
SELECT "ncbi_accession_number_m_rna_protein" FROM "homologs" WHERE "species"='Homo sapiens'; |
## Task
Generate a SQL query to answer the following question:
`What is the NCBI Accession Number of the Homo Sapiens species?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "homologs" (
"species" text,
"species_common_name" text,
"ncbi_accession_number_m_rna_protein" text,
"length_bp_aa" text,
"protein_identity" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the NCBI Accession Number of the Homo Sapiens species?`:
```sql
|
SELECT "species_common_name" FROM "homologs" WHERE "species"='Felis catus'; |
## Task
Generate a SQL query to answer the following question:
`What is the common name for the Felis Catus species?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "homologs" (
"species" text,
"species_common_name" text,
"ncbi_accession_number_m_rna_protein" text,
"length_bp_aa" text,
"protein_identity" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the common name for the Felis Catus species?`:
```sql
|
SELECT COUNT("species") FROM "homologs" WHERE "species_common_name"='Mouse'; |
## Task
Generate a SQL query to answer the following question:
`What is the species with the common name "mouse"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "homologs" (
"species" text,
"species_common_name" text,
"ncbi_accession_number_m_rna_protein" text,
"length_bp_aa" text,
"protein_identity" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the species with the common name "mouse"?`:
```sql
|
SELECT "protein_identity" FROM "homologs" WHERE "length_bp_aa"='5304bp/377aa'; |
## Task
Generate a SQL query to answer the following question:
`What is the protein identity with a length of 5304bp/377aa?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "homologs" (
"species" text,
"species_common_name" text,
"ncbi_accession_number_m_rna_protein" text,
"length_bp_aa" text,
"protein_identity" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the protein identity with a length of 5304bp/377aa?`:
```sql
|
SELECT "release_date" FROM "releases" WHERE "title"='Tell You When'; |
## Task
Generate a SQL query to answer the following question:
`When was "Tell You When" released?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "releases" (
"cat_num" text,
"artist" text,
"title" text,
"release_date" text,
"format" text,
"other_information" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was "Tell You When" released?`:
```sql
|
SELECT "location" FROM "game_log" WHERE "game"=62; |
## Task
Generate a SQL query to answer the following question:
`Where was game 62 played? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Where was game 62 played? `:
```sql
|
SELECT "score" FROM "game_log" WHERE "opponent"='Columbus Blue Jackets'; |
## Task
Generate a SQL query to answer the following question:
`What was the final score when the Maple Leafs played the Columbus Blue Jackets? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score when the Maple Leafs played the Columbus Blue Jackets? `:
```sql
|
SELECT "network" FROM "table1_16884579_1" WHERE "host_s"='Dré Steemans Ann Van Elsen'; |
## Task
Generate a SQL query to answer the following question:
`Name the network for dré steemans ann van elsen`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_16884579_1" (
"country" text,
"name" text,
"network" text,
"premiere" text,
"host_s" text,
"judges" text,
"seasons_and_winners" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the network for dré steemans ann van elsen`:
```sql
|
SELECT "seasons_and_winners" FROM "table1_16884579_1" WHERE "premiere"='28 January 2007'; |
## Task
Generate a SQL query to answer the following question:
`Name the seasons and winners that airs 28 january 2007`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_16884579_1" (
"country" text,
"name" text,
"network" text,
"premiere" text,
"host_s" text,
"judges" text,
"seasons_and_winners" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the seasons and winners that airs 28 january 2007`:
```sql
|
SELECT "host_s" FROM "table1_16884579_1" WHERE "network"='Prime'; |
## Task
Generate a SQL query to answer the following question:
`Name the host for prime`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_16884579_1" (
"country" text,
"name" text,
"network" text,
"premiere" text,
"host_s" text,
"judges" text,
"seasons_and_winners" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the host for prime`:
```sql
|
SELECT COUNT("judges") FROM "table1_16884579_1" WHERE "host_s"='Dré Steemans Ann Van Elsen'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of judges for dré steemans ann van elsen`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_16884579_1" (
"country" text,
"name" text,
"network" text,
"premiere" text,
"host_s" text,
"judges" text,
"seasons_and_winners" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of judges for dré steemans ann van elsen`:
```sql
|
SELECT "website" FROM "canada" WHERE "car_num"='92'; |
## Task
Generate a SQL query to answer the following question:
`Name the website for car number of 92`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "canada" (
"team_name_affiliation" text,
"year_started" real,
"number_of_cars" real,
"current_car" text,
"car_num" text,
"website" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the website for car number of 92`:
```sql
|
SELECT MAX("year_started") FROM "canada" WHERE "car_num"='55'; |
## Task
Generate a SQL query to answer the following question:
`Name the year started where car number is 55`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "canada" (
"team_name_affiliation" text,
"year_started" real,
"number_of_cars" real,
"current_car" text,
"car_num" text,
"website" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the year started where car number is 55`:
```sql
|
SELECT "car_num" FROM "canada" WHERE "year_started"=1997; |
## Task
Generate a SQL query to answer the following question:
`Name the car number for 1997`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "canada" (
"team_name_affiliation" text,
"year_started" real,
"number_of_cars" real,
"current_car" text,
"car_num" text,
"website" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the car number for 1997`:
```sql
|
SELECT COUNT("nickerie") FROM "demography" WHERE "marowijne"='4.7%'; |
## Task
Generate a SQL query to answer the following question:
`Name the nickerie for marowijne being 4.7%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "demography" (
"religion" text,
"suriname" text,
"paramaribo" text,
"wanica" text,
"nickerie" text,
"coronie" text,
"saramacca" text,
"commewijne" text,
"marowijne" text,
"para" text,
"brokopondo" text,
"sipaliwini" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the nickerie for marowijne being 4.7%`:
```sql
|
SELECT "coronie" FROM "demography" WHERE "marowijne"='6.8%'; |
## Task
Generate a SQL query to answer the following question:
`Name the coronie for marowijne being 6.8%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "demography" (
"religion" text,
"suriname" text,
"paramaribo" text,
"wanica" text,
"nickerie" text,
"coronie" text,
"saramacca" text,
"commewijne" text,
"marowijne" text,
"para" text,
"brokopondo" text,
"sipaliwini" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the coronie for marowijne being 6.8%`:
```sql
|
SELECT "para" FROM "demography" WHERE "commewijne"='1.5%'; |
## Task
Generate a SQL query to answer the following question:
`Name the para for 1.5% commewijne`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "demography" (
"religion" text,
"suriname" text,
"paramaribo" text,
"wanica" text,
"nickerie" text,
"coronie" text,
"saramacca" text,
"commewijne" text,
"marowijne" text,
"para" text,
"brokopondo" text,
"sipaliwini" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the para for 1.5% commewijne`:
```sql
|
SELECT MIN("races") FROM "by_season" WHERE "poles"=2; |
## Task
Generate a SQL query to answer the following question:
`Name the least amount of races for 2 poles`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_season" (
"season" real,
"class" text,
"motorcycle" text,
"team" text,
"races" real,
"wins" real,
"podiums" real,
"poles" real,
"f_laps" real,
"points" text,
"placement" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least amount of races for 2 poles`:
```sql
|
SELECT "motorcycle" FROM "by_season" WHERE "season"=2012; |
## Task
Generate a SQL query to answer the following question:
`Name the motorcycle for season 2012`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_season" (
"season" real,
"class" text,
"motorcycle" text,
"team" text,
"races" real,
"wins" real,
"podiums" real,
"poles" real,
"f_laps" real,
"points" text,
"placement" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the motorcycle for season 2012`:
```sql
|
SELECT COUNT("f_laps") FROM "by_season" WHERE "points"='63'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of flaps for 63 points `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_season" (
"season" real,
"class" text,
"motorcycle" text,
"team" text,
"races" real,
"wins" real,
"podiums" real,
"poles" real,
"f_laps" real,
"points" text,
"placement" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of flaps for 63 points `:
```sql
|
SELECT MIN("f_laps") FROM "by_season"; |
## Task
Generate a SQL query to answer the following question:
`Name the least flaps`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_season" (
"season" real,
"class" text,
"motorcycle" text,
"team" text,
"races" real,
"wins" real,
"podiums" real,
"poles" real,
"f_laps" real,
"points" text,
"placement" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least flaps`:
```sql
|
SELECT COUNT("p_ret") FROM "returning" WHERE "kr_avg"='11.3'; |
## Task
Generate a SQL query to answer the following question:
`How many p.ret are there when kr avg is 11.3 ? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "returning" (
"player" text,
"gp" real,
"k_ret" real,
"kr_yds" real,
"kr_avg" text,
"kr_td" real,
"kr_lg" real,
"p_ret" real,
"pr_yds" real,
"pr_avg" text,
"pr_td" real,
"pr_lg" real,
"mfg_ret" real,
"mfg_yds" real,
"mfg_avg" text,
"mfg_lg" real,
"mfg_td" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many p.ret are there when kr avg is 11.3 ? `:
```sql
|
SELECT "kr_td" FROM "returning" WHERE "mfg_lg"=64; |
## Task
Generate a SQL query to answer the following question:
`What is the kr td when mfg lg is 64?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "returning" (
"player" text,
"gp" real,
"k_ret" real,
"kr_yds" real,
"kr_avg" text,
"kr_td" real,
"kr_lg" real,
"p_ret" real,
"pr_yds" real,
"pr_avg" text,
"pr_td" real,
"pr_lg" real,
"mfg_ret" real,
"mfg_yds" real,
"mfg_avg" text,
"mfg_lg" real,
"mfg_td" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the kr td when mfg lg is 64?`:
```sql
|
SELECT "player" FROM "returning" WHERE "kr_avg"='24.8'; |
## Task
Generate a SQL query to answer the following question:
`Who's average is 24.8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "returning" (
"player" text,
"gp" real,
"k_ret" real,
"kr_yds" real,
"kr_avg" text,
"kr_td" real,
"kr_lg" real,
"p_ret" real,
"pr_yds" real,
"pr_avg" text,
"pr_td" real,
"pr_lg" real,
"mfg_ret" real,
"mfg_yds" real,
"mfg_avg" text,
"mfg_lg" real,
"mfg_td" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who's average is 24.8?`:
```sql
|
SELECT "pr_avg" FROM "returning" WHERE "kr_lg"=49; |
## Task
Generate a SQL query to answer the following question:
`What is the pr avg, when kr lg is 49?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "returning" (
"player" text,
"gp" real,
"k_ret" real,
"kr_yds" real,
"kr_avg" text,
"kr_td" real,
"kr_lg" real,
"p_ret" real,
"pr_yds" real,
"pr_avg" text,
"pr_td" real,
"pr_lg" real,
"mfg_ret" real,
"mfg_yds" real,
"mfg_avg" text,
"mfg_lg" real,
"mfg_td" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the pr avg, when kr lg is 49?`:
```sql
|
SELECT "population_2010" FROM "municipalities" WHERE "municipality"='San Jacinto'; |
## Task
Generate a SQL query to answer the following question:
`what is the population where municipality is san jacinto?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "municipalities" (
"municipality" text,
"income_class" text,
"district" text,
"population_2010" real,
"area_km" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the population where municipality is san jacinto?`:
```sql
|
SELECT "income_class" FROM "municipalities" WHERE "area_km"=75; |
## Task
Generate a SQL query to answer the following question:
`what is the income class for area 75?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "municipalities" (
"municipality" text,
"income_class" text,
"district" text,
"population_2010" real,
"area_km" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the income class for area 75?`:
```sql
|
SELECT "area_km" FROM "municipalities" WHERE "municipality"='Labrador'; |
## Task
Generate a SQL query to answer the following question:
`what is th area where the municipaity is labrador?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "municipalities" (
"municipality" text,
"income_class" text,
"district" text,
"population_2010" real,
"area_km" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is th area where the municipaity is labrador?`:
```sql
|
SELECT "municipality" FROM "municipalities" WHERE "area_km"=73; |
## Task
Generate a SQL query to answer the following question:
`what is the municipality where the area is 73?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "municipalities" (
"municipality" text,
"income_class" text,
"district" text,
"population_2010" real,
"area_km" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the municipality where the area is 73?`:
```sql
|
SELECT "equipment" FROM "riders" WHERE "bike_no"=6; |
## Task
Generate a SQL query to answer the following question:
`Name the equipment for bike number 6`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "riders" (
"position" real,
"driver_passenger" text,
"equipment" text,
"bike_no" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the equipment for bike number 6`:
```sql
|
SELECT "driver_passenger" FROM "riders" WHERE "points"=394; |
## Task
Generate a SQL query to answer the following question:
`Name the driver passenger for 394 points`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "riders" (
"position" real,
"driver_passenger" text,
"equipment" text,
"bike_no" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the driver passenger for 394 points`:
```sql
|
SELECT "equipment" FROM "riders" WHERE "bike_no"=3; |
## Task
Generate a SQL query to answer the following question:
`Name the equipment for bike number being 3`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "riders" (
"position" real,
"driver_passenger" text,
"equipment" text,
"bike_no" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the equipment for bike number being 3`:
```sql
|
SELECT "reason_for_change" FROM "table1_1694492_2" WHERE "district"='New York 10th'; |
## Task
Generate a SQL query to answer the following question:
`In district New York 10th, what was the reason for change?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1694492_2" (
"district" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `In district New York 10th, what was the reason for change?`:
```sql
|
SELECT "reason_for_change" FROM "table1_1694505_4" WHERE "district"='Wisconsin 2nd'; |
## Task
Generate a SQL query to answer the following question:
`In the district Wisconsin 2nd, what was the reason for change?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1694505_4" (
"district" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the district Wisconsin 2nd, what was the reason for change?`:
```sql
|
SELECT MIN("age_30_39") FROM "sterilization_operations_by_age_date" WHERE "age_20_29"=593; |
## Task
Generate a SQL query to answer the following question:
`Name the least age 30-39 where age 20-29 is 593`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sterilization_operations_by_age_date" (
"date_of_sterilization" text,
"age_10_19" real,
"age_20_29" real,
"age_30_39" real,
"age_40_49" real,
"age_50_59" real,
"age_unknown" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least age 30-39 where age 20-29 is 593`:
```sql
|
SELECT MIN("age_40_49") FROM "sterilization_operations_by_age_date"; |
## Task
Generate a SQL query to answer the following question:
`Name the least age 40-49`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sterilization_operations_by_age_date" (
"date_of_sterilization" text,
"age_10_19" real,
"age_20_29" real,
"age_30_39" real,
"age_40_49" real,
"age_50_59" real,
"age_unknown" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least age 40-49`:
```sql
|
SELECT "age_30_39" FROM "sterilization_operations_by_age_date" WHERE "age_10_19"=380; |
## Task
Generate a SQL query to answer the following question:
`Name the age 30-39 and age 10-19 380`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sterilization_operations_by_age_date" (
"date_of_sterilization" text,
"age_10_19" real,
"age_20_29" real,
"age_30_39" real,
"age_40_49" real,
"age_50_59" real,
"age_unknown" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the age 30-39 and age 10-19 380`:
```sql
|
SELECT "score" FROM "game_log" WHERE "num"='4'; |
## Task
Generate a SQL query to answer the following question:
`Name the score for number 4`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"num" text,
"date" text,
"at_vs" text,
"opponent" text,
"score" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the score for number 4`:
```sql
|
SELECT COUNT("chester") FROM "religious_group_breakdown" WHERE "religion"='Hindu'; |
## Task
Generate a SQL query to answer the following question:
`How many numbers were recorded for Chester when the religion was Hindu?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "religious_group_breakdown" (
"religion" text,
"chester" text,
"congleton" text,
"crewe_and_nantwich" text,
"ellesmere_port_and_neston" text,
"macclesfield" text,
"vale_royal" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many numbers were recorded for Chester when the religion was Hindu?`:
```sql
|
SELECT MIN("earnings") FROM "pga_tour_results"; |
## Task
Generate a SQL query to answer the following question:
`what was Casey Martin's minimum yearly earnings?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pga_tour_results" (
"year" real,
"tournaments_played" real,
"cuts_made" real,
"wins" real,
"best_finish" text,
"earnings" real,
"money_list_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `what was Casey Martin's minimum yearly earnings?`:
```sql
|
SELECT "money_list_rank" FROM "pga_tour_results" WHERE "best_finish"='T-65'; |
## Task
Generate a SQL query to answer the following question:
`when Casey Martin's best finish was t-65, where did he land in the money list rankings?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pga_tour_results" (
"year" real,
"tournaments_played" real,
"cuts_made" real,
"wins" real,
"best_finish" text,
"earnings" real,
"money_list_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `when Casey Martin's best finish was t-65, where did he land in the money list rankings?`:
```sql
|
SELECT MAX("wins") FROM "pga_tour_results"; |
## Task
Generate a SQL query to answer the following question:
`how many times did Casey Martin win?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pga_tour_results" (
"year" real,
"tournaments_played" real,
"cuts_made" real,
"wins" real,
"best_finish" text,
"earnings" real,
"money_list_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many times did Casey Martin win?`:
```sql
|
SELECT COUNT("air_dates") FROM "table1_16976547_2" WHERE "cycle_no"='05'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of air dates for 05 cycle`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_16976547_2" (
"cycle_no" text,
"air_dates" text,
"reward" text,
"immunity" text,
"eliminated" text,
"vote" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of air dates for 05 cycle`:
```sql
|
SELECT "vote" FROM "table1_16976547_2" WHERE "eliminated"='Gigit'; |
## Task
Generate a SQL query to answer the following question:
`Name the vote for gigit`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_16976547_2" (
"cycle_no" text,
"air_dates" text,
"reward" text,
"immunity" text,
"eliminated" text,
"vote" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the vote for gigit`:
```sql
|
SELECT "finish" FROM "table1_16976547_2" WHERE "eliminated"='Patani'; |
## Task
Generate a SQL query to answer the following question:
`Name the finish for patani`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_16976547_2" (
"cycle_no" text,
"air_dates" text,
"reward" text,
"immunity" text,
"eliminated" text,
"vote" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the finish for patani`:
```sql
|
SELECT COUNT("immunity") FROM "table1_16976547_2" WHERE "cycle_no"='13'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of immunity for cycle number of 13`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_16976547_2" (
"cycle_no" text,
"air_dates" text,
"reward" text,
"immunity" text,
"eliminated" text,
"vote" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of immunity for cycle number of 13`:
```sql
|
SELECT "new_returning_same_network" FROM "programs_returning_during_2000" WHERE "previous_network"='NBC'; |
## Task
Generate a SQL query to answer the following question:
`For the NBC network, what was the new/returning/same network status?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "programs_returning_during_2000" (
"show" text,
"last_aired" real,
"previous_network" text,
"retitled_as_same" text,
"new_returning_same_network" text,
"returning" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the NBC network, what was the new/returning/same network status?`:
```sql
|
SELECT "show" FROM "programs_returning_during_2000" WHERE "new_returning_same_network"='Syndication'; |
## Task
Generate a SQL query to answer the following question:
`Which show was sent to syndication for its new/returning/same network.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "programs_returning_during_2000" (
"show" text,
"last_aired" real,
"previous_network" text,
"retitled_as_same" text,
"new_returning_same_network" text,
"returning" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which show was sent to syndication for its new/returning/same network.`:
```sql
|
SELECT "new_returning_same_network" FROM "programs_returning_during_2000" WHERE "show"='This Week in Baseball'; |
## Task
Generate a SQL query to answer the following question:
`What is the new/returning/same network name for This Week in Baseball?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "programs_returning_during_2000" (
"show" text,
"last_aired" real,
"previous_network" text,
"retitled_as_same" text,
"new_returning_same_network" text,
"returning" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the new/returning/same network name for This Week in Baseball?`:
```sql
|
SELECT "show" FROM "programs_returning_during_2000" WHERE "previous_network"='The Family Channel'; |
## Task
Generate a SQL query to answer the following question:
`Which show as previously on The Family Channel?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "programs_returning_during_2000" (
"show" text,
"last_aired" real,
"previous_network" text,
"retitled_as_same" text,
"new_returning_same_network" text,
"returning" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which show as previously on The Family Channel?`:
```sql
|
SELECT "retitled_as_same" FROM "programs_returning_during_2000" WHERE "last_aired"=1958; |
## Task
Generate a SQL query to answer the following question:
`Did the name change for the program last aired in 1958?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "programs_returning_during_2000" (
"show" text,
"last_aired" real,
"previous_network" text,
"retitled_as_same" text,
"new_returning_same_network" text,
"returning" text
);
### SQL
Given the database schema, here is the SQL query that answers `Did the name change for the program last aired in 1958?`:
```sql
|
SELECT "rating" FROM "u_s_nielsen_ratings" WHERE "rank_overall"='190'; |
## Task
Generate a SQL query to answer the following question:
`What was the rating of the episode with an overall ranking of 190?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_nielsen_ratings" (
"episode_number" real,
"episode" text,
"rating" text,
"share" real,
"rating_share_18_49" text,
"viewers_millions" text,
"rank_overall" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the rating of the episode with an overall ranking of 190?`:
```sql
|
SELECT "rating" FROM "u_s_nielsen_ratings" WHERE "episode"='\"110\"'; |
## Task
Generate a SQL query to answer the following question:
`What was the rating of episode titled "110"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_nielsen_ratings" (
"episode_number" real,
"episode" text,
"rating" text,
"share" real,
"rating_share_18_49" text,
"viewers_millions" text,
"rank_overall" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the rating of episode titled "110"?`:
```sql
|
SELECT MAX("share") FROM "u_s_nielsen_ratings" WHERE "episode"='\"113\"'; |
## Task
Generate a SQL query to answer the following question:
`How much were the shares during the episode "113"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_nielsen_ratings" (
"episode_number" real,
"episode" text,
"rating" text,
"share" real,
"rating_share_18_49" text,
"viewers_millions" text,
"rank_overall" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much were the shares during the episode "113"?`:
```sql
|
SELECT COUNT("share") FROM "u_s_nielsen_ratings" WHERE "viewers_millions"='3.11'; |
## Task
Generate a SQL query to answer the following question:
`How many were the shares when the viewers reached 3.11 million?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_nielsen_ratings" (
"episode_number" real,
"episode" text,
"rating" text,
"share" real,
"rating_share_18_49" text,
"viewers_millions" text,
"rank_overall" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many were the shares when the viewers reached 3.11 million?`:
```sql
|
SELECT "saka_era" FROM "comparative_table_showing_corresponding_" WHERE "in_malayalam"='മിഥുനം'; |
## Task
Generate a SQL query to answer the following question:
`Name the saka era for malayalam മിഥുനം`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparative_table_showing_corresponding_" (
"months_in_malayalam_era" text,
"in_malayalam" text,
"gregorian_calendar" text,
"tamil_calendar" text,
"saka_era" text,
"sign_of_zodiac" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the saka era for malayalam മിഥുനം`:
```sql
|
SELECT "months_in_malayalam_era" FROM "comparative_table_showing_corresponding_" WHERE "in_malayalam"='കുംഭം'; |
## Task
Generate a SQL query to answer the following question:
`Name the months in the malayalam era for കുംഭം`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparative_table_showing_corresponding_" (
"months_in_malayalam_era" text,
"in_malayalam" text,
"gregorian_calendar" text,
"tamil_calendar" text,
"saka_era" text,
"sign_of_zodiac" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the months in the malayalam era for കുംഭം`:
```sql
|
SELECT "sign_of_zodiac" FROM "comparative_table_showing_corresponding_" WHERE "tamil_calendar"='Chithirai'; |
## Task
Generate a SQL query to answer the following question:
`Name the sign of zodiac for chithirai`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparative_table_showing_corresponding_" (
"months_in_malayalam_era" text,
"in_malayalam" text,
"gregorian_calendar" text,
"tamil_calendar" text,
"saka_era" text,
"sign_of_zodiac" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sign of zodiac for chithirai`:
```sql
|
SELECT "saka_era" FROM "comparative_table_showing_corresponding_" WHERE "sign_of_zodiac"='Pisces'; |
## Task
Generate a SQL query to answer the following question:
`Name the saka era for sign of zodiac being pisces`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparative_table_showing_corresponding_" (
"months_in_malayalam_era" text,
"in_malayalam" text,
"gregorian_calendar" text,
"tamil_calendar" text,
"saka_era" text,
"sign_of_zodiac" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the saka era for sign of zodiac being pisces`:
```sql
|
SELECT COUNT("gregorian_calendar") FROM "comparative_table_showing_corresponding_" WHERE "sign_of_zodiac"='Gemini'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of gregorian calenda rof gemini`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparative_table_showing_corresponding_" (
"months_in_malayalam_era" text,
"in_malayalam" text,
"gregorian_calendar" text,
"tamil_calendar" text,
"saka_era" text,
"sign_of_zodiac" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of gregorian calenda rof gemini`:
```sql
|
SELECT "high_rebounds" FROM "game_log" WHERE "high_assists"='Raymond Felton (12)'; |
## Task
Generate a SQL query to answer the following question:
`For High Assists of Raymond Felton (12), who were the High rebounds?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `For High Assists of Raymond Felton (12), who were the High rebounds?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "team"='Philadelphia'; |
## Task
Generate a SQL query to answer the following question:
`On what date was the team Philadelphia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the team Philadelphia?`:
```sql
|
SELECT "high_rebounds" FROM "game_log" WHERE "high_assists"='D. J. Augustin (8)'; |
## Task
Generate a SQL query to answer the following question:
`Who was the high rebound for the high assists of d. j. augustin (8)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the high rebound for the high assists of d. j. augustin (8)?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "high_rebounds"='Gerald Wallace (14)'; |
## Task
Generate a SQL query to answer the following question:
`What was the final score of the game with gerald wallace (14) as the High Rebound?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score of the game with gerald wallace (14) as the High Rebound?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "game"=15; |
## Task
Generate a SQL query to answer the following question:
`What was the final score in game 15? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score in game 15? `:
```sql
|
SELECT "high_assists" FROM "game_log" WHERE "team"='Miami'; |
## Task
Generate a SQL query to answer the following question:
`Who had the most assists and how many did they have in the game against Miami? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the most assists and how many did they have in the game against Miami? `:
```sql
|
SELECT "location_attendance" FROM "game_log" WHERE "game"=55; |
## Task
Generate a SQL query to answer the following question:
`Name the location attendance for game 55`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the location attendance for game 55`:
```sql
|
SELECT "high_rebounds" FROM "game_log" WHERE "game"=46; |
## Task
Generate a SQL query to answer the following question:
`Who got the game high rebounds in game 46?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who got the game high rebounds in game 46?`:
```sql
|
SELECT COUNT("score") FROM "game_log" WHERE "game"=37; |
## Task
Generate a SQL query to answer the following question:
`How many scores are listed for game 37?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many scores are listed for game 37?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "team"='Milwaukee'; |
## Task
Generate a SQL query to answer the following question:
`What date was the opposing team Milwaukee?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the opposing team Milwaukee?`:
```sql
|
SELECT "pressure_in_h_pa_mbar" FROM "mean_free_path_in_kinetic_theory" WHERE "vacuum_range"='Ultra high vacuum'; |
## Task
Generate a SQL query to answer the following question:
`What is the pressure in ultra high vacuum?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mean_free_path_in_kinetic_theory" (
"vacuum_range" text,
"pressure_in_h_pa_mbar" text,
"molecules_cm_3" text,
"molecules_m_3" text,
"mean_free_path" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the pressure in ultra high vacuum?`:
```sql
|
SELECT COUNT("nightly_rank") FROM "ratings" WHERE "episode_number_production_number"='06 1-06'; |
## Task
Generate a SQL query to answer the following question:
`what is the nightly rank where the episode number production number is 06 1-06?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ratings" (
"episode_number_production_number" text,
"title" text,
"sydney" real,
"melbourne" real,
"brisbane" real,
"adelaide" real,
"perth" real,
"total" real,
"weekly_rank" text,
"nightly_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the nightly rank where the episode number production number is 06 1-06?`:
```sql
|
SELECT COUNT("weekly_rank") FROM "ratings" WHERE "total"=1980000; |
## Task
Generate a SQL query to answer the following question:
`what is the number of weekly rank where the total is 1980000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ratings" (
"episode_number_production_number" text,
"title" text,
"sydney" real,
"melbourne" real,
"brisbane" real,
"adelaide" real,
"perth" real,
"total" real,
"weekly_rank" text,
"nightly_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the number of weekly rank where the total is 1980000?`:
```sql
|
SELECT "high_assists" FROM "game_log" WHERE "game"=70; |
## Task
Generate a SQL query to answer the following question:
`Name the high assists for 70 game`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the high assists for 70 game`:
```sql
|
SELECT "pe_h_e_j" FROM "subdivisions" WHERE "chinese"='前金區'; |
## Task
Generate a SQL query to answer the following question:
`Name the pe̍h-ōe-jī for 前金區`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "subdivisions" (
"no" real,
"hanyu" text,
"tongyong" text,
"pe_h_e_j" text,
"chinese" text,
"area_km" text,
"no_of_villages" real,
"population_2010" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the pe̍h-ōe-jī for 前金區`:
```sql
|
SELECT "no_of_villages" FROM "subdivisions" WHERE "hanyu"='Mituo'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of villages for mituo`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "subdivisions" (
"no" real,
"hanyu" text,
"tongyong" text,
"pe_h_e_j" text,
"chinese" text,
"area_km" text,
"no_of_villages" real,
"population_2010" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of villages for mituo`:
```sql
|
SELECT "no" FROM "subdivisions" WHERE "population_2010"=171906; |
## Task
Generate a SQL query to answer the following question:
`Name the number where population 2010 is 171906`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "subdivisions" (
"no" real,
"hanyu" text,
"tongyong" text,
"pe_h_e_j" text,
"chinese" text,
"area_km" text,
"no_of_villages" real,
"population_2010" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number where population 2010 is 171906`:
```sql
|
SELECT "tongyong" FROM "subdivisions" WHERE "chinese"='湖內區'; |
## Task
Generate a SQL query to answer the following question:
`Name the tongyong for chinese of 湖內區`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "subdivisions" (
"no" real,
"hanyu" text,
"tongyong" text,
"pe_h_e_j" text,
"chinese" text,
"area_km" text,
"no_of_villages" real,
"population_2010" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the tongyong for chinese of 湖內區`:
```sql
|
SELECT COUNT("tongyong") FROM "subdivisions" WHERE "hanyu"='Qiaotou'; |
## Task
Generate a SQL query to answer the following question:
`Name the tongyong for qiaotou`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "subdivisions" (
"no" real,
"hanyu" text,
"tongyong" text,
"pe_h_e_j" text,
"chinese" text,
"area_km" text,
"no_of_villages" real,
"population_2010" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the tongyong for qiaotou`:
```sql
|
SELECT "pixels" FROM "table1_1701371_2" WHERE "hardware_colours"=8; |
## Task
Generate a SQL query to answer the following question:
`How many pixels would be found in a hardware colour of 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1701371_2" (
"graphics_mode" real,
"char_cells" text,
"pixels" text,
"hardware_colours" real,
"used_kb" real,
"map" text,
"type" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many pixels would be found in a hardware colour of 8?`:
```sql
|
SELECT "char_cells" FROM "table1_1701371_2" WHERE "hardware_colours"=8; |
## Task
Generate a SQL query to answer the following question:
`If hardware colours is 8 what would the char cells be?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1701371_2" (
"graphics_mode" real,
"char_cells" text,
"pixels" text,
"hardware_colours" real,
"used_kb" real,
"map" text,
"type" text
);
### SQL
Given the database schema, here is the SQL query that answers `If hardware colours is 8 what would the char cells be?`:
```sql
|
SELECT "year_ceremony" FROM "table1_17025328_1" WHERE "original_title"='Le Confessional'; |
## Task
Generate a SQL query to answer the following question:
`Name the year for le confessional`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_17025328_1" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the year for le confessional`:
```sql
|
SELECT "year_ceremony" FROM "table1_17025328_1" WHERE "original_title"='Les portes tournantes'; |
## Task
Generate a SQL query to answer the following question:
`Name the year for les portes tournantes`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_17025328_1" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the year for les portes tournantes`:
```sql
|
SELECT COUNT("pf") FROM "standings" WHERE "skip"='Jennifer Jones'; |
## Task
Generate a SQL query to answer the following question:
`How many values are in the PF cell when Jennifer Jones is skip?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "standings" (
"province" text,
"skip" text,
"w" real,
"l" real,
"pf" real,
"pa" real,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many values are in the PF cell when Jennifer Jones is skip?`:
```sql
|
SELECT MAX("pf") FROM "standings" WHERE "skip"='Shannon Kleibrink'; |
## Task
Generate a SQL query to answer the following question:
`How many points for did the team with Shannon Kleibrink as skip score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "standings" (
"province" text,
"skip" text,
"w" real,
"l" real,
"pf" real,
"pa" real,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points for did the team with Shannon Kleibrink as skip score?`:
```sql
|
SELECT MAX("w") FROM "standings" WHERE "l"=5; |
## Task
Generate a SQL query to answer the following question:
`Of the teams that lost 5 games, what is the highest number of wins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "standings" (
"province" text,
"skip" text,
"w" real,
"l" real,
"pf" real,
"pa" real,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Of the teams that lost 5 games, what is the highest number of wins?`:
```sql
|
SELECT MAX("ends_lost") FROM "standings"; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number of ends lost?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "standings" (
"province" text,
"skip" text,
"w" real,
"l" real,
"pf" real,
"pa" real,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of ends lost?`:
```sql
|
SELECT COUNT("ends_won") FROM "standings" WHERE "pa"=39; |
## Task
Generate a SQL query to answer the following question:
`How many values are in the ends won cell corresponding to a PA of 39?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "standings" (
"province" text,
"skip" text,
"w" real,
"l" real,
"pf" real,
"pa" real,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many values are in the ends won cell corresponding to a PA of 39?`:
```sql
|
SELECT MIN("pf") FROM "standings" WHERE "skip"='Glenn Howard'; |
## Task
Generate a SQL query to answer the following question:
`When the skip is Glenn Howard, what the minimum PF?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "standings" (
"province" text,
"skip" text,
"w" real,
"l" real,
"pf" real,
"pa" real,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the skip is Glenn Howard, what the minimum PF?`:
```sql
|
SELECT "skip" FROM "standings" WHERE "shot_pct"=88 AND "province"='Alberta'; |
## Task
Generate a SQL query to answer the following question:
`Who was Alberta's skip when the shot pct was 88?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "standings" (
"province" text,
"skip" text,
"w" real,
"l" real,
"pf" real,
"pa" real,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was Alberta's skip when the shot pct was 88?`:
```sql
|
SELECT MAX("pa") FROM "standings"; |
## Task
Generate a SQL query to answer the following question:
`What is the top Points Allowed?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "standings" (
"province" text,
"skip" text,
"w" real,
"l" real,
"pf" real,
"pa" real,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the top Points Allowed?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.