output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT SUM("yards") FROM "receiving" WHERE "player"='davin meggett' AND "rec">9; |
## Task
Generate a SQL query to answer the following question:
`How many yards did Davin Meggett have with more than 9 Rec.?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "receiving" (
"player" text,
"rec" real,
"yards" real,
"avg" real,
"long" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many yards did Davin Meggett have with more than 9 Rec.?`:
```sql
|
SELECT COUNT("avg") FROM "receiving" WHERE "yards">20 AND "player"='darrius heyward-bey' AND "long"<80; |
## Task
Generate a SQL query to answer the following question:
`What is Darrius Heyward-Bey's average with more than 20 yards and less than 80 long?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "receiving" (
"player" text,
"rec" real,
"yards" real,
"avg" real,
"long" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Darrius Heyward-Bey's average with more than 20 yards and less than 80 long?`:
```sql
|
SELECT COUNT("points") FROM "race" WHERE "time_retired"='+10.131 secs'; |
## Task
Generate a SQL query to answer the following question:
`How many points are associated with a Time/Retired of +10.131 secs?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points are associated with a Time/Retired of +10.131 secs?`:
```sql
|
SELECT SUM("grid") FROM "race" WHERE "time_retired"='+8.180 secs' AND "laps"<47; |
## Task
Generate a SQL query to answer the following question:
`What is the grid associated witha Time/Retired of +8.180 secs, and under 47 laps?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the grid associated witha Time/Retired of +8.180 secs, and under 47 laps?`:
```sql
|
SELECT MAX("drawn") FROM "top_league_table" WHERE "points_for">545; |
## Task
Generate a SQL query to answer the following question:
`What is the highest drawn for points over 545?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_league_table" (
"season" text,
"order" text,
"played" real,
"drawn" real,
"lost" real,
"penalties" real,
"points_for" real,
"points_against" real,
"points_diff" real,
"coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest drawn for points over 545?`:
```sql
|
SELECT AVG("lost") FROM "top_league_table" WHERE "points_for"=545; |
## Task
Generate a SQL query to answer the following question:
`What's the average loss when the points were 545?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_league_table" (
"season" text,
"order" text,
"played" real,
"drawn" real,
"lost" real,
"penalties" real,
"points_for" real,
"points_against" real,
"points_diff" real,
"coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the average loss when the points were 545?`:
```sql
|
SELECT COUNT("lost") FROM "top_league_table" WHERE "order"='2nd' AND "played">13; |
## Task
Generate a SQL query to answer the following question:
`How many games were lost when the order was 2nd and the play was more than 13`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_league_table" (
"season" text,
"order" text,
"played" real,
"drawn" real,
"lost" real,
"penalties" real,
"points_for" real,
"points_against" real,
"points_diff" real,
"coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games were lost when the order was 2nd and the play was more than 13`:
```sql
|
SELECT MIN("rank") FROM "medal_table" WHERE "bronze"=2 AND "gold">0 AND "nation"='ynys môn/anglesey' AND "total">8; |
## Task
Generate a SQL query to answer the following question:
`Name the least rank with bronze of 2, gold more than 0 and nation of ynys môn/anglesey with total more than 8`
### 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 `Name the least rank with bronze of 2, gold more than 0 and nation of ynys môn/anglesey with total more than 8`:
```sql
|
SELECT MIN("total") FROM "medal_table" WHERE "rank"<7 AND "gold">16 AND "bronze"<29; |
## Task
Generate a SQL query to answer the following question:
`Name the least total with rank less than 7, gold more than 16 and bronze less than 29`
### 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 `Name the least total with rank less than 7, gold more than 16 and bronze less than 29`:
```sql
|
SELECT COUNT("total") FROM "medal_table" WHERE "silver"=6 AND "bronze">5 AND "gold"<4; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of total with silver of 6, bronze more than 5 and gold less than 4`
### 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 `Name the total number of total with silver of 6, bronze more than 5 and gold less than 4`:
```sql
|
SELECT "score" FROM "schedule_and_results" WHERE "game">11 AND "october"=30; |
## Task
Generate a SQL query to answer the following question:
`What score has a game greater than 11 on October 30?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What score has a game greater than 11 on October 30?`:
```sql
|
SELECT "october" FROM "schedule_and_results" WHERE "record"='0-2-2'; |
## Task
Generate a SQL query to answer the following question:
`What October has 0-2-2 as the record?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What October has 0-2-2 as the record?`:
```sql
|
SELECT AVG("game") FROM "schedule_and_results" WHERE "opponent"='@ florida panthers' AND "record"='0-1-2' AND "october">8; |
## Task
Generate a SQL query to answer the following question:
`What average game has @ florida panthers as the opponent, 0-1-2 as the record, with an october greater than 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What average game has @ florida panthers as the opponent, 0-1-2 as the record, with an october greater than 8?`:
```sql
|
SELECT AVG("lost") FROM "european_nations_cup_all_time_table_2000" WHERE "games"=64 AND "champs"<0; |
## Task
Generate a SQL query to answer the following question:
`Which Lost has Games of 64, and Champs smaller than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_nations_cup_all_time_table_2000" (
"champs" real,
"games" real,
"draw" real,
"lost" real,
"win_lose_percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Lost has Games of 64, and Champs smaller than 0?`:
```sql
|
SELECT MIN("draw") FROM "european_nations_cup_all_time_table_2000" WHERE "champs"<0; |
## Task
Generate a SQL query to answer the following question:
`Which Draw is the lowest one that has Champs smaller than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_nations_cup_all_time_table_2000" (
"champs" real,
"games" real,
"draw" real,
"lost" real,
"win_lose_percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Draw is the lowest one that has Champs smaller than 0?`:
```sql
|
SELECT "win_lose_percentage" FROM "european_nations_cup_all_time_table_2000" WHERE "champs">0 AND "draw">3; |
## Task
Generate a SQL query to answer the following question:
`Which Win/Lose Percentage has Champs larger than 0, and a Draw larger than 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_nations_cup_all_time_table_2000" (
"champs" real,
"games" real,
"draw" real,
"lost" real,
"win_lose_percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Win/Lose Percentage has Champs larger than 0, and a Draw larger than 3?`:
```sql
|
SELECT AVG("champs") FROM "european_nations_cup_all_time_table_2000" WHERE "draw">2 AND "games"<60; |
## Task
Generate a SQL query to answer the following question:
`Which Champs is the average one that has a Draw larger than 2, and Games smaller than 60?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_nations_cup_all_time_table_2000" (
"champs" real,
"games" real,
"draw" real,
"lost" real,
"win_lose_percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Champs is the average one that has a Draw larger than 2, and Games smaller than 60?`:
```sql
|
SELECT "launched" FROM "type_ii" WHERE "name"='ushio dd-54'; |
## Task
Generate a SQL query to answer the following question:
`What is the launch date for the Ushio dd-54?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "type_ii" (
"kanji" text,
"name" text,
"builder" text,
"laid_down" text,
"launched" text,
"completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the launch date for the Ushio dd-54?`:
```sql
|
SELECT "name" FROM "type_ii" WHERE "kanji"='朧'; |
## Task
Generate a SQL query to answer the following question:
`Which name has a Kanji of 朧?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "type_ii" (
"kanji" text,
"name" text,
"builder" text,
"laid_down" text,
"launched" text,
"completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which name has a Kanji of 朧?`:
```sql
|
SELECT "kanji" FROM "type_ii" WHERE "name"='ayanami dd-45'; |
## Task
Generate a SQL query to answer the following question:
`What is the Kanji for the Ayanami dd-45?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "type_ii" (
"kanji" text,
"name" text,
"builder" text,
"laid_down" text,
"launched" text,
"completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Kanji for the Ayanami dd-45?`:
```sql
|
SELECT COUNT("size_steps") FROM "interval_size" WHERE "size_cents"=58.54 AND "just_ratio"='28:27' AND "just_cents">62.96; |
## Task
Generate a SQL query to answer the following question:
`size (steps) that has a size (cents) of 58.54, and a just ratio of 28:27, and a just (cents) larger than 62.96 is what total number?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "interval_size" (
"interval_name" text,
"size_steps" real,
"size_cents" real,
"just_ratio" text,
"just_cents" real,
"error" text
);
### SQL
Given the database schema, here is the SQL query that answers `size (steps) that has a size (cents) of 58.54, and a just ratio of 28:27, and a just (cents) larger than 62.96 is what total number?`:
```sql
|
SELECT MAX("size_cents") FROM "interval_size" WHERE "size_steps"=15 AND "just_cents">435.08; |
## Task
Generate a SQL query to answer the following question:
`size (steps) of 15, and a just (cents) larger than 435.08 is what highest size (cents)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "interval_size" (
"interval_name" text,
"size_steps" real,
"size_cents" real,
"just_ratio" text,
"just_cents" real,
"error" text
);
### SQL
Given the database schema, here is the SQL query that answers `size (steps) of 15, and a just (cents) larger than 435.08 is what highest size (cents)?`:
```sql
|
SELECT MAX("size_steps") FROM "interval_size" WHERE "just_ratio"='16:13'; |
## Task
Generate a SQL query to answer the following question:
`ratio of 16:13 has how many highest size (steps)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "interval_size" (
"interval_name" text,
"size_steps" real,
"size_cents" real,
"just_ratio" text,
"just_cents" real,
"error" text
);
### SQL
Given the database schema, here is the SQL query that answers `ratio of 16:13 has how many highest size (steps)?`:
```sql
|
SELECT AVG("size_cents") FROM "interval_size" WHERE "just_ratio"='15:14' AND "just_cents">119.44; |
## Task
Generate a SQL query to answer the following question:
`ratio of 15:14, and a just (cents) larger than 119.44 is what average size (cents)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "interval_size" (
"interval_name" text,
"size_steps" real,
"size_cents" real,
"just_ratio" text,
"just_cents" real,
"error" text
);
### SQL
Given the database schema, here is the SQL query that answers `ratio of 15:14, and a just (cents) larger than 119.44 is what average size (cents)?`:
```sql
|
SELECT "home" FROM "schedule" WHERE "venue"='stadion pod vrmcem'; |
## Task
Generate a SQL query to answer the following question:
`Who was the home team for the match at Stadion pod Vrmcem?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"venue" text,
"home" text,
"guest" text,
"score_first_match" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team for the match at Stadion pod Vrmcem?`:
```sql
|
SELECT "guest" FROM "schedule" WHERE "score_first_match"='3:0 (0:2)'; |
## Task
Generate a SQL query to answer the following question:
`Who were the guest team wehn the match score was 3:0 (0:2)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"venue" text,
"home" text,
"guest" text,
"score_first_match" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the guest team wehn the match score was 3:0 (0:2)?`:
```sql
|
SELECT "picture_coding_types" FROM "mpeg_2_profiles" WHERE "chroma_format"='4:2:2 or 4:2:0' AND "name"='4:2:2 profile'; |
## Task
Generate a SQL query to answer the following question:
`What Picture Coding Types have Chroma Format of 4:2:2 or 4:2:0 and the Name of 4:2:2 profile?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mpeg_2_profiles" (
"abbr" text,
"name" text,
"picture_coding_types" text,
"chroma_format" text,
"aspect_ratios" text,
"scalable_modes" text,
"intra_dc_precision" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Picture Coding Types have Chroma Format of 4:2:2 or 4:2:0 and the Name of 4:2:2 profile?`:
```sql
|
SELECT "intra_dc_precision" FROM "mpeg_2_profiles" WHERE "name"='main profile'; |
## Task
Generate a SQL query to answer the following question:
`Name the Intra DC Precision that has the Name main profile?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mpeg_2_profiles" (
"abbr" text,
"name" text,
"picture_coding_types" text,
"chroma_format" text,
"aspect_ratios" text,
"scalable_modes" text,
"intra_dc_precision" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Intra DC Precision that has the Name main profile?`:
```sql
|
SELECT "chroma_format" FROM "mpeg_2_profiles" WHERE "picture_coding_types"='i, p, b' AND "name"='main profile'; |
## Task
Generate a SQL query to answer the following question:
`What Chroma Format that has both Picture Coding Types of i, p, b, and the Name of main profile?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mpeg_2_profiles" (
"abbr" text,
"name" text,
"picture_coding_types" text,
"chroma_format" text,
"aspect_ratios" text,
"scalable_modes" text,
"intra_dc_precision" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Chroma Format that has both Picture Coding Types of i, p, b, and the Name of main profile?`:
```sql
|
SELECT "player" FROM "players_of_the_week" WHERE "division"='west' AND "team"='special teams' AND "school"='toledo western michigan'; |
## Task
Generate a SQL query to answer the following question:
`What Player is from the west Division and the Team of special teams and is from the School Toledo Western Michigan?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "players_of_the_week" (
"week" text,
"division" text,
"team" text,
"player" text,
"school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Player is from the west Division and the Team of special teams and is from the School Toledo Western Michigan?`:
```sql
|
SELECT MIN("wins") FROM "leaders" WHERE "country"='australia'; |
## Task
Generate a SQL query to answer the following question:
`What are the lowest wins for Australia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the lowest wins for Australia?`:
```sql
|
SELECT MAX("rank") FROM "leaders" WHERE "player"='greg norman' AND "earnings"<'10,484,065'; |
## Task
Generate a SQL query to answer the following question:
`What was the highest rank for greg norman with Earnings less than $10,484,065?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest rank for greg norman with Earnings less than $10,484,065?`:
```sql
|
SELECT SUM("wins") FROM "leaders" WHERE "earnings"<'10,484,065'; |
## Task
Generate a SQL query to answer the following question:
`how many wins did players earning less than $10,484,065 have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many wins did players earning less than $10,484,065 have?`:
```sql
|
SELECT "name" FROM "metropolitan_lg_as" WHERE "population_2010">'35,082' AND "formed">1897; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the metropolitan that has a population larger than 35,082 and formed after 1897?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "metropolitan_lg_as" (
"name" text,
"council_seat" text,
"formed" real,
"population_2010" real,
"area" text,
"website" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the metropolitan that has a population larger than 35,082 and formed after 1897?`:
```sql
|
SELECT "winners" FROM "by_club" WHERE "third_place"='0' AND "team"='minas'; |
## Task
Generate a SQL query to answer the following question:
`How many winners did Minas, which has 0 third places, have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_club" (
"team" text,
"winners" text,
"runners_up" text,
"third_place" text,
"fourth_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many winners did Minas, which has 0 third places, have?`:
```sql
|
SELECT "winners" FROM "by_club" WHERE "team"='halcones uv xalapa'; |
## Task
Generate a SQL query to answer the following question:
`How many winners did Halcones uv xalapa have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_club" (
"team" text,
"winners" text,
"runners_up" text,
"third_place" text,
"fourth_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many winners did Halcones uv xalapa have?`:
```sql
|
SELECT "runners_up" FROM "by_club" WHERE "team"='espartanos de margarita'; |
## Task
Generate a SQL query to answer the following question:
`How many runners-up did Espartanos de Margarita have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_club" (
"team" text,
"winners" text,
"runners_up" text,
"third_place" text,
"fourth_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many runners-up did Espartanos de Margarita have?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "attendance"='60,594'; |
## Task
Generate a SQL query to answer the following question:
`Which Opponent has Attendances of 60,594?`
### 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,
"venue" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent has Attendances of 60,594?`:
```sql
|
SELECT "date" FROM "schedule" WHERE "result"='l 27-7' AND "opponent"='at minnesota vikings'; |
## Task
Generate a SQL query to answer the following question:
`When has a Result of l 27-7 and an Opponent of at minnesota vikings?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"venue" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `When has a Result of l 27-7 and an Opponent of at minnesota vikings?`:
```sql
|
SELECT "date" FROM "schedule" WHERE "week"=9; |
## Task
Generate a SQL query to answer the following question:
`When has a Week of 9?`
### 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,
"venue" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `When has a Week of 9?`:
```sql
|
SELECT "date" FROM "schedule" WHERE "opponent"='new york jets'; |
## Task
Generate a SQL query to answer the following question:
`What date did the Steelers play against the New York Jets?`
### 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,
"time_et" text,
"result" text,
"record" text,
"game_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the Steelers play against the New York Jets?`:
```sql
|
SELECT "time_et" FROM "schedule" WHERE "week"=1; |
## Task
Generate a SQL query to answer the following question:
`What time did the game start during week 1?`
### 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,
"time_et" text,
"result" text,
"record" text,
"game_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `What time did the game start during week 1?`:
```sql
|
SELECT SUM("laps") FROM "race" WHERE "team"='mi-jack conquest racing' AND "time_retired"='off course'; |
## Task
Generate a SQL query to answer the following question:
`How many laps for mi-jack conquest racing when they went off course?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps for mi-jack conquest racing when they went off course?`:
```sql
|
SELECT COUNT("laps") FROM "race" WHERE "grid">8 AND "points"<11 AND "driver"='will power'; |
## Task
Generate a SQL query to answer the following question:
`How many laps are associated with a grid greater than 8, under 11 points, and will power?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps are associated with a grid greater than 8, under 11 points, and will power?`:
```sql
|
SELECT "women_s_doubles" FROM "past_winners" WHERE "men_s_doubles"='no competition' AND "men_s_singles"='no competition'; |
## Task
Generate a SQL query to answer the following question:
`Who won the Women's doubles the year that there was no competition in both the Men's doubles and the Men's singles?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_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 `Who won the Women's doubles the year that there was no competition in both the Men's doubles and the Men's singles?`:
```sql
|
SELECT "year" FROM "past_winners" WHERE "women_s_singles"='no competition'; |
## Task
Generate a SQL query to answer the following question:
`What year was there no competition in Women's singles?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_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 `What year was there no competition in Women's singles?`:
```sql
|
SELECT "women_s_doubles" FROM "past_winners" WHERE "year"='2001'; |
## Task
Generate a SQL query to answer the following question:
`Who won the Women's doubles in 2001?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_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 `Who won the Women's doubles in 2001?`:
```sql
|
SELECT "women_s_doubles" FROM "past_winners" WHERE "men_s_doubles"='no competition' AND "men_s_singles"='arthur chatschatourow'; |
## Task
Generate a SQL query to answer the following question:
`Who won the Women's doubles the year that there was no competition in the Men's doubles and Arthur Chatschatourow won the Men's singles?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_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 `Who won the Women's doubles the year that there was no competition in the Men's doubles and Arthur Chatschatourow won the Men's singles?`:
```sql
|
SELECT AVG("bronze") FROM "medals_summary" WHERE "gold">1 AND "total"=14 AND "silver">3; |
## Task
Generate a SQL query to answer the following question:
`Name the average Bronze when silver is more than 3, gold is more than 1 and the total is 14`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_summary" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average Bronze when silver is more than 3, gold is more than 1 and the total is 14`:
```sql
|
SELECT COUNT("total") FROM "medals_summary" WHERE "rank"='7' AND "bronze"<1; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of total for rank of 7 and bronze less than 1`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_summary" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of total for rank of 7 and bronze less than 1`:
```sql
|
SELECT MAX("silver") FROM "medals_summary" WHERE "bronze">1 AND "total"<7 AND "gold">1; |
## Task
Generate a SQL query to answer the following question:
`Name the most silver with bronze more than 1 and gold more than 1 with total less than 7`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_summary" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most silver with bronze more than 1 and gold more than 1 with total less than 7`:
```sql
|
SELECT SUM("total") FROM "medals_summary" WHERE "gold"<1 AND "bronze"=3; |
## Task
Generate a SQL query to answer the following question:
`Name the sum of total for gold less than 1 and bronze of 3`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_summary" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sum of total for gold less than 1 and bronze of 3`:
```sql
|
SELECT COUNT("bronze") FROM "medals_summary" WHERE "rank"='5' AND "silver">1; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of bronze with rank of 5 and silver more than 1`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_summary" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of bronze with rank of 5 and silver more than 1`:
```sql
|
SELECT COUNT("population_2000_census") FROM "municipalities" WHERE "area_km"=464.5 AND "population_density_2010_km">1840; |
## Task
Generate a SQL query to answer the following question:
`What is the total population from the 2000 census for the municipality that has a 464.5 square km area and a population density in 2010 larger than 1840?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "municipalities" (
"administrative_division" text,
"area_km" real,
"population_2000_census" real,
"population_2010_census" real,
"population_density_2010_km" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total population from the 2000 census for the municipality that has a 464.5 square km area and a population density in 2010 larger than 1840?`:
```sql
|
SELECT SUM("population_2010_census") FROM "municipalities" WHERE "administrative_division"='japeri' AND "area_km"<82.9; |
## Task
Generate a SQL query to answer the following question:
`What was the sum of the population in 2010 for the division of japeri with an area of 82.9 squared km?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "municipalities" (
"administrative_division" text,
"area_km" real,
"population_2000_census" real,
"population_2010_census" real,
"population_density_2010_km" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the sum of the population in 2010 for the division of japeri with an area of 82.9 squared km?`:
```sql
|
SELECT "score" FROM "november" WHERE "visitor"='atlanta'; |
## Task
Generate a SQL query to answer the following question:
`What was the score for the game against Atlanta?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for the game against Atlanta?`:
```sql
|
SELECT "date" FROM "international_goals" WHERE "competition"='1936 summer olympics' AND "score"='6-1'; |
## Task
Generate a SQL query to answer the following question:
`In the 1936 summer Olympics what was the date of a match that ended with a score of 6-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 `In the 1936 summer Olympics what was the date of a match that ended with a score of 6-1?`:
```sql
|
SELECT "score" FROM "international_goals" WHERE "result"='5-2'; |
## Task
Generate a SQL query to answer the following question:
`What was the score for the game that had an end result of 5-2?`
### 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 was the score for the game that had an end result of 5-2?`:
```sql
|
SELECT COUNT("lost") FROM "world_championship_group_b_italy" WHERE "drawn"=1 AND "games">7; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of losses that have 1 draw and games over 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "world_championship_group_b_italy" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of losses that have 1 draw and games over 7?`:
```sql
|
SELECT COUNT("round") FROM "atlanta_falcons_draft_history" WHERE "pick_num">10 AND "college"='appalachian state'; |
## Task
Generate a SQL query to answer the following question:
`How many rounds had a pick number of more than 10 and Appalachian State as a college?`
### 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 `How many rounds had a pick number of more than 10 and Appalachian State as a college?`:
```sql
|
SELECT MAX("overall") FROM "atlanta_falcons_draft_history" WHERE "position"='linebacker' AND "pick_num">9; |
## Task
Generate a SQL query to answer the following question:
`What is the largest overall where the position was linebacker and the pick number was more 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,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest overall where the position was linebacker and the pick number was more than 9?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "game"<69 AND "record"='4–56'; |
## Task
Generate a SQL query to answer the following question:
`What is the Score of the game earlier than 69 with a record of 4–56?`
### 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 Score of the game earlier than 69 with a record of 4–56?`:
```sql
|
SELECT COUNT("game") FROM "game_log" WHERE "score"='116–138'; |
## Task
Generate a SQL query to answer the following question:
`What is the game number with a score of 116–138?`
### 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 game number with a score of 116–138?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "opponent"='boston celtics'; |
## Task
Generate a SQL query to answer the following question:
`What is the Score of the game against the boston celtics?`
### 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 Score of the game against the boston celtics?`:
```sql
|
SELECT "game" FROM "game_log" WHERE "date"='february 9'; |
## Task
Generate a SQL query to answer the following question:
`What is the Game held on february 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,
"opponent" text,
"score" text,
"location" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Game held on february 9?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "game">57 AND "record"='4–55'; |
## Task
Generate a SQL query to answer the following question:
`What is the Score of the game larger than 57 with a Record of 4–55?`
### 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 Score of the game larger than 57 with a Record of 4–55?`:
```sql
|
SELECT "region" FROM "list_of_grand_crus" WHERE "village"='chassagne-montrachet'; |
## Task
Generate a SQL query to answer the following question:
`Which Reigon has a Village of Chassagne-Montrachet?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_grand_crus" (
"grand_cru" text,
"region" text,
"village" text,
"wine_style" text,
"vineyard_surface_2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Reigon has a Village of Chassagne-Montrachet?`:
```sql
|
SELECT "village" FROM "list_of_grand_crus" WHERE "region"='côte de nuits' AND "wine_style"='red wine' AND "grand_cru"='latricières-chambertin'; |
## Task
Generate a SQL query to answer the following question:
`Which Village has a Region of Côte De Nuits, Wine Styles of Red Wine, and a Grand Cru of Latricières-Chambertin?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_grand_crus" (
"grand_cru" text,
"region" text,
"village" text,
"wine_style" text,
"vineyard_surface_2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Village has a Region of Côte De Nuits, Wine Styles of Red Wine, and a Grand Cru of Latricières-Chambertin?`:
```sql
|
SELECT "vineyard_surface_2010" FROM "list_of_grand_crus" WHERE "village"='gevrey-chambertin' AND "grand_cru"='latricières-chambertin'; |
## Task
Generate a SQL query to answer the following question:
`What is the Vineyeard surface (2010) with a Village of Gevrey-Chambertin, and Grand Cru of Latricières-Chambertin?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_grand_crus" (
"grand_cru" text,
"region" text,
"village" text,
"wine_style" text,
"vineyard_surface_2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Vineyeard surface (2010) with a Village of Gevrey-Chambertin, and Grand Cru of Latricières-Chambertin?`:
```sql
|
SELECT "grand_cru" FROM "list_of_grand_crus" WHERE "wine_style"='red wine' AND "village"='gevrey-chambertin'; |
## Task
Generate a SQL query to answer the following question:
`What is the Grand Cru with a Wine Style of Red Wine and Village of Gevrey-Chambertin?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_grand_crus" (
"grand_cru" text,
"region" text,
"village" text,
"wine_style" text,
"vineyard_surface_2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Grand Cru with a Wine Style of Red Wine and Village of Gevrey-Chambertin?`:
```sql
|
SELECT AVG("pick") FROM "draft_picks" WHERE "school_club_team"='pennsylvania'; |
## Task
Generate a SQL query to answer the following question:
`What is the average pick number of Pennsylvania?`
### 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,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average pick number of Pennsylvania?`:
```sql
|
SELECT "school_club_team" FROM "draft_picks" WHERE "pick">83; |
## Task
Generate a SQL query to answer the following question:
`What is the school/club team of the player with a pick larger than 83?`
### 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,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the school/club team of the player with a pick larger than 83?`:
```sql
|
SELECT "school_club_team" FROM "draft_picks" WHERE "round"=3; |
## Task
Generate a SQL query to answer the following question:
`What is the schoo/club team of the player in round 3?`
### 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,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the schoo/club team of the player in round 3?`:
```sql
|
SELECT MIN("round") FROM "draft_picks" WHERE "school_club_team"='ucla'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest round of the player from UCLA?`
### 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,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest round of the player from UCLA?`:
```sql
|
SELECT "date" FROM "pga_tour_wins_25" WHERE "winning_score"='–16 (62-71-71-68=272)'; |
## Task
Generate a SQL query to answer the following question:
`When was –16 (62-71-71-68=272) the winning score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pga_tour_wins_25" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was –16 (62-71-71-68=272) the winning score?`:
```sql
|
SELECT "tournament" FROM "pga_tour_wins_25" WHERE "date"='jun 17, 1973'; |
## Task
Generate a SQL query to answer the following question:
`What was the name of the tournament played on Jun 17, 1973?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pga_tour_wins_25" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the name of the tournament played on Jun 17, 1973?`:
```sql
|
SELECT "tournament" FROM "pga_tour_wins_25" WHERE "runner_s_up"='howard twitty'; |
## Task
Generate a SQL query to answer the following question:
`Howard Twitty was the runner-up of what tournament?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pga_tour_wins_25" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Howard Twitty was the runner-up of what tournament?`:
```sql
|
SELECT "college_junior_club_team" FROM "draft_picks" WHERE "position"='defence' AND "nationality"='czechoslovakia'; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the College/Junior/Club Team that has the Position of defence, and the Nationality of czechoslovakia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the College/Junior/Club Team that has the Position of defence, and the Nationality of czechoslovakia?`:
```sql
|
SELECT "position" FROM "draft_picks" WHERE "college_junior_club_team"='hull olympiques (qmjhl)'; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Position that has the College/Junior/Club Team of hull olympiques (qmjhl)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Position that has the College/Junior/Club Team of hull olympiques (qmjhl)?`:
```sql
|
SELECT "player" FROM "draft_picks" WHERE "round"<6 AND "college_junior_club_team"='hull olympiques (qmjhl)'; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Player that has the Round smaller than 6, and the College/Junior/Club Team of hull olympiques (qmjhl)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Player that has the Round smaller than 6, and the College/Junior/Club Team of hull olympiques (qmjhl)?`:
```sql
|
SELECT "name" FROM "ncaa_consensus_all_american_team" WHERE "position"='center'; |
## Task
Generate a SQL query to answer the following question:
`What is the Name of the Center?`
### 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 Name of the Center?`:
```sql
|
SELECT "position" FROM "ncaa_consensus_all_american_team" WHERE "college_hall_of_fame"='no'; |
## Task
Generate a SQL query to answer the following question:
`What Position has no College Hall of Fame?`
### 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 Position has no College Hall of Fame?`:
```sql
|
SELECT "school" FROM "ncaa_consensus_all_american_team" WHERE "unanimous"='no no no'; |
## Task
Generate a SQL query to answer the following question:
`What School has no no no Unanimously?`
### 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 School has no no no Unanimously?`:
```sql
|
SELECT "school" FROM "ncaa_consensus_all_american_team" WHERE "position"='quarterback'; |
## Task
Generate a SQL query to answer the following question:
`What is the School of the quarterback?`
### 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 School of the quarterback?`:
```sql
|
SELECT "school" FROM "ncaa_consensus_all_american_team" WHERE "position"='center'; |
## Task
Generate a SQL query to answer the following question:
`What School is the Center from?`
### 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 School is the Center from?`:
```sql
|
SELECT "unanimous" FROM "ncaa_consensus_all_american_team" WHERE "school"='minnesota southern california'; |
## Task
Generate a SQL query to answer the following question:
`What is the Unanimous of the Minnesota Southern California School?`
### 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 Unanimous of the Minnesota Southern California School?`:
```sql
|
SELECT "cache" FROM "models" WHERE "capacity"='600 gb'; |
## Task
Generate a SQL query to answer the following question:
`What is the Cache with a Capacity that is 600 gb?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "models" (
"model_no" text,
"gen" text,
"released" text,
"capacity" text,
"cache" text,
"interface" text,
"feature_set" text,
"sector_size" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Cache with a Capacity that is 600 gb?`:
```sql
|
SELECT "position" FROM "draft_picks" WHERE "college_junior_club_team_league"='estevan bruins (wchl)' AND "round"=3; |
## Task
Generate a SQL query to answer the following question:
`Which Position has a College/Junior/Club Team (League) of estevan bruins (wchl), and a Round of 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Position has a College/Junior/Club Team (League) of estevan bruins (wchl), and a Round of 3?`:
```sql
|
SELECT "nationality" FROM "draft_picks" WHERE "player"='larry wright'; |
## Task
Generate a SQL query to answer the following question:
`Which Nationality has a Player of larry wright?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Nationality has a Player of larry wright?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "date"='august 25'; |
## Task
Generate a SQL query to answer the following question:
`What score has august 25 as the date?`
### 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" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What score has august 25 as the date?`:
```sql
|
SELECT COUNT("episode") FROM "series_4" WHERE "performer_1"='jim sweeney' AND "performer_2"='steve steen'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of episodes where jim sweeney was the 1st performer and steve steen was the 2nd performer?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_4" (
"date" text,
"episode" real,
"performer_1" text,
"performer_2" text,
"performer_3" text,
"performer_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of episodes where jim sweeney was the 1st performer and steve steen was the 2nd performer?`:
```sql
|
SELECT SUM("episode") FROM "series_4" WHERE "performer_4"='chip esten' AND "performer_2"='christopher smith'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of the episode numbers where chip esten is the 4th performer and christopher smith was the 2nd performer?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_4" (
"date" text,
"episode" real,
"performer_1" text,
"performer_2" text,
"performer_3" text,
"performer_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the episode numbers where chip esten is the 4th performer and christopher smith was the 2nd performer?`:
```sql
|
SELECT SUM("episode") FROM "series_4" WHERE "performer_4"='chip esten' AND "performer_1"='jim meskimen'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of the episodes where chip esten was the 4th performer and jim meskimen was the 1st performer?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_4" (
"date" text,
"episode" real,
"performer_1" text,
"performer_2" text,
"performer_3" text,
"performer_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the episodes where chip esten was the 4th performer and jim meskimen was the 1st performer?`:
```sql
|
SELECT "performer_3" FROM "series_4" WHERE "performer_2"='christopher smith'; |
## Task
Generate a SQL query to answer the following question:
`Who was the 3rd performer when christopher smith was the 2nd performer?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_4" (
"date" text,
"episode" real,
"performer_1" text,
"performer_2" text,
"performer_3" text,
"performer_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the 3rd performer when christopher smith was the 2nd performer?`:
```sql
|
SELECT "record" FROM "mixed_martial_arts_record" WHERE "time"='4:50'; |
## Task
Generate a SQL query to answer the following question:
`Which Record has a Time of 4:50?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Record has a Time of 4:50?`:
```sql
|
SELECT "event" FROM "mixed_martial_arts_record" WHERE "res"='loss' AND "record"='12–2'; |
## Task
Generate a SQL query to answer the following question:
`Which Event has a Resolution of loss, and a Record of 12–2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Event has a Resolution of loss, and a Record of 12–2?`:
```sql
|
SELECT AVG("drawn") FROM "torneio_rio_s_o_paulo" WHERE "difference"='14'; |
## Task
Generate a SQL query to answer the following question:
`Which Drawn has a Difference of 14?`
### 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 Drawn has a Difference of 14?`:
```sql
|
SELECT "played" FROM "torneio_rio_s_o_paulo" WHERE "lost">2 AND "team"='américa'; |
## Task
Generate a SQL query to answer the following question:
`Which Played has a Lost larger than 2, and a Team of américa?`
### 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 Played has a Lost larger than 2, and a Team of américa?`:
```sql
|
SELECT SUM("touchdowns") FROM "michigan_51_indiana_0" WHERE "field_goals"=0 AND "player"='joe maddock' AND "points"<5; |
## Task
Generate a SQL query to answer the following question:
`What's the number of touchdowns that there are 0 field goals, less than 5 points, and had Joe Maddock playing?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_51_indiana_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the number of touchdowns that there are 0 field goals, less than 5 points, and had Joe Maddock playing?`:
```sql
|
SELECT "class" FROM "translators" WHERE "call_sign"='w269ax'; |
## Task
Generate a SQL query to answer the following question:
`what is the class of w269ax`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" text,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the class of w269ax`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.