output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT COUNT("try_bonus") FROM "2009_2010_table" WHERE "won"='11'; |
## Task
Generate a SQL query to answer the following question:
`what amount of try bonus where the game was won by 11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `what amount of try bonus where the game was won by 11?`:
```sql
|
SELECT COUNT("tries_against") FROM "2009_2010_table" WHERE "points_for"='325'; |
## Task
Generate a SQL query to answer the following question:
`what is the total amount of tries where the points were 325?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the total amount of tries where the points were 325?`:
```sql
|
SELECT "points_against" FROM "2008_2009_table" WHERE "points"='Points'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the column points against?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the column points against?`:
```sql
|
SELECT "points_for" FROM "2008_2009_table" WHERE "points"='53'; |
## Task
Generate a SQL query to answer the following question:
`How many points for when the points was 53?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points for when the points was 53?`:
```sql
|
SELECT "played" FROM "2008_2009_table" WHERE "points_against"='321'; |
## Task
Generate a SQL query to answer the following question:
`What is the played total when the points against was 321?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the played total when the points against was 321?`:
```sql
|
SELECT "tries_for" FROM "2008_2009_table" WHERE "points_against"='547'; |
## Task
Generate a SQL query to answer the following question:
`How many tries for when the points against was 547?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many tries for when the points against was 547?`:
```sql
|
SELECT "drawn" FROM "2008_2009_table" WHERE "club"='Tylorstown RFC'; |
## Task
Generate a SQL query to answer the following question:
`How many total games drawn for club tylorstown rfc?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many total games drawn for club tylorstown rfc?`:
```sql
|
SELECT COUNT("autonomous_community") FROM "renewable_electricity_in_spain_g_wh_2006" WHERE "total_renewable_generation"=1375; |
## Task
Generate a SQL query to answer the following question:
`How many communities had a total renewable generation of 1375?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "renewable_electricity_in_spain_g_wh_2006" (
"autonomous_community" text,
"hydroelectric_power" real,
"wind_power" real,
"solar_power" real,
"biomass_power" real,
"solid_waste_power" real,
"total_renewable_generation" real,
"total_electricity_demand" real,
"pct_renewable_of_total_electricity_demand" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many communities had a total renewable generation of 1375?`:
```sql
|
SELECT "total_electricity_demand" FROM "renewable_electricity_in_spain_g_wh_2006" WHERE "pct_renewable_of_total_electricity_demand"='2.2%'; |
## Task
Generate a SQL query to answer the following question:
`What is the total demand for electricity when the demand for renewable electricity demand is 2.2%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "renewable_electricity_in_spain_g_wh_2006" (
"autonomous_community" text,
"hydroelectric_power" real,
"wind_power" real,
"solar_power" real,
"biomass_power" real,
"solid_waste_power" real,
"total_renewable_generation" real,
"total_electricity_demand" real,
"pct_renewable_of_total_electricity_demand" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total demand for electricity when the demand for renewable electricity demand is 2.2%?`:
```sql
|
SELECT MIN("hydroelectric_power") FROM "renewable_electricity_in_spain_g_wh_2006" WHERE "pct_renewable_of_total_electricity_demand"='21.5%'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest numbered hydroelectric power when the renewable electricity demand is 21.5%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "renewable_electricity_in_spain_g_wh_2006" (
"autonomous_community" text,
"hydroelectric_power" real,
"wind_power" real,
"solar_power" real,
"biomass_power" real,
"solid_waste_power" real,
"total_renewable_generation" real,
"total_electricity_demand" real,
"pct_renewable_of_total_electricity_demand" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest numbered hydroelectric power when the renewable electricity demand is 21.5%?`:
```sql
|
SELECT "autonomous_community" FROM "renewable_electricity_in_spain_g_wh_2006" WHERE "wind_power"=1042; |
## Task
Generate a SQL query to answer the following question:
`What is the community with a wind power of 1042?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "renewable_electricity_in_spain_g_wh_2006" (
"autonomous_community" text,
"hydroelectric_power" real,
"wind_power" real,
"solar_power" real,
"biomass_power" real,
"solid_waste_power" real,
"total_renewable_generation" real,
"total_electricity_demand" real,
"pct_renewable_of_total_electricity_demand" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the community with a wind power of 1042?`:
```sql
|
SELECT COUNT("group") FROM "2002_03_season_as_a_six_year_old" WHERE "distance"='2020 m'; |
## Task
Generate a SQL query to answer the following question:
`How many races were for a distance of 2020 m?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2002_03_season_as_a_six_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" real,
"jockey" text,
"winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many races were for a distance of 2020 m?`:
```sql
|
SELECT "winner_2nd" FROM "2002_03_season_as_a_six_year_old" WHERE "venue"='Belmont'; |
## Task
Generate a SQL query to answer the following question:
`Who was the winner of the race at Belmont?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2002_03_season_as_a_six_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" real,
"jockey" text,
"winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner of the race at Belmont?`:
```sql
|
SELECT "date" FROM "2002_03_season_as_a_six_year_old" WHERE "result"='6th'; |
## Task
Generate a SQL query to answer the following question:
`On what date did Northerly place 6th?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2002_03_season_as_a_six_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" real,
"jockey" text,
"winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date did Northerly place 6th?`:
```sql
|
SELECT "weight_kg" FROM "2002_03_season_as_a_six_year_old" WHERE "race"='Ranvet Stakes'; |
## Task
Generate a SQL query to answer the following question:
`What was the weight in kg on the day of the race at Ranvet Stakes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2002_03_season_as_a_six_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" real,
"jockey" text,
"winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the weight in kg on the day of the race at Ranvet Stakes?`:
```sql
|
SELECT "result" FROM "2002_03_season_as_a_six_year_old" WHERE "date"='19 Oct 2002'; |
## Task
Generate a SQL query to answer the following question:
`What was Northerly's result at the race on 19 Oct 2002?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2002_03_season_as_a_six_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" real,
"jockey" text,
"winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Northerly's result at the race on 19 Oct 2002?`:
```sql
|
SELECT "distance" FROM "2002_03_season_as_a_six_year_old" WHERE "group"='G3'; |
## Task
Generate a SQL query to answer the following question:
`What was the distance of the race in which Northerly raced in group G3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2002_03_season_as_a_six_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" real,
"jockey" text,
"winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the distance of the race in which Northerly raced in group G3?`:
```sql
|
SELECT "software_executable_space_protection" FROM "security_features" WHERE "distribution"='Gentoo'; |
## Task
Generate a SQL query to answer the following question:
`what's the software executable space protection with dbeingtribution being gentoo`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "security_features" (
"distribution" text,
"compile_time_buffer_checks" text,
"mandatory_access_control" text,
"software_executable_space_protection" text,
"grsecurity" text,
"rsbac" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the software executable space protection with dbeingtribution being gentoo`:
```sql
|
SELECT "distribution" FROM "security_features" WHERE "grsecurity"='No'; |
## Task
Generate a SQL query to answer the following question:
`what's the dbeingtribution with grsecurity being no`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "security_features" (
"distribution" text,
"compile_time_buffer_checks" text,
"mandatory_access_control" text,
"software_executable_space_protection" text,
"grsecurity" text,
"rsbac" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the dbeingtribution with grsecurity being no`:
```sql
|
SELECT "grsecurity" FROM "security_features" WHERE "distribution"='Debian / Ubuntu'; |
## Task
Generate a SQL query to answer the following question:
`what's the grsecurity with dbeingtribution being debian / ubuntu`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "security_features" (
"distribution" text,
"compile_time_buffer_checks" text,
"mandatory_access_control" text,
"software_executable_space_protection" text,
"grsecurity" text,
"rsbac" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the grsecurity with dbeingtribution being debian / ubuntu`:
```sql
|
SELECT "software_executable_space_protection" FROM "security_features" WHERE "distribution"='Gentoo'; |
## Task
Generate a SQL query to answer the following question:
`what's the software executable space protection with dbeingtribution being gentoo`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "security_features" (
"distribution" text,
"compile_time_buffer_checks" text,
"mandatory_access_control" text,
"software_executable_space_protection" text,
"grsecurity" text,
"rsbac" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the software executable space protection with dbeingtribution being gentoo`:
```sql
|
SELECT "distribution" FROM "security_features" WHERE "grsecurity"='Optional' AND "compile_time_buffer_checks"='Yes'; |
## Task
Generate a SQL query to answer the following question:
`what's the dbeingtribution with grsecurity being optional and compile time buffer checks being yes`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "security_features" (
"distribution" text,
"compile_time_buffer_checks" text,
"mandatory_access_control" text,
"software_executable_space_protection" text,
"grsecurity" text,
"rsbac" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the dbeingtribution with grsecurity being optional and compile time buffer checks being yes`:
```sql
|
SELECT "distribution" FROM "security_features" WHERE "rsbac"='Unknown'; |
## Task
Generate a SQL query to answer the following question:
`what's the dbeingtribution with rsbac being unknown`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "security_features" (
"distribution" text,
"compile_time_buffer_checks" text,
"mandatory_access_control" text,
"software_executable_space_protection" text,
"grsecurity" text,
"rsbac" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the dbeingtribution with rsbac being unknown`:
```sql
|
SELECT "2002_commission" FROM "government" WHERE "district"='District 3'; |
## Task
Generate a SQL query to answer the following question:
`Who is on the 2002 commission from district 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "government" (
"district" text,
"2012_commission" text,
"2010_commission" text,
"2007_commission" text,
"2002_commission" text,
"1999_commission" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is on the 2002 commission from district 3?`:
```sql
|
SELECT "district" FROM "government" WHERE "2012_commission"='Charlie Oliver'; |
## Task
Generate a SQL query to answer the following question:
`What district for charlie oliver of the 2012 commission?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "government" (
"district" text,
"2012_commission" text,
"2010_commission" text,
"2007_commission" text,
"2002_commission" text,
"1999_commission" text
);
### SQL
Given the database schema, here is the SQL query that answers `What district for charlie oliver of the 2012 commission?`:
```sql
|
SELECT "2012_commission" FROM "government" WHERE "1999_commission"='John Wilborn'; |
## Task
Generate a SQL query to answer the following question:
`Who was on the 2012 commission and the 1999 commission with john wilborn?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "government" (
"district" text,
"2012_commission" text,
"2010_commission" text,
"2007_commission" text,
"2002_commission" text,
"1999_commission" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was on the 2012 commission and the 1999 commission with john wilborn?`:
```sql
|
SELECT COUNT("2002_commission") FROM "government" WHERE "2012_commission"='Gloria Moon'; |
## Task
Generate a SQL query to answer the following question:
`How many people named gloria moon were on the 2002 and 2012 commissions?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "government" (
"district" text,
"2012_commission" text,
"2010_commission" text,
"2007_commission" text,
"2002_commission" text,
"1999_commission" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people named gloria moon were on the 2002 and 2012 commissions?`:
```sql
|
SELECT "otherspct" FROM "by_parish" WHERE "parish"='Tangipahoa'; |
## Task
Generate a SQL query to answer the following question:
`what's the others% with parbeingh being tangipahoa`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_parish" (
"parish" text,
"bushnum" real,
"bushpct" text,
"kerrynum" real,
"kerrypct" text,
"othersnum" real,
"otherspct" text,
"totalnum" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the others% with parbeingh being tangipahoa`:
```sql
|
SELECT MAX("bushnum") FROM "by_parish" WHERE "otherspct"='1.57%'; |
## Task
Generate a SQL query to answer the following question:
`what is the maximum bush# with others% being 1.57%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_parish" (
"parish" text,
"bushnum" real,
"bushpct" text,
"kerrynum" real,
"kerrypct" text,
"othersnum" real,
"otherspct" text,
"totalnum" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the maximum bush# with others% being 1.57%`:
```sql
|
SELECT COUNT("bushpct") FROM "by_parish" WHERE "totalnum"=191269; |
## Task
Generate a SQL query to answer the following question:
` how many bush% with total# being 191269`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_parish" (
"parish" text,
"bushnum" real,
"bushpct" text,
"kerrynum" real,
"kerrypct" text,
"othersnum" real,
"otherspct" text,
"totalnum" real
);
### SQL
Given the database schema, here is the SQL query that answers ` how many bush% with total# being 191269`:
```sql
|
SELECT MAX("game") FROM "game_log"; |
## Task
Generate a SQL query to answer the following question:
`What is the highest game number?`
### 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 is the highest game number?`:
```sql
|
SELECT COUNT("weight_kg") FROM "2002_03_season_as_a_four_year_old" WHERE "winner_2nd"='1st - Defier' AND "venue"='Randwick'; |
## Task
Generate a SQL query to answer the following question:
`How many entries are there for weight when the winner is 1st - defier and venue is randwick?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2002_03_season_as_a_four_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" text,
"time" text,
"jockey" text,
"winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many entries are there for weight when the winner is 1st - defier and venue is randwick?`:
```sql
|
SELECT "jockey" FROM "2002_03_season_as_a_four_year_old" WHERE "venue"='Rosehill' AND "weight_kg"='57.5'; |
## Task
Generate a SQL query to answer the following question:
`Who was the jockey at Rosehill and the weight was 57.5 kg?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2002_03_season_as_a_four_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" text,
"time" text,
"jockey" text,
"winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the jockey at Rosehill and the weight was 57.5 kg?`:
```sql
|
SELECT "winner_2nd" FROM "2002_03_season_as_a_four_year_old" WHERE "time"='1:36.30'; |
## Task
Generate a SQL query to answer the following question:
`When the time is 1:36.30 what shows as winner?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2002_03_season_as_a_four_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" text,
"time" text,
"jockey" text,
"winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the time is 1:36.30 what shows as winner?`:
```sql
|
SELECT "income_poverty_f" FROM "notes" WHERE "exports_usd_mn_2011"=2470; |
## Task
Generate a SQL query to answer the following question:
`What was the depravitiy of earnings where international sales was 2470?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "notes" (
"district" text,
"2010_population_000" real,
"2008_gdp_usd_bn_a" text,
"2008_gdp_per_capita_usd_a" real,
"agri_culture_b" text,
"mining_b" text,
"manufac_turing_b" text,
"services_cons_truction_b" text,
"exports_usd_mn_2011" real,
"median_mo_salary_usd_a_e" real,
"vehicles_per_1000_d" real,
"income_poverty_f" text,
"structural_poverty_g" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the depravitiy of earnings where international sales was 2470?`:
```sql
|
SELECT MAX("2010_population_000") FROM "notes" WHERE "agri_culture_b"='6.9'; |
## Task
Generate a SQL query to answer the following question:
`What was head count in 2010 where the farm production is 6.9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "notes" (
"district" text,
"2010_population_000" real,
"2008_gdp_usd_bn_a" text,
"2008_gdp_per_capita_usd_a" real,
"agri_culture_b" text,
"mining_b" text,
"manufac_turing_b" text,
"services_cons_truction_b" text,
"exports_usd_mn_2011" real,
"median_mo_salary_usd_a_e" real,
"vehicles_per_1000_d" real,
"income_poverty_f" text,
"structural_poverty_g" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was head count in 2010 where the farm production is 6.9?`:
```sql
|
SELECT COUNT("district") FROM "notes" WHERE "income_poverty_f"='27.7'; |
## Task
Generate a SQL query to answer the following question:
`How many districts had an depravity level of 27.7`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "notes" (
"district" text,
"2010_population_000" real,
"2008_gdp_usd_bn_a" text,
"2008_gdp_per_capita_usd_a" real,
"agri_culture_b" text,
"mining_b" text,
"manufac_turing_b" text,
"services_cons_truction_b" text,
"exports_usd_mn_2011" real,
"median_mo_salary_usd_a_e" real,
"vehicles_per_1000_d" real,
"income_poverty_f" text,
"structural_poverty_g" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many districts had an depravity level of 27.7`:
```sql
|
SELECT "income_poverty_f" FROM "notes" WHERE "services_cons_truction_b"='72.5'; |
## Task
Generate a SQL query to answer the following question:
`How low was the income where services is 72.5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "notes" (
"district" text,
"2010_population_000" real,
"2008_gdp_usd_bn_a" text,
"2008_gdp_per_capita_usd_a" real,
"agri_culture_b" text,
"mining_b" text,
"manufac_turing_b" text,
"services_cons_truction_b" text,
"exports_usd_mn_2011" real,
"median_mo_salary_usd_a_e" real,
"vehicles_per_1000_d" real,
"income_poverty_f" text,
"structural_poverty_g" text
);
### SQL
Given the database schema, here is the SQL query that answers `How low was the income where services is 72.5?`:
```sql
|
SELECT "income_poverty_f" FROM "notes" WHERE "district"='San Juan'; |
## Task
Generate a SQL query to answer the following question:
`How low was the San Juan income?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "notes" (
"district" text,
"2010_population_000" real,
"2008_gdp_usd_bn_a" text,
"2008_gdp_per_capita_usd_a" real,
"agri_culture_b" text,
"mining_b" text,
"manufac_turing_b" text,
"services_cons_truction_b" text,
"exports_usd_mn_2011" real,
"median_mo_salary_usd_a_e" real,
"vehicles_per_1000_d" real,
"income_poverty_f" text,
"structural_poverty_g" text
);
### SQL
Given the database schema, here is the SQL query that answers `How low was the San Juan income?`:
```sql
|
SELECT "high_assists" FROM "game_log" WHERE "date"='January 22'; |
## Task
Generate a SQL query to answer the following question:
`who is the player with high assists on january 22?`
### 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 is the player with high assists on january 22?`:
```sql
|
SELECT COUNT("score") FROM "game_log" WHERE "date"='January 3'; |
## Task
Generate a SQL query to answer the following question:
`what is the total score for the date of january 3?`
### 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 is the total score for the date of january 3?`:
```sql
|
SELECT "team" FROM "game_log" WHERE "record"='15-63'; |
## Task
Generate a SQL query to answer the following question:
`Which team was in a game with a record of 15-63?`
### 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 `Which team was in a game with a record of 15-63?`:
```sql
|
SELECT "team" FROM "game_log" WHERE "date"='April 1'; |
## Task
Generate a SQL query to answer the following question:
`Which team played on April 1?`
### 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 `Which team played on April 1?`:
```sql
|
SELECT COUNT("high_points") FROM "game_log" WHERE "game"=66; |
## Task
Generate a SQL query to answer the following question:
`How many players led Game #66 in scoring?`
### 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 players led Game #66 in scoring?`:
```sql
|
SELECT "high_points" FROM "game_log" WHERE "record"='13-49'; |
## Task
Generate a SQL query to answer the following question:
`Who scored the most points in the game where the Raptors became 13-49?`
### 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 scored the most points in the game where the Raptors became 13-49?`:
```sql
|
SELECT "team" FROM "game_log" WHERE "record"='13-48'; |
## Task
Generate a SQL query to answer the following question:
`Who did the Raptors play against when their record was 13-48?`
### 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 did the Raptors play against when their record was 13-48?`:
```sql
|
SELECT "high_points" FROM "game_log" WHERE "record"='1-4'; |
## Task
Generate a SQL query to answer the following question:
`Who was the high scorer in the game when the team was 1-4?`
### 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 scorer in the game when the team was 1-4?`:
```sql
|
SELECT "location_attendance" FROM "game_log" WHERE "team"='Minnesota'; |
## Task
Generate a SQL query to answer the following question:
`Where did they play and how many attended in the game against minnesota?`
### 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 `Where did they play and how many attended in the game against minnesota?`:
```sql
|
SELECT "high_points" FROM "game_log" WHERE "high_assists"='Dee Brown (5)'; |
## Task
Generate a SQL query to answer the following question:
`Who had the high point total when dee brown (5) had the high assist total?`
### 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 high point total when dee brown (5) had the high assist total?`:
```sql
|
SELECT COUNT("record") FROM "game_log" WHERE "date"='January 14'; |
## Task
Generate a SQL query to answer the following question:
`How many records are there for the games that took place on January 14.`
### 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 records are there for the games that took place on January 14.`:
```sql
|
SELECT "high_points" FROM "game_log" WHERE "team"='Seattle'; |
## Task
Generate a SQL query to answer the following question:
`Which players scored the most points when the opposing team was Seattle and how many points did they score?`
### 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 `Which players scored the most points when the opposing team was Seattle and how many points did they score?`:
```sql
|
SELECT "location_attendance" FROM "game_log" WHERE "team"='Portland'; |
## Task
Generate a SQL query to answer the following question:
`What was the location and attendance of the game against Portland?`
### 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 location and attendance of the game against Portland?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "score"='W 108–93 (OT)'; |
## Task
Generate a SQL query to answer the following question:
`What was the record when the score was w 108–93 (ot)?`
### 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 record when the score was w 108–93 (ot)?`:
```sql
|
SELECT "1985_1990" FROM "urban_population_growth_pct" WHERE "1995_2000"='1.46'; |
## Task
Generate a SQL query to answer the following question:
`what's the 1985-1990 with 1995-2000 being 1.46`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "urban_population_growth_pct" (
"region_country" text,
"1985_1990" text,
"1990_1995" text,
"1995_2000" text,
"2000_2005" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the 1985-1990 with 1995-2000 being 1.46`:
```sql
|
SELECT "2000_2005" FROM "urban_population_growth_pct" WHERE "1985_1990"='3.78'; |
## Task
Generate a SQL query to answer the following question:
`what's the 2000-2005 with 1985-1990 being 3.78`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "urban_population_growth_pct" (
"region_country" text,
"1985_1990" text,
"1990_1995" text,
"1995_2000" text,
"2000_2005" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the 2000-2005 with 1985-1990 being 3.78`:
```sql
|
SELECT "1985_1990" FROM "urban_population_growth_pct" WHERE "2000_2005"='2.52'; |
## Task
Generate a SQL query to answer the following question:
`what's the 1985-1990 with 2000-2005 being 2.52`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "urban_population_growth_pct" (
"region_country" text,
"1985_1990" text,
"1990_1995" text,
"1995_2000" text,
"2000_2005" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the 1985-1990 with 2000-2005 being 2.52`:
```sql
|
SELECT "region_country" FROM "urban_population_growth_pct" WHERE "2000_2005"='2.61'; |
## Task
Generate a SQL query to answer the following question:
`what's the region/country with 2000-2005 being 2.61`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "urban_population_growth_pct" (
"region_country" text,
"1985_1990" text,
"1990_1995" text,
"1995_2000" text,
"2000_2005" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the region/country with 2000-2005 being 2.61`:
```sql
|
SELECT "1995_2000" FROM "urban_population_growth_pct" WHERE "1985_1990"='1.24'; |
## Task
Generate a SQL query to answer the following question:
`what's the 1995-2000 with 1985-1990 being 1.24`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "urban_population_growth_pct" (
"region_country" text,
"1985_1990" text,
"1990_1995" text,
"1995_2000" text,
"2000_2005" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the 1995-2000 with 1985-1990 being 1.24`:
```sql
|
SELECT "1995_2000" FROM "urban_population_growth_pct" WHERE "1990_1995"='3.08'; |
## Task
Generate a SQL query to answer the following question:
`what's the 1995-2000 with 1990-1995 being 3.08`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "urban_population_growth_pct" (
"region_country" text,
"1985_1990" text,
"1990_1995" text,
"1995_2000" text,
"2000_2005" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the 1995-2000 with 1990-1995 being 3.08`:
```sql
|
SELECT MAX("total_population") FROM "catholicism_in_africa" WHERE "pct_catholic"='1.17%'; |
## Task
Generate a SQL query to answer the following question:
`what is the maximum total population with % catholic being 1.17%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "catholicism_in_africa" (
"region" text,
"total_population" real,
"catholic" real,
"pct_catholic" text,
"pct_of_global_catholic_pop" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the maximum total population with % catholic being 1.17%`:
```sql
|
SELECT COUNT("total_population") FROM "catholicism_in_africa" WHERE "catholic"<31370649.1405057 AND "region"='North Africa'; |
## Task
Generate a SQL query to answer the following question:
` how many total population with catholic being smaller than 31370649.1405057 and region being north africa`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "catholicism_in_africa" (
"region" text,
"total_population" real,
"catholic" real,
"pct_catholic" text,
"pct_of_global_catholic_pop" text
);
### SQL
Given the database schema, here is the SQL query that answers ` how many total population with catholic being smaller than 31370649.1405057 and region being north africa`:
```sql
|
SELECT "wii_points" FROM "table1_13663434_1" WHERE "title_and_source"='Tsūshin Taikyoku: Igo Dōjō 2700-Mon'; |
## Task
Generate a SQL query to answer the following question:
`what's the wii points with title and source being tsūshin taikyoku: igo dōjō 2700-mon`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13663434_1" (
"title_and_source" text,
"developer_s_publisher_s" text,
"jp_210" text,
"na_350" text,
"pal_295" text,
"wii_points" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the wii points with title and source being tsūshin taikyoku: igo dōjō 2700-mon`:
```sql
|
SELECT "na_350" FROM "table1_13663434_1" WHERE "title_and_source"='Paper Wars: Cannon Fodder'; |
## Task
Generate a SQL query to answer the following question:
`what's the na -350- with title and source being paper wars: cannon fodder`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13663434_1" (
"title_and_source" text,
"developer_s_publisher_s" text,
"jp_210" text,
"na_350" text,
"pal_295" text,
"wii_points" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the na -350- with title and source being paper wars: cannon fodder`:
```sql
|
SELECT COUNT("title_and_source") FROM "table1_13663434_1" WHERE "pal_295"='Yes' AND "jp_210"='Yes'; |
## Task
Generate a SQL query to answer the following question:
` how many title and source with pal -295- being yes and jp -210- being yes`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13663434_1" (
"title_and_source" text,
"developer_s_publisher_s" text,
"jp_210" text,
"na_350" text,
"pal_295" text,
"wii_points" text
);
### SQL
Given the database schema, here is the SQL query that answers ` how many title and source with pal -295- being yes and jp -210- being yes`:
```sql
|
SELECT "jp_210" FROM "table1_13663434_1" WHERE "title_and_source"='Fun! Fun! Minigolf'; |
## Task
Generate a SQL query to answer the following question:
`what's the jp -210- with title and source being fun! fun! minigolf`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13663434_1" (
"title_and_source" text,
"developer_s_publisher_s" text,
"jp_210" text,
"na_350" text,
"pal_295" text,
"wii_points" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the jp -210- with title and source being fun! fun! minigolf`:
```sql
|
SELECT COUNT("na_350") FROM "table1_13663434_1" WHERE "title_and_source"='Bokumo Sekai wo Sukuitai: Battle Tournament'; |
## Task
Generate a SQL query to answer the following question:
` how many na -350- with title and source being bokumo sekai wo sukuitai: battle tournament`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13663434_1" (
"title_and_source" text,
"developer_s_publisher_s" text,
"jp_210" text,
"na_350" text,
"pal_295" text,
"wii_points" text
);
### SQL
Given the database schema, here is the SQL query that answers ` how many na -350- with title and source being bokumo sekai wo sukuitai: battle tournament`:
```sql
|
SELECT "gtu_winning_team" FROM "table1_13657883_2" WHERE "gto_winning_team"='#48 Greenwood Racing'; |
## Task
Generate a SQL query to answer the following question:
`What was the gtu winning team when the gto winning team was #48 greenwood racing?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13657883_2" (
"rnd" real,
"circuit" text,
"gto_winning_team" text,
"gtu_winning_team" text,
"to_winning_team" text,
"tu_winning_team" text,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the gtu winning team when the gto winning team was #48 greenwood racing?`:
```sql
|
SELECT "to_winning_team" FROM "table1_13657883_2" WHERE "tu_winning_team"='#16 2002'; |
## Task
Generate a SQL query to answer the following question:
`What was the to winnning team when the tu winning team was #16 2002?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13657883_2" (
"rnd" real,
"circuit" text,
"gto_winning_team" text,
"gtu_winning_team" text,
"to_winning_team" text,
"tu_winning_team" text,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the to winnning team when the tu winning team was #16 2002?`:
```sql
|
SELECT "rnd" FROM "table1_13657883_2" WHERE "gto_winning_team"='#48 Greenwood Racing'; |
## Task
Generate a SQL query to answer the following question:
`What round was the gto winning team #48 greenwood racing?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13657883_2" (
"rnd" real,
"circuit" text,
"gto_winning_team" text,
"gtu_winning_team" text,
"to_winning_team" text,
"tu_winning_team" text,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round was the gto winning team #48 greenwood racing?`:
```sql
|
SELECT "to_winning_team" FROM "table1_13657883_2" WHERE "tu_winning_team"='Joe Amato Carson Baird'; |
## Task
Generate a SQL query to answer the following question:
`What was the to winning team when the tu winning team was joe amato carson baird?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13657883_2" (
"rnd" real,
"circuit" text,
"gto_winning_team" text,
"gtu_winning_team" text,
"to_winning_team" text,
"tu_winning_team" text,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the to winning team when the tu winning team was joe amato carson baird?`:
```sql
|
SELECT "to_winning_team" FROM "table1_13657749_2" WHERE "gtu_winning_team"='#27 Don Lindley'; |
## Task
Generate a SQL query to answer the following question:
`Who is GTU Winning Team's #27 Don Lindley's TO Winning Team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13657749_2" (
"rnd" real,
"circuit" text,
"gto_winning_team" text,
"gtu_winning_team" text,
"to_winning_team" text,
"tu_winning_team" text,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is GTU Winning Team's #27 Don Lindley's TO Winning Team?`:
```sql
|
SELECT "rnd" FROM "table1_13657749_2" WHERE "gto_winning_team"='Mike Keyser'; |
## Task
Generate a SQL query to answer the following question:
`What is GTO Winning Team Mike Keyser's RND number?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13657749_2" (
"rnd" real,
"circuit" text,
"gto_winning_team" text,
"gtu_winning_team" text,
"to_winning_team" text,
"tu_winning_team" text,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is GTO Winning Team Mike Keyser's RND number?`:
```sql
|
SELECT "to_winning_team" FROM "table1_13657749_2" WHERE "gto_winning_team"='Gene Felton'; |
## Task
Generate a SQL query to answer the following question:
`Who is Gene Felton's TO Winning Team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13657749_2" (
"rnd" real,
"circuit" text,
"gto_winning_team" text,
"gtu_winning_team" text,
"to_winning_team" text,
"tu_winning_team" text,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is Gene Felton's TO Winning Team?`:
```sql
|
SELECT "results" FROM "table1_13657749_2" WHERE "gto_winning_team"='Peter Gregg Hurley Haywood'; |
## Task
Generate a SQL query to answer the following question:
`What is Peter Gregg Hurley Haywood's results?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13657749_2" (
"rnd" real,
"circuit" text,
"gto_winning_team" text,
"gtu_winning_team" text,
"to_winning_team" text,
"tu_winning_team" text,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Peter Gregg Hurley Haywood's results?`:
```sql
|
SELECT MIN("goals_olimpia") FROM "head_to_head"; |
## Task
Generate a SQL query to answer the following question:
`What was the least amount for Goals Olimpia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "head_to_head" (
"tournament" text,
"matches" real,
"wins_olimpia" real,
"empates" real,
"wins_cerro" real,
"goals_olimpia" real,
"goals_cerro" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the least amount for Goals Olimpia?`:
```sql
|
SELECT COUNT("goals_olimpia") FROM "head_to_head" WHERE "matches"=32; |
## Task
Generate a SQL query to answer the following question:
`How many goals Olimpia recorded for 32 matches?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "head_to_head" (
"tournament" text,
"matches" real,
"wins_olimpia" real,
"empates" real,
"wins_cerro" real,
"goals_olimpia" real,
"goals_cerro" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many goals Olimpia recorded for 32 matches?`:
```sql
|
SELECT "matches" FROM "head_to_head" WHERE "goals_olimpia"=149; |
## Task
Generate a SQL query to answer the following question:
`What was the number of matches when the Goals Olimpia was 149?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "head_to_head" (
"tournament" text,
"matches" real,
"wins_olimpia" real,
"empates" real,
"wins_cerro" real,
"goals_olimpia" real,
"goals_cerro" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the number of matches when the Goals Olimpia was 149?`:
```sql
|
SELECT "2200_k_wh_k_wp_y" FROM "table1_13690575_4" WHERE "1600_k_wh_k_wp_y"='26.3'; |
## Task
Generate a SQL query to answer the following question:
`At the rate where 1600kwh/kwp•y is 26.3, what is the value of 2200 kwh/kwp•y?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13690575_4" (
"cost" text,
"2400_k_wh_k_wp_y" text,
"2200_k_wh_k_wp_y" text,
"2000_k_wh_k_wp_y" text,
"1800_k_wh_k_wp_y" text,
"1600_k_wh_k_wp_y" text,
"1400_k_wh_k_wp_y" text,
"1200_k_wh_k_wp_y" text,
"1000_k_wh_k_wp_y" text,
"800_k_wh_k_wp_y" text
);
### SQL
Given the database schema, here is the SQL query that answers `At the rate where 1600kwh/kwp•y is 26.3, what is the value of 2200 kwh/kwp•y?`:
```sql
|
SELECT "2400_k_wh_k_wp_y" FROM "table1_13690575_4" WHERE "2200_k_wh_k_wp_y"='11.8'; |
## Task
Generate a SQL query to answer the following question:
`At the rate where 2200 kwh/kwp•y is 11.8, what is the value of 2400 kwh/kwp•y?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13690575_4" (
"cost" text,
"2400_k_wh_k_wp_y" text,
"2200_k_wh_k_wp_y" text,
"2000_k_wh_k_wp_y" text,
"1800_k_wh_k_wp_y" text,
"1600_k_wh_k_wp_y" text,
"1400_k_wh_k_wp_y" text,
"1200_k_wh_k_wp_y" text,
"1000_k_wh_k_wp_y" text,
"800_k_wh_k_wp_y" text
);
### SQL
Given the database schema, here is the SQL query that answers `At the rate where 2200 kwh/kwp•y is 11.8, what is the value of 2400 kwh/kwp•y?`:
```sql
|
SELECT "1600_k_wh_k_wp_y" FROM "table1_13690575_4" WHERE "1000_k_wh_k_wp_y"='26.0'; |
## Task
Generate a SQL query to answer the following question:
`At the rate where 1000 kwh/kwp•y is 26.0, what is the value of 1600 kwh/kwp•y?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13690575_4" (
"cost" text,
"2400_k_wh_k_wp_y" text,
"2200_k_wh_k_wp_y" text,
"2000_k_wh_k_wp_y" text,
"1800_k_wh_k_wp_y" text,
"1600_k_wh_k_wp_y" text,
"1400_k_wh_k_wp_y" text,
"1200_k_wh_k_wp_y" text,
"1000_k_wh_k_wp_y" text,
"800_k_wh_k_wp_y" text
);
### SQL
Given the database schema, here is the SQL query that answers `At the rate where 1000 kwh/kwp•y is 26.0, what is the value of 1600 kwh/kwp•y?`:
```sql
|
SELECT "2400_k_wh_k_wp_y" FROM "table1_13690575_4" WHERE "1800_k_wh_k_wp_y"='1.1'; |
## Task
Generate a SQL query to answer the following question:
`At the rate where 1800 kwh/kwp•y is 1.1, what is the value of 2400 kwh/kwp•y?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13690575_4" (
"cost" text,
"2400_k_wh_k_wp_y" text,
"2200_k_wh_k_wp_y" text,
"2000_k_wh_k_wp_y" text,
"1800_k_wh_k_wp_y" text,
"1600_k_wh_k_wp_y" text,
"1400_k_wh_k_wp_y" text,
"1200_k_wh_k_wp_y" text,
"1000_k_wh_k_wp_y" text,
"800_k_wh_k_wp_y" text
);
### SQL
Given the database schema, here is the SQL query that answers `At the rate where 1800 kwh/kwp•y is 1.1, what is the value of 2400 kwh/kwp•y?`:
```sql
|
SELECT "2400_k_wh_k_wp_y" FROM "table1_13690575_4" WHERE "1800_k_wh_k_wp_y"='16.7'; |
## Task
Generate a SQL query to answer the following question:
`At the rate where 1800 kwh/kwp•y is 16.7, what is the value of 2400 kwh/kwp•y?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13690575_4" (
"cost" text,
"2400_k_wh_k_wp_y" text,
"2200_k_wh_k_wp_y" text,
"2000_k_wh_k_wp_y" text,
"1800_k_wh_k_wp_y" text,
"1600_k_wh_k_wp_y" text,
"1400_k_wh_k_wp_y" text,
"1200_k_wh_k_wp_y" text,
"1000_k_wh_k_wp_y" text,
"800_k_wh_k_wp_y" text
);
### SQL
Given the database schema, here is the SQL query that answers `At the rate where 1800 kwh/kwp•y is 16.7, what is the value of 2400 kwh/kwp•y?`:
```sql
|
SELECT "time_required_for_prices_to_double" FROM "table1_13681_2" WHERE "highest_monthly_inflation_rate"='29,500%'; |
## Task
Generate a SQL query to answer the following question:
`what's the time required for prices to double with highest monthly inflation rate being 29,500%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13681_2" (
"country" text,
"currency_name" text,
"month_with_highest_inflation_rate" text,
"highest_monthly_inflation_rate" text,
"equivalent_daily_inflation_rate" text,
"time_required_for_prices_to_double" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the time required for prices to double with highest monthly inflation rate being 29,500%`:
```sql
|
SELECT "currency_name" FROM "table1_13681_2" WHERE "highest_monthly_inflation_rate"='29,500%'; |
## Task
Generate a SQL query to answer the following question:
`what's the currency name with highest monthly inflation rate being 29,500%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13681_2" (
"country" text,
"currency_name" text,
"month_with_highest_inflation_rate" text,
"highest_monthly_inflation_rate" text,
"equivalent_daily_inflation_rate" text,
"time_required_for_prices_to_double" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the currency name with highest monthly inflation rate being 29,500%`:
```sql
|
SELECT COUNT("equivalent_daily_inflation_rate") FROM "table1_13681_2" WHERE "time_required_for_prices_to_double"='3.7 days'; |
## Task
Generate a SQL query to answer the following question:
` how many equivalent daily inflation rate with time required for prices to double being 3.7 days`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13681_2" (
"country" text,
"currency_name" text,
"month_with_highest_inflation_rate" text,
"highest_monthly_inflation_rate" text,
"equivalent_daily_inflation_rate" text,
"time_required_for_prices_to_double" text
);
### SQL
Given the database schema, here is the SQL query that answers ` how many equivalent daily inflation rate with time required for prices to double being 3.7 days`:
```sql
|
SELECT COUNT("country") FROM "table1_13681_2" WHERE "currency_name"='Republika Srpska dinar'; |
## Task
Generate a SQL query to answer the following question:
` how many country with currency name being republika srpska dinar`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13681_2" (
"country" text,
"currency_name" text,
"month_with_highest_inflation_rate" text,
"highest_monthly_inflation_rate" text,
"equivalent_daily_inflation_rate" text,
"time_required_for_prices_to_double" text
);
### SQL
Given the database schema, here is the SQL query that answers ` how many country with currency name being republika srpska dinar`:
```sql
|
SELECT COUNT("equivalent_daily_inflation_rate") FROM "table1_13681_2" WHERE "currency_name"='Republika Srpska dinar'; |
## Task
Generate a SQL query to answer the following question:
` how many equivalent daily inflation rate with currency name being republika srpska dinar`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13681_2" (
"country" text,
"currency_name" text,
"month_with_highest_inflation_rate" text,
"highest_monthly_inflation_rate" text,
"equivalent_daily_inflation_rate" text,
"time_required_for_prices_to_double" text
);
### SQL
Given the database schema, here is the SQL query that answers ` how many equivalent daily inflation rate with currency name being republika srpska dinar`:
```sql
|
SELECT "country" FROM "table1_13681_2" WHERE "highest_monthly_inflation_rate"='3.13 × 10 8 %'; |
## Task
Generate a SQL query to answer the following question:
`what's the country with highest monthly inflation rate being 3.13 × 10 8 %`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13681_2" (
"country" text,
"currency_name" text,
"month_with_highest_inflation_rate" text,
"highest_monthly_inflation_rate" text,
"equivalent_daily_inflation_rate" text,
"time_required_for_prices_to_double" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the country with highest monthly inflation rate being 3.13 × 10 8 %`:
```sql
|
SELECT COUNT("grand_final_dual_television_commentator") FROM "commentators_and_spokespersons" WHERE "year_s"=1961; |
## Task
Generate a SQL query to answer the following question:
`How many grand final dual television commentators were there in 1961?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "commentators_and_spokespersons" (
"year_s" real,
"grand_final_television_commentator" text,
"grand_final_dual_television_commentator" text,
"spokesperson" text,
"semi_final_television_commentator" text,
"semi_final_dual_television_commentator" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many grand final dual television commentators were there in 1961?`:
```sql
|
SELECT "spokesperson" FROM "commentators_and_spokespersons" WHERE "year_s"=1970; |
## Task
Generate a SQL query to answer the following question:
`Who was the spokesperson for France in 1970?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "commentators_and_spokespersons" (
"year_s" real,
"grand_final_television_commentator" text,
"grand_final_dual_television_commentator" text,
"spokesperson" text,
"semi_final_television_commentator" text,
"semi_final_dual_television_commentator" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the spokesperson for France in 1970?`:
```sql
|
SELECT MIN("year_s") FROM "commentators_and_spokespersons" WHERE "spokesperson"='Thierry Beccaro'; |
## Task
Generate a SQL query to answer the following question:
`What year was Thierry Beccaro the spokesperson?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "commentators_and_spokespersons" (
"year_s" real,
"grand_final_television_commentator" text,
"grand_final_dual_television_commentator" text,
"spokesperson" text,
"semi_final_television_commentator" text,
"semi_final_dual_television_commentator" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was Thierry Beccaro the spokesperson?`:
```sql
|
SELECT COUNT("score") FROM "lone_star_series" WHERE "date"='June 25'; |
## Task
Generate a SQL query to answer the following question:
`How many games played on june 25?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lone_star_series" (
"date" text,
"winning_team" text,
"score" text,
"winning_pitcher" text,
"losing_pitcher" text,
"attendance" real,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games played on june 25?`:
```sql
|
SELECT "winning_team" FROM "lone_star_series" WHERE "date"='May 21'; |
## Task
Generate a SQL query to answer the following question:
`Who won the game on may 21?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lone_star_series" (
"date" text,
"winning_team" text,
"score" text,
"winning_pitcher" text,
"losing_pitcher" text,
"attendance" real,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the game on may 21?`:
```sql
|
SELECT "losing_pitcher" FROM "lone_star_series" WHERE "attendance"=40583; |
## Task
Generate a SQL query to answer the following question:
`Who was the losing pitcher when 40583 attended?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lone_star_series" (
"date" text,
"winning_team" text,
"score" text,
"winning_pitcher" text,
"losing_pitcher" text,
"attendance" real,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the losing pitcher when 40583 attended?`:
```sql
|
SELECT "winning_pitcher" FROM "lone_star_series" WHERE "losing_pitcher"='Ezequiel Astacio'; |
## Task
Generate a SQL query to answer the following question:
`Who was the wenning witcher when ezequiel astacio was the losing pitcher?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lone_star_series" (
"date" text,
"winning_team" text,
"score" text,
"winning_pitcher" text,
"losing_pitcher" text,
"attendance" real,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the wenning witcher when ezequiel astacio was the losing pitcher?`:
```sql
|
SELECT "location" FROM "lone_star_series" WHERE "date"='May 20'; |
## Task
Generate a SQL query to answer the following question:
`Where was the game played on may 20?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lone_star_series" (
"date" text,
"winning_team" text,
"score" text,
"winning_pitcher" text,
"losing_pitcher" text,
"attendance" real,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game played on may 20?`:
```sql
|
SELECT COUNT("club_city_town") FROM "regular_season" WHERE "w_l_d"='5-7-4'; |
## Task
Generate a SQL query to answer the following question:
`On what position number is the club with a w-l-d of 5-7-4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"position" real,
"club_city_town" text,
"games_played" real,
"w_l_d" text,
"goals_for_against" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `On what position number is the club with a w-l-d of 5-7-4?`:
```sql
|
SELECT MAX("position") FROM "regular_season" WHERE "w_l_d"='6-2-8'; |
## Task
Generate a SQL query to answer the following question:
`What's the position of the club with w-l-d of 6-2-8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"position" real,
"club_city_town" text,
"games_played" real,
"w_l_d" text,
"goals_for_against" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the position of the club with w-l-d of 6-2-8?`:
```sql
|
SELECT "games_played" FROM "regular_season" WHERE "goals_for_against"='29-24'; |
## Task
Generate a SQL query to answer the following question:
`How many games has the club with 29-24 goals for/against score played? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"position" real,
"club_city_town" text,
"games_played" real,
"w_l_d" text,
"goals_for_against" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games has the club with 29-24 goals for/against score played? `:
```sql
|
SELECT COUNT("original_title") FROM "submissions" WHERE "film_title_used_in_nomination"='Gie'; |
## Task
Generate a SQL query to answer the following question:
`How many films titled Gie have been nominated?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many films titled Gie have been nominated?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.