output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT AVG("2000") FROM "changes_in_poverty_rates_on_largest_rese" WHERE "location"='montana' AND "reservation"='fort peck indian reservation' AND "1979"<26.8; |
## Task
Generate a SQL query to answer the following question:
`What shows for 2000 at the Fort Peck Indian Reservation, Montana, when the 1979 is less than 26.8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "changes_in_poverty_rates_on_largest_rese" (
"reservation" text,
"location" text,
"1969" real,
"1979" real,
"1989" real,
"2000" real
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for 2000 at the Fort Peck Indian Reservation, Montana, when the 1979 is less than 26.8?`:
```sql
|
SELECT SUM("2000") FROM "changes_in_poverty_rates_on_largest_rese" WHERE "1969"=54.3 AND "1979"<48.4; |
## Task
Generate a SQL query to answer the following question:
`What is the 2000 number when the 1969 is 54.3, and the 1979 is less than 48.4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "changes_in_poverty_rates_on_largest_rese" (
"reservation" text,
"location" text,
"1969" real,
"1979" real,
"1989" real,
"2000" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2000 number when the 1969 is 54.3, and the 1979 is less than 48.4?`:
```sql
|
SELECT SUM("2000") FROM "changes_in_poverty_rates_on_largest_rese" WHERE "1989"<54.9 AND "location"='arizona, new mexico, and utah'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2000 number when the 1989 is less than 54.9 in Arizona, New Mexico, and Utah?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "changes_in_poverty_rates_on_largest_rese" (
"reservation" text,
"location" text,
"1969" real,
"1979" real,
"1989" real,
"2000" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2000 number when the 1989 is less than 54.9 in Arizona, New Mexico, and Utah?`:
```sql
|
SELECT SUM("1979") FROM "changes_in_poverty_rates_on_largest_rese" WHERE "reservation"='standing rock indian reservation' AND "1989"<54.9; |
## Task
Generate a SQL query to answer the following question:
`What is the 1979 number for Standing Rock Indian Reservation when the 1989 is less than 54.9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "changes_in_poverty_rates_on_largest_rese" (
"reservation" text,
"location" text,
"1969" real,
"1979" real,
"1989" real,
"2000" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1979 number for Standing Rock Indian Reservation when the 1989 is less than 54.9?`:
```sql
|
SELECT "kerrypct" FROM "by_county" WHERE "othersnum"=66; |
## Task
Generate a SQL query to answer the following question:
`What Kerry's percentage where 66 people voted for another candidate?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_county" (
"county" text,
"kerrypct" text,
"kerrynum" real,
"bushpct" text,
"bushnum" real,
"otherspct" text,
"othersnum" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Kerry's percentage where 66 people voted for another candidate?`:
```sql
|
SELECT AVG("laps") FROM "125cc_classification" WHERE "time"='+17.485' AND "grid"<7; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the average Laps that has the Time of +17.485, and the Grid smaller than 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "125cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the average Laps that has the Time of +17.485, and the Grid smaller than 7?`:
```sql
|
SELECT SUM("grid") FROM "125cc_classification" WHERE "manufacturer"='aprilia' AND "rider"='sandro cortese'; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the sum of Grid that has the Manufacturer of aprilia, and the sandro cortese?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "125cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the sum of Grid that has the Manufacturer of aprilia, and the sandro cortese?`:
```sql
|
SELECT "date" FROM "regular_season" WHERE "game"=21; |
## Task
Generate a SQL query to answer the following question:
`What was the date of game 21?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score_time" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"arena_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of game 21?`:
```sql
|
SELECT "score_time" FROM "regular_season" WHERE "date"='june 10'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the game on June 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score_time" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"arena_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game on June 10?`:
```sql
|
SELECT SUM("round") FROM "draft_picks" WHERE "college_junior_club_team"='brandon wheat kings ( whl )' AND "player"='mike perovich (d)' AND "pick"<23; |
## Task
Generate a SQL query to answer the following question:
`What is Sum of Round, when College/Junior/Club Team is Brandon Wheat Kings ( WHL ), when Player is Mike Perovich (D), and when Pick is less than 23?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Sum of Round, when College/Junior/Club Team is Brandon Wheat Kings ( WHL ), when Player is Mike Perovich (D), and when Pick is less than 23?`:
```sql
|
SELECT SUM("round") FROM "draft_picks" WHERE "player"='tim hunter (rw)' AND "pick"<54; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of Round, when Player is Tim Hunter (RW), and when Pick is less than 54?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Round, when Player is Tim Hunter (RW), and when Pick is less than 54?`:
```sql
|
SELECT "outgoing_manager" FROM "managerial_changes" WHERE "replaced_by"='jürgen klopp'; |
## Task
Generate a SQL query to answer the following question:
`Who is the outgoing manager who was replaced by jürgen klopp?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the outgoing manager who was replaced by jürgen klopp?`:
```sql
|
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "replaced_by"='markus babbel'; |
## Task
Generate a SQL query to answer the following question:
`What is the date of appointment of the manager who was replaced by markus babbel?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of appointment of the manager who was replaced by markus babbel?`:
```sql
|
SELECT "manner_of_departure" FROM "managerial_changes" WHERE "date_of_appointment"='23 november 2008'; |
## Task
Generate a SQL query to answer the following question:
`What was the manner of depature of the manager with a date of appointment on 23 November 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the manner of depature of the manager with a date of appointment on 23 November 2008?`:
```sql
|
SELECT "replaced_by" FROM "managerial_changes" WHERE "team"='arminia bielefeld'; |
## Task
Generate a SQL query to answer the following question:
`Who replaced the manager of team arminia bielefeld?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who replaced the manager of team arminia bielefeld?`:
```sql
|
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "team"='fc bayern munich' AND "date_of_appointment"='27 april 2009'; |
## Task
Generate a SQL query to answer the following question:
`What is the date of vacancy of team fc bayern munich, which had a date of appointment on 27 April 2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of vacancy of team fc bayern munich, which had a date of appointment on 27 April 2009?`:
```sql
|
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "manner_of_departure"='sacked' AND "outgoing_manager"='fred rutten'; |
## Task
Generate a SQL query to answer the following question:
`What is the date of appointment of outgoing manager fred rutten, who had a sacked manner of departure?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of appointment of outgoing manager fred rutten, who had a sacked manner of departure?`:
```sql
|
SELECT "length" FROM "external_links" WHERE "writer"='james swallow' AND "release">2.1; |
## Task
Generate a SQL query to answer the following question:
`What was the length when James Swallow had a release longer than 2.1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "external_links" (
"title" text,
"series" text,
"release" real,
"featuring" text,
"writer" text,
"director" text,
"length" text,
"release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the length when James Swallow had a release longer than 2.1?`:
```sql
|
SELECT "writer" FROM "external_links" WHERE "title"='infiltration'; |
## Task
Generate a SQL query to answer the following question:
`Who wrote Infiltration?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "external_links" (
"title" text,
"series" text,
"release" real,
"featuring" text,
"writer" text,
"director" text,
"length" text,
"release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote Infiltration?`:
```sql
|
SELECT MIN("release") FROM "external_links" WHERE "director"='sharon gosling' AND "title"='pathogen'; |
## Task
Generate a SQL query to answer the following question:
`What was the earliest release for Pathogen directed by Sharon Gosling?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "external_links" (
"title" text,
"series" text,
"release" real,
"featuring" text,
"writer" text,
"director" text,
"length" text,
"release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the earliest release for Pathogen directed by Sharon Gosling?`:
```sql
|
SELECT "length" FROM "external_links" WHERE "release"=3.6; |
## Task
Generate a SQL query to answer the following question:
`What was the length of release 3.6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "external_links" (
"title" text,
"series" text,
"release" real,
"featuring" text,
"writer" text,
"director" text,
"length" text,
"release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the length of release 3.6?`:
```sql
|
SELECT "date" FROM "singles_12" WHERE "tournament"='alcobaça' AND "score"='6–3, 2–6, 7–5'; |
## Task
Generate a SQL query to answer the following question:
`What day was the score for tournament of alcobaça 6–3, 2–6, 7–5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_12" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day was the score for tournament of alcobaça 6–3, 2–6, 7–5?`:
```sql
|
SELECT "score" FROM "singles_12" WHERE "tournament"='alcobaça' AND "opponent_in_the_final"='xinyun han'; |
## Task
Generate a SQL query to answer the following question:
`What was the score for alcobaça when the opponent was in the final of xinyun han?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_12" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for alcobaça when the opponent was in the final of xinyun han?`:
```sql
|
SELECT "score" FROM "singles_12" WHERE "surface"='hard' AND "opponent_in_the_final"='irena pavlovic'; |
## Task
Generate a SQL query to answer the following question:
`What was the score when the opponent was irena pavlovic and the surface was hard?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_12" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when the opponent was irena pavlovic and the surface was hard?`:
```sql
|
SELECT "opponent_in_the_final" FROM "singles_12" WHERE "score"='6–3, 2–6, 7–5'; |
## Task
Generate a SQL query to answer the following question:
`What was the opponent in the final when the score was 6–3, 2–6, 7–5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_12" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the opponent in the final when the score was 6–3, 2–6, 7–5?`:
```sql
|
SELECT "date" FROM "singles_12" WHERE "surface"='clay' AND "score"='6–1, 6–4'; |
## Task
Generate a SQL query to answer the following question:
`What day was the surface clay and the score 6–1, 6–4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_12" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day was the surface clay and the score 6–1, 6–4?`:
```sql
|
SELECT "phoenician" FROM "cognates_of_core_hangul_letters" WHERE "hangul"='ㄹ'; |
## Task
Generate a SQL query to answer the following question:
`What is the Phoenician letter for the Hangul of ㄹ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cognates_of_core_hangul_letters" (
"hangul" text,
"phagspa" text,
"tibetan" text,
"phoenician" text,
"greek" text,
"latin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Phoenician letter for the Hangul of ㄹ?`:
```sql
|
SELECT "latin" FROM "cognates_of_core_hangul_letters" WHERE "tibetan"='ས'; |
## Task
Generate a SQL query to answer the following question:
`What is the Latin letter for the Tibetan of ས?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cognates_of_core_hangul_letters" (
"hangul" text,
"phagspa" text,
"tibetan" text,
"phoenician" text,
"greek" text,
"latin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Latin letter for the Tibetan of ས?`:
```sql
|
SELECT "greek" FROM "cognates_of_core_hangul_letters" WHERE "latin"='f, y, u/v/w'; |
## Task
Generate a SQL query to answer the following question:
`to the Latin of f, y, u/v/w?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cognates_of_core_hangul_letters" (
"hangul" text,
"phagspa" text,
"tibetan" text,
"phoenician" text,
"greek" text,
"latin" text
);
### SQL
Given the database schema, here is the SQL query that answers `to the Latin of f, y, u/v/w?`:
```sql
|
SELECT "hangul" FROM "cognates_of_core_hangul_letters" WHERE "greek"='ϝ, υ'; |
## Task
Generate a SQL query to answer the following question:
`What is the Hangul equivalent of the Greek ϝ, υ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cognates_of_core_hangul_letters" (
"hangul" text,
"phagspa" text,
"tibetan" text,
"phoenician" text,
"greek" text,
"latin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Hangul equivalent of the Greek ϝ, υ?`:
```sql
|
SELECT "latin" FROM "cognates_of_core_hangul_letters" WHERE "phagspa"='ꡙ'; |
## Task
Generate a SQL query to answer the following question:
`What is the Latin equivalent for the Phagspa of ꡙ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cognates_of_core_hangul_letters" (
"hangul" text,
"phagspa" text,
"tibetan" text,
"phoenician" text,
"greek" text,
"latin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Latin equivalent for the Phagspa of ꡙ?`:
```sql
|
SELECT "court_surface" FROM "tournaments" WHERE "began"<1897; |
## Task
Generate a SQL query to answer the following question:
`What was the surface played on for the match than began before 1897?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tournaments" (
"tournament" text,
"country" text,
"location" text,
"current_venue" text,
"began" real,
"court_surface" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the surface played on for the match than began before 1897?`:
```sql
|
SELECT "country" FROM "tournaments" WHERE "tournament"='indian wells masters'; |
## Task
Generate a SQL query to answer the following question:
`For the Indian Wells Masters tournament, what was the country?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tournaments" (
"tournament" text,
"country" text,
"location" text,
"current_venue" text,
"began" real,
"court_surface" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the Indian Wells Masters tournament, what was the country?`:
```sql
|
SELECT "location" FROM "tournaments" WHERE "court_surface"='hard' AND "country"='china'; |
## Task
Generate a SQL query to answer the following question:
`Which location was in China, and played on a hard court?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tournaments" (
"tournament" text,
"country" text,
"location" text,
"current_venue" text,
"began" real,
"court_surface" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which location was in China, and played on a hard court?`:
```sql
|
SELECT "country" FROM "tournaments" WHERE "tournament"='paris masters'; |
## Task
Generate a SQL query to answer the following question:
`What country was the Paris Masters tournament played in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tournaments" (
"tournament" text,
"country" text,
"location" text,
"current_venue" text,
"began" real,
"court_surface" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country was the Paris Masters tournament played in?`:
```sql
|
SELECT "opponents" FROM "pre_season_and_friendlies" WHERE "h_a"='h' AND "scorers"='ferguson'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent when the H/A was H and the scorer was Ferguson?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pre_season_and_friendlies" (
"date" text,
"opponents" text,
"h_a" text,
"result_f_a" text,
"scorers" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent when the H/A was H and the scorer was Ferguson?`:
```sql
|
SELECT "opponents" FROM "pre_season_and_friendlies" WHERE "h_a"='h' AND "date"='11 august 1991'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on 11 August 1991 when the H/A was H?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pre_season_and_friendlies" (
"date" text,
"opponents" text,
"h_a" text,
"result_f_a" text,
"scorers" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent on 11 August 1991 when the H/A was H?`:
```sql
|
SELECT "h_a" FROM "pre_season_and_friendlies" WHERE "scorers"='hughes'; |
## Task
Generate a SQL query to answer the following question:
`What was the H/A when the scorer was Hughes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pre_season_and_friendlies" (
"date" text,
"opponents" text,
"h_a" text,
"result_f_a" text,
"scorers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the H/A when the scorer was Hughes?`:
```sql
|
SELECT MIN("rank") FROM "top_grossing_films_u_s" WHERE "gross"='$26,010,864'; |
## Task
Generate a SQL query to answer the following question:
`What was the film that grossed $26,010,864 ranked?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_grossing_films_u_s" (
"rank" real,
"title" text,
"studio" text,
"director_s" text,
"gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the film that grossed $26,010,864 ranked?`:
```sql
|
SELECT "gross" FROM "top_grossing_films_u_s" WHERE "studio"='universal' AND "title"='xanadu'; |
## Task
Generate a SQL query to answer the following question:
`How much did Universal Studio's film Xanadu gross?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_grossing_films_u_s" (
"rank" real,
"title" text,
"studio" text,
"director_s" text,
"gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much did Universal Studio's film Xanadu gross?`:
```sql
|
SELECT AVG("rank") FROM "top_grossing_films_u_s" WHERE "title"='bronco billy'; |
## Task
Generate a SQL query to answer the following question:
`What is the rank of Bronco Billy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_grossing_films_u_s" (
"rank" real,
"title" text,
"studio" text,
"director_s" text,
"gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank of Bronco Billy?`:
```sql
|
SELECT MIN("founded") FROM "central_conference" WHERE "nickname"='cougars'; |
## Task
Generate a SQL query to answer the following question:
`Name the lowest Founded with the Name cougars?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "central_conference" (
"institution" text,
"location" text,
"founded" real,
"affiliation" text,
"nickname" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the lowest Founded with the Name cougars?`:
```sql
|
SELECT "affiliation" FROM "central_conference" WHERE "nickname"='cougars'; |
## Task
Generate a SQL query to answer the following question:
`Which Affiliation has a Nickname of cougars?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "central_conference" (
"institution" text,
"location" text,
"founded" real,
"affiliation" text,
"nickname" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Affiliation has a Nickname of cougars?`:
```sql
|
SELECT MAX("founded") FROM "central_conference" WHERE "affiliation"='private/methodist'; |
## Task
Generate a SQL query to answer the following question:
`Name the Founded which has a Affiliation of private/methodist?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "central_conference" (
"institution" text,
"location" text,
"founded" real,
"affiliation" text,
"nickname" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Founded which has a Affiliation of private/methodist?`:
```sql
|
SELECT "label" FROM "release_history_and_variations" WHERE "date"='1987'; |
## Task
Generate a SQL query to answer the following question:
`What is Label, when Date is 1987?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history_and_variations" (
"date" text,
"region" text,
"label" text,
"catalogue" text,
"format" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Label, when Date is 1987?`:
```sql
|
SELECT "date" FROM "release_history_and_variations" WHERE "format"='vinyl' AND "label"='mercury'; |
## Task
Generate a SQL query to answer the following question:
`What is Date, when Format is Vinyl, and when Label is Mercury?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history_and_variations" (
"date" text,
"region" text,
"label" text,
"catalogue" text,
"format" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Format is Vinyl, and when Label is Mercury?`:
```sql
|
SELECT "date" FROM "release_history_and_variations" WHERE "region"='yugoslavia'; |
## Task
Generate a SQL query to answer the following question:
`What is Date, when Region is Yugoslavia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history_and_variations" (
"date" text,
"region" text,
"label" text,
"catalogue" text,
"format" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Region is Yugoslavia?`:
```sql
|
SELECT "format" FROM "release_history_and_variations" WHERE "label"='bronze' AND "date"='1982' AND "catalogue"='204 636'; |
## Task
Generate a SQL query to answer the following question:
`What is Format, when Label is Bronze, when Date is 1982, and when Catalogue is 204 636?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history_and_variations" (
"date" text,
"region" text,
"label" text,
"catalogue" text,
"format" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Format, when Label is Bronze, when Date is 1982, and when Catalogue is 204 636?`:
```sql
|
SELECT "date" FROM "release_history_and_variations" WHERE "label"='jugoton'; |
## Task
Generate a SQL query to answer the following question:
`What is Date, when Label is Jugoton?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history_and_variations" (
"date" text,
"region" text,
"label" text,
"catalogue" text,
"format" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Label is Jugoton?`:
```sql
|
SELECT "premiere_date" FROM "cycles" WHERE "cycle"<2; |
## Task
Generate a SQL query to answer the following question:
`What is Premier Date, when Cycle is less than 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cycles" (
"cycle" real,
"premiere_date" text,
"winner" text,
"runner_up" text,
"number_of_contestants" text,
"international_destinations" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Premier Date, when Cycle is less than 2?`:
```sql
|
SELECT MIN("cycle") FROM "cycles" WHERE "number_of_contestants"='11' AND "international_destinations"='paris gran canaria'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest Cycle, when Number Of Contestants is 11, and when International Destinations is Paris Gran Canaria?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cycles" (
"cycle" real,
"premiere_date" text,
"winner" text,
"runner_up" text,
"number_of_contestants" text,
"international_destinations" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Cycle, when Number Of Contestants is 11, and when International Destinations is Paris Gran Canaria?`:
```sql
|
SELECT MAX("cycle") FROM "cycles" WHERE "number_of_contestants"='11' AND "premiere_date"='september 3, 2012'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Cycle, when the Number of Constestants is 11, and when Premiere Date is September 3, 2012?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cycles" (
"cycle" real,
"premiere_date" text,
"winner" text,
"runner_up" text,
"number_of_contestants" text,
"international_destinations" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Cycle, when the Number of Constestants is 11, and when Premiere Date is September 3, 2012?`:
```sql
|
SELECT "number_of_contestants" FROM "cycles" WHERE "cycle"=4; |
## Task
Generate a SQL query to answer the following question:
`What is Number of Contestants, when Cycle is 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cycles" (
"cycle" real,
"premiere_date" text,
"winner" text,
"runner_up" text,
"number_of_contestants" text,
"international_destinations" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Number of Contestants, when Cycle is 4?`:
```sql
|
SELECT "number_of_contestants" FROM "cycles" WHERE "international_destinations"='london lisbon'; |
## Task
Generate a SQL query to answer the following question:
`What is Number of Contestants, when International Destinations is London Lisbon?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cycles" (
"cycle" real,
"premiere_date" text,
"winner" text,
"runner_up" text,
"number_of_contestants" text,
"international_destinations" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Number of Contestants, when International Destinations is London Lisbon?`:
```sql
|
SELECT MIN("pick") FROM "washington_redskins_draft_history" WHERE "round"<3 AND "overall">4; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest pick with fewer than 3 rounds and more than 4 overall?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest pick with fewer than 3 rounds and more than 4 overall?`:
```sql
|
SELECT "round" FROM "washington_redskins_draft_history" WHERE "position"='qb' AND "overall">79; |
## Task
Generate a SQL query to answer the following question:
`Which round has more than 79 overall and a position of QB?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which round has more than 79 overall and a position of QB?`:
```sql
|
SELECT "position" FROM "washington_redskins_draft_history" WHERE "pick"<5 AND "college"='notre dame' AND "round"=7; |
## Task
Generate a SQL query to answer the following question:
`Which Notre Dame position has a pick lower than 5 and round 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Notre Dame position has a pick lower than 5 and round 7?`:
```sql
|
SELECT "date" FROM "schedule" WHERE "week"=17; |
## Task
Generate a SQL query to answer the following question:
`What was week 17's date?`
### 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 was week 17's date?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "result"='l 24–3'; |
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a Result of l 24–3?`
### 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 `Which Opponent has a Result of l 24–3?`:
```sql
|
SELECT "result" FROM "schedule" WHERE "week"=5; |
## Task
Generate a SQL query to answer the following question:
`What was week 5's result?`
### 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 was week 5's result?`:
```sql
|
SELECT "score" FROM "2009_season_schedule" WHERE "location_attendance"='groves high school' AND "high_assists"='giovanni riley (9)'; |
## Task
Generate a SQL query to answer the following question:
`What was the score for Groves High School when the high assist was Giovanni Riley (9)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_season_schedule" (
"date" text,
"opponent" text,
"home_away" 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 score for Groves High School when the high assist was Giovanni Riley (9)?`:
```sql
|
SELECT "high_points" FROM "2009_season_schedule" WHERE "opponent"='mid-michigan destroyers' AND "date"='january 3'; |
## Task
Generate a SQL query to answer the following question:
`What was the high points for opponent Mid-Michigan destroyers on January 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_season_schedule" (
"date" text,
"opponent" text,
"home_away" 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 high points for opponent Mid-Michigan destroyers on January 3?`:
```sql
|
SELECT "opponent" FROM "2009_season_schedule" WHERE "location_attendance"='richmond academy'; |
## Task
Generate a SQL query to answer the following question:
`What opponent is at Richmond Academy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_season_schedule" (
"date" text,
"opponent" text,
"home_away" 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 opponent is at Richmond Academy?`:
```sql
|
SELECT "high_points" FROM "2009_season_schedule" WHERE "date"='march 29'; |
## Task
Generate a SQL query to answer the following question:
`What were the high points on March 29?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_season_schedule" (
"date" text,
"opponent" text,
"home_away" 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 were the high points on March 29?`:
```sql
|
SELECT "opponent" FROM "2009_season_schedule" WHERE "score"='95-101'; |
## Task
Generate a SQL query to answer the following question:
`Which opponent scored 95-101?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_season_schedule" (
"date" text,
"opponent" text,
"home_away" 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 opponent scored 95-101?`:
```sql
|
SELECT "m_best_fairest" FROM "club_honour_board" WHERE "president"='ray kaduck' AND "m_coach"='richard keane'; |
## Task
Generate a SQL query to answer the following question:
`Who was the (M) Best & Fairest when ray kaduck was president and richard keane was coach?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "club_honour_board" (
"year" real,
"president" text,
"m_finishing_position" text,
"m_coach" text,
"m_best_fairest" text,
"m_leading_goalkicker" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the (M) Best & Fairest when ray kaduck was president and richard keane was coach?`:
```sql
|
SELECT "m_finishing_position" FROM "club_honour_board" WHERE "president"='ray kaduck' AND "m_coach"='corey bowen'; |
## Task
Generate a SQL query to answer the following question:
`What was the (M) Finishe position when ray kaduck was president and corey bowen was coach?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "club_honour_board" (
"year" real,
"president" text,
"m_finishing_position" text,
"m_coach" text,
"m_best_fairest" text,
"m_leading_goalkicker" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the (M) Finishe position when ray kaduck was president and corey bowen was coach?`:
```sql
|
SELECT AVG("game") FROM "game_log" WHERE "score"='l 102–114 (ot)'; |
## Task
Generate a SQL query to answer the following question:
`Which Game has a Score of l 102–114 (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,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Game has a Score of l 102–114 (ot)?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "date"='january 31'; |
## Task
Generate a SQL query to answer the following question:
`Which Record has a Date of january 31?`
### 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,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Record has a Date of january 31?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "game">34 AND "date"='january 9'; |
## Task
Generate a SQL query to answer the following question:
`Which Record has a Game larger than 34, and a Date of january 9?`
### 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,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Record has a Game larger than 34, and a Date of january 9?`:
```sql
|
SELECT "location_attendance" FROM "game_log" WHERE "record"='11–34'; |
## Task
Generate a SQL query to answer the following question:
`Which Location Attendance has a Record of 11–34?`
### 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,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Location Attendance has a Record of 11–34?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "score"='w 100-99'; |
## Task
Generate a SQL query to answer the following question:
`What is the record for the w 100-99 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,
"opponent" text,
"score" text,
"location" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record for the w 100-99 score?`:
```sql
|
SELECT "location" FROM "game_log" WHERE "record"='23-17'; |
## Task
Generate a SQL query to answer the following question:
`What is the location for the 23-17 record?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location for the 23-17 record?`:
```sql
|
SELECT "location" FROM "game_log" WHERE "game"<44 AND "record"='20-16'; |
## Task
Generate a SQL query to answer the following question:
`What is the location before game 44, and a 20-16 record?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location before game 44, and a 20-16 record?`:
```sql
|
SELECT "result" FROM "matches_and_goals_scored_at_world_cup_an" WHERE "match"='match reports'; |
## Task
Generate a SQL query to answer the following question:
`What was the result for the match with entry Match Reports?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "matches_and_goals_scored_at_world_cup_an" (
"match" text,
"date" text,
"location" text,
"lineup" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result for the match with entry Match Reports?`:
```sql
|
SELECT "location" FROM "matches_and_goals_scored_at_world_cup_an" WHERE "result"='3-3'; |
## Task
Generate a SQL query to answer the following question:
`What was the location of the match that had a result of 3-3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "matches_and_goals_scored_at_world_cup_an" (
"match" text,
"date" text,
"location" text,
"lineup" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the location of the match that had a result of 3-3?`:
```sql
|
SELECT "lineup" FROM "matches_and_goals_scored_at_world_cup_an" WHERE "competition"='group stage' AND "match"='12'; |
## Task
Generate a SQL query to answer the following question:
`What was the lineup for match 12 that had a competition of Group Stage?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "matches_and_goals_scored_at_world_cup_an" (
"match" text,
"date" text,
"location" text,
"lineup" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lineup for match 12 that had a competition of Group Stage?`:
```sql
|
SELECT "result" FROM "matches_and_goals_scored_at_world_cup_an" WHERE "location"='boston'; |
## Task
Generate a SQL query to answer the following question:
`What was the result for the match held in Boston?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "matches_and_goals_scored_at_world_cup_an" (
"match" text,
"date" text,
"location" text,
"lineup" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result for the match held in Boston?`:
```sql
|
SELECT SUM("game") FROM "game_log" WHERE "opponent"='@ st. louis hawks'; |
## Task
Generate a SQL query to answer the following question:
`How many total games were played against @ St. Louis Hawks this season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many total games were played against @ St. Louis Hawks this season?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "game"=48; |
## Task
Generate a SQL query to answer the following question:
`On what day was Game 48 played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what day was Game 48 played?`:
```sql
|
SELECT AVG("pick") FROM "team_players_drafted_into_the_nba" WHERE "round">1 AND "player"='reyshawn terry'; |
## Task
Generate a SQL query to answer the following question:
`What is the pick number later than round 1, for Reyshawn Terry?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team_players_drafted_into_the_nba" (
"year" real,
"round" real,
"pick" real,
"player" text,
"nba_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the pick number later than round 1, for Reyshawn Terry?`:
```sql
|
SELECT AVG("round") FROM "team_players_drafted_into_the_nba" WHERE "player"='ty lawson' AND "pick"<18; |
## Task
Generate a SQL query to answer the following question:
`What round was the player Ty Lawson with a pick earlier than 18?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team_players_drafted_into_the_nba" (
"year" real,
"round" real,
"pick" real,
"player" text,
"nba_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round was the player Ty Lawson with a pick earlier than 18?`:
```sql
|
SELECT COUNT("pick") FROM "team_players_drafted_into_the_nba" WHERE "player"='danny green' AND "round"<2; |
## Task
Generate a SQL query to answer the following question:
`What is the pick number for Danny Green in a round less than 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team_players_drafted_into_the_nba" (
"year" real,
"round" real,
"pick" real,
"player" text,
"nba_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the pick number for Danny Green in a round less than 2?`:
```sql
|
SELECT COUNT("pick") FROM "team_players_drafted_into_the_nba" WHERE "year"<2009 AND "round">1; |
## Task
Generate a SQL query to answer the following question:
`What is the pick number in a year earlier than 2009, with a round higher than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team_players_drafted_into_the_nba" (
"year" real,
"round" real,
"pick" real,
"player" text,
"nba_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the pick number in a year earlier than 2009, with a round higher than 1?`:
```sql
|
SELECT "notes" FROM "variety" WHERE "year"<2013 AND "language"='mandarin chinese' AND "network"='ctv'; |
## Task
Generate a SQL query to answer the following question:
`What are the notes for the Mandarin Chinese program on CTV earlier than 2013?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "variety" (
"year" real,
"network" text,
"title" text,
"notes" text,
"language" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the notes for the Mandarin Chinese program on CTV earlier than 2013?`:
```sql
|
SELECT "language" FROM "variety" WHERE "title"='strong heart'; |
## Task
Generate a SQL query to answer the following question:
`What is the language for Strong Heart?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "variety" (
"year" real,
"network" text,
"title" text,
"notes" text,
"language" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the language for Strong Heart?`:
```sql
|
SELECT "title" FROM "variety" WHERE "language"='korean' AND "network"='kbs2'; |
## Task
Generate a SQL query to answer the following question:
`What is the title for the Korean progran on KBS2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "variety" (
"year" real,
"network" text,
"title" text,
"notes" text,
"language" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title for the Korean progran on KBS2?`:
```sql
|
SELECT "network" FROM "variety" WHERE "year"<2011 AND "title"='star king'; |
## Task
Generate a SQL query to answer the following question:
`What is the network that aired Star King prior to 2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "variety" (
"year" real,
"network" text,
"title" text,
"notes" text,
"language" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the network that aired Star King prior to 2011?`:
```sql
|
SELECT "notes" FROM "variety" WHERE "title"='happy camp'; |
## Task
Generate a SQL query to answer the following question:
`What are the notes for Happy Camp?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "variety" (
"year" real,
"network" text,
"title" text,
"notes" text,
"language" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the notes for Happy Camp?`:
```sql
|
SELECT MIN("pick") FROM "washington_redskins_draft_history" WHERE "college"='ohio state'; |
## Task
Generate a SQL query to answer the following question:
`Which Pick has a College of ohio state?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Pick has a College of ohio state?`:
```sql
|
SELECT COUNT("round") FROM "washington_redskins_draft_history" WHERE "position"='lb' AND "pick"<25; |
## Task
Generate a SQL query to answer the following question:
`Which Round has a Position of lb, and a Pick smaller than 25?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Round has a Position of lb, and a Pick smaller than 25?`:
```sql
|
SELECT AVG("week") FROM "schedule" WHERE "result"='l 56-3'; |
## Task
Generate a SQL query to answer the following question:
`Which week has a result L 56-3?`
### 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 `Which week has a result L 56-3?`:
```sql
|
SELECT "place" FROM "final_leaderboard" WHERE "player"='raymond floyd'; |
## Task
Generate a SQL query to answer the following question:
`Where is the player Raymond Floyd?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the player Raymond Floyd?`:
```sql
|
SELECT "country" FROM "final_leaderboard" WHERE "score"='71-72-73-69=285'; |
## Task
Generate a SQL query to answer the following question:
`Which country has a score of 71-72-73-69=285?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has a score of 71-72-73-69=285?`:
```sql
|
SELECT MAX("money") FROM "final_round" WHERE "score"='69-71-70-74=284'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Money ( $ ), when Score is "69-71-70-74=284"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Money ( $ ), when Score is "69-71-70-74=284"?`:
```sql
|
SELECT "place" FROM "final_round" WHERE "score"='71-71-69-71=282'; |
## Task
Generate a SQL query to answer the following question:
`What is Place, when Score is "71-71-69-71=282"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Place, when Score is "71-71-69-71=282"?`:
```sql
|
SELECT "score" FROM "final_round" WHERE "player"='dow finsterwald'; |
## Task
Generate a SQL query to answer the following question:
`What is Score, when Player is "Dow Finsterwald"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Player is "Dow Finsterwald"?`:
```sql
|
SELECT "venue" FROM "achievements" WHERE "notes"='1:23:07'; |
## Task
Generate a SQL query to answer the following question:
`Which venue did the runner have a note of 1:23:07?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which venue did the runner have a note of 1:23:07?`:
```sql
|
SELECT "notes" FROM "achievements" WHERE "year"=2008 AND "position"='19th'; |
## Task
Generate a SQL query to answer the following question:
`What is the note result when the runner finished 19th in 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the note result when the runner finished 19th in 2008?`:
```sql
|
SELECT "points_1" FROM "division_one_final_table" WHERE "position"<13 AND "goal_difference"='+16'; |
## Task
Generate a SQL query to answer the following question:
`What are the points 1 for the team with position less than 13 and goal difference of +16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "division_one_final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the points 1 for the team with position less than 13 and goal difference of +16?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.