output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "wavelength" FROM "400_w_sub_bands" WHERE "frequency_m_hz"='14.050–14.150'; |
## Task
Generate a SQL query to answer the following question:
`What is the Wavelength of Frequency (MHz) 14.050–14.150?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "400_w_sub_bands" (
"band" real,
"frequency_m_hz" text,
"wavelength" text,
"type" text,
"power_w" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Wavelength of Frequency (MHz) 14.050–14.150?`:
```sql
|
SELECT "recipients_and_nominees" FROM "satellite_awards" WHERE "year"=1994; |
## Task
Generate a SQL query to answer the following question:
`Who are the recipients in 1994?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "satellite_awards" (
"year" real,
"category" text,
"recipients_and_nominees" text,
"role_episode" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the recipients in 1994?`:
```sql
|
SELECT "recipients_and_nominees" FROM "satellite_awards" WHERE "role_episode"='david duchovny' AND "result"='won'; |
## Task
Generate a SQL query to answer the following question:
`Who are the recipients that won for David Duchovny role/episode?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "satellite_awards" (
"year" real,
"category" text,
"recipients_and_nominees" text,
"role_episode" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the recipients that won for David Duchovny role/episode?`:
```sql
|
SELECT "category" FROM "satellite_awards" WHERE "year"=1998 AND "role_episode"='david duchovny'; |
## Task
Generate a SQL query to answer the following question:
`What's the category in 1998 with the role/episode of David Duchovny?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "satellite_awards" (
"year" real,
"category" text,
"recipients_and_nominees" text,
"role_episode" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the category in 1998 with the role/episode of David Duchovny?`:
```sql
|
SELECT "network" FROM "digital_channels" WHERE "aspect"='4:3' AND "channel">31.4; |
## Task
Generate a SQL query to answer the following question:
`Which network has more than 31.4 channels with a 4:3 aspect?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "digital_channels" (
"channel" real,
"video" text,
"aspect" text,
"psip_short_name" text,
"network" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which network has more than 31.4 channels with a 4:3 aspect?`:
```sql
|
SELECT "video" FROM "digital_channels" WHERE "aspect"='4:3' AND "channel"=31.2; |
## Task
Generate a SQL query to answer the following question:
`Which video is on channel 31.2 with a 4:3 aspect?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "digital_channels" (
"channel" real,
"video" text,
"aspect" text,
"psip_short_name" text,
"network" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which video is on channel 31.2 with a 4:3 aspect?`:
```sql
|
SELECT "video" FROM "digital_channels" WHERE "aspect"='16:9'; |
## Task
Generate a SQL query to answer the following question:
`Which video has a 16:9 aspect?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "digital_channels" (
"channel" real,
"video" text,
"aspect" text,
"psip_short_name" text,
"network" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which video has a 16:9 aspect?`:
```sql
|
SELECT "constituency_number" FROM "assembly_segments" WHERE "reserved_for_sc_st_none"='none' AND "district"='seoni'; |
## Task
Generate a SQL query to answer the following question:
`What's the constituency number of the Seoni district and has none reserved?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "assembly_segments" (
"constituency_number" text,
"name" text,
"reserved_for_sc_st_none" text,
"district" text,
"number_of_electorates_2009" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the constituency number of the Seoni district and has none reserved?`:
```sql
|
SELECT "district" FROM "assembly_segments" WHERE "reserved_for_sc_st_none"='none' AND "name"='paraswada'; |
## Task
Generate a SQL query to answer the following question:
`What is the district of Paraswada with none reserved?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "assembly_segments" (
"constituency_number" text,
"name" text,
"reserved_for_sc_st_none" text,
"district" text,
"number_of_electorates_2009" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the district of Paraswada with none reserved?`:
```sql
|
SELECT "reserved_for_sc_st_none" FROM "assembly_segments" WHERE "constituency_number"='108'; |
## Task
Generate a SQL query to answer the following question:
`What's the reserved number for constituency number 108?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "assembly_segments" (
"constituency_number" text,
"name" text,
"reserved_for_sc_st_none" text,
"district" text,
"number_of_electorates_2009" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the reserved number for constituency number 108?`:
```sql
|
SELECT "name" FROM "assembly_segments" WHERE "constituency_number"='108'; |
## Task
Generate a SQL query to answer the following question:
`What's the name of Constituency number 108?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "assembly_segments" (
"constituency_number" text,
"name" text,
"reserved_for_sc_st_none" text,
"district" text,
"number_of_electorates_2009" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the name of Constituency number 108?`:
```sql
|
SELECT MIN("total") FROM "medal_table" WHERE "bronze">1 AND "silver"=0 AND "gold"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest total medals when there were 0 gold medals, 0 silver medals, and more than 1 bronze medal?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest total medals when there were 0 gold medals, 0 silver medals, and more than 1 bronze medal?`:
```sql
|
SELECT SUM("bronze") FROM "medal_table" WHERE "total"<8 AND "rank"=9 AND "silver"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of the bronze medals when there were less than 8 total medals, 0 silver medals and a rank of 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the bronze medals when there were less than 8 total medals, 0 silver medals and a rank of 9?`:
```sql
|
SELECT "nation" FROM "medal_table" WHERE "rank">4 AND "total"=2 AND "silver">0; |
## Task
Generate a SQL query to answer the following question:
`What nation had a rank higher than 4, a total of 2 medals and more than 0 silver medals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What nation had a rank higher than 4, a total of 2 medals and more than 0 silver medals?`:
```sql
|
SELECT AVG("rank") FROM "medal_table" WHERE "total">5 AND "gold">6; |
## Task
Generate a SQL query to answer the following question:
`What was the average rank for the team that had more than 5 medals and more than 6 gold medals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average rank for the team that had more than 5 medals and more than 6 gold medals?`:
```sql
|
SELECT "artist" FROM "result_of_national_final" WHERE "draw">4 AND "points"<5; |
## Task
Generate a SQL query to answer the following question:
`Which artist has a draw higher than 4 and fewer than 5 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "result_of_national_final" (
"draw" real,
"song" text,
"artist" text,
"points" real,
"place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which artist has a draw higher than 4 and fewer than 5 points?`:
```sql
|
SELECT "artist" FROM "result_of_national_final" WHERE "points"=13; |
## Task
Generate a SQL query to answer the following question:
`Which artist has 13 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "result_of_national_final" (
"draw" real,
"song" text,
"artist" text,
"points" real,
"place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which artist has 13 points?`:
```sql
|
SELECT MAX("b_score") FROM "floor_event_final_qualifiers" WHERE "a_score"<6.5; |
## Task
Generate a SQL query to answer the following question:
`What is the greatest B score when the A score was less than 6.5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "floor_event_final_qualifiers" (
"position" text,
"gymnast" text,
"a_score" real,
"b_score" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the greatest B score when the A score was less than 6.5?`:
```sql
|
SELECT "time" FROM "repechage_2" WHERE "notes"='sa/b' AND "country"='great britain'; |
## Task
Generate a SQL query to answer the following question:
`What is the Time of the Great Britain players with Notes of SA/B?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "repechage_2" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Time of the Great Britain players with Notes of SA/B?`:
```sql
|
SELECT "rowers" FROM "repechage_2" WHERE "notes"='fc' AND "time"='7:41.97'; |
## Task
Generate a SQL query to answer the following question:
`What is the Rowers of the race with a Time of 7:41.97 and Notes of FC?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "repechage_2" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Rowers of the race with a Time of 7:41.97 and Notes of FC?`:
```sql
|
SELECT MIN("week") FROM "schedule" WHERE "opponent"='minnesota vikings'; |
## Task
Generate a SQL query to answer the following question:
`What is the Week of the game against the Minnesota Vikings?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Week of the game against the Minnesota Vikings?`:
```sql
|
SELECT AVG("week") FROM "schedule" WHERE "opponent"='green bay packers'; |
## Task
Generate a SQL query to answer the following question:
`What is the Week of the game against Green Bay Packers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Week of the game against Green Bay Packers?`:
```sql
|
SELECT "attendance" FROM "schedule" WHERE "result"='l 20-14'; |
## Task
Generate a SQL query to answer the following question:
`What is the Attendance of the game with a Result of L 20-14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Attendance of the game with a Result of L 20-14?`:
```sql
|
SELECT MIN("week") FROM "schedule" WHERE "date"='october 5, 2003'; |
## Task
Generate a SQL query to answer the following question:
`What is the Week number on October 5, 2003?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Week number on October 5, 2003?`:
```sql
|
SELECT COUNT("week") FROM "schedule" WHERE "attendance"='62,123'; |
## Task
Generate a SQL query to answer the following question:
`What is the Week number with an Attendance of 62,123?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Week number with an Attendance of 62,123?`:
```sql
|
SELECT SUM("number_of_households") FROM "oklahoma_counties_ranked_by_per_capita_i" WHERE "county"='ottawa'; |
## Task
Generate a SQL query to answer the following question:
`How many households are in Ottawa?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "oklahoma_counties_ranked_by_per_capita_i" (
"county" text,
"per_capita_income" text,
"median_household_income" text,
"median_family_income" text,
"population" real,
"number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many households are in Ottawa?`:
```sql
|
SELECT "county" FROM "oklahoma_counties_ranked_by_per_capita_i" WHERE "population">'603,403' AND "median_family_income"='$61,694'; |
## Task
Generate a SQL query to answer the following question:
`What county has a population more than 603,403 and a mediuan family income of $61,694?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "oklahoma_counties_ranked_by_per_capita_i" (
"county" text,
"per_capita_income" text,
"median_household_income" text,
"median_family_income" text,
"population" real,
"number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers `What county has a population more than 603,403 and a mediuan family income of $61,694?`:
```sql
|
SELECT SUM("enrollment") FROM "membership" WHERE "location"='culver'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of enrollments for schools located in Culver?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "membership" (
"school_ihsaa_i_dnum" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"num_county" text,
"year_joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of enrollments for schools located in Culver?`:
```sql
|
SELECT "year_joined" FROM "membership" WHERE "enrollment"=413; |
## Task
Generate a SQL query to answer the following question:
`Which year did the school with enrollment of 413 join?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "membership" (
"school_ihsaa_i_dnum" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"num_county" text,
"year_joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which year did the school with enrollment of 413 join?`:
```sql
|
SELECT COUNT("year") FROM "original_broadway_production" WHERE "category"='best play'; |
## Task
Generate a SQL query to answer the following question:
`How many years was Reasons to be Pretty nominated for best play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "original_broadway_production" (
"year" real,
"award_ceremony" text,
"category" text,
"nominee" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years was Reasons to be Pretty nominated for best play?`:
```sql
|
SELECT MIN("year") FROM "original_broadway_production" WHERE "category"='best performance by a leading actor in a play'; |
## Task
Generate a SQL query to answer the following question:
`What is the first year that Reasons to be Pretty had a nominee for best performance by a leading actor in a play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "original_broadway_production" (
"year" real,
"award_ceremony" text,
"category" text,
"nominee" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the first year that Reasons to be Pretty had a nominee for best performance by a leading actor in a play?`:
```sql
|
SELECT "match_report" FROM "results_and_fixtures" WHERE "date"='28 february 2009'; |
## Task
Generate a SQL query to answer the following question:
`What is the match report from the game played on 28 february 2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results_and_fixtures" (
"date" text,
"venue" text,
"opponents" text,
"competition" text,
"match_report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the match report from the game played on 28 february 2009?`:
```sql
|
SELECT "match_report" FROM "results_and_fixtures" WHERE "date"='25 april 2009'; |
## Task
Generate a SQL query to answer the following question:
`What is the match report from the game played on 25 april 2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results_and_fixtures" (
"date" text,
"venue" text,
"opponents" text,
"competition" text,
"match_report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the match report from the game played on 25 april 2009?`:
```sql
|
SELECT "venue" FROM "results_and_fixtures" WHERE "opponents"='east fife' AND "date"='3 january 2009'; |
## Task
Generate a SQL query to answer the following question:
`Where was the game played on 3 january 2009 against east fife?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results_and_fixtures" (
"date" text,
"venue" text,
"opponents" text,
"competition" text,
"match_report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game played on 3 january 2009 against east fife?`:
```sql
|
SELECT "match_report" FROM "results_and_fixtures" WHERE "venue"='stark''s park' AND "competition"='second division' AND "date"='23 august 2008'; |
## Task
Generate a SQL query to answer the following question:
`What is the match report for the game that was played on 23 august 2008 in stark's park during the second division competition?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results_and_fixtures" (
"date" text,
"venue" text,
"opponents" text,
"competition" text,
"match_report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the match report for the game that was played on 23 august 2008 in stark's park during the second division competition?`:
```sql
|
SELECT "match_report" FROM "results_and_fixtures" WHERE "opponents"='stirling albion' AND "venue"='forthbank stadium'; |
## Task
Generate a SQL query to answer the following question:
`What is the match report for the game played at forthbank stadium against stirling albion?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results_and_fixtures" (
"date" text,
"venue" text,
"opponents" text,
"competition" text,
"match_report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the match report for the game played at forthbank stadium against stirling albion?`:
```sql
|
SELECT AVG("quantity") FROM "narrow_gauge_locomotives" WHERE "drg_number_s"='99 011'; |
## Task
Generate a SQL query to answer the following question:
`What is average quantity, when DRG number is 99 011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "narrow_gauge_locomotives" (
"class" text,
"railway_number_s" text,
"drg_number_s" text,
"quantity" real,
"year_s_of_manufacture" text,
"axle_arrangement_uic_bauart" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is average quantity, when DRG number is 99 011?`:
```sql
|
SELECT "railway_number_s" FROM "narrow_gauge_locomotives" WHERE "quantity"=3; |
## Task
Generate a SQL query to answer the following question:
`Which railway number has 3 quantity?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "narrow_gauge_locomotives" (
"class" text,
"railway_number_s" text,
"drg_number_s" text,
"quantity" real,
"year_s_of_manufacture" text,
"axle_arrangement_uic_bauart" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which railway number has 3 quantity?`:
```sql
|
SELECT "drg_number_s" FROM "narrow_gauge_locomotives" WHERE "railway_number_s"='xxx'; |
## Task
Generate a SQL query to answer the following question:
`Which DRG number has xxx railway number?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "narrow_gauge_locomotives" (
"class" text,
"railway_number_s" text,
"drg_number_s" text,
"quantity" real,
"year_s_of_manufacture" text,
"axle_arrangement_uic_bauart" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which DRG number has xxx railway number?`:
```sql
|
SELECT "quantity" FROM "narrow_gauge_locomotives" WHERE "axle_arrangement_uic_bauart"='c n2t' AND "drg_number_s"='99 093'; |
## Task
Generate a SQL query to answer the following question:
`Which quantity has Axle arrangement (UIC)bauart of c n2t, and DRG number 99 093?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "narrow_gauge_locomotives" (
"class" text,
"railway_number_s" text,
"drg_number_s" text,
"quantity" real,
"year_s_of_manufacture" text,
"axle_arrangement_uic_bauart" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which quantity has Axle arrangement (UIC)bauart of c n2t, and DRG number 99 093?`:
```sql
|
SELECT "song" FROM "dsds_performances" WHERE "date"='march 8, 2008'; |
## Task
Generate a SQL query to answer the following question:
`What song came out on March 8, 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "dsds_performances" (
"date" text,
"topic_of_the_show" text,
"song" text,
"original_artist" text,
"place_percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What song came out on March 8, 2008?`:
```sql
|
SELECT "topic_of_the_show" FROM "dsds_performances" WHERE "date"='march 15, 2008'; |
## Task
Generate a SQL query to answer the following question:
`What was the topic of the show on March 15, 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "dsds_performances" (
"date" text,
"topic_of_the_show" text,
"song" text,
"original_artist" text,
"place_percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the topic of the show on March 15, 2008?`:
```sql
|
SELECT AVG("wins") FROM "1939_ladder" WHERE "against">1244 AND "losses"<8; |
## Task
Generate a SQL query to answer the following question:
`When against is more than 1244 with less than 8 losses, what is the average of wins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1939_ladder" (
"club" text,
"wins" real,
"losses" real,
"draws" real,
"against" real
);
### SQL
Given the database schema, here is the SQL query that answers `When against is more than 1244 with less than 8 losses, what is the average of wins?`:
```sql
|
SELECT "name" FROM "existing_historic_textile_mills" WHERE "refnum">8 AND "location"='anawan street'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the mill located on Anawan Street with a reference number larger than 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "existing_historic_textile_mills" (
"refnum" real,
"name" text,
"built" real,
"location" text,
"construction" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the mill located on Anawan Street with a reference number larger than 8?`:
```sql
|
SELECT "name" FROM "existing_historic_textile_mills" WHERE "refnum"<55 AND "built"=1910 AND "construction"='red brick'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the mill constructed of red brick in 1910 with a reference number lower than 55?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "existing_historic_textile_mills" (
"refnum" real,
"name" text,
"built" real,
"location" text,
"construction" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the mill constructed of red brick in 1910 with a reference number lower than 55?`:
```sql
|
SELECT "location" FROM "existing_historic_textile_mills" WHERE "built"<1872 AND "name"='durfee mill no. 1'; |
## Task
Generate a SQL query to answer the following question:
`What is the location of the Durfee Mill No. 1, built before 1872 ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "existing_historic_textile_mills" (
"refnum" real,
"name" text,
"built" real,
"location" text,
"construction" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location of the Durfee Mill No. 1, built before 1872 ?`:
```sql
|
SELECT "location" FROM "existing_historic_textile_mills" WHERE "refnum"=44; |
## Task
Generate a SQL query to answer the following question:
`What is the location of the mill with a reference number of 44?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "existing_historic_textile_mills" (
"refnum" real,
"name" text,
"built" real,
"location" text,
"construction" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location of the mill with a reference number of 44?`:
```sql
|
SELECT "construction" FROM "composition" WHERE "name_wade_giles"='fu-hsing'; |
## Task
Generate a SQL query to answer the following question:
`Which Construction is named of fu-hsing?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "composition" (
"name_pinyin" text,
"name_wade_giles" text,
"characters" text,
"type" text,
"construction" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Construction is named of fu-hsing?`:
```sql
|
SELECT "construction" FROM "composition" WHERE "name_wade_giles"='heng-hai'; |
## Task
Generate a SQL query to answer the following question:
`which Construction is named heng-hai?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "composition" (
"name_pinyin" text,
"name_wade_giles" text,
"characters" text,
"type" text,
"construction" text
);
### SQL
Given the database schema, here is the SQL query that answers `which Construction is named heng-hai?`:
```sql
|
SELECT "characters" FROM "composition" WHERE "construction"='1873, foochow navy yard'; |
## Task
Generate a SQL query to answer the following question:
`Who has a Construction of 1873, foochow navy yard?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "composition" (
"name_pinyin" text,
"name_wade_giles" text,
"characters" text,
"type" text,
"construction" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has a Construction of 1873, foochow navy yard?`:
```sql
|
SELECT "name_pinyin" FROM "composition" WHERE "name_wade_giles"='fu-ching'; |
## Task
Generate a SQL query to answer the following question:
`Which Name (pinyin) is named fu-ching?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "composition" (
"name_pinyin" text,
"name_wade_giles" text,
"characters" text,
"type" text,
"construction" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Name (pinyin) is named fu-ching?`:
```sql
|
SELECT "characters" FROM "composition" WHERE "construction"='1870, foochow navy yard' AND "name_wade_giles"='fu-hsing'; |
## Task
Generate a SQL query to answer the following question:
`Who has a Construction of 1870, foochow navy yard, and a Name (Wade Giles) of fu-hsing?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "composition" (
"name_pinyin" text,
"name_wade_giles" text,
"characters" text,
"type" text,
"construction" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has a Construction of 1870, foochow navy yard, and a Name (Wade Giles) of fu-hsing?`:
```sql
|
SELECT "label" FROM "discography" WHERE "release"='liebesgrüsse aus ost-berlin'; |
## Task
Generate a SQL query to answer the following question:
`Which Label has a Release of liebesgrüsse aus ost-berlin?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "discography" (
"release" text,
"track" text,
"format" text,
"label" text,
"year" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Label has a Release of liebesgrüsse aus ost-berlin?`:
```sql
|
SELECT SUM("rank") FROM "leading_scorers" WHERE "games_played">5; |
## Task
Generate a SQL query to answer the following question:
`What is the rank of the person with more than 5 games played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "leading_scorers" (
"rank" real,
"player" text,
"games_played" real,
"goals" real,
"assists" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank of the person with more than 5 games played?`:
```sql
|
SELECT COUNT("gold") FROM "medals_table" WHERE "bronze">1 AND "silver">1 AND "rank"='total'; |
## Task
Generate a SQL query to answer the following question:
`How many golds have a bronze greater than 1, a silver greater than 1, with total as the rank?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many golds have a bronze greater than 1, a silver greater than 1, with total as the rank?`:
```sql
|
SELECT COUNT("gold") FROM "medals_table" WHERE "bronze">1 AND "nation"='total' AND "silver"<18; |
## Task
Generate a SQL query to answer the following question:
`How many golds have a bronze greater than 1, total as the nation, and a silver less than 18?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many golds have a bronze greater than 1, total as the nation, and a silver less than 18?`:
```sql
|
SELECT SUM("bronze") FROM "medals_table" WHERE "nation"='west germany'; |
## Task
Generate a SQL query to answer the following question:
`How many bronzes have west germany as the nation?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many bronzes have west germany as the nation?`:
```sql
|
SELECT COUNT("gold") FROM "medals_table" WHERE "nation"='denmark' AND "total"<1; |
## Task
Generate a SQL query to answer the following question:
`How many golds have denmark as the nation, with a total less than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many golds have denmark as the nation, with a total less than 1?`:
```sql
|
SELECT COUNT("total") FROM "medals_table" WHERE "gold"=1 AND "rank"='12' AND "silver">0; |
## Task
Generate a SQL query to answer the following question:
`How many totals have 1 for the gold, 12 for the rank, and a sliver greater than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many totals have 1 for the gold, 12 for the rank, and a sliver greater than 0?`:
```sql
|
SELECT MIN("silver") FROM "medals_table" WHERE "bronze"=1 AND "total"=1 AND "rank"='17' AND "gold"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest silver that has 1 for the bronze, 1 as the total, 17 as the rank, with a gold less than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest silver that has 1 for the bronze, 1 as the total, 17 as the rank, with a gold less than 0?`:
```sql
|
SELECT "first_publisher" FROM "bibliography" WHERE "year"<1999; |
## Task
Generate a SQL query to answer the following question:
`What is the First Publisher prior to 1999?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bibliography" (
"japanese_title" text,
"english_title" text,
"year" real,
"first_publisher" text,
"isbn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the First Publisher prior to 1999?`:
```sql
|
SELECT "isbn" FROM "bibliography" WHERE "year"=1999; |
## Task
Generate a SQL query to answer the following question:
`What is the ISBN in 1999?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bibliography" (
"japanese_title" text,
"english_title" text,
"year" real,
"first_publisher" text,
"isbn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ISBN in 1999?`:
```sql
|
SELECT "isbn" FROM "bibliography" WHERE "japanese_title"='霧の訪問者 (kiri no hōmonsha)'; |
## Task
Generate a SQL query to answer the following question:
`What is the ISBN of Japanese Title of 霧の訪問者 (kiri no hōmonsha)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bibliography" (
"japanese_title" text,
"english_title" text,
"year" real,
"first_publisher" text,
"isbn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ISBN of Japanese Title of 霧の訪問者 (kiri no hōmonsha)?`:
```sql
|
SELECT "first_publisher" FROM "bibliography" WHERE "year"=2007; |
## Task
Generate a SQL query to answer the following question:
`What is the First Publisher in 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bibliography" (
"japanese_title" text,
"english_title" text,
"year" real,
"first_publisher" text,
"isbn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the First Publisher in 2007?`:
```sql
|
SELECT "year" FROM "bibliography" WHERE "first_publisher"='kodansha novels' AND "english_title"='tokyo nightmare'; |
## Task
Generate a SQL query to answer the following question:
`What is the Year of Kodansha Novels' Tokyo Nightmare?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bibliography" (
"japanese_title" text,
"english_title" text,
"year" real,
"first_publisher" text,
"isbn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Year of Kodansha Novels' Tokyo Nightmare?`:
```sql
|
SELECT AVG("year") FROM "bibliography" WHERE "isbn"='isbn 4-06-182042-7'; |
## Task
Generate a SQL query to answer the following question:
`What Year has an ISBN OF ISBN 4-06-182042-7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bibliography" (
"japanese_title" text,
"english_title" text,
"year" real,
"first_publisher" text,
"isbn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Year has an ISBN OF ISBN 4-06-182042-7?`:
```sql
|
SELECT MIN("bronze") FROM "medal_table" WHERE "gold"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the bronze number for the nation with less than 0 gold?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the bronze number for the nation with less than 0 gold?`:
```sql
|
SELECT "january" FROM "climate" WHERE "region"='eastman'; |
## Task
Generate a SQL query to answer the following question:
`What is the January climate figure for Eastman?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "climate" (
"city" text,
"region" text,
"july" text,
"january" text,
"annual_precipitation" text,
"plant_hardiness_zone" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the January climate figure for Eastman?`:
```sql
|
SELECT "city" FROM "climate" WHERE "july"='23/9°c (73/48°f)'; |
## Task
Generate a SQL query to answer the following question:
`In what city is the July temperature 23/9°c (73/48°f)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "climate" (
"city" text,
"region" text,
"july" text,
"january" text,
"annual_precipitation" text,
"plant_hardiness_zone" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what city is the July temperature 23/9°c (73/48°f)?`:
```sql
|
SELECT "july" FROM "climate" WHERE "annual_precipitation"='514mm (20.2in)'; |
## Task
Generate a SQL query to answer the following question:
`What is the July temperature where the annual precipitation is 514mm (20.2in)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "climate" (
"city" text,
"region" text,
"july" text,
"january" text,
"annual_precipitation" text,
"plant_hardiness_zone" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the July temperature where the annual precipitation is 514mm (20.2in)?`:
```sql
|
SELECT "july" FROM "climate" WHERE "plant_hardiness_zone"='2b' AND "january"='−12/−23°c (10-9°f)'; |
## Task
Generate a SQL query to answer the following question:
`What is the July temperature where plant hardiness zone is 2B and January figure is −12/−23°c (10-9°f)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "climate" (
"city" text,
"region" text,
"july" text,
"january" text,
"annual_precipitation" text,
"plant_hardiness_zone" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the July temperature where plant hardiness zone is 2B and January figure is −12/−23°c (10-9°f)?`:
```sql
|
SELECT "plant_hardiness_zone" FROM "climate" WHERE "region"='northern' AND "annual_precipitation"='443mm (17.4in)'; |
## Task
Generate a SQL query to answer the following question:
`What is the plant hardiness zone in the Northern region where the annual precipitation is 443mm (17.4in)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "climate" (
"city" text,
"region" text,
"july" text,
"january" text,
"annual_precipitation" text,
"plant_hardiness_zone" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the plant hardiness zone in the Northern region where the annual precipitation is 443mm (17.4in)?`:
```sql
|
SELECT "city" FROM "climate" WHERE "plant_hardiness_zone"='2b' AND "january"='−12/−23°c (10/-9°f)'; |
## Task
Generate a SQL query to answer the following question:
`In what city is the plant hardiness zone 2B and January temp is −12/−23°c (10/-9°f)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "climate" (
"city" text,
"region" text,
"july" text,
"january" text,
"annual_precipitation" text,
"plant_hardiness_zone" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what city is the plant hardiness zone 2B and January temp is −12/−23°c (10/-9°f)?`:
```sql
|
SELECT "total_apps" FROM "appearances_and_goals" WHERE "name"='paul wilson'; |
## Task
Generate a SQL query to answer the following question:
`What is the Total Apps listing for Paul Wilson?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "appearances_and_goals" (
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" text,
"fa_cup_goals" real,
"league_cup_apps" text,
"league_cup_goals" real,
"flt_apps" text,
"flt_goals" real,
"total_apps" text,
"total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Total Apps listing for Paul Wilson?`:
```sql
|
SELECT "winner" FROM "route_and_stages" WHERE "course"='milan circuit race'; |
## Task
Generate a SQL query to answer the following question:
`Who was the winner at Milan Circuit Race?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "route_and_stages" (
"date" text,
"course" text,
"distance" text,
"type" text,
"winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner at Milan Circuit Race?`:
```sql
|
SELECT "winner" FROM "route_and_stages" WHERE "course"='rest day'; |
## Task
Generate a SQL query to answer the following question:
`Who was the winner at Rest Day course?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "route_and_stages" (
"date" text,
"course" text,
"distance" text,
"type" text,
"winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner at Rest Day course?`:
```sql
|
SELECT "type" FROM "route_and_stages" WHERE "course"='sestri levante to riomaggiore'; |
## Task
Generate a SQL query to answer the following question:
`What's the type on Sestri Levante to Riomaggiore?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "route_and_stages" (
"date" text,
"course" text,
"distance" text,
"type" text,
"winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the type on Sestri Levante to Riomaggiore?`:
```sql
|
SELECT "player" FROM "regular_season_rankings" WHERE "events"=12; |
## Task
Generate a SQL query to answer the following question:
`Which player competed in 12 events?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season_rankings" (
"player" text,
"country" text,
"points" real,
"events" real,
"reset_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which player competed in 12 events?`:
```sql
|
SELECT MAX("finishes") FROM "constructors" WHERE "points"<337 AND "stage_wins"=2 AND "wins">0; |
## Task
Generate a SQL query to answer the following question:
`what is the highest finishes when the points is less than 337, the stage wins is 2 and the wins is more than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "constructors" (
"constructor" text,
"chassis" text,
"starts" real,
"finishes" real,
"wins" real,
"podiums" real,
"stage_wins" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the highest finishes when the points is less than 337, the stage wins is 2 and the wins is more than 0?`:
```sql
|
SELECT AVG("starts") FROM "constructors" WHERE "chassis"='focus rs wrc 08' AND "finishes">27; |
## Task
Generate a SQL query to answer the following question:
`what is the average starts when the chassis is focus rs wrc 08 and finishes is more than 27?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "constructors" (
"constructor" text,
"chassis" text,
"starts" real,
"finishes" real,
"wins" real,
"podiums" real,
"stage_wins" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the average starts when the chassis is focus rs wrc 08 and finishes is more than 27?`:
```sql
|
SELECT SUM("finishes") FROM "constructors" WHERE "points">337 AND "starts">26; |
## Task
Generate a SQL query to answer the following question:
`what is the finishes when points is more than 337 and starts is more than 26?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "constructors" (
"constructor" text,
"chassis" text,
"starts" real,
"finishes" real,
"wins" real,
"podiums" real,
"stage_wins" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the finishes when points is more than 337 and starts is more than 26?`:
```sql
|
SELECT AVG("starts") FROM "constructors" WHERE "podiums">0 AND "stage_wins">39 AND "points">456; |
## Task
Generate a SQL query to answer the following question:
`what is the average starts when the podiums is more than 0, stage wins is more than 39 and points is more than 456?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "constructors" (
"constructor" text,
"chassis" text,
"starts" real,
"finishes" real,
"wins" real,
"podiums" real,
"stage_wins" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the average starts when the podiums is more than 0, stage wins is more than 39 and points is more than 456?`:
```sql
|
SELECT "school" FROM "indiana_high_school_athletics_conference" WHERE "mascot"='squires'; |
## Task
Generate a SQL query to answer the following question:
`Which School has a Mascot of squires?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"num_county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which School has a Mascot of squires?`:
```sql
|
SELECT "school" FROM "indiana_high_school_athletics_conference" WHERE "num_county"='85 wabash' AND "ihsaa_football_class"='a' AND "mascot"='norsemen'; |
## Task
Generate a SQL query to answer the following question:
`Which School has a #/ County of 85 wabash, and an IHSAA Football Class of A, and a Mascot of norsemen?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"num_county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which School has a #/ County of 85 wabash, and an IHSAA Football Class of A, and a Mascot of norsemen?`:
```sql
|
SELECT "ihsaa_football_class" FROM "indiana_high_school_athletics_conference" WHERE "school"='whitko'; |
## Task
Generate a SQL query to answer the following question:
`Which IHSAA Football Class has a School of whitko?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"num_county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which IHSAA Football Class has a School of whitko?`:
```sql
|
SELECT "ihsaa_football_class" FROM "indiana_high_school_athletics_conference" WHERE "location"='wabash' AND "school"='wabash'; |
## Task
Generate a SQL query to answer the following question:
`Which IHSAA Football Class has a Location of wabash, and a School of wabash?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"num_county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which IHSAA Football Class has a Location of wabash, and a School of wabash?`:
```sql
|
SELECT AVG("to_par") FROM "missed_the_cut" WHERE "player"='davis love iii' AND "total">149; |
## Task
Generate a SQL query to answer the following question:
`With a Total of more than 149, what is Davis Love III's To par?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_won" real,
"total" real,
"to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `With a Total of more than 149, what is Davis Love III's To par?`:
```sql
|
SELECT MIN("total") FROM "missed_the_cut" WHERE "year_won">1993 AND "to_par"=6; |
## Task
Generate a SQL query to answer the following question:
`What is the Total of the Player with a To par of 6 and Year won after 1993?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_won" real,
"total" real,
"to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Total of the Player with a To par of 6 and Year won after 1993?`:
```sql
|
SELECT COUNT("year_won") FROM "missed_the_cut" WHERE "player"='davis love iii' AND "total"<149; |
## Task
Generate a SQL query to answer the following question:
`What is the Year won of Davis Love III with a Total of less than 149?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_won" real,
"total" real,
"to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Year won of Davis Love III with a Total of less than 149?`:
```sql
|
SELECT "genre" FROM "list_of_game_of_the_year_awards" WHERE "game"='mass effect'; |
## Task
Generate a SQL query to answer the following question:
`What is the genre of the Mass Effect game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_game_of_the_year_awards" (
"year" text,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the genre of the Mass Effect game?`:
```sql
|
SELECT "genre" FROM "list_of_game_of_the_year_awards" WHERE "year"='2006'; |
## Task
Generate a SQL query to answer the following question:
`What is the genre of the game from 2006?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_game_of_the_year_awards" (
"year" text,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the genre of the game from 2006?`:
```sql
|
SELECT "genre" FROM "list_of_game_of_the_year_awards" WHERE "developer_s"='nintendo ead'; |
## Task
Generate a SQL query to answer the following question:
`What is the genre of the game developed by Nintendo EAD?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_game_of_the_year_awards" (
"year" text,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the genre of the game developed by Nintendo EAD?`:
```sql
|
SELECT "platform_s" FROM "list_of_game_of_the_year_awards" WHERE "year"='2006'; |
## Task
Generate a SQL query to answer the following question:
`What is the platform of the game built in 2006?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_game_of_the_year_awards" (
"year" text,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the platform of the game built in 2006?`:
```sql
|
SELECT "game" FROM "list_of_game_of_the_year_awards" WHERE "developer_s"='ubisoft montreal'; |
## Task
Generate a SQL query to answer the following question:
`What game was developed by Ubisoft Montreal?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_game_of_the_year_awards" (
"year" text,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What game was developed by Ubisoft Montreal?`:
```sql
|
SELECT "genre" FROM "ign" WHERE "game"='portal 2'; |
## Task
Generate a SQL query to answer the following question:
`What is the genre for Portal 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ign" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the genre for Portal 2?`:
```sql
|
SELECT "platform_s" FROM "ign" WHERE "game"='portal 2'; |
## Task
Generate a SQL query to answer the following question:
`Which platforms can you play Portal 2 on?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ign" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which platforms can you play Portal 2 on?`:
```sql
|
SELECT "meet" FROM "men" WHERE "event"='1500m freestyle'; |
## Task
Generate a SQL query to answer the following question:
`What event had the 1500m freestyle?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men" (
"event" text,
"time" text,
"date" text,
"meet" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What event had the 1500m freestyle?`:
```sql
|
SELECT "name" FROM "individual_records" WHERE "country"='italy' AND "giro_wins"=0 AND "young_rider"=0 AND "maglia_rosa"<3; |
## Task
Generate a SQL query to answer the following question:
`Who is from italy has 0 giro wins, 0 young rider and less than 3 maglia rosa?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "individual_records" (
"rank" text,
"name" text,
"country" text,
"maglia_rosa" real,
"giro_wins" real,
"points" real,
"young_rider" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is from italy has 0 giro wins, 0 young rider and less than 3 maglia rosa?`:
```sql
|
SELECT MIN("maglia_rosa") FROM "individual_records" WHERE "rank"='108=' AND "country"='united kingdom' AND "young_rider"<0; |
## Task
Generate a SQL query to answer the following question:
`what is the least maglia rosa when the rank is 108=, the country is united kingdom and young rider is less than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "individual_records" (
"rank" text,
"name" text,
"country" text,
"maglia_rosa" real,
"giro_wins" real,
"points" real,
"young_rider" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the least maglia rosa when the rank is 108=, the country is united kingdom and young rider is less than 0?`:
```sql
|
SELECT AVG("bronze") FROM "medals_table" WHERE "nation"='united kingdom' AND "silver"<0; |
## Task
Generate a SQL query to answer the following question:
`How many bronze medals for the United Kingdom when the silver was less than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many bronze medals for the United Kingdom when the silver was less than 0?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.