output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT MAX("attendance") FROM "schedule" WHERE "date"='november 16, 1975'; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance during the november 16, 1975 game?`
### 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 was the attendance during the november 16, 1975 game?`:
```sql
|
SELECT SUM("number_in_class") FROM "summary" WHERE "owner"='whitehaven coal'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number in class for the Whitehaven Coal?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"owner" text,
"class" text,
"number_in_class" real,
"road_numbers" text,
"built" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number in class for the Whitehaven Coal?`:
```sql
|
SELECT "built" FROM "summary" WHERE "number_in_class"<10 AND "owner"='downer rail'; |
## Task
Generate a SQL query to answer the following question:
`What was built in a class with less than 10, and the Downer Rail owner?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"owner" text,
"class" text,
"number_in_class" real,
"road_numbers" text,
"built" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was built in a class with less than 10, and the Downer Rail owner?`:
```sql
|
SELECT "class" FROM "summary" WHERE "number_in_class">15; |
## Task
Generate a SQL query to answer the following question:
`Which class has more than 15 people in the class?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"owner" text,
"class" text,
"number_in_class" real,
"road_numbers" text,
"built" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which class has more than 15 people in the class?`:
```sql
|
SELECT "owner" FROM "summary" WHERE "built"='2009-2011'; |
## Task
Generate a SQL query to answer the following question:
`Who is the owner that built in 2009-2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"owner" text,
"class" text,
"number_in_class" real,
"road_numbers" text,
"built" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the owner that built in 2009-2011?`:
```sql
|
SELECT AVG("grid") FROM "125cc_classification" WHERE "manufacturer"='aprilia' AND "rider"='bradley smith'; |
## Task
Generate a SQL query to answer the following question:
`Count the Grid which has a Manufacturer of aprilia, and a Rider of bradley smith?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "125cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Count the Grid which has a Manufacturer of aprilia, and a Rider of bradley smith?`:
```sql
|
SELECT "time" FROM "125cc_classification" WHERE "laps"=19 AND "grid">19 AND "manufacturer"='ktm' AND "rider"='randy krummenacher'; |
## Task
Generate a SQL query to answer the following question:
`Name the Time which has Laps of 19, and a Grid larger than 19, and a Manufacturer of ktm, and a Rider of randy krummenacher?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "125cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Time which has Laps of 19, and a Grid larger than 19, and a Manufacturer of ktm, and a Rider of randy krummenacher?`:
```sql
|
SELECT "time" FROM "125cc_classification" WHERE "manufacturer"='aprilia' AND "grid"<16 AND "rider"='sandro cortese'; |
## Task
Generate a SQL query to answer the following question:
`Name the Time which has a Manufacturer of aprilia, and a Grid smaller than 16, and a Rider of sandro cortese?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "125cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Time which has a Manufacturer of aprilia, and a Grid smaller than 16, and a Rider of sandro cortese?`:
```sql
|
SELECT MIN("silver") FROM "medal_table" WHERE "bronze"=19 AND "total">58; |
## Task
Generate a SQL query to answer the following question:
`Name the Silver which has a Bronze of 19, and a Total larger than 58?`
### 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 `Name the Silver which has a Bronze of 19, and a Total larger than 58?`:
```sql
|
SELECT COUNT("silver") FROM "medal_table" WHERE "rank"='3' AND "gold"<2; |
## Task
Generate a SQL query to answer the following question:
`What kind of Silver has a Rank of 3, and a Gold smaller than 2?`
### 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 kind of Silver has a Rank of 3, and a Gold smaller than 2?`:
```sql
|
SELECT SUM("silver") FROM "medal_table" WHERE "bronze"<1; |
## Task
Generate a SQL query to answer the following question:
`COunt the silver that has a Bronze smaller than 1?`
### 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 `COunt the silver that has a Bronze smaller than 1?`:
```sql
|
SELECT MAX("total") FROM "medal_table" WHERE "silver">19; |
## Task
Generate a SQL query to answer the following question:
`Name the Total which has a Silver larger than 19?`
### 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 `Name the Total which has a Silver larger than 19?`:
```sql
|
SELECT AVG("silver") FROM "medal_table" WHERE "total"<2 AND "nation"='south korea'; |
## Task
Generate a SQL query to answer the following question:
`Name the Silver that has a Total smaller than 2, and a Nation of south korea?`
### 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 `Name the Silver that has a Total smaller than 2, and a Nation of south korea?`:
```sql
|
SELECT "location" FROM "mixed_martial_arts_record" WHERE "opponent"='chad armstrong'; |
## Task
Generate a SQL query to answer the following question:
`What is the location of the match with chad armstrong as the opponent?`
### 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 `What is the location of the match with chad armstrong as the opponent?`:
```sql
|
SELECT "score" FROM "third_round" WHERE "player"='scott verplank'; |
## Task
Generate a SQL query to answer the following question:
`What is Scott Verplank's score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Scott Verplank's score?`:
```sql
|
SELECT "place" FROM "third_round" WHERE "country"='united states' AND "player"='corey pavin'; |
## Task
Generate a SQL query to answer the following question:
`What place is United States player Corey Pavin in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What place is United States player Corey Pavin in?`:
```sql
|
SELECT "country" FROM "third_round" WHERE "score"='70-71-72=213'; |
## Task
Generate a SQL query to answer the following question:
`Which country has a score of 70-71-72=213?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has a score of 70-71-72=213?`:
```sql
|
SELECT "place" FROM "third_round" WHERE "player"='bob tway'; |
## Task
Generate a SQL query to answer the following question:
`Where does Bob Tway Place?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where does Bob Tway Place?`:
```sql
|
SELECT "place" FROM "third_round" WHERE "to_par"='e' AND "score"='69-69-72=210'; |
## Task
Generate a SQL query to answer the following question:
`What is the place with a to par of E and a score of 69-69-72=210?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the place with a to par of E and a score of 69-69-72=210?`:
```sql
|
SELECT "country" FROM "second_round" WHERE "player"='dave barr'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE COUNTRY WITH DAVE BARR?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE COUNTRY WITH DAVE BARR?`:
```sql
|
SELECT "to_par" FROM "second_round" WHERE "place"='t7' AND "score"='72-67=139' AND "player"='raymond floyd'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE TO PAR WITH A T7 PLACE, SCORE OF 72-67=139, AND PLAYER RAYMOND FLOYD?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE TO PAR WITH A T7 PLACE, SCORE OF 72-67=139, AND PLAYER RAYMOND FLOYD?`:
```sql
|
SELECT "place" FROM "second_round" WHERE "player"='mark o''meara'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE PLACE WITH PLAYER mark o'meara?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE PLACE WITH PLAYER mark o'meara?`:
```sql
|
SELECT MAX("drawn") FROM "first_round" WHERE "position"<4 AND "lost"<2; |
## Task
Generate a SQL query to answer the following question:
`Which Drawn is the highest one that has a Position smaller than 4, and a Lost smaller than 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Drawn is the highest one that has a Position smaller than 4, and a Lost smaller than 2?`:
```sql
|
SELECT COUNT("points") FROM "first_round" WHERE "position">3 AND "played"<14; |
## Task
Generate a SQL query to answer the following question:
`How many Points have a Position larger than 3, and a Played smaller than 14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Points have a Position larger than 3, and a Played smaller than 14?`:
```sql
|
SELECT AVG("lost") FROM "first_round" WHERE "position"=4 AND "drawn"<3; |
## Task
Generate a SQL query to answer the following question:
`Which Lost has a Position of 4, and a Drawn smaller than 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Lost has a Position of 4, and a Drawn smaller than 3?`:
```sql
|
SELECT AVG("position") FROM "first_round" WHERE "lost">4 AND "played">14; |
## Task
Generate a SQL query to answer the following question:
`Which Position has a Lost larger than 4, and a Played larger than 14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Position has a Lost larger than 4, and a Played larger than 14?`:
```sql
|
SELECT SUM("week") FROM "schedule" WHERE "opponent"='oakland raiders'; |
## Task
Generate a SQL query to answer the following question:
`On which week was the opponent the oakland raiders?`
### 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 `On which week was the opponent the oakland raiders?`:
```sql
|
SELECT "attendance" FROM "schedule" WHERE "opponent"='denver broncos'; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance at the game where the opponent was the denver broncos?`
### 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 was the attendance at the game where the opponent was the denver broncos?`:
```sql
|
SELECT SUM("enrollment") FROM "west_conference" WHERE "location"='platteville, wi'; |
## Task
Generate a SQL query to answer the following question:
`How many people are enrolled in platteville, wi?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "west_conference" (
"institution" text,
"location" text,
"founded" real,
"affiliation" text,
"enrollment" real,
"nickname" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people are enrolled in platteville, wi?`:
```sql
|
SELECT "nickname" FROM "west_conference" WHERE "institution"='university of wisconsin-platteville'; |
## Task
Generate a SQL query to answer the following question:
`What is the team nickname of university of wisconsin-platteville?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "west_conference" (
"institution" text,
"location" text,
"founded" real,
"affiliation" text,
"enrollment" real,
"nickname" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the team nickname of university of wisconsin-platteville?`:
```sql
|
SELECT "to_par" FROM "third_round" WHERE "place"='3'; |
## Task
Generate a SQL query to answer the following question:
`What is To Par, when Place is 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is To Par, when Place is 3?`:
```sql
|
SELECT "country" FROM "third_round" WHERE "player"='rives mcbee'; |
## Task
Generate a SQL query to answer the following question:
`What is Country, when Player is "Rives McBee"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Country, when Player is "Rives McBee"?`:
```sql
|
SELECT "place" FROM "third_round" WHERE "player"='tony lema'; |
## Task
Generate a SQL query to answer the following question:
`What is Place, when Player is "Tony Lema"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Place, when Player is "Tony Lema"?`:
```sql
|
SELECT "score" FROM "third_round" WHERE "to_par"='e'; |
## Task
Generate a SQL query to answer the following question:
`What is Score, when To Par is "E"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when To Par is "E"?`:
```sql
|
SELECT "country" FROM "third_round" WHERE "score"='71-71-69=211'; |
## Task
Generate a SQL query to answer the following question:
`What is Country, when Score is 71-71-69=211?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Country, when Score is 71-71-69=211?`:
```sql
|
SELECT "country" FROM "third_round" WHERE "score"='71-74-70=215'; |
## Task
Generate a SQL query to answer the following question:
`What is Country, when Score is 71-74-70=215?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Country, when Score is 71-74-70=215?`:
```sql
|
SELECT "2004_05" FROM "performance_and_rankings_timeline" WHERE "2007_08"='not held' AND "2012_13"='a' AND "2011_12"='a' AND "2010_11"='not held'; |
## Task
Generate a SQL query to answer the following question:
`What shows for 2004/ 05 when 2007/ 08 shows not held, 2012/ 13 is A, 2011/ 12 of A, and a 2010/ 11 of not held?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performance_and_rankings_timeline" (
"2004_05" text,
"2007_08" text,
"2010_11" text,
"2011_12" text,
"2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for 2004/ 05 when 2007/ 08 shows not held, 2012/ 13 is A, 2011/ 12 of A, and a 2010/ 11 of not held?`:
```sql
|
SELECT "2012_13" FROM "performance_and_rankings_timeline" WHERE "2007_08"='not held' AND "2011_12"='non-ranking'; |
## Task
Generate a SQL query to answer the following question:
`What shows for 2012/ 13 when the 2007/ 08 is not held, and the 2011/ 12 is non-ranking?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performance_and_rankings_timeline" (
"2004_05" text,
"2007_08" text,
"2010_11" text,
"2011_12" text,
"2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for 2012/ 13 when the 2007/ 08 is not held, and the 2011/ 12 is non-ranking?`:
```sql
|
SELECT "2011_12" FROM "performance_and_rankings_timeline" WHERE "2010_11"='not held' AND "2012_13"='a'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2011/ 12 when the 2010/ 11 is not held, and the 2012/ 13 is A?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performance_and_rankings_timeline" (
"2004_05" text,
"2007_08" text,
"2010_11" text,
"2011_12" text,
"2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2011/ 12 when the 2010/ 11 is not held, and the 2012/ 13 is A?`:
```sql
|
SELECT "2004_05" FROM "performance_and_rankings_timeline" WHERE "2011_12"='non-ranking'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2004/ 05 when the 2011/ 12 is non-ranking?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performance_and_rankings_timeline" (
"2004_05" text,
"2007_08" text,
"2010_11" text,
"2011_12" text,
"2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2004/ 05 when the 2011/ 12 is non-ranking?`:
```sql
|
SELECT "2012_13" FROM "performance_and_rankings_timeline" WHERE "2011_12"='non-ranking'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2012/ 13 when the 2011/ 12 is non-ranking?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performance_and_rankings_timeline" (
"2004_05" text,
"2007_08" text,
"2010_11" text,
"2011_12" text,
"2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2012/ 13 when the 2011/ 12 is non-ranking?`:
```sql
|
SELECT "2010_11" FROM "performance_and_rankings_timeline" WHERE "2011_12"='ranking tournaments'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2010/ 11 when the 2011/ 12 is ranking tournaments?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performance_and_rankings_timeline" (
"2004_05" text,
"2007_08" text,
"2010_11" text,
"2011_12" text,
"2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2010/ 11 when the 2011/ 12 is ranking tournaments?`:
```sql
|
SELECT SUM("lost") FROM "final_table" WHERE "played"<42; |
## Task
Generate a SQL query to answer the following question:
`what is the lost when played is less than 42?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the lost when played is less than 42?`:
```sql
|
SELECT "goal_difference" FROM "final_table" WHERE "drawn">11 AND "goals_against"<63 AND "goals_for"<87 AND "lost">16; |
## Task
Generate a SQL query to answer the following question:
`what is the goal difference when drawn is more than 11, goals against is less than 63, goals for is less than 87 and lost is more than 16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the goal difference when drawn is more than 11, goals against is less than 63, goals for is less than 87 and lost is more than 16?`:
```sql
|
SELECT COUNT("goals_for") FROM "final_table" WHERE "lost"<7 AND "position"=2; |
## Task
Generate a SQL query to answer the following question:
`how many times is lost less than 7 and the position 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many times is lost less than 7 and the position 2?`:
```sql
|
SELECT SUM("position") FROM "final_table" WHERE "points_1"<36 AND "goals_for"<40 AND "drawn"<9; |
## Task
Generate a SQL query to answer the following question:
`what is the position when the points 1 is less than 36, goals for is less than 40 and drawn is less than 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the position when the points 1 is less than 36, goals for is less than 40 and drawn is less than 9?`:
```sql
|
SELECT "executions_in_persona" FROM "table_of_sentences" WHERE "number_of_autos_da_f_with_known_sentences"='2 (1543β1544)'; |
## Task
Generate a SQL query to answer the following question:
`How many executions in persona have a number with known sentences of 2 (1543β1544)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_of_sentences" (
"tribunal" text,
"number_of_autos_da_f_with_known_sentences" text,
"executions_in_persona" text,
"executions_in_effigie" text,
"penanced" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many executions in persona have a number with known sentences of 2 (1543β1544)?`:
```sql
|
SELECT "penanced" FROM "table_of_sentences" WHERE "number_of_autos_da_f_with_known_sentences"='71 (1600β1773)'; |
## Task
Generate a SQL query to answer the following question:
`How many were penanced when the number with known sentences was 71 (1600β1773)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_of_sentences" (
"tribunal" text,
"number_of_autos_da_f_with_known_sentences" text,
"executions_in_persona" text,
"executions_in_effigie" text,
"penanced" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many were penanced when the number with known sentences was 71 (1600β1773)?`:
```sql
|
SELECT "penanced" FROM "table_of_sentences" WHERE "total"='7666'; |
## Task
Generate a SQL query to answer the following question:
`How many were penanced for a total of 7666?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_of_sentences" (
"tribunal" text,
"number_of_autos_da_f_with_known_sentences" text,
"executions_in_persona" text,
"executions_in_effigie" text,
"penanced" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many were penanced for a total of 7666?`:
```sql
|
SELECT "executions_in_effigie" FROM "table_of_sentences" WHERE "tribunal"='lamego'; |
## Task
Generate a SQL query to answer the following question:
`How man executions in effigie took place at the Lamego tribunal?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_of_sentences" (
"tribunal" text,
"number_of_autos_da_f_with_known_sentences" text,
"executions_in_persona" text,
"executions_in_effigie" text,
"penanced" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `How man executions in effigie took place at the Lamego tribunal?`:
```sql
|
SELECT "penanced" FROM "table_of_sentences" WHERE "executions_in_effigie"='0' AND "total"='21'; |
## Task
Generate a SQL query to answer the following question:
`How many were penanced with 0 executions in effigie for a total of 21?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_of_sentences" (
"tribunal" text,
"number_of_autos_da_f_with_known_sentences" text,
"executions_in_persona" text,
"executions_in_effigie" text,
"penanced" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many were penanced with 0 executions in effigie for a total of 21?`:
```sql
|
SELECT "tribunal" FROM "table_of_sentences" WHERE "total"='4167'; |
## Task
Generate a SQL query to answer the following question:
`Which tribunal had a total of 4167?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_of_sentences" (
"tribunal" text,
"number_of_autos_da_f_with_known_sentences" text,
"executions_in_persona" text,
"executions_in_effigie" text,
"penanced" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tribunal had a total of 4167?`:
```sql
|
SELECT "opponent" FROM "season_schedule" WHERE "date"='october 20'; |
## Task
Generate a SQL query to answer the following question:
`What is the Opponent of the Game on October 20?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"date" text,
"opponent" text,
"score" text,
"result" text,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Opponent of the Game on October 20?`:
```sql
|
SELECT "institution" FROM "national_division" WHERE "location"='reading, pa'; |
## Task
Generate a SQL query to answer the following question:
`Which institution is located in Reading, PA?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "national_division" (
"institution" text,
"location" text,
"nickname" text,
"enrollment" real,
"established" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which institution is located in Reading, PA?`:
```sql
|
SELECT "nickname" FROM "national_division" WHERE "established"=1958; |
## Task
Generate a SQL query to answer the following question:
`What was the nick name for the school established in 1958?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "national_division" (
"institution" text,
"location" text,
"nickname" text,
"enrollment" real,
"established" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the nick name for the school established in 1958?`:
```sql
|
SELECT MAX("laps") FROM "race" WHERE "team"='mi-jack conquest racing' AND "driver"='justin wilson' AND "grid"<5; |
## Task
Generate a SQL query to answer the following question:
`When the grid is under 5 and justin wilson is driving for the team mi-jack conquest racing, what's the highest number of laps driven?`
### 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 `When the grid is under 5 and justin wilson is driving for the team mi-jack conquest racing, what's the highest number of laps driven?`:
```sql
|
SELECT "time_retired" FROM "race" WHERE "team"='newman/haas racing' AND "grid"=3; |
## Task
Generate a SQL query to answer the following question:
`When the team is newman/haas racing and the grid size is 3, what's the time/retired?`
### 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 `When the team is newman/haas racing and the grid size is 3, what's the time/retired?`:
```sql
|
SELECT "tournament" FROM "competitive_matches" WHERE "ground"='a' AND "round"='8'; |
## Task
Generate a SQL query to answer the following question:
`What tournament took place on Ground A with 8 rounds?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "competitive_matches" (
"date" text,
"tournament" text,
"round" text,
"ground" text,
"opponent" text,
"score_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tournament took place on Ground A with 8 rounds?`:
```sql
|
SELECT "series" FROM "regular_cast" WHERE "title_rank"='various'; |
## Task
Generate a SQL query to answer the following question:
`What series had the title rank of various?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_cast" (
"actor" text,
"character" text,
"title_rank" text,
"series" text,
"years" text
);
### SQL
Given the database schema, here is the SQL query that answers `What series had the title rank of various?`:
```sql
|
SELECT "title_rank" FROM "regular_cast" WHERE "series"='1-8, 13' AND "character"='arthur hastings'; |
## Task
Generate a SQL query to answer the following question:
`What is the title rank of the actor who played the character of arthur hastings during series 1-8, 13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_cast" (
"actor" text,
"character" text,
"title_rank" text,
"series" text,
"years" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title rank of the actor who played the character of arthur hastings during series 1-8, 13?`:
```sql
|
SELECT "title_rank" FROM "regular_cast" WHERE "series"='1-8, 13' AND "character"='arthur hastings'; |
## Task
Generate a SQL query to answer the following question:
`What is the title rank of the actor who played the character of arthur hastings during series 1-8, 13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_cast" (
"actor" text,
"character" text,
"title_rank" text,
"series" text,
"years" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title rank of the actor who played the character of arthur hastings during series 1-8, 13?`:
```sql
|
SELECT "title_rank" FROM "regular_cast" WHERE "actor"='pauline moran'; |
## Task
Generate a SQL query to answer the following question:
`What is the title rank of actor pauline moran?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_cast" (
"actor" text,
"character" text,
"title_rank" text,
"series" text,
"years" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title rank of actor pauline moran?`:
```sql
|
SELECT "character" FROM "regular_cast" WHERE "title_rank"='various'; |
## Task
Generate a SQL query to answer the following question:
`Which character had a title rank of various?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_cast" (
"actor" text,
"character" text,
"title_rank" text,
"series" text,
"years" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which character had a title rank of various?`:
```sql
|
SELECT "high_rebounds" FROM "game_log" WHERE "game">65 AND "date"='march 28'; |
## Task
Generate a SQL query to answer the following question:
`Who had the highest rebounds of the game with a game number higher than 65 on March 28?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the highest rebounds of the game with a game number higher than 65 on March 28?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "game"<58 AND "team"='boston'; |
## Task
Generate a SQL query to answer the following question:
`WHAT DATE HAD A GAME SMALLER THAN 58, AND FROM BOSTON?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT DATE HAD A GAME SMALLER THAN 58, AND FROM BOSTON?`:
```sql
|
SELECT "original_airdate" FROM "series_3_2009_ratings" WHERE "nightly_rank"='#6' AND "viewers_millions"=1.246; |
## Task
Generate a SQL query to answer the following question:
`Original airdate for #6 with 1.246 viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_3_2009_ratings" (
"episode" real,
"original_airdate" text,
"timeslot_approx" text,
"viewers_millions" real,
"nightly_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Original airdate for #6 with 1.246 viewers?`:
```sql
|
SELECT "nightly_rank" FROM "series_3_2009_ratings" WHERE "viewers_millions">1.244; |
## Task
Generate a SQL query to answer the following question:
`Rank for viewers larger than 1.244?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_3_2009_ratings" (
"episode" real,
"original_airdate" text,
"timeslot_approx" text,
"viewers_millions" real,
"nightly_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Rank for viewers larger than 1.244?`:
```sql
|
SELECT SUM("week") FROM "schedule" WHERE "result"='w 20β6'; |
## Task
Generate a SQL query to answer the following question:
`How many weeks had a Result of w 20β6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many weeks had a Result of w 20β6?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "attendance"='bye'; |
## Task
Generate a SQL query to answer the following question:
`Which Opponent has an Attendance of bye?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent has an Attendance of bye?`:
```sql
|
SELECT MAX("f_laps") FROM "by_seasons" WHERE "podiums"=24 AND "races">143; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE FLAPS WITH PODIUMS OF 24 AND RACES BIGGER THAN 143?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_seasons" (
"season" text,
"races" real,
"podiums" real,
"pole" real,
"f_laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE FLAPS WITH PODIUMS OF 24 AND RACES BIGGER THAN 143?`:
```sql
|
SELECT SUM("races") FROM "by_seasons" WHERE "f_laps"=0 AND "podiums">0 AND "season"='2008' AND "pole"<1; |
## Task
Generate a SQL query to answer the following question:
`WHAT ARE THE RACES WHEN FLAPS ARE ZERO, PODIUMS ARE LARGER THAN 0, SEASON IS 2008, AND POLE SMALLER THAN 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_seasons" (
"season" text,
"races" real,
"podiums" real,
"pole" real,
"f_laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT ARE THE RACES WHEN FLAPS ARE ZERO, PODIUMS ARE LARGER THAN 0, SEASON IS 2008, AND POLE SMALLER THAN 1?`:
```sql
|
SELECT MIN("races") FROM "by_seasons" WHERE "pole"<2 AND "season"='2007'; |
## Task
Generate a SQL query to answer the following question:
`WHAT ARE THE RACES WITH A POLE SMALLER THAN 2 IN 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_seasons" (
"season" text,
"races" real,
"podiums" real,
"pole" real,
"f_laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT ARE THE RACES WITH A POLE SMALLER THAN 2 IN 2007?`:
```sql
|
SELECT MAX("races") FROM "by_seasons" WHERE "season"='2010' AND "f_laps">6; |
## Task
Generate a SQL query to answer the following question:
`WHAT ARE THE RACES FOR 2010 WITH FLAPS LARGER THAN 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_seasons" (
"season" text,
"races" real,
"podiums" real,
"pole" real,
"f_laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT ARE THE RACES FOR 2010 WITH FLAPS LARGER THAN 6?`:
```sql
|
SELECT "t20_matches" FROM "ground_history" WHERE "total"='23'; |
## Task
Generate a SQL query to answer the following question:
`What T20 Match has a total of 23?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ground_history" (
"name_of_ground" text,
"location" text,
"year" text,
"fc_matches" text,
"la_matches" text,
"t20_matches" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What T20 Match has a total of 23?`:
```sql
|
SELECT "fc_matches" FROM "ground_history" WHERE "location"='darlington'; |
## Task
Generate a SQL query to answer the following question:
`What FC Match was played in Darlington?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ground_history" (
"name_of_ground" text,
"location" text,
"year" text,
"fc_matches" text,
"la_matches" text,
"t20_matches" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What FC Match was played in Darlington?`:
```sql
|
SELECT "t20_matches" FROM "ground_history" WHERE "year"='1979'; |
## Task
Generate a SQL query to answer the following question:
`What T20 match was played in 1979?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ground_history" (
"name_of_ground" text,
"location" text,
"year" text,
"fc_matches" text,
"la_matches" text,
"t20_matches" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What T20 match was played in 1979?`:
```sql
|
SELECT "fc_matches" FROM "ground_history" WHERE "total"='24'; |
## Task
Generate a SQL query to answer the following question:
`Which FC match has a total of 24?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ground_history" (
"name_of_ground" text,
"location" text,
"year" text,
"fc_matches" text,
"la_matches" text,
"t20_matches" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which FC match has a total of 24?`:
```sql
|
SELECT "location" FROM "ground_history" WHERE "fc_matches"='12'; |
## Task
Generate a SQL query to answer the following question:
`Where was the FC match with a score of 12 played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ground_history" (
"name_of_ground" text,
"location" text,
"year" text,
"fc_matches" text,
"la_matches" text,
"t20_matches" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the FC match with a score of 12 played?`:
```sql
|
SELECT COUNT("oricon") FROM "singles" WHERE "romaji_title"='rakuen -memorial tracks- (maxi-single)'; |
## Task
Generate a SQL query to answer the following question:
`How many oricon's have a romaji title of rakuen -memorial tracks- (maxi-single)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"romaji_title" text,
"japanese_title" text,
"release_date" text,
"reference" text,
"oricon" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many oricon's have a romaji title of rakuen -memorial tracks- (maxi-single)?`:
```sql
|
SELECT "reference" FROM "singles" WHERE "japanese_title"='γ’γ€γ·γγ«'; |
## Task
Generate a SQL query to answer the following question:
`What reference is used with the title γ’γ€γ·γγ«?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"romaji_title" text,
"japanese_title" text,
"release_date" text,
"reference" text,
"oricon" real
);
### SQL
Given the database schema, here is the SQL query that answers `What reference is used with the title γ’γ€γ·γγ«?`:
```sql
|
SELECT "reference" FROM "singles" WHERE "romaji_title"='da.i.su.ki'; |
## Task
Generate a SQL query to answer the following question:
`What is the reference for the romani title da.i.su.ki?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"romaji_title" text,
"japanese_title" text,
"release_date" text,
"reference" text,
"oricon" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the reference for the romani title da.i.su.ki?`:
```sql
|
SELECT "japanese_title" FROM "singles" WHERE "romaji_title"='ashita wa ashita no kaze ga fuku'; |
## Task
Generate a SQL query to answer the following question:
`What title to the japanese give the romani title ashita wa ashita no kaze ga fuku?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"romaji_title" text,
"japanese_title" text,
"release_date" text,
"reference" text,
"oricon" real
);
### SQL
Given the database schema, here is the SQL query that answers `What title to the japanese give the romani title ashita wa ashita no kaze ga fuku?`:
```sql
|
SELECT "club" FROM "sport" WHERE "founded">1998; |
## Task
Generate a SQL query to answer the following question:
`Which club was founded after 1998?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sport" (
"club" text,
"sport" text,
"founded" real,
"league" text,
"venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which club was founded after 1998?`:
```sql
|
SELECT MIN("tries") FROM "2002_squad_statistics" WHERE "goals"<0; |
## Task
Generate a SQL query to answer the following question:
`Which Tries has a Goal smaller than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2002_squad_statistics" (
"player" text,
"position" text,
"tries" real,
"goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Tries has a Goal smaller than 0?`:
```sql
|
SELECT "issue_price" FROM "specimen_set_variant_dollars" WHERE "theme"='trumpeter swan'; |
## Task
Generate a SQL query to answer the following question:
`What was the issue price for the Trumpeter Swan set?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "specimen_set_variant_dollars" (
"year" real,
"theme" text,
"artist" text,
"mintage" text,
"issue_price" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the issue price for the Trumpeter Swan set?`:
```sql
|
SELECT "artist" FROM "specimen_set_variant_dollars" WHERE "mintage"='40,000' AND "issue_price"='45.95'; |
## Task
Generate a SQL query to answer the following question:
`Who was the artist with a mintage of 40,000 and an issue price of $45.95?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "specimen_set_variant_dollars" (
"year" real,
"theme" text,
"artist" text,
"mintage" text,
"issue_price" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the artist with a mintage of 40,000 and an issue price of $45.95?`:
```sql
|
SELECT "high_points" FROM "playoffs" WHERE "date"='may 25'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number of points a player got during the game on May 25?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of points a player got during the game on May 25?`:
```sql
|
SELECT "position" FROM "2010s" WHERE "first_team_goals"='ongoing' AND "current_club"='aston villa'; |
## Task
Generate a SQL query to answer the following question:
`What is the position of the player who has ongoing first-team goals and currently plays for the Aston Villa club?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010s" (
"player" text,
"position" text,
"first_team_appearances" text,
"first_team_goals" text,
"current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position of the player who has ongoing first-team goals and currently plays for the Aston Villa club?`:
```sql
|
SELECT "player" FROM "2010s" WHERE "first_team_appearances"='7'; |
## Task
Generate a SQL query to answer the following question:
`Who is the player who has had 7 first team appearances?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010s" (
"player" text,
"position" text,
"first_team_appearances" text,
"first_team_goals" text,
"current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player who has had 7 first team appearances?`:
```sql
|
SELECT "current_club" FROM "2010s" WHERE "first_team_appearances"='ongoing' AND "position"='midfielder' AND "player"='samir carruthers'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the club that has ongoing first-team appearances, a midfielder, and whose player is Samir Carruthers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010s" (
"player" text,
"position" text,
"first_team_appearances" text,
"first_team_goals" text,
"current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the club that has ongoing first-team appearances, a midfielder, and whose player is Samir Carruthers?`:
```sql
|
SELECT "first_team_goals" FROM "2010s" WHERE "player"='samir carruthers'; |
## Task
Generate a SQL query to answer the following question:
`How many first-team goals does the team have whose player is Samir Carruthers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010s" (
"player" text,
"position" text,
"first_team_appearances" text,
"first_team_goals" text,
"current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many first-team goals does the team have whose player is Samir Carruthers?`:
```sql
|
SELECT "position" FROM "2010s" WHERE "first_team_appearances"='ongoing' AND "current_club"='aston villa' AND "player"='graham burke'; |
## Task
Generate a SQL query to answer the following question:
`What position has ongoing first-team appearances, Graham Burke for a player, and whose club is Aston Villa?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010s" (
"player" text,
"position" text,
"first_team_appearances" text,
"first_team_goals" text,
"current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position has ongoing first-team appearances, Graham Burke for a player, and whose club is Aston Villa?`:
```sql
|
SELECT "position" FROM "2010s" WHERE "first_team_appearances"='7'; |
## Task
Generate a SQL query to answer the following question:
`Which position has had 7 first-team appearances?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010s" (
"player" text,
"position" text,
"first_team_appearances" text,
"first_team_goals" text,
"current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position has had 7 first-team appearances?`:
```sql
|
SELECT "theme" FROM "18_k_gold_proof_lunar_hologram_coin_seri" WHERE "issue_price"='$508.95'; |
## Task
Generate a SQL query to answer the following question:
`What was the theme when the issue price was $508.95?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "18_k_gold_proof_lunar_hologram_coin_seri" (
"year" real,
"theme" text,
"artist" text,
"composition" text,
"mintage" real,
"issue_price" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the theme when the issue price was $508.95?`:
```sql
|
SELECT "mintage" FROM "18_k_gold_proof_lunar_hologram_coin_seri" WHERE "theme"='year of the rabbit'; |
## Task
Generate a SQL query to answer the following question:
`What's the mintage when the theme was year of the rabbit?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "18_k_gold_proof_lunar_hologram_coin_seri" (
"year" real,
"theme" text,
"artist" text,
"composition" text,
"mintage" real,
"issue_price" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the mintage when the theme was year of the rabbit?`:
```sql
|
SELECT "year" FROM "18_k_gold_proof_lunar_hologram_coin_seri" WHERE "theme"='year of the pig'; |
## Task
Generate a SQL query to answer the following question:
`What year was the year of the pig theme?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "18_k_gold_proof_lunar_hologram_coin_seri" (
"year" real,
"theme" text,
"artist" text,
"composition" text,
"mintage" real,
"issue_price" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the year of the pig theme?`:
```sql
|
SELECT "artist" FROM "18_k_gold_proof_lunar_hologram_coin_seri" WHERE "theme"='year of the snake'; |
## Task
Generate a SQL query to answer the following question:
`Who was the artist for the year of the snake?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "18_k_gold_proof_lunar_hologram_coin_seri" (
"year" real,
"theme" text,
"artist" text,
"composition" text,
"mintage" real,
"issue_price" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the artist for the year of the snake?`:
```sql
|
SELECT COUNT("frequency_m_hz") FROM "translators" WHERE "city_of_license"='port charlotte, florida' AND "erp_w">10; |
## Task
Generate a SQL query to answer the following question:
`What is the total Frequency MHz Port Charlotte, Florida, which has an ERP W larger than 10, has?`
### 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" real,
"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 total Frequency MHz Port Charlotte, Florida, which has an ERP W larger than 10, has?`:
```sql
|
SELECT "call_sign" FROM "translators" WHERE "erp_w">10; |
## Task
Generate a SQL query to answer the following question:
`What is the call sign for the translator with an ERP W larger than 10?`
### 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" real,
"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 call sign for the translator with an ERP W larger than 10?`:
```sql
|
SELECT MAX("erp_w") FROM "translators" WHERE "call_sign"='w284av'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest ERP W of the translator with a call sign of w284av?`
### 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" real,
"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 highest ERP W of the translator with a call sign of w284av?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.