output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "netflix" FROM "season_4_2004" WHERE "series_ep"='4-11'; |
## Task
Generate a SQL query to answer the following question:
`What is the netflix code where the series and episode are 4-11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_4_2004" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the netflix code where the series and episode are 4-11?`:
```sql
|
SELECT "segment_b" FROM "season_21_2013" WHERE "segment_c"='Artificial Flowers'; |
## Task
Generate a SQL query to answer the following question:
`What is listed in segment b when segment c is artificial flowers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_21_2013" (
"series_ep" text,
"episode" real,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is listed in segment b when segment c is artificial flowers?`:
```sql
|
SELECT "segment_c" FROM "season_21_2013" WHERE "segment_d"='Motorcycle Brake Locks'; |
## Task
Generate a SQL query to answer the following question:
`What are the titles of segment c when segment d is motorcycle brake locks?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_21_2013" (
"series_ep" text,
"episode" real,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the titles of segment c when segment d is motorcycle brake locks?`:
```sql
|
SELECT "segment_c" FROM "season_21_2013" WHERE "series_ep"='21-08'; |
## Task
Generate a SQL query to answer the following question:
`What are the titles of segment c for series episode is 21-08?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_21_2013" (
"series_ep" text,
"episode" real,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the titles of segment c for series episode is 21-08?`:
```sql
|
SELECT "segment_b" FROM "season_21_2013" WHERE "segment_c"='Standby Generators (Part 1)'; |
## Task
Generate a SQL query to answer the following question:
`What are the titles of segment b when segment c is standby generators (part 1)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_21_2013" (
"series_ep" text,
"episode" real,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the titles of segment b when segment c is standby generators (part 1)?`:
```sql
|
SELECT "segment_a" FROM "season_21_2013" WHERE "series_ep"='21-12'; |
## Task
Generate a SQL query to answer the following question:
`What are the titles of segment a for series episode 21-12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_21_2013" (
"series_ep" text,
"episode" real,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the titles of segment a for series episode 21-12?`:
```sql
|
SELECT COUNT("episode") FROM "season_3_2003" WHERE "segment_c"='Phyllo Dough'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of episode for phyllo dough`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_3_2003" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of episode for phyllo dough`:
```sql
|
SELECT "segment_d" FROM "season_3_2003" WHERE "segment_a"='Combination Locks'; |
## Task
Generate a SQL query to answer the following question:
`Name the segment d for combination locks`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_3_2003" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the segment d for combination locks`:
```sql
|
SELECT "series_ep" FROM "season_3_2003" WHERE "netflix"='S02E08'; |
## Task
Generate a SQL query to answer the following question:
`Name the series ep for s02e08`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_3_2003" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the series ep for s02e08`:
```sql
|
SELECT "segment_c" FROM "season_3_2003" WHERE "segment_b"='Couscous'; |
## Task
Generate a SQL query to answer the following question:
`Name the segment c for couscous`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_3_2003" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the segment c for couscous`:
```sql
|
SELECT "segment_c" FROM "season_3_2003" WHERE "segment_b"='Pottery'; |
## Task
Generate a SQL query to answer the following question:
`Name the segment c for pottery`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_3_2003" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the segment c for pottery`:
```sql
|
SELECT "segment_d" FROM "season_3_2003" WHERE "segment_c"='Chicken'; |
## Task
Generate a SQL query to answer the following question:
`Name the segment d for chicken`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_3_2003" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the segment d for chicken`:
```sql
|
SELECT "segment_a" FROM "season_6_2005_2006" WHERE "segment_c"='s Sailboard'; |
## Task
Generate a SQL query to answer the following question:
`What is the Segment A for when Segment C is s Sailboard?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_6_2005_2006" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Segment A for when Segment C is s Sailboard?`:
```sql
|
SELECT "segment_b" FROM "season_6_2005_2006" WHERE "segment_d"='s Hammock'; |
## Task
Generate a SQL query to answer the following question:
`What is the Segment B when the Segment D is s Hammock?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_6_2005_2006" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Segment B when the Segment D is s Hammock?`:
```sql
|
SELECT "netflix" FROM "season_6_2005_2006" WHERE "segment_b"='s Highlighter'; |
## Task
Generate a SQL query to answer the following question:
`What is the Netflix Episode when the Segment B is s Highlighter?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_6_2005_2006" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Netflix Episode when the Segment B is s Highlighter?`:
```sql
|
SELECT "location" FROM "bowl_games" WHERE "num"=1; |
## Task
Generate a SQL query to answer the following question:
`What is the location of #1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bowl_games" (
"num" real,
"season" real,
"bowl_game" text,
"result" text,
"opponent" text,
"stadium" text,
"location" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location of #1?`:
```sql
|
SELECT "stadium" FROM "bowl_games" WHERE "bowl_game"='1994 Gator Bowl'; |
## Task
Generate a SQL query to answer the following question:
`What stadium was the 1994 Gator Bowl in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bowl_games" (
"num" real,
"season" real,
"bowl_game" text,
"result" text,
"opponent" text,
"stadium" text,
"location" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What stadium was the 1994 Gator Bowl in?`:
```sql
|
SELECT "stadium" FROM "bowl_games" WHERE "attendance"='75,406'; |
## Task
Generate a SQL query to answer the following question:
`What is the stadium where the attendance was 75,406?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bowl_games" (
"num" real,
"season" real,
"bowl_game" text,
"result" text,
"opponent" text,
"stadium" text,
"location" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the stadium where the attendance was 75,406?`:
```sql
|
SELECT MAX("num") FROM "bowl_games" WHERE "attendance"='79,280'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of the bowl game when attendance was 79,280?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bowl_games" (
"num" real,
"season" real,
"bowl_game" text,
"result" text,
"opponent" text,
"stadium" text,
"location" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of the bowl game when attendance was 79,280?`:
```sql
|
SELECT "attendance" FROM "bowl_games" WHERE "location"='Gainesville, FL'; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance of the bowl game in Gainesville, Fl?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bowl_games" (
"num" real,
"season" real,
"bowl_game" text,
"result" text,
"opponent" text,
"stadium" text,
"location" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance of the bowl game in Gainesville, Fl?`:
```sql
|
SELECT COUNT("median_monthly_per_capita_labour_force_income_hkd") FROM "table1_151994_1" WHERE "population_2006_est"=365540; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of median income for population 2006 for 365540`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_151994_1" (
"district" text,
"population_2006_est" real,
"area_km" text,
"density_km" text,
"median_monthly_per_capita_labour_force_income_hkd" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of median income for population 2006 for 365540`:
```sql
|
SELECT MIN("derby_county_goals") FROM "minor_competitions"; |
## Task
Generate a SQL query to answer the following question:
`Name the minimum derby county goals`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "minor_competitions" (
"competition" text,
"played" real,
"derby_county" real,
"draw" real,
"nottingham_forest" real,
"derby_county_goals" real,
"nottingham_forest_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the minimum derby county goals`:
```sql
|
SELECT MAX("derby_county") FROM "minor_competitions"; |
## Task
Generate a SQL query to answer the following question:
`Name the most derby county`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "minor_competitions" (
"competition" text,
"played" real,
"derby_county" real,
"draw" real,
"nottingham_forest" real,
"derby_county_goals" real,
"nottingham_forest_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most derby county`:
```sql
|
SELECT "segment_b" FROM "season_9_2007" WHERE "segment_c"='British Police Helmets'; |
## Task
Generate a SQL query to answer the following question:
`In episode 115 what is seen being made before British police helmets?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_9_2007" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `In episode 115 what is seen being made before British police helmets?`:
```sql
|
SELECT COUNT("segment_c") FROM "season_9_2007" WHERE "segment_d"='Pedal Steel Guitars'; |
## Task
Generate a SQL query to answer the following question:
`How many times was leather introduced before pedal steel guitars in episode 111?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_9_2007" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was leather introduced before pedal steel guitars in episode 111?`:
```sql
|
SELECT "engines" FROM "american_seafoods_company_fleet" WHERE "former_names"='State Trust'; |
## Task
Generate a SQL query to answer the following question:
`Name the engines for state trust`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "american_seafoods_company_fleet" (
"name" text,
"length" text,
"tonnage" real,
"built_by" text,
"year" real,
"engines" text,
"horsepowers" real,
"former_names" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the engines for state trust`:
```sql
|
SELECT "details_of_journey" FROM "table1_15211468_1" WHERE "episode_title"='\"Zambezi Express\"'; |
## Task
Generate a SQL query to answer the following question:
`What are the details of the journey for the episode titled "Zambezi Express"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_15211468_1" (
"episode_no" text,
"episode_title" text,
"uk_broadcast_date" text,
"presenter" text,
"details_of_journey" text,
"countries_visited" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the details of the journey for the episode titled "Zambezi Express"?`:
```sql
|
SELECT "uk_broadcast_date" FROM "table1_15211468_1" WHERE "countries_visited"='USA'; |
## Task
Generate a SQL query to answer the following question:
`What was the UK broadcast date for the episode which visited USA?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_15211468_1" (
"episode_no" text,
"episode_title" text,
"uk_broadcast_date" text,
"presenter" text,
"details_of_journey" text,
"countries_visited" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the UK broadcast date for the episode which visited USA?`:
```sql
|
SELECT "details_of_journey" FROM "table1_15211468_1" WHERE "episode_title"='\"Deccan\"'; |
## Task
Generate a SQL query to answer the following question:
`What are the details of the journey for the episode titled "Deccan"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_15211468_1" (
"episode_no" text,
"episode_title" text,
"uk_broadcast_date" text,
"presenter" text,
"details_of_journey" text,
"countries_visited" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the details of the journey for the episode titled "Deccan"?`:
```sql
|
SELECT "countries_visited" FROM "table1_15211468_1" WHERE "presenter"='Brian B. Thompson'; |
## Task
Generate a SQL query to answer the following question:
`What countries are visited in the episode presented by Brian B. Thompson?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_15211468_1" (
"episode_no" text,
"episode_title" text,
"uk_broadcast_date" text,
"presenter" text,
"details_of_journey" text,
"countries_visited" text
);
### SQL
Given the database schema, here is the SQL query that answers `What countries are visited in the episode presented by Brian B. Thompson?`:
```sql
|
SELECT "episode_title" FROM "table1_15211468_1" WHERE "episode_no"='#1.4'; |
## Task
Generate a SQL query to answer the following question:
`What is the episode title for the episode numbered #1.4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_15211468_1" (
"episode_no" text,
"episode_title" text,
"uk_broadcast_date" text,
"presenter" text,
"details_of_journey" text,
"countries_visited" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the episode title for the episode numbered #1.4?`:
```sql
|
SELECT "social_democratic_party" FROM "summary_of_election_results_1973_2003" WHERE "control"='Labour'; |
## Task
Generate a SQL query to answer the following question:
`Name the social democratic party for labour`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary_of_election_results_1973_2003" (
"election" real,
"labour" real,
"conservative" real,
"liberal" real,
"social_democratic_party" real,
"social_and_liberal_democrats_liberal_democrats" real,
"independent" real,
"green" real,
"other" text,
"control" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the social democratic party for labour`:
```sql
|
SELECT MIN("labour") FROM "summary_of_election_results_1973_2003" WHERE "social_and_liberal_democrats_liberal_democrats"=14; |
## Task
Generate a SQL query to answer the following question:
`Name the least leabour for social and liberal democrats being 14`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary_of_election_results_1973_2003" (
"election" real,
"labour" real,
"conservative" real,
"liberal" real,
"social_democratic_party" real,
"social_and_liberal_democrats_liberal_democrats" real,
"independent" real,
"green" real,
"other" text,
"control" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least leabour for social and liberal democrats being 14`:
```sql
|
SELECT "written_by" FROM "table1_15284274_1" WHERE "directed_by"='Will Waring' AND "no_in_season"=11; |
## Task
Generate a SQL query to answer the following question:
`Who wrote episode 11, of which was directed by Will Waring?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_15284274_1" (
"no_in_season" real,
"no_disc" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote episode 11, of which was directed by Will Waring?`:
```sql
|
SELECT "written_by" FROM "table1_15284274_1" WHERE "directed_by"='Peter Woeste'; |
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode directed by Peter Woeste?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_15284274_1" (
"no_in_season" real,
"no_disc" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode directed by Peter Woeste?`:
```sql
|
SELECT "director" FROM "submissions" WHERE "original_title"='Pecado Mortal'; |
## Task
Generate a SQL query to answer the following question:
`Who was the director of Pecado Mortal`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" real,
"original_title" text,
"english_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the director of Pecado Mortal`:
```sql
|
SELECT "original_title" FROM "submissions" WHERE "director"='Bruno Barreto' AND "year_ceremony"=1989; |
## Task
Generate a SQL query to answer the following question:
`What was the original title of the Bruno Barreto film in 1989`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" real,
"original_title" text,
"english_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the original title of the Bruno Barreto film in 1989`:
```sql
|
SELECT "result" FROM "submissions" WHERE "director"='Fernando Meirelles'; |
## Task
Generate a SQL query to answer the following question:
`What was the result for director Fernando Meirelles`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" real,
"original_title" text,
"english_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result for director Fernando Meirelles`:
```sql
|
SELECT "original_title" FROM "submissions" WHERE "director"='Suzana Amaral'; |
## Task
Generate a SQL query to answer the following question:
`Name the original title of the Suzana Amaral film`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" real,
"original_title" text,
"english_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the original title of the Suzana Amaral film`:
```sql
|
SELECT COUNT("tujia_population") FROM "by_county" WHERE "pct_of_chinas_tujia_population"='0.52%'; |
## Task
Generate a SQL query to answer the following question:
`If 0.52% is the percentage of the population in chinas tujia what is the overall amount of tujia population?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_county" (
"province" text,
"prefecture" text,
"county" text,
"tujia_population" real,
"pct_of_chinas_tujia_population" text
);
### SQL
Given the database schema, here is the SQL query that answers `If 0.52% is the percentage of the population in chinas tujia what is the overall amount of tujia population?`:
```sql
|
SELECT "county" FROM "by_county" WHERE "pct_of_chinas_tujia_population"='4.83%' AND "tujia_population"=388035; |
## Task
Generate a SQL query to answer the following question:
`When tujia population equals 388035 people and the % of the population is 4.83% which country is it?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_county" (
"province" text,
"prefecture" text,
"county" text,
"tujia_population" real,
"pct_of_chinas_tujia_population" text
);
### SQL
Given the database schema, here is the SQL query that answers `When tujia population equals 388035 people and the % of the population is 4.83% which country is it?`:
```sql
|
SELECT "pct_of_chinas_tujia_population" FROM "by_county" WHERE "tujia_population"=462444; |
## Task
Generate a SQL query to answer the following question:
`When the tujia population is 462444 what is the overall percentage of the chinas tujia population? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_county" (
"province" text,
"prefecture" text,
"county" text,
"tujia_population" real,
"pct_of_chinas_tujia_population" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the tujia population is 462444 what is the overall percentage of the chinas tujia population? `:
```sql
|
SELECT COUNT("province") FROM "by_county" WHERE "county"='Fenghuang'; |
## Task
Generate a SQL query to answer the following question:
`If the country is fenghuang how many provinces are there? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_county" (
"province" text,
"prefecture" text,
"county" text,
"tujia_population" real,
"pct_of_chinas_tujia_population" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the country is fenghuang how many provinces are there? `:
```sql
|
SELECT "pct_of_chinas_tujia_population" FROM "by_county" WHERE "county"='Yongshun'; |
## Task
Generate a SQL query to answer the following question:
`If yongshun is the county what is the overall percentage of the chinas tujia population?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_county" (
"province" text,
"prefecture" text,
"county" text,
"tujia_population" real,
"pct_of_chinas_tujia_population" text
);
### SQL
Given the database schema, here is the SQL query that answers `If yongshun is the county what is the overall percentage of the chinas tujia population?`:
```sql
|
SELECT "group_a" FROM "proposed_regions" WHERE "group_d"='Indiana'; |
## Task
Generate a SQL query to answer the following question:
`Who is in group a when indiana is in group d?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "proposed_regions" (
"region" real,
"group_a" text,
"group_b" text,
"group_c" text,
"group_d" text,
"group_e" text,
"group_f" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is in group a when indiana is in group d?`:
```sql
|
SELECT "group_a" FROM "proposed_regions" WHERE "group_d"='Indiana'; |
## Task
Generate a SQL query to answer the following question:
`Who is in group a when indiana is in group d?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "proposed_regions" (
"region" real,
"group_a" text,
"group_b" text,
"group_c" text,
"group_d" text,
"group_e" text,
"group_f" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is in group a when indiana is in group d?`:
```sql
|
SELECT "group_c" FROM "proposed_regions" WHERE "group_d"='Wisconsin'; |
## Task
Generate a SQL query to answer the following question:
`Who is in group c when wisconsin is in group d?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "proposed_regions" (
"region" real,
"group_a" text,
"group_b" text,
"group_c" text,
"group_d" text,
"group_e" text,
"group_f" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is in group c when wisconsin is in group d?`:
```sql
|
SELECT "group_c" FROM "proposed_regions" WHERE "group_e"='Iowa'; |
## Task
Generate a SQL query to answer the following question:
`Who is in group c when iowa is in group e?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "proposed_regions" (
"region" real,
"group_a" text,
"group_b" text,
"group_c" text,
"group_d" text,
"group_e" text,
"group_f" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is in group c when iowa is in group e?`:
```sql
|
SELECT "english_name" FROM "see_also" WHERE "old_bulgarian_name_transliteration"='Orach, Zarev'; |
## Task
Generate a SQL query to answer the following question:
`Name the english name for orach, zarev`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"no" real,
"english_name" text,
"bulgarian_name" text,
"bulgarian_name_transliteration" text,
"old_bulgarian_names" text,
"old_bulgarian_name_transliteration" text,
"old_bulgarian_name_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the english name for orach, zarev`:
```sql
|
SELECT "old_bulgarian_names" FROM "see_also" WHERE "bulgarian_name_transliteration"='Yuni'; |
## Task
Generate a SQL query to answer the following question:
`Name the old bulgarian names for yuni`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"no" real,
"english_name" text,
"bulgarian_name" text,
"bulgarian_name_transliteration" text,
"old_bulgarian_names" text,
"old_bulgarian_name_transliteration" text,
"old_bulgarian_name_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the old bulgarian names for yuni`:
```sql
|
SELECT "old_bulgarian_names" FROM "see_also" WHERE "bulgarian_name_transliteration"='Yanuari'; |
## Task
Generate a SQL query to answer the following question:
`Name the old bulgarian names for yanuari`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"no" real,
"english_name" text,
"bulgarian_name" text,
"bulgarian_name_transliteration" text,
"old_bulgarian_names" text,
"old_bulgarian_name_transliteration" text,
"old_bulgarian_name_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the old bulgarian names for yanuari`:
```sql
|
SELECT "bulgarian_name" FROM "see_also" WHERE "bulgarian_name_transliteration"='Mart'; |
## Task
Generate a SQL query to answer the following question:
`Name the bulgarian name for mart`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"no" real,
"english_name" text,
"bulgarian_name" text,
"bulgarian_name_transliteration" text,
"old_bulgarian_names" text,
"old_bulgarian_name_transliteration" text,
"old_bulgarian_name_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the bulgarian name for mart`:
```sql
|
SELECT "old_bulgarian_name_meaning" FROM "see_also" WHERE "old_bulgarian_name_transliteration"='Ruen, Ruy'; |
## Task
Generate a SQL query to answer the following question:
`Name the old bulgarian name for ruen, ruy`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"no" real,
"english_name" text,
"bulgarian_name" text,
"bulgarian_name_transliteration" text,
"old_bulgarian_names" text,
"old_bulgarian_name_transliteration" text,
"old_bulgarian_name_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the old bulgarian name for ruen, ruy`:
```sql
|
SELECT "old_bulgarian_name_meaning" FROM "see_also" WHERE "no"=4; |
## Task
Generate a SQL query to answer the following question:
`Name the old bulgarian name for number 4`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"no" real,
"english_name" text,
"bulgarian_name" text,
"bulgarian_name_transliteration" text,
"old_bulgarian_names" text,
"old_bulgarian_name_transliteration" text,
"old_bulgarian_name_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the old bulgarian name for number 4`:
```sql
|
SELECT "listed_owner_s" FROM "teams_and_drivers" WHERE "driver_s"='Jeremy Mayfield'; |
## Task
Generate a SQL query to answer the following question:
`Who owned the team Jeremy Mayfield raced for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams_and_drivers" (
"team" text,
"car_s" text,
"num" real,
"driver_s" text,
"primary_sponsor_s" text,
"listed_owner_s" text,
"crew_chief" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who owned the team Jeremy Mayfield raced for?`:
```sql
|
SELECT "primary_sponsor_s" FROM "teams_and_drivers" WHERE "driver_s"='Jason Leffler'; |
## Task
Generate a SQL query to answer the following question:
`Who is Jason Leffler's primary sponsor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams_and_drivers" (
"team" text,
"car_s" text,
"num" real,
"driver_s" text,
"primary_sponsor_s" text,
"listed_owner_s" text,
"crew_chief" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is Jason Leffler's primary sponsor?`:
```sql
|
SELECT COUNT("stage") FROM "classification_leadership_by_stage" WHERE "winner"='Alberto Contador' AND "points_classification"='Alberto Contador'; |
## Task
Generate a SQL query to answer the following question:
`How many stages were there where the winner and the points classification were Alberto Contador?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership_by_stage" (
"stage" real,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"combination_classification" text,
"team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many stages were there where the winner and the points classification were Alberto Contador?`:
```sql
|
SELECT COUNT("team_classification") FROM "classification_leadership_by_stage" WHERE "winner"='Alessandro Ballan'; |
## Task
Generate a SQL query to answer the following question:
`When the winner was Alessandro Ballan, how many total team classifications were there?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership_by_stage" (
"stage" real,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"combination_classification" text,
"team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the winner was Alessandro Ballan, how many total team classifications were there?`:
```sql
|
SELECT COUNT("general_classification") FROM "classification_leadership_by_stage" WHERE "team_classification"='Quick Step'; |
## Task
Generate a SQL query to answer the following question:
`When the team classification was quick step, what was the total number of general classifications?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership_by_stage" (
"stage" real,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"combination_classification" text,
"team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the team classification was quick step, what was the total number of general classifications?`:
```sql
|
SELECT "250cc_winner" FROM "grands_prix" WHERE "grand_prix"='Spanish Grand Prix'; |
## Task
Generate a SQL query to answer the following question:
`Who won the spanish grand prix?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grands_prix" (
"round" real,
"date" text,
"grand_prix" text,
"circuit" text,
"125cc_winner" text,
"250cc_winner" text,
"moto_gp_winner" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the spanish grand prix?`:
```sql
|
SELECT "date" FROM "grands_prix" WHERE "circuit"='Indianapolis'; |
## Task
Generate a SQL query to answer the following question:
`What is the date for the Indianapolis circuit?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grands_prix" (
"round" real,
"date" text,
"grand_prix" text,
"circuit" text,
"125cc_winner" text,
"250cc_winner" text,
"moto_gp_winner" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date for the Indianapolis circuit?`:
```sql
|
SELECT "250cc_winner" FROM "grands_prix" WHERE "round"=9; |
## Task
Generate a SQL query to answer the following question:
`in round 9 who was the 250cc winner?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grands_prix" (
"round" real,
"date" text,
"grand_prix" text,
"circuit" text,
"125cc_winner" text,
"250cc_winner" text,
"moto_gp_winner" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `in round 9 who was the 250cc winner?`:
```sql
|
SELECT "condition_parameter" FROM "table1_15314901_1" WHERE "velocity_angle_in_i_radians"='ln[(1 + √5)/2] ≅ 0.481'; |
## Task
Generate a SQL query to answer the following question:
`If the velocity angle is ln[(1 + √5)/2] ≅ 0.481, what is the condition/parameter?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_15314901_1" (
"condition_parameter" text,
"coordinate_velocity_v_dx_dt_in_units_of_c" text,
"velocity_angle_in_i_radians" text,
"proper_velocity_w_dx_d_in_units_of_c" text,
"lorentz_factor_dt_d_e_mc_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the velocity angle is ln[(1 + √5)/2] ≅ 0.481, what is the condition/parameter?`:
```sql
|
SELECT "coordinate_velocity_v_dx_dt_in_units_of_c" FROM "table1_15314901_1" WHERE "condition_parameter"='Rapidity of 2 hyperbolic radians'; |
## Task
Generate a SQL query to answer the following question:
`If the the condition/parameter is rapidity of 2 hyperbolic radians, what is the coordinate velocity v dx/dt in units of c?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_15314901_1" (
"condition_parameter" text,
"coordinate_velocity_v_dx_dt_in_units_of_c" text,
"velocity_angle_in_i_radians" text,
"proper_velocity_w_dx_d_in_units_of_c" text,
"lorentz_factor_dt_d_e_mc_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the the condition/parameter is rapidity of 2 hyperbolic radians, what is the coordinate velocity v dx/dt in units of c?`:
```sql
|
SELECT "velocity_angle_in_i_radians" FROM "table1_15314901_1" WHERE "coordinate_velocity_v_dx_dt_in_units_of_c"='(e 2 − 1)/(e 2 + 1) ≅ 0.761'; |
## Task
Generate a SQL query to answer the following question:
`If the coordinate velocity v dx/dt in units of c is (e 2 − 1)/(e 2 + 1) ≅ 0.761, what is the velocity angle η in i-radians?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_15314901_1" (
"condition_parameter" text,
"coordinate_velocity_v_dx_dt_in_units_of_c" text,
"velocity_angle_in_i_radians" text,
"proper_velocity_w_dx_d_in_units_of_c" text,
"lorentz_factor_dt_d_e_mc_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the coordinate velocity v dx/dt in units of c is (e 2 − 1)/(e 2 + 1) ≅ 0.761, what is the velocity angle η in i-radians?`:
```sql
|
SELECT COUNT("coordinate_velocity_v_dx_dt_in_units_of_c") FROM "table1_15314901_1" WHERE "velocity_angle_in_i_radians"='ln[2 + √5] ≅ 1.444'; |
## Task
Generate a SQL query to answer the following question:
`What is the coordinate velocity v dx/dt in units of c total number if the velocity angle η in i-radians is ln[2 + √5] ≅ 1.444?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_15314901_1" (
"condition_parameter" text,
"coordinate_velocity_v_dx_dt_in_units_of_c" text,
"velocity_angle_in_i_radians" text,
"proper_velocity_w_dx_d_in_units_of_c" text,
"lorentz_factor_dt_d_e_mc_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the coordinate velocity v dx/dt in units of c total number if the velocity angle η in i-radians is ln[2 + √5] ≅ 1.444?`:
```sql
|
SELECT "proper_velocity_w_dx_d_in_units_of_c" FROM "table1_15314901_1" WHERE "condition_parameter"='Rapidity of 1 hyperbolic radian'; |
## Task
Generate a SQL query to answer the following question:
`If the condition/parameter is rapidity of 1 hyperbolic radian, what is the proper velocity w dx/dτ in units of c?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_15314901_1" (
"condition_parameter" text,
"coordinate_velocity_v_dx_dt_in_units_of_c" text,
"velocity_angle_in_i_radians" text,
"proper_velocity_w_dx_d_in_units_of_c" text,
"lorentz_factor_dt_d_e_mc_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the condition/parameter is rapidity of 1 hyperbolic radian, what is the proper velocity w dx/dτ in units of c?`:
```sql
|
SELECT "proper_velocity_w_dx_d_in_units_of_c" FROM "table1_15314901_1" WHERE "lorentz_factor_dt_d_e_mc_2"='√5 ≅ 2.236'; |
## Task
Generate a SQL query to answer the following question:
`If the lorentz factor γ dt/dτ = e/mc 2 is √5 ≅ 2.236, what is the proper velocity w dx/dτ in units of c?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_15314901_1" (
"condition_parameter" text,
"coordinate_velocity_v_dx_dt_in_units_of_c" text,
"velocity_angle_in_i_radians" text,
"proper_velocity_w_dx_d_in_units_of_c" text,
"lorentz_factor_dt_d_e_mc_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the lorentz factor γ dt/dτ = e/mc 2 is √5 ≅ 2.236, what is the proper velocity w dx/dτ in units of c?`:
```sql
|
SELECT "school_year" FROM "individual" WHERE "class_aaaa"='Dayton'; |
## Task
Generate a SQL query to answer the following question:
`What year is dayton in class AAAA?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "individual" (
"school_year" text,
"class_a" text,
"class_aa" text,
"class_aaa" text,
"class_aaaa" text,
"class_aaaaa" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year is dayton in class AAAA?`:
```sql
|
SELECT "class_aaaaa" FROM "individual" WHERE "school_year"='1995-96'; |
## Task
Generate a SQL query to answer the following question:
`Who is in class during 1995-96?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "individual" (
"school_year" text,
"class_a" text,
"class_aa" text,
"class_aaa" text,
"class_aaaa" text,
"class_aaaaa" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is in class during 1995-96?`:
```sql
|
SELECT "year" FROM "winners" WHERE "tournament_location"='Western Turnpike Golf Course'; |
## Task
Generate a SQL query to answer the following question:
`When are all years that tournament location is Western Turnpike Golf Course?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" text,
"dates" text,
"champion" text,
"country" text,
"score" text,
"tournament_location" text,
"purse" real,
"winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `When are all years that tournament location is Western Turnpike Golf Course?`:
```sql
|
SELECT "year" FROM "winners" WHERE "champion"='Ji Min Jeong'; |
## Task
Generate a SQL query to answer the following question:
`When are all years that the champion is Ji Min Jeong?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" text,
"dates" text,
"champion" text,
"country" text,
"score" text,
"tournament_location" text,
"purse" real,
"winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `When are all years that the champion is Ji Min Jeong?`:
```sql
|
SELECT "winners_share" FROM "winners" WHERE "year"='2004'; |
## Task
Generate a SQL query to answer the following question:
`How much are all winners share ($) in the year 2004?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" text,
"dates" text,
"champion" text,
"country" text,
"score" text,
"tournament_location" text,
"purse" real,
"winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much are all winners share ($) in the year 2004?`:
```sql
|
SELECT COUNT("dates") FROM "winners" WHERE "year"='2006'; |
## Task
Generate a SQL query to answer the following question:
`When are all dates in the year 2006?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" text,
"dates" text,
"champion" text,
"country" text,
"score" text,
"tournament_location" text,
"purse" real,
"winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `When are all dates in the year 2006?`:
```sql
|
SELECT "dates" FROM "winners" WHERE "score"='205 (–8)' AND "country"='Australia'; |
## Task
Generate a SQL query to answer the following question:
`When are all dates with a score of 205 (–8) in Australia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" text,
"dates" text,
"champion" text,
"country" text,
"score" text,
"tournament_location" text,
"purse" real,
"winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `When are all dates with a score of 205 (–8) in Australia?`:
```sql
|
SELECT "dates" FROM "winners" WHERE "country"='Canada'; |
## Task
Generate a SQL query to answer the following question:
`What are all of the dates in the country of Canada?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" text,
"dates" text,
"champion" text,
"country" text,
"score" text,
"tournament_location" text,
"purse" real,
"winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are all of the dates in the country of Canada?`:
```sql
|
SELECT "dates" FROM "winners" WHERE "champion"='Jenny Gleason'; |
## Task
Generate a SQL query to answer the following question:
`When was Jenny Gleason the champion of the Northeast Delta Dental International?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"country" text,
"score" text,
"tournament_location" text,
"purse" real,
"winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `When was Jenny Gleason the champion of the Northeast Delta Dental International?`:
```sql
|
SELECT "tournament_location" FROM "winners" WHERE "champion"='Misun Cho'; |
## Task
Generate a SQL query to answer the following question:
`Where was the tournament located when Misun Cho won the championship?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"country" text,
"score" text,
"tournament_location" text,
"purse" real,
"winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the tournament located when Misun Cho won the championship?`:
```sql
|
SELECT MAX("purse") FROM "winners"; |
## Task
Generate a SQL query to answer the following question:
`What is the maximum purse prize of the Northeast Delta Dental International Championship?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"country" text,
"score" text,
"tournament_location" text,
"purse" real,
"winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum purse prize of the Northeast Delta Dental International Championship?`:
```sql
|
SELECT COUNT("purse") FROM "winners" WHERE "champion"='Jenny Shin'; |
## Task
Generate a SQL query to answer the following question:
`How many prizes were available when Jenny Shin became the champion?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"country" text,
"score" text,
"tournament_location" text,
"purse" real,
"winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many prizes were available when Jenny Shin became the champion?`:
```sql
|
SELECT "team" FROM "campeonato_paulista" WHERE "points"=21; |
## Task
Generate a SQL query to answer the following question:
`Which team had 21 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team had 21 points?`:
```sql
|
SELECT COUNT("won") FROM "campeonato_paulista" WHERE "for"=29; |
## Task
Generate a SQL query to answer the following question:
`How many games did the team with 29 for win?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games did the team with 29 for win?`:
```sql
|
SELECT MAX("won") FROM "campeonato_paulista" WHERE "team"='Palmeiras'; |
## Task
Generate a SQL query to answer the following question:
`How many games did Palmeiras win?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games did Palmeiras win?`:
```sql
|
SELECT "drawn" FROM "campeonato_paulista" WHERE "for"=41; |
## Task
Generate a SQL query to answer the following question:
`Name the drawn when for is 41`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the drawn when for is 41`:
```sql
|
SELECT COUNT("lost") FROM "campeonato_paulista" WHERE "against"=46; |
## Task
Generate a SQL query to answer the following question:
`Name the number of lost for against being 46`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of lost for against being 46`:
```sql
|
SELECT COUNT("against") FROM "campeonato_paulista" WHERE "team"='Portuguesa Santista'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of against for portuguesa santista`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of against for portuguesa santista`:
```sql
|
SELECT "won" FROM "campeonato_paulista" WHERE "difference"='33'; |
## Task
Generate a SQL query to answer the following question:
`Name the won for difference being 33`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the won for difference being 33`:
```sql
|
SELECT MIN("lost") FROM "campeonato_paulista" WHERE "team"='Corinthians'; |
## Task
Generate a SQL query to answer the following question:
`Name the most losst for corinthians`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most losst for corinthians`:
```sql
|
SELECT "r_z_arcsecond" FROM "standard_parameters" WHERE "r_y_arcsecond"='−0.247'; |
## Task
Generate a SQL query to answer the following question:
`How many values of r z (arcsecond) correspond with a r y (arcsecond) value of −0.247?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "standard_parameters" (
"region" text,
"start_datum" text,
"target_datum" text,
"c_x_metre" text,
"c_y_metre" text,
"c_z_metre" text,
"s_ppm" text,
"r_x_arcsecond" text,
"r_y_arcsecond" text,
"r_z_arcsecond" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many values of r z (arcsecond) correspond with a r y (arcsecond) value of −0.247?`:
```sql
|
SELECT "r_z_arcsecond" FROM "standard_parameters" WHERE "target_datum"='Ireland 1965'; |
## Task
Generate a SQL query to answer the following question:
`How many values of r z(arcsecond) are associated with a target datum of Ireland 1965?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "standard_parameters" (
"region" text,
"start_datum" text,
"target_datum" text,
"c_x_metre" text,
"c_y_metre" text,
"c_z_metre" text,
"s_ppm" text,
"r_x_arcsecond" text,
"r_y_arcsecond" text,
"r_z_arcsecond" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many values of r z(arcsecond) are associated with a target datum of Ireland 1965?`:
```sql
|
SELECT "muslim_pct_of_total_population" FROM "demography_and_ethnic_background" WHERE "population_of_england_and_wales_000"=49634; |
## Task
Generate a SQL query to answer the following question:
`What is the muslim percentage of the 49634 population of england and wales 000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "demography_and_ethnic_background" (
"census_year" real,
"number_of_muslims_000" real,
"population_of_england_and_wales_000" real,
"muslim_pct_of_total_population" text,
"registered_mosques" real,
"muslims_per_mosque" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the muslim percentage of the 49634 population of england and wales 000?`:
```sql
|
SELECT MAX("census_year") FROM "demography_and_ethnic_background"; |
## Task
Generate a SQL query to answer the following question:
`What is the most recent census year?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "demography_and_ethnic_background" (
"census_year" real,
"number_of_muslims_000" real,
"population_of_england_and_wales_000" real,
"muslim_pct_of_total_population" text,
"registered_mosques" real,
"muslims_per_mosque" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most recent census year?`:
```sql
|
SELECT "muslim_pct_of_total_population" FROM "demography_and_ethnic_background" WHERE "registered_mosques"=614; |
## Task
Generate a SQL query to answer the following question:
`What was the percentage of muslims during a time where there were 614 registered mosques?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "demography_and_ethnic_background" (
"census_year" real,
"number_of_muslims_000" real,
"population_of_england_and_wales_000" real,
"muslim_pct_of_total_population" text,
"registered_mosques" real,
"muslims_per_mosque" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the percentage of muslims during a time where there were 614 registered mosques?`:
```sql
|
SELECT MAX("pa") FROM "standings" WHERE "locale"='Ontario'; |
## Task
Generate a SQL query to answer the following question:
`Name the most pa for ontario `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "standings" (
"locale" 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 `Name the most pa for ontario `:
```sql
|
SELECT "ends_lost" FROM "standings" WHERE "pa"=67; |
## Task
Generate a SQL query to answer the following question:
`Name the ends lost for 67 pa`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "standings" (
"locale" 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 `Name the ends lost for 67 pa`:
```sql
|
SELECT MAX("w") FROM "standings" WHERE "ends_lost"=49; |
## Task
Generate a SQL query to answer the following question:
`Name the most w when ends lost is 49`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "standings" (
"locale" 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 `Name the most w when ends lost is 49`:
```sql
|
SELECT COUNT("ends_won") FROM "standings" WHERE "l"=4 AND "stolen_ends"=17; |
## Task
Generate a SQL query to answer the following question:
`Name the number ends won when L is 4 and stolen ends is 17`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "standings" (
"locale" 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 `Name the number ends won when L is 4 and stolen ends is 17`:
```sql
|
SELECT "date" FROM "tournament_results" WHERE "tournament"='JELD-WEN Tradition'; |
## Task
Generate a SQL query to answer the following question:
`What day was Jeld-Wen Tradition held?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"purse" real,
"winner" text,
"score" text,
"1st_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day was Jeld-Wen Tradition held?`:
```sql
|
SELECT "date" FROM "tournament_results" WHERE "winner"='Bernhard Langer (2)'; |
## Task
Generate a SQL query to answer the following question:
`What day did Bernhard Langer (2) win?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"purse" real,
"winner" text,
"score" text,
"1st_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day did Bernhard Langer (2) win?`:
```sql
|
SELECT "date" FROM "tournament_results" WHERE "location"='Alabama'; |
## Task
Generate a SQL query to answer the following question:
`On what day was the tournament in Alabama?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"purse" real,
"winner" text,
"score" text,
"1st_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what day was the tournament in Alabama?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.