output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "college_hall_of_fame" FROM "ncaa_consensus_all_american_team" WHERE "position"='fullback'; |
## Task
Generate a SQL query to answer the following question:
`What is the college hall of fame of the player who plays fullback?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ncaa_consensus_all_american_team" (
"position" text,
"name" text,
"school" text,
"unanimous" text,
"college_hall_of_fame" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the college hall of fame of the player who plays fullback?`:
```sql
|
SELECT "position" FROM "ncaa_consensus_all_american_team" WHERE "school"='dartmouth ohio state'; |
## Task
Generate a SQL query to answer the following question:
`What is the position of the player from Dartmouth Ohio State?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ncaa_consensus_all_american_team" (
"position" text,
"name" text,
"school" text,
"unanimous" text,
"college_hall_of_fame" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position of the player from Dartmouth Ohio State?`:
```sql
|
SELECT "english_title" FROM "submissions" WHERE "director"='jayme monjardim'; |
## Task
Generate a SQL query to answer the following question:
`What is the English title of the film Directed by Jayme Monjardim?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" real,
"original_title" text,
"english_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the English title of the film Directed by Jayme Monjardim?`:
```sql
|
SELECT "director" FROM "submissions" WHERE "year_ceremony"=2001; |
## Task
Generate a SQL query to answer the following question:
`What was the Director with a Ceremony of 2001?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" real,
"original_title" text,
"english_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Director with a Ceremony of 2001?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "save"='||20,599||32-37'; |
## Task
Generate a SQL query to answer the following question:
`When have a Save of ||20,599||32-37?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"save" text
);
### SQL
Given the database schema, here is the SQL query that answers `When have a Save of ||20,599||32-37?`:
```sql
|
SELECT "save" FROM "game_log" WHERE "date"='june 15'; |
## Task
Generate a SQL query to answer the following question:
`Which Save is on June 15?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"save" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Save is on June 15?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "opponent"='boston red sox' AND "save"='sager'; |
## Task
Generate a SQL query to answer the following question:
`Which Score has a Opponent of Boston red sox and a Save of sager?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"save" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has a Opponent of Boston red sox and a Save of sager?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "opponent"='at seattle mariners'; |
## Task
Generate a SQL query to answer the following question:
`When has an Opponent of at Seattle mariners?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"save" text
);
### SQL
Given the database schema, here is the SQL query that answers `When has an Opponent of at Seattle mariners?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "save"='ayala' AND "loss"='olivares'; |
## Task
Generate a SQL query to answer the following question:
`When is the Save of Ayala and a Loss of Olivares`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"save" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is the Save of Ayala and a Loss of Olivares`:
```sql
|
SELECT "tournament" FROM "doubles_champion_5" WHERE "partner"='martín rodríguez'; |
## Task
Generate a SQL query to answer the following question:
`Which Tournament has a Partner of martín rodríguez?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_champion_5" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Tournament has a Partner of martín rodríguez?`:
```sql
|
SELECT COUNT("touchdowns") FROM "michigan_89_beloit_0" WHERE "field_goals">0; |
## Task
Generate a SQL query to answer the following question:
`How many Touchdowns have Field goals larger than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_89_beloit_0" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Touchdowns have Field goals larger than 0?`:
```sql
|
SELECT MAX("extra_points") FROM "michigan_89_beloit_0" WHERE "player"='herrnstein' AND "points"<30; |
## Task
Generate a SQL query to answer the following question:
`Which Extra points is the highest one that has a Player of herrnstein, and Points smaller than 30?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_89_beloit_0" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Extra points is the highest one that has a Player of herrnstein, and Points smaller than 30?`:
```sql
|
SELECT MIN("touchdowns") FROM "michigan_89_beloit_0" WHERE "extra_points"<14 AND "player"='white' AND "points"<5; |
## Task
Generate a SQL query to answer the following question:
`Which Touchdowns is the lowest one that has Extra points smaller than 14, and a Player of white, and Points smaller than 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_89_beloit_0" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Touchdowns is the lowest one that has Extra points smaller than 14, and a Player of white, and Points smaller than 5?`:
```sql
|
SELECT MIN("touchdowns") FROM "michigan_89_beloit_0" WHERE "points"=5 AND "field_goals">0; |
## Task
Generate a SQL query to answer the following question:
`Which Touchdowns is the lowest one that has Points of 5, and a Field goals larger than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_89_beloit_0" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Touchdowns is the lowest one that has Points of 5, and a Field goals larger than 0?`:
```sql
|
SELECT MAX("points") FROM "michigan_89_beloit_0" WHERE "touchdowns"<1; |
## Task
Generate a SQL query to answer the following question:
`Which Points is the lowest one that has Touchdowns smaller than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_89_beloit_0" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Points is the lowest one that has Touchdowns smaller than 1?`:
```sql
|
SELECT "location" FROM "bowl_games" WHERE "season"=2006; |
## Task
Generate a SQL query to answer the following question:
`What is the Location of the Bowl in 2006?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bowl_games" (
"season" real,
"bowl_game" text,
"result" text,
"opponent" text,
"stadium" text,
"location" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Location of the Bowl in 2006?`:
```sql
|
SELECT "location" FROM "bowl_games" WHERE "attendance"='70,283'; |
## Task
Generate a SQL query to answer the following question:
`At what Location was the Attendance 70,283?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bowl_games" (
"season" real,
"bowl_game" text,
"result" text,
"opponent" text,
"stadium" text,
"location" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `At what Location was the Attendance 70,283?`:
```sql
|
SELECT "bowl_game" FROM "bowl_games" WHERE "season">1968 AND "location"='san francisco, ca'; |
## Task
Generate a SQL query to answer the following question:
`What was the Bowl game in San Francisco, CA after 1968?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bowl_games" (
"season" real,
"bowl_game" text,
"result" text,
"opponent" text,
"stadium" text,
"location" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Bowl game in San Francisco, CA after 1968?`:
```sql
|
SELECT "team" FROM "moto_gp_participants" WHERE "rounds"='all' AND "constructor"='yamaha'; |
## Task
Generate a SQL query to answer the following question:
`What team has a yamaha constructor with all rounds?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "moto_gp_participants" (
"team" text,
"constructor" text,
"motorcycle" text,
"rider" text,
"rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team has a yamaha constructor with all rounds?`:
```sql
|
SELECT "rounds" FROM "moto_gp_participants" WHERE "constructor"='ducati' AND "rider"='mika kallio'; |
## Task
Generate a SQL query to answer the following question:
`What rounds did rider Mika Kallio with a Ducati constructor have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "moto_gp_participants" (
"team" text,
"constructor" text,
"motorcycle" text,
"rider" text,
"rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `What rounds did rider Mika Kallio with a Ducati constructor have?`:
```sql
|
SELECT "rider" FROM "moto_gp_participants" WHERE "constructor"='honda' AND "team"='scot racing team' AND "rounds"='6-17'; |
## Task
Generate a SQL query to answer the following question:
`Who is the rider of Scot Racing team with a Honda constructor and rounds 6-17?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "moto_gp_participants" (
"team" text,
"constructor" text,
"motorcycle" text,
"rider" text,
"rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the rider of Scot Racing team with a Honda constructor and rounds 6-17?`:
```sql
|
SELECT "rounds" FROM "moto_gp_participants" WHERE "team"='ducati marlboro team' AND "rider"='mika kallio 1'; |
## Task
Generate a SQL query to answer the following question:
`What is the rounds of rider Mika Kallio 1 of the Ducati Marlboro team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "moto_gp_participants" (
"team" text,
"constructor" text,
"motorcycle" text,
"rider" text,
"rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rounds of rider Mika Kallio 1 of the Ducati Marlboro team?`:
```sql
|
SELECT AVG("week") FROM "schedule" WHERE "attendance"<'18,517' AND "date"='november 21, 1954'; |
## Task
Generate a SQL query to answer the following question:
`What is the average week that there was a game with less than 18,517 fans attending and occurred on November 21, 1954?`
### 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" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average week that there was a game with less than 18,517 fans attending and occurred on November 21, 1954?`:
```sql
|
SELECT MAX("week") FROM "schedule" WHERE "attendance"<'22,597' AND "opponent"='pittsburgh steelers'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest week that had a game against the Pittsburgh Steelers with 22,597 fans in attendance?`
### 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" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest week that had a game against the Pittsburgh Steelers with 22,597 fans in attendance?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "week"<5 AND "date"='october 10, 1954'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent for the game taht was before week 5 on October 10, 1954?`
### 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" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent for the game taht was before week 5 on October 10, 1954?`:
```sql
|
SELECT AVG("attendance") FROM "schedule" WHERE "week">4 AND "date"='november 14, 1954'; |
## Task
Generate a SQL query to answer the following question:
`What is the average attendance for the game that was after week 4 and on November 14, 1954?`
### 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" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average attendance for the game that was after week 4 and on November 14, 1954?`:
```sql
|
SELECT COUNT("game") FROM "regular_season" WHERE "record"='21–4–7' AND "december">19; |
## Task
Generate a SQL query to answer the following question:
`After December 19, what is the Game number with a Record of 21–4–7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `After December 19, what is the Game number with a Record of 21–4–7?`:
```sql
|
SELECT SUM("points") FROM "regular_season" WHERE "score"='2–7'; |
## Task
Generate a SQL query to answer the following question:
`What were the Points in the game with a Score of 2–7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What were the Points in the game with a Score of 2–7?`:
```sql
|
SELECT MIN("bronze") FROM "women" WHERE "gold"<5 AND "rank"='6' AND "total">1; |
## Task
Generate a SQL query to answer the following question:
`What's the lowest bronze with a 6 rank, smaller than 5 gold, and a total of more than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the lowest bronze with a 6 rank, smaller than 5 gold, and a total of more than 1?`:
```sql
|
SELECT SUM("bronze") FROM "women" WHERE "gold"<0; |
## Task
Generate a SQL query to answer the following question:
`What's the Bronze cumulative number for less than 0 gold?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Bronze cumulative number for less than 0 gold?`:
```sql
|
SELECT AVG("lost") FROM "torneio_rio_s_o_paulo" WHERE "against">19 AND "drawn"<1; |
## Task
Generate a SQL query to answer the following question:
`Which average Lost has an Against larger than 19, and a Drawn smaller than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneio_rio_s_o_paulo" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which average Lost has an Against larger than 19, and a Drawn smaller than 1?`:
```sql
|
SELECT AVG("against") FROM "torneio_rio_s_o_paulo" WHERE "drawn"=3 AND "points">9 AND "team"='portuguesa'; |
## Task
Generate a SQL query to answer the following question:
`Which average Against has Drawn of 3, and Points larger than 9, and a Team of portuguesa?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneio_rio_s_o_paulo" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which average Against has Drawn of 3, and Points larger than 9, and a Team of portuguesa?`:
```sql
|
SELECT AVG("against") FROM "torneio_rio_s_o_paulo" WHERE "points"=6 AND "played"<9; |
## Task
Generate a SQL query to answer the following question:
`Which average Against has Points of 6, and a Played smaller than 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneio_rio_s_o_paulo" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which average Against has Points of 6, and a Played smaller than 9?`:
```sql
|
SELECT AVG("points") FROM "torneio_rio_s_o_paulo" WHERE "position"=7 AND "lost"<4; |
## Task
Generate a SQL query to answer the following question:
`Which average Points have a Position of 7, and a Lost smaller than 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneio_rio_s_o_paulo" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which average Points have a Position of 7, and a Lost smaller than 4?`:
```sql
|
SELECT AVG("points") FROM "torneio_rio_s_o_paulo" WHERE "lost">2 AND "drawn">2 AND "difference"='0'; |
## Task
Generate a SQL query to answer the following question:
`Which average Points have a Lost larger than 2, and Drawn larger than 2, and a Difference of 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneio_rio_s_o_paulo" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which average Points have a Lost larger than 2, and Drawn larger than 2, and a Difference of 0?`:
```sql
|
SELECT AVG("touchdowns") FROM "michigan_119_michigan_agricultural_0" WHERE "extra_points"=0 AND "points">5 AND "player"='curtis redden'; |
## Task
Generate a SQL query to answer the following question:
`Which Touchdowns have an Extra points of 0, and Points larger than 5, and a Player of curtis redden?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_119_michigan_agricultural_0" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Touchdowns have an Extra points of 0, and Points larger than 5, and a Player of curtis redden?`:
```sql
|
SELECT SUM("extra_points") FROM "michigan_119_michigan_agricultural_0" WHERE "touchdowns"=1 AND "player"='ross kidston' AND "points"<5; |
## Task
Generate a SQL query to answer the following question:
`How many Extra points have Touchdowns of 1, and a Player of ross kidston, and Points smaller than 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_119_michigan_agricultural_0" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Extra points have Touchdowns of 1, and a Player of ross kidston, and Points smaller than 5?`:
```sql
|
SELECT MIN("points") FROM "michigan_119_michigan_agricultural_0" WHERE "extra_points"=0 AND "player"='curtis redden' AND "touchdowns"<2; |
## Task
Generate a SQL query to answer the following question:
`Which Points is the lowest one that has an Extra points of 0, and a Player of curtis redden, and Touchdowns smaller than 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_119_michigan_agricultural_0" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Points is the lowest one that has an Extra points of 0, and a Player of curtis redden, and Touchdowns smaller than 2?`:
```sql
|
SELECT MIN("extra_points") FROM "michigan_119_michigan_agricultural_0" WHERE "player"='ross kidston' AND "points"<5; |
## Task
Generate a SQL query to answer the following question:
`Which Extra points is the lowest one that has a Player of ross kidston, and Points smaller than 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_119_michigan_agricultural_0" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Extra points is the lowest one that has a Player of ross kidston, and Points smaller than 5?`:
```sql
|
SELECT AVG("points") FROM "michigan_119_michigan_agricultural_0" WHERE "touchdowns"=1 AND "field_goals"<0; |
## Task
Generate a SQL query to answer the following question:
`Which Points have Touchdowns of 1, and a Field goals smaller than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_119_michigan_agricultural_0" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Points have Touchdowns of 1, and a Field goals smaller than 0?`:
```sql
|
SELECT "poll" FROM "ranking_movement" WHERE "wk_10">2 AND "wk_2"='12' AND "wk_13"=8; |
## Task
Generate a SQL query to answer the following question:
`Which poll had a week 10 larger than 2, a week 2 of exactly 12, and a week 13 of 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ranking_movement" (
"poll" text,
"wk_1" text,
"wk_2" text,
"wk_3" text,
"wk_4" text,
"wk_5" text,
"wk_6" text,
"wk_7" text,
"wk_8" real,
"wk_9" real,
"wk_10" real,
"wk_11" real,
"wk_13" real,
"wk_14" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which poll had a week 10 larger than 2, a week 2 of exactly 12, and a week 13 of 8?`:
```sql
|
SELECT MAX("wk_9") FROM "ranking_movement" WHERE "wk_6"='7' AND "wk_10">2 AND "wk_7"='5' AND "wk_11"<2; |
## Task
Generate a SQL query to answer the following question:
`What is the highest week 9 that had a week 6 of 7, a week 10 of greater than 2, a week 7 of 5, and a week 11 less than 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ranking_movement" (
"poll" text,
"wk_1" text,
"wk_2" text,
"wk_3" text,
"wk_4" text,
"wk_5" text,
"wk_6" text,
"wk_7" text,
"wk_8" real,
"wk_9" real,
"wk_10" real,
"wk_11" real,
"wk_13" real,
"wk_14" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest week 9 that had a week 6 of 7, a week 10 of greater than 2, a week 7 of 5, and a week 11 less than 2?`:
```sql
|
SELECT "week_5_sept_28" FROM "ap_poll" WHERE "week_10_nov_2"='maryland (6-2)'; |
## Task
Generate a SQL query to answer the following question:
`What was the week 5 opponent for the year with a week 10 opponent of Maryland (6-2)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ap_poll" (
"week_2_sept_7" text,
"week_3_sept_14" text,
"week_4_sept_21" text,
"week_5_sept_28" text,
"week_6_oct_5" text,
"week_7_oct_12" text,
"week_10_nov_2" text,
"week_12_nov_16" text,
"week_14_nov_30" text,
"week_15_dec_7" text,
"week_16_final_jan_9" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the week 5 opponent for the year with a week 10 opponent of Maryland (6-2)?`:
```sql
|
SELECT "week_14_nov_30" FROM "ap_poll" WHERE "week_10_nov_2"='michigan state (8-2)'; |
## Task
Generate a SQL query to answer the following question:
`What was the week 14 opponent for the year with a week 10 opponent of Michigan State (8-2)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ap_poll" (
"week_2_sept_7" text,
"week_3_sept_14" text,
"week_4_sept_21" text,
"week_5_sept_28" text,
"week_6_oct_5" text,
"week_7_oct_12" text,
"week_10_nov_2" text,
"week_12_nov_16" text,
"week_14_nov_30" text,
"week_15_dec_7" text,
"week_16_final_jan_9" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the week 14 opponent for the year with a week 10 opponent of Michigan State (8-2)?`:
```sql
|
SELECT "week_4_sept_21" FROM "ap_poll" WHERE "week_10_nov_2"='michigan state (8-2)'; |
## Task
Generate a SQL query to answer the following question:
`What is the week 4 opponent for the year with a week 10 opponent of Michigan State (8-2)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ap_poll" (
"week_2_sept_7" text,
"week_3_sept_14" text,
"week_4_sept_21" text,
"week_5_sept_28" text,
"week_6_oct_5" text,
"week_7_oct_12" text,
"week_10_nov_2" text,
"week_12_nov_16" text,
"week_14_nov_30" text,
"week_15_dec_7" text,
"week_16_final_jan_9" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the week 4 opponent for the year with a week 10 opponent of Michigan State (8-2)?`:
```sql
|
SELECT "week_12_nov_16" FROM "ap_poll" WHERE "week_3_sept_14"='south florida (3-0)'; |
## Task
Generate a SQL query to answer the following question:
`What is the week 12 opponent for the year that had a week 3 opponent of South Florida (3-0)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ap_poll" (
"week_2_sept_7" text,
"week_3_sept_14" text,
"week_4_sept_21" text,
"week_5_sept_28" text,
"week_6_oct_5" text,
"week_7_oct_12" text,
"week_10_nov_2" text,
"week_12_nov_16" text,
"week_14_nov_30" text,
"week_15_dec_7" text,
"week_16_final_jan_9" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the week 12 opponent for the year that had a week 3 opponent of South Florida (3-0)?`:
```sql
|
SELECT "week_7_oct_12" FROM "ap_poll" WHERE "week_12_nov_16"='oregon state (7-3)'; |
## Task
Generate a SQL query to answer the following question:
`What was the week 7 opponent for the year that had a week 12 opponent of Oregon State (7-3)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ap_poll" (
"week_2_sept_7" text,
"week_3_sept_14" text,
"week_4_sept_21" text,
"week_5_sept_28" text,
"week_6_oct_5" text,
"week_7_oct_12" text,
"week_10_nov_2" text,
"week_12_nov_16" text,
"week_14_nov_30" text,
"week_15_dec_7" text,
"week_16_final_jan_9" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the week 7 opponent for the year that had a week 12 opponent of Oregon State (7-3)?`:
```sql
|
SELECT "week_3_sept_14" FROM "ap_poll" WHERE "week_7_oct_12"='georgia (5-1)'; |
## Task
Generate a SQL query to answer the following question:
`What was the week 3 opponent for the year that had a week 7 opponent of Georgia (5-1)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ap_poll" (
"week_2_sept_7" text,
"week_3_sept_14" text,
"week_4_sept_21" text,
"week_5_sept_28" text,
"week_6_oct_5" text,
"week_7_oct_12" text,
"week_10_nov_2" text,
"week_12_nov_16" text,
"week_14_nov_30" text,
"week_15_dec_7" text,
"week_16_final_jan_9" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the week 3 opponent for the year that had a week 7 opponent of Georgia (5-1)?`:
```sql
|
SELECT "women_s_singles" FROM "previous_winners" WHERE "year"='2012'; |
## Task
Generate a SQL query to answer the following question:
`Name the women's singles for 2012`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "previous_winners" (
"year" text,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the women's singles for 2012`:
```sql
|
SELECT "year" FROM "previous_winners" WHERE "men_s_doubles"='angga pratama ryan agung saputra'; |
## Task
Generate a SQL query to answer the following question:
`Name the year for angga pratama ryan agung saputra`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "previous_winners" (
"year" text,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the year for angga pratama ryan agung saputra`:
```sql
|
SELECT "men_s_doubles" FROM "previous_winners" WHERE "women_s_doubles"='anneke feinya agustin nitya krishinda maheswari'; |
## Task
Generate a SQL query to answer the following question:
`Name the men's doubles for anneke feinya agustin nitya krishinda maheswari`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "previous_winners" (
"year" text,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the men's doubles for anneke feinya agustin nitya krishinda maheswari`:
```sql
|
SELECT "men_s_doubles" FROM "previous_winners" WHERE "year"='2010'; |
## Task
Generate a SQL query to answer the following question:
`Name the men's doubles for 2010`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "previous_winners" (
"year" text,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the men's doubles for 2010`:
```sql
|
SELECT "week_14_nov_24" FROM "ap_poll" WHERE "week_11_nov_3"='usc (6-2)'; |
## Task
Generate a SQL query to answer the following question:
`What is Week 14 Nov 24, that has Week 11 Nov 3 of USC (6-2)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ap_poll" (
"preseason" text,
"week_1_aug_26" text,
"week_2_sept_2" text,
"week_3_sept_8" text,
"week_4_sept_15" text,
"week_5_sept_22" text,
"week_6_sept_29" text,
"week_7_oct_6" text,
"week_8_oct_13" text,
"week_9_oct_20" text,
"week_10_oct_27" text,
"week_11_nov_3" text,
"week_12_nov_10" text,
"week_13_nov_17" text,
"week_14_nov_24" text,
"week_15_dec_1" text,
"week_16_dec_8" text,
"week_17_final_jan_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Week 14 Nov 24, that has Week 11 Nov 3 of USC (6-2)?`:
```sql
|
SELECT "week_9_oct_20" FROM "ap_poll" WHERE "week_17_final_jan_4"='michigan (10-3)'; |
## Task
Generate a SQL query to answer the following question:
`What is listed for the Week 9 Oct 20 that has a Week 17 (Final) Jan 4 of Michigan (10-3)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ap_poll" (
"preseason" text,
"week_1_aug_26" text,
"week_2_sept_2" text,
"week_3_sept_8" text,
"week_4_sept_15" text,
"week_5_sept_22" text,
"week_6_sept_29" text,
"week_7_oct_6" text,
"week_8_oct_13" text,
"week_9_oct_20" text,
"week_10_oct_27" text,
"week_11_nov_3" text,
"week_12_nov_10" text,
"week_13_nov_17" text,
"week_14_nov_24" text,
"week_15_dec_1" text,
"week_16_dec_8" text,
"week_17_final_jan_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is listed for the Week 9 Oct 20 that has a Week 17 (Final) Jan 4 of Michigan (10-3)?`:
```sql
|
SELECT "week_1_aug_26" FROM "ap_poll" WHERE "week_7_oct_6"='usc (3-2)'; |
## Task
Generate a SQL query to answer the following question:
`What is listed for the Week 1 Aug 26 that has a Week 7 Oct 6 of USC (3-2)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ap_poll" (
"preseason" text,
"week_1_aug_26" text,
"week_2_sept_2" text,
"week_3_sept_8" text,
"week_4_sept_15" text,
"week_5_sept_22" text,
"week_6_sept_29" text,
"week_7_oct_6" text,
"week_8_oct_13" text,
"week_9_oct_20" text,
"week_10_oct_27" text,
"week_11_nov_3" text,
"week_12_nov_10" text,
"week_13_nov_17" text,
"week_14_nov_24" text,
"week_15_dec_1" text,
"week_16_dec_8" text,
"week_17_final_jan_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is listed for the Week 1 Aug 26 that has a Week 7 Oct 6 of USC (3-2)?`:
```sql
|
SELECT "week_3_sept_8" FROM "ap_poll" WHERE "week_2_sept_2"='florida state (2-0) (4)'; |
## Task
Generate a SQL query to answer the following question:
`What is listed for the Week 3 Sept 8 that has a Week 2 Sept 2 of Florida State (2-0) (4)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ap_poll" (
"preseason" text,
"week_1_aug_26" text,
"week_2_sept_2" text,
"week_3_sept_8" text,
"week_4_sept_15" text,
"week_5_sept_22" text,
"week_6_sept_29" text,
"week_7_oct_6" text,
"week_8_oct_13" text,
"week_9_oct_20" text,
"week_10_oct_27" text,
"week_11_nov_3" text,
"week_12_nov_10" text,
"week_13_nov_17" text,
"week_14_nov_24" text,
"week_15_dec_1" text,
"week_16_dec_8" text,
"week_17_final_jan_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is listed for the Week 3 Sept 8 that has a Week 2 Sept 2 of Florida State (2-0) (4)?`:
```sql
|
SELECT COUNT("december") FROM "regular_season" WHERE "score"='5–2' AND "game"<27; |
## Task
Generate a SQL query to answer the following question:
`How much December has a Score of 5–2, and a Game smaller than 27?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much December has a Score of 5–2, and a Game smaller than 27?`:
```sql
|
SELECT MAX("game") FROM "regular_season" WHERE "opponent"='@ pittsburgh penguins'; |
## Task
Generate a SQL query to answer the following question:
`Which Game has an Opponent of @ pittsburgh penguins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Game has an Opponent of @ pittsburgh penguins?`:
```sql
|
SELECT MAX("december") FROM "regular_season" WHERE "record"='21–7–2' AND "game">30; |
## Task
Generate a SQL query to answer the following question:
`Which December has a Record of 21–7–2, and a Game larger than 30?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which December has a Record of 21–7–2, and a Game larger than 30?`:
```sql
|
SELECT AVG("december") FROM "regular_season" WHERE "points"=38 AND "record"='18–6–2'; |
## Task
Generate a SQL query to answer the following question:
`Which December has Points of 38, and a Record of 18–6–2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which December has Points of 38, and a Record of 18–6–2?`:
```sql
|
SELECT "score" FROM "international_goals" WHERE "result"='2–1' AND "date"='5 july 2007'; |
## Task
Generate a SQL query to answer the following question:
`What is the Score that has a Result of 2–1 on 5 july 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score that has a Result of 2–1 on 5 july 2007?`:
```sql
|
SELECT "competition" FROM "international_goals" WHERE "venue"='hong kong'; |
## Task
Generate a SQL query to answer the following question:
`Which Competition has a Venue of hong kong?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Competition has a Venue of hong kong?`:
```sql
|
SELECT "date" FROM "international_goals" WHERE "competition"='friendly match' AND "result"='2–1'; |
## Task
Generate a SQL query to answer the following question:
`When is the Competition of friendly match with a Result of 2–1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is the Competition of friendly match with a Result of 2–1?`:
```sql
|
SELECT "venue" FROM "international_goals" WHERE "result"='2–0'; |
## Task
Generate a SQL query to answer the following question:
`Which Venue has a Result of 2–0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Venue has a Result of 2–0?`:
```sql
|
SELECT "score" FROM "international_goals" WHERE "competition"='2007 afc asian cup qualification' AND "result"='8–0'; |
## Task
Generate a SQL query to answer the following question:
`What is the Score of 2007 afc asian cup qualification with a Result of 8–0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score of 2007 afc asian cup qualification with a Result of 8–0?`:
```sql
|
SELECT "competition" FROM "international_goals" WHERE "result"='3–1'; |
## Task
Generate a SQL query to answer the following question:
`Which Competition has a Result of 3–1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Competition has a Result of 3–1?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "attendance"='31,467'; |
## Task
Generate a SQL query to answer the following question:
`What was the Indians' record during the game that had 31,467 in attendance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Indians' record during the game that had 31,467 in attendance?`:
```sql
|
SELECT COUNT("year") FROM "official_versions" WHERE "length"='4:00'; |
## Task
Generate a SQL query to answer the following question:
`what year is 4:00 long`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "official_versions" (
"version" text,
"length" text,
"album" text,
"remixed_by" text,
"year" real
);
### SQL
Given the database schema, here is the SQL query that answers `what year is 4:00 long`:
```sql
|
SELECT AVG("round") FROM "atlanta_falcons_draft_history" WHERE "position"='defensive tackle'; |
## Task
Generate a SQL query to answer the following question:
`What round on average was a defensive tackle selected?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round on average was a defensive tackle selected?`:
```sql
|
SELECT MAX("30th") FROM "points_system" WHERE "11th"=26 AND "17th">16; |
## Task
Generate a SQL query to answer the following question:
`11th of 26, and a 17th larger than 16 has what highest 30th?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "points_system" (
"distance" text,
"10th" real,
"11th" real,
"12th" real,
"13th" real,
"14th" real,
"15th" real,
"16th" real,
"17th" real,
"18th" real,
"19th" real,
"20th" real,
"21st" real,
"22nd" real,
"23rd" real,
"24th" real,
"25th" real,
"26th" real,
"27th" real,
"28th" real,
"29th" real,
"30th" real,
"31st" real,
"32nd" real
);
### SQL
Given the database schema, here is the SQL query that answers `11th of 26, and a 17th larger than 16 has what highest 30th?`:
```sql
|
SELECT MIN("total") FROM "medal_table" WHERE "silver"<1 AND "rank">5 AND "bronze">1; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest total for the silver less than 1, and a rank more than 5, more than 1 bronze?`
### 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 for the silver less than 1, and a rank more than 5, more than 1 bronze?`:
```sql
|
SELECT "gold" FROM "medal_table" WHERE "bronze"=1 AND "silver">0; |
## Task
Generate a SQL query to answer the following question:
`Who ha the gold and 1 bronze, and more than 0 silver?`
### 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 `Who ha the gold and 1 bronze, and more than 0 silver?`:
```sql
|
SELECT SUM("bronze") FROM "medal_table" WHERE "total"<4 AND "gold">0 AND "silver"=0; |
## Task
Generate a SQL query to answer the following question:
`Who has a total of the Bronze less than 4, gold more than 0, and no silver?`
### 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 `Who has a total of the Bronze less than 4, gold more than 0, and no silver?`:
```sql
|
SELECT AVG("points") FROM "campeonato_brasileiro_s_rie_a" WHERE "lost"=21 AND "position"=22; |
## Task
Generate a SQL query to answer the following question:
`What's the Points average with a Lost of 21, and Position of 22?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_brasileiro_s_rie_a" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Points average with a Lost of 21, and Position of 22?`:
```sql
|
SELECT SUM("lost") FROM "campeonato_brasileiro_s_rie_a" WHERE "played">42; |
## Task
Generate a SQL query to answer the following question:
`What's the total Lost that has a Played that's larger than 42?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_brasileiro_s_rie_a" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total Lost that has a Played that's larger than 42?`:
```sql
|
SELECT "relative_value" FROM "table_of_chinese_mass_units_in_hong_kong" WHERE "jyutping"='daam3'; |
## Task
Generate a SQL query to answer the following question:
`what's the relative value that contains a jyutping of daam3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_of_chinese_mass_units_in_hong_kong" (
"jyutping" text,
"character" text,
"portuguese" text,
"relative_value" text,
"metric_value" text,
"imperial_value" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the relative value that contains a jyutping of daam3?`:
```sql
|
SELECT "metric_value" FROM "table_of_chinese_mass_units_in_hong_kong" WHERE "jyutping"='lei4'; |
## Task
Generate a SQL query to answer the following question:
`What metric value has a jyutping of lei4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_of_chinese_mass_units_in_hong_kong" (
"jyutping" text,
"character" text,
"portuguese" text,
"relative_value" text,
"metric_value" text,
"imperial_value" text
);
### SQL
Given the database schema, here is the SQL query that answers `What metric value has a jyutping of lei4?`:
```sql
|
SELECT "imperial_value" FROM "table_of_chinese_mass_units_in_hong_kong" WHERE "jyutping"='cin4'; |
## Task
Generate a SQL query to answer the following question:
`what's the imperial that contains a jyutping of cin4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_of_chinese_mass_units_in_hong_kong" (
"jyutping" text,
"character" text,
"portuguese" text,
"relative_value" text,
"metric_value" text,
"imperial_value" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the imperial that contains a jyutping of cin4?`:
```sql
|
SELECT "location" FROM "boxing_record" WHERE "record"='9-0-0'; |
## Task
Generate a SQL query to answer the following question:
`What was the location that led to a record of 9-0-0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "boxing_record" (
"result" text,
"record" text,
"opponent" text,
"rd_time" text,
"date" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the location that led to a record of 9-0-0?`:
```sql
|
SELECT "record" FROM "boxing_record" WHERE "result"='win' AND "rd_time"='3' AND "opponent"='nikki eplion'; |
## Task
Generate a SQL query to answer the following question:
`What was the record after the bout against Nikki Eplion, which resulted in a win in round 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "boxing_record" (
"result" text,
"record" text,
"opponent" text,
"rd_time" text,
"date" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record after the bout against Nikki Eplion, which resulted in a win in round 3?`:
```sql
|
SELECT MIN("bronze") FROM "medal_table" WHERE "silver"<2 AND "total">1 AND "nation"='uzbekistan'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of bronze medals with less than 2 silver medals and more than 1 medal in total for Uzbekistan?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_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 number of bronze medals with less than 2 silver medals and more than 1 medal in total for Uzbekistan?`:
```sql
|
SELECT MAX("round") FROM "atlanta_falcons_draft_history" WHERE "pick_num"=11 AND "overall"<414 AND "position"='offensive tackle'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest round with a pick# of 11, a position of offensive tackle, and overall less than 414?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest round with a pick# of 11, a position of offensive tackle, and overall less than 414?`:
```sql
|
SELECT MAX("round") FROM "atlanta_falcons_draft_history" WHERE "pick_num"=9 AND "position"='defensive back' AND "overall"<468; |
## Task
Generate a SQL query to answer the following question:
`What is the highest round with a pick# of 9, overll less than 468, and position of defensive back?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest round with a pick# of 9, overll less than 468, and position of defensive back?`:
```sql
|
SELECT MAX("round") FROM "atlanta_falcons_draft_history" WHERE "position"='guard' AND "overall">71; |
## Task
Generate a SQL query to answer the following question:
`What is the highest round with a guard position and an overall greater than 71?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest round with a guard position and an overall greater than 71?`:
```sql
|
SELECT "name" FROM "atlanta_falcons_draft_history" WHERE "overall">414 AND "pick_num">9; |
## Task
Generate a SQL query to answer the following question:
`Who has an overall greater than 414 with a pick# bigger than 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has an overall greater than 414 with a pick# bigger than 9?`:
```sql
|
SELECT "gaelic_name" FROM "islands" WHERE "area_ha"<127 AND "location"='kintyre'; |
## Task
Generate a SQL query to answer the following question:
`What is the Gaelic name for an area less than 127 in Kintyre?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "islands" (
"island" text,
"gaelic_name" text,
"location" text,
"area_ha" real,
"population" real,
"last_inhabited" text,
"height_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Gaelic name for an area less than 127 in Kintyre?`:
```sql
|
SELECT "score" FROM "doubles_35_23_12" WHERE "date"='7 february 2008'; |
## Task
Generate a SQL query to answer the following question:
`What was the score on 7 february 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_35_23_12" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score on 7 february 2008?`:
```sql
|
SELECT "outcome" FROM "doubles_35_23_12" WHERE "date"='13 may 2007'; |
## Task
Generate a SQL query to answer the following question:
`What was the outcome on 13 may 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_35_23_12" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the outcome on 13 may 2007?`:
```sql
|
SELECT "score" FROM "doubles_35_23_12" WHERE "date"='3 may 2009'; |
## Task
Generate a SQL query to answer the following question:
`What was the score on 3 may 2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_35_23_12" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score on 3 may 2009?`:
```sql
|
SELECT "score" FROM "international_goals" WHERE "venue"='jalan besar, singapore'; |
## Task
Generate a SQL query to answer the following question:
`Name the score for venue of jalan besar, singapore`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the score for venue of jalan besar, singapore`:
```sql
|
SELECT "score" FROM "international_goals" WHERE "date"='2 june 2008'; |
## Task
Generate a SQL query to answer the following question:
`Name the score for 2 june 2008`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the score for 2 june 2008`:
```sql
|
SELECT "opponent" FROM "regular_season" WHERE "game"=63; |
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a Game of 63?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent has a Game of 63?`:
```sql
|
SELECT "record" FROM "regular_season" WHERE "score"='1–4'; |
## Task
Generate a SQL query to answer the following question:
`which Record has a Score of 1–4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `which Record has a Score of 1–4?`:
```sql
|
SELECT "record" FROM "regular_season" WHERE "points"<62 AND "february">16 AND "score"='8–7'; |
## Task
Generate a SQL query to answer the following question:
`Which Record has a Points smaller than 62 and a February larger than 16, and a Score of 8–7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Record has a Points smaller than 62 and a February larger than 16, and a Score of 8–7?`:
```sql
|
SELECT COUNT("number_of_issues") FROM "other_bibliographic_details" WHERE "end_month"='oct-80'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of Issues has a End month of oct-80?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "other_bibliographic_details" (
"start_month" text,
"end_month" text,
"cover" text,
"spine" text,
"indicia" text,
"masthead" text,
"number_of_issues" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Issues has a End month of oct-80?`:
```sql
|
SELECT "spine" FROM "other_bibliographic_details" WHERE "indicia"='fantastic' AND "cover"='fantastic stories science fiction & fantasy' AND "end_month"='aug-72'; |
## Task
Generate a SQL query to answer the following question:
`What is the Spine that has fantastic stories science fiction & fantasy with and end month in aug-72?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "other_bibliographic_details" (
"start_month" text,
"end_month" text,
"cover" text,
"spine" text,
"indicia" text,
"masthead" text,
"number_of_issues" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Spine that has fantastic stories science fiction & fantasy with and end month in aug-72?`:
```sql
|
SELECT "indicia" FROM "other_bibliographic_details" WHERE "end_month"='feb-75'; |
## Task
Generate a SQL query to answer the following question:
`Which Indicia has anEnd month in feb-75?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "other_bibliographic_details" (
"start_month" text,
"end_month" text,
"cover" text,
"spine" text,
"indicia" text,
"masthead" text,
"number_of_issues" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Indicia has anEnd month in feb-75?`:
```sql
|
SELECT "haat" FROM "stations" WHERE "channels_tv_rf"='31 (psip) 44 (uhf)'; |
## Task
Generate a SQL query to answer the following question:
`Which HAAT has a Channels TV / RF of 31 (psip) 44 (uhf)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stations" (
"station" text,
"city_of_license" text,
"channels_tv_rf" text,
"first_air_date" text,
"haat" text,
"facility_id" real,
"public_license_information" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which HAAT has a Channels TV / RF of 31 (psip) 44 (uhf)`:
```sql
|
SELECT "city_of_license" FROM "stations" WHERE "channels_tv_rf"='67 ( psip ) 29 ( uhf )'; |
## Task
Generate a SQL query to answer the following question:
`Which City of license has a Channels TV / RF of 67 ( psip ) 29 ( uhf )`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stations" (
"station" text,
"city_of_license" text,
"channels_tv_rf" text,
"first_air_date" text,
"haat" text,
"facility_id" real,
"public_license_information" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which City of license has a Channels TV / RF of 67 ( psip ) 29 ( uhf )`:
```sql
|
SELECT "station" FROM "stations" WHERE "city_of_license"='hagerstown'; |
## Task
Generate a SQL query to answer the following question:
`Which Station has hagerstown?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stations" (
"station" text,
"city_of_license" text,
"channels_tv_rf" text,
"first_air_date" text,
"haat" text,
"facility_id" real,
"public_license_information" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Station has hagerstown?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.