output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT COUNT("fin_pos") FROM "classification" WHERE "time_retired"='+10.8098'; |
## Task
Generate a SQL query to answer the following question:
`How many positions did the car with a final time of +10.8098 finish in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"fin_pos" real,
"car_no" real,
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"laps_led" real,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many positions did the car with a final time of +10.8098 finish in?`:
```sql
|
SELECT MIN("fin_pos") FROM "classification" WHERE "driver"='Darren Manning'; |
## Task
Generate a SQL query to answer the following question:
`Darren Manning finished in what position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"fin_pos" real,
"car_no" real,
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"laps_led" real,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Darren Manning finished in what position?`:
```sql
|
SELECT "position" FROM "career_summary" WHERE "team"='Josef Kaufmann Racing'; |
## Task
Generate a SQL query to answer the following question:
`What was the position for the Josef Kaufmann Racing team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" real,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the position for the Josef Kaufmann Racing team?`:
```sql
|
SELECT MAX("poles") FROM "career_summary" WHERE "series"='Formula BMW Pacific'; |
## Task
Generate a SQL query to answer the following question:
`How many poles did the player have during the Formula BMW Pacific race?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" real,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many poles did the player have during the Formula BMW Pacific race?`:
```sql
|
SELECT MAX("season") FROM "career_summary" WHERE "points"=0 AND "position"='31st'; |
## Task
Generate a SQL query to answer the following question:
`Which season did he have 0 points and 31st position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" real,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which season did he have 0 points and 31st position?`:
```sql
|
SELECT "wins" FROM "career_summary" WHERE "series"='Formula BMW World Final'; |
## Task
Generate a SQL query to answer the following question:
`How many wins did the player have in the Formula BMW World Final?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" real,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins did the player have in the Formula BMW World Final?`:
```sql
|
SELECT "air_date" FROM "episode_events" WHERE "event_2"='Hang Tough'; |
## Task
Generate a SQL query to answer the following question:
`On what date was the episode aired where event 2 was Hang Tough?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episode_events" (
"episode_number" real,
"air_date" text,
"event_1" text,
"event_2" text,
"event_3" text,
"event_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the episode aired where event 2 was Hang Tough?`:
```sql
|
SELECT "event_2" FROM "episode_events" WHERE "event_4"='Whiplash'; |
## Task
Generate a SQL query to answer the following question:
`When event 4 was Whiplash, what was event 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episode_events" (
"episode_number" real,
"air_date" text,
"event_1" text,
"event_2" text,
"event_3" text,
"event_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `When event 4 was Whiplash, what was event 2?`:
```sql
|
SELECT COUNT("air_date") FROM "episode_events" WHERE "event_1"='Suspension Bridge'; |
## Task
Generate a SQL query to answer the following question:
`On how many different dates was event 1 Suspension Bridge?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episode_events" (
"episode_number" real,
"air_date" text,
"event_1" text,
"event_2" text,
"event_3" text,
"event_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `On how many different dates was event 1 Suspension Bridge?`:
```sql
|
SELECT COUNT("episode_number") FROM "episode_events" WHERE "event_4"='The Wall' AND "event_1"='Pendulum'; |
## Task
Generate a SQL query to answer the following question:
`On which episode number is event 4 The Wall and event 1 the Pendulum?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episode_events" (
"episode_number" real,
"air_date" text,
"event_1" text,
"event_2" text,
"event_3" text,
"event_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `On which episode number is event 4 The Wall and event 1 the Pendulum?`:
```sql
|
SELECT "event_2" FROM "episode_events" WHERE "event_1"='Atlasphere'; |
## Task
Generate a SQL query to answer the following question:
`What was event 2 when event 1 was Atlasphere?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episode_events" (
"episode_number" real,
"air_date" text,
"event_1" text,
"event_2" text,
"event_3" text,
"event_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was event 2 when event 1 was Atlasphere?`:
```sql
|
SELECT "car_no" FROM "classification" WHERE "driver"='Darren Manning'; |
## Task
Generate a SQL query to answer the following question:
`What is the car number driven by Darren Manning?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"fin_pos" real,
"car_no" real,
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"laps_led" real,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the car number driven by Darren Manning?`:
```sql
|
SELECT MAX("fin_pos") FROM "classification" WHERE "points"='50'; |
## Task
Generate a SQL query to answer the following question:
`Which position earned 50 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"fin_pos" real,
"car_no" real,
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"laps_led" real,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position earned 50 points?`:
```sql
|
SELECT COUNT("grid") FROM "classification" WHERE "driver"='Vitor Meira'; |
## Task
Generate a SQL query to answer the following question:
`How many drivers on the grid are called Vitor Meira?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"fin_pos" real,
"car_no" real,
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"laps_led" real,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many drivers on the grid are called Vitor Meira?`:
```sql
|
SELECT MIN("result") FROM "0_728_throw_3_times" WHERE "equation"='0 × 9² + 3 × 9 + 3'; |
## Task
Generate a SQL query to answer the following question:
`If the equation is 0 × 9² + 3 × 9 + 3, what is the result?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "0_728_throw_3_times" (
"1st_throw" real,
"2nd_throw" real,
"3rd_throw" real,
"equation" text,
"result" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the equation is 0 × 9² + 3 × 9 + 3, what is the result?`:
```sql
|
SELECT MAX("3rd_throw") FROM "0_728_throw_3_times" WHERE "equation"='6 × 9² + 6 × 9 + 6'; |
## Task
Generate a SQL query to answer the following question:
`If the equation is 6 × 9² + 6 × 9 + 6, what is the 3rd throw?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "0_728_throw_3_times" (
"1st_throw" real,
"2nd_throw" real,
"3rd_throw" real,
"equation" text,
"result" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the equation is 6 × 9² + 6 × 9 + 6, what is the 3rd throw?`:
```sql
|
SELECT MIN("2nd_throw") FROM "0_728_throw_3_times" WHERE "equation"='8 × 9² + 8 × 9 + 8'; |
## Task
Generate a SQL query to answer the following question:
`If the equation is 8 × 9² + 8 × 9 + 8, what is the 2nd throw?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "0_728_throw_3_times" (
"1st_throw" real,
"2nd_throw" real,
"3rd_throw" real,
"equation" text,
"result" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the equation is 8 × 9² + 8 × 9 + 8, what is the 2nd throw?`:
```sql
|
SELECT "2nd_throw" FROM "0_728_throw_3_times" WHERE "equation"='1 × 9² + 4 × 9 + 0'; |
## Task
Generate a SQL query to answer the following question:
`If the equation is 1 × 9² + 4 × 9 + 0, what is the 2nd throw?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "0_728_throw_3_times" (
"1st_throw" real,
"2nd_throw" real,
"3rd_throw" real,
"equation" text,
"result" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the equation is 1 × 9² + 4 × 9 + 0, what is the 2nd throw?`:
```sql
|
SELECT MAX("2nd_throw") FROM "0_728_throw_3_times" WHERE "equation"='6 × 9² + 6 × 9 + 6'; |
## Task
Generate a SQL query to answer the following question:
`If the equation is 6 × 9² + 6 × 9 + 6, what is the 2nd throw?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "0_728_throw_3_times" (
"1st_throw" real,
"2nd_throw" real,
"3rd_throw" real,
"equation" text,
"result" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the equation is 6 × 9² + 6 × 9 + 6, what is the 2nd throw?`:
```sql
|
SELECT "2nd_leg" FROM "round_of_16" WHERE "team_num1"='San Lorenzo'; |
## Task
Generate a SQL query to answer the following question:
`When they played San Lorenzo, what was the score of the second leg?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_of_16" (
"team_num1" text,
"points" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `When they played San Lorenzo, what was the score of the second leg?`:
```sql
|
SELECT COUNT("1st_leg") FROM "round_of_16" WHERE "team_num2"='Universidad de Chile'; |
## Task
Generate a SQL query to answer the following question:
`When they played Universidad de Chile, what was the score of the first leg?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_of_16" (
"team_num1" text,
"points" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `When they played Universidad de Chile, what was the score of the first leg?`:
```sql
|
SELECT "team_num2" FROM "round_of_16" WHERE "team_num1"='San Lorenzo'; |
## Task
Generate a SQL query to answer the following question:
`Who played San Lorenzo?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_of_16" (
"team_num1" text,
"points" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played San Lorenzo?`:
```sql
|
SELECT "team_num2" FROM "round_of_16" WHERE "team_num1"='River Plate'; |
## Task
Generate a SQL query to answer the following question:
`Who played River Plate?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_of_16" (
"team_num1" text,
"points" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played River Plate?`:
```sql
|
SELECT COUNT("1st_leg") FROM "first_stage" WHERE "team_num2"='Botafogo'; |
## Task
Generate a SQL query to answer the following question:
`What was the score on the 1st leg if the team 2 is botafogo?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_stage" (
"team_num1" text,
"points" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score on the 1st leg if the team 2 is botafogo?`:
```sql
|
SELECT "team_num2" FROM "first_stage" WHERE "team_num1"='Vitória'; |
## Task
Generate a SQL query to answer the following question:
`Who played against team 1 Vitória?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_stage" (
"team_num1" text,
"points" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played against team 1 Vitória?`:
```sql
|
SELECT "team_num2" FROM "first_stage" WHERE "team_num1"='Liverpool'; |
## Task
Generate a SQL query to answer the following question:
`Who played against team 1 Liverpool? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_stage" (
"team_num1" text,
"points" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played against team 1 Liverpool? `:
```sql
|
SELECT "points" FROM "first_stage" WHERE "team_num2"='Deportivo Anzoátegui'; |
## Task
Generate a SQL query to answer the following question:
`What was the game's points against Team 2 Deportivo Anzoátegui?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_stage" (
"team_num1" text,
"points" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the game's points against Team 2 Deportivo Anzoátegui?`:
```sql
|
SELECT COUNT("high_points") FROM "game_log" WHERE "location_attendance"='US Airways Center 18,422'; |
## Task
Generate a SQL query to answer the following question:
`How many different items appear in the high points column when the location attendance was US Airways Center 18,422?`
### 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 `How many different items appear in the high points column when the location attendance was US Airways Center 18,422?`:
```sql
|
SELECT "high_assists" FROM "game_log" WHERE "date"='April 7'; |
## Task
Generate a SQL query to answer the following question:
`What was the high assists on April 7?`
### 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 was the high assists on April 7?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "date"='January 25'; |
## Task
Generate a SQL query to answer the following question:
`What is the score for the game played on January 25?`
### 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 is the score for the game played on January 25?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "date"='January 19'; |
## Task
Generate a SQL query to answer the following question:
`What is the record for the team on January 19?`
### 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 is the record for the team on January 19?`:
```sql
|
SELECT COUNT("record") FROM "game_log" WHERE "high_points"='Ron Artest (24)'; |
## Task
Generate a SQL query to answer the following question:
`How many times did Ron Artest (24) receive the record for high points?`
### 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 `How many times did Ron Artest (24) receive the record for high points?`:
```sql
|
SELECT "location_attendance" FROM "game_log" WHERE "high_assists"='Rafer Alston (10)'; |
## Task
Generate a SQL query to answer the following question:
`At what location and what was the attendance when Rafer Alston (10) achieved high assists? `
### 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 `At what location and what was the attendance when Rafer Alston (10) achieved high assists? `:
```sql
|
SELECT MAX("game") FROM "game_log" WHERE "location_attendance"='Conseco Fieldhouse 14,486'; |
## Task
Generate a SQL query to answer the following question:
`At what game number was the attendance at Conseco Fieldhouse 14,486?`
### 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 `At what game number was the attendance at Conseco Fieldhouse 14,486?`:
```sql
|
SELECT MAX("game") FROM "game_log" WHERE "date"='January 19'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of the game that was played on January 19?`
### 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 is the number of the game that was played on January 19?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "location_attendance"='Verizon Center 20,173'; |
## Task
Generate a SQL query to answer the following question:
`Name the record for verizon center 20,173`
### 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 `Name the record for verizon center 20,173`:
```sql
|
SELECT "date" FROM "game_log" WHERE "score"='L 89–91 (OT)'; |
## Task
Generate a SQL query to answer the following question:
`Name the date for score l 89–91 (ot)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date for score l 89–91 (ot)`:
```sql
|
SELECT "record" FROM "game_log" WHERE "team"='Cleveland'; |
## Task
Generate a SQL query to answer the following question:
`What was the team record when the team was Cleveland?`
### 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 was the team record when the team was Cleveland?`:
```sql
|
SELECT "high_assists" FROM "game_log" WHERE "score"='L 93–103 (OT)'; |
## Task
Generate a SQL query to answer the following question:
`Name the high assists for l 93–103 (ot)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the high assists for l 93–103 (ot)`:
```sql
|
SELECT "date" FROM "game_log" WHERE "game"=21; |
## Task
Generate a SQL query to answer the following question:
`What was the date of game 21?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "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 was the date of game 21?`:
```sql
|
SELECT "round_of_32" FROM "table1_17289604_38" WHERE "athlete"='Nicole Vaidišová'; |
## Task
Generate a SQL query to answer the following question:
`What were the results for round of 32 for Nicole Vaidišová?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_17289604_38" (
"athlete" text,
"event" text,
"round_of_64" text,
"round_of_32" text,
"round_of_16" text,
"quarterfinals" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the results for round of 32 for Nicole Vaidišová?`:
```sql
|
SELECT COUNT("athlete") FROM "table1_17289604_38" WHERE "round_of_64"='Llagostera Vives ( ESP ) L 6–2, 3–6, 5–7'; |
## Task
Generate a SQL query to answer the following question:
`How many number of athletes were in round of 64 was llagostera Vives ( esp ) l 6–2, 3–6, 5–7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_17289604_38" (
"athlete" text,
"event" text,
"round_of_64" text,
"round_of_32" text,
"round_of_16" text,
"quarterfinals" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many number of athletes were in round of 64 was llagostera Vives ( esp ) l 6–2, 3–6, 5–7?`:
```sql
|
SELECT "round_of_16" FROM "table1_17289604_38" WHERE "round_of_32"='Koryttseva ( UKR ) W 2–6, 6–1, 7–5'; |
## Task
Generate a SQL query to answer the following question:
`What was round of 16 when in round 32 it was koryttseva ( ukr ) w 2–6, 6–1, 7–5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_17289604_38" (
"athlete" text,
"event" text,
"round_of_64" text,
"round_of_32" text,
"round_of_16" text,
"quarterfinals" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was round of 16 when in round 32 it was koryttseva ( ukr ) w 2–6, 6–1, 7–5?`:
```sql
|
SELECT "round_of_64" FROM "table1_17289604_38" WHERE "event"='Singles' AND "round_of_16"='Did not advance' AND "athlete"='Iveta Benešová'; |
## Task
Generate a SQL query to answer the following question:
`What was round of 64 of the singles event when the result of round 16 was did not advance and the athlete was Iveta Benešová?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_17289604_38" (
"athlete" text,
"event" text,
"round_of_64" text,
"round_of_32" text,
"round_of_16" text,
"quarterfinals" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was round of 64 of the singles event when the result of round 16 was did not advance and the athlete was Iveta Benešová?`:
```sql
|
SELECT "quarterfinals" FROM "table1_17289604_38" WHERE "round_of_32"='S Williams / V Williams ( USA ) L 6–4, 5–7, 1–6'; |
## Task
Generate a SQL query to answer the following question:
`What were the quarterfinals in the round of 32 was S williams / V williams ( usa ) l 6–4, 5–7, 1–6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_17289604_38" (
"athlete" text,
"event" text,
"round_of_64" text,
"round_of_32" text,
"round_of_16" text,
"quarterfinals" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the quarterfinals in the round of 32 was S williams / V williams ( usa ) l 6–4, 5–7, 1–6?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "high_rebounds"='Dirk Nowitzki (14)'; |
## Task
Generate a SQL query to answer the following question:
`On what day did Dirk Nowitzki (14) have a high rebound? `
### 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 `On what day did Dirk Nowitzki (14) have a high rebound? `:
```sql
|
SELECT COUNT("high_rebounds") FROM "game_log" WHERE "high_points"='Josh Howard (19)'; |
## Task
Generate a SQL query to answer the following question:
`High points earned by Josh Howard (19) resulted in how many high rebounds?`
### 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 `High points earned by Josh Howard (19) resulted in how many high rebounds?`:
```sql
|
SELECT "high_assists" FROM "game_log" WHERE "high_rebounds"='Erick Dampier (8)'; |
## Task
Generate a SQL query to answer the following question:
`Who had the high assists while Erick Dampier (8) had the high rebounds?`
### 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 high assists while Erick Dampier (8) had the high rebounds?`:
```sql
|
SELECT "high_points" FROM "game_log" WHERE "high_rebounds"='Dirk Nowitzki (13)'; |
## Task
Generate a SQL query to answer the following question:
`Who had the high points while Dirk Nowitzki (13) had the high rebounds?`
### 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 high points while Dirk Nowitzki (13) had the high rebounds?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "high_points"='Dirk Nowitzki (19)'; |
## Task
Generate a SQL query to answer the following question:
`What was the final record for the game in which Dirk Nowitzki (19) had the high points?`
### 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 was the final record for the game in which Dirk Nowitzki (19) had the high points?`:
```sql
|
SELECT "championship" FROM "mixed_doubles_11_5_6" WHERE "opponents_in_the_final"='Nathalie Dechy Andy Ram'; |
## Task
Generate a SQL query to answer the following question:
`Which championship had the final opponents of nathalie dechy andy ram?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_doubles_11_5_6" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which championship had the final opponents of nathalie dechy andy ram?`:
```sql
|
SELECT "upstream" FROM "turkey" WHERE "price_tl"='39 TL'; |
## Task
Generate a SQL query to answer the following question:
`What is the upstream speed of the network that costs 39 tl?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "turkey" (
"downstream" text,
"upstream" text,
"bandwidth" text,
"price_tl" text,
"every_1_gb" text,
"max" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the upstream speed of the network that costs 39 tl?`:
```sql
|
SELECT COUNT("upstream") FROM "turkey" WHERE "downstream"='20 Mbit/s' AND "bandwidth"='40 GB'; |
## Task
Generate a SQL query to answer the following question:
`How many upstream speeds are there for downstream of 20 mbit/s and bandwidth of 40 gb?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "turkey" (
"downstream" text,
"upstream" text,
"bandwidth" text,
"price_tl" text,
"every_1_gb" text,
"max" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many upstream speeds are there for downstream of 20 mbit/s and bandwidth of 40 gb?`:
```sql
|
SELECT "upstream" FROM "turkey" WHERE "price_tl"='89 TL'; |
## Task
Generate a SQL query to answer the following question:
`What is the upstream speed that you get for 89 tl?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "turkey" (
"downstream" text,
"upstream" text,
"bandwidth" text,
"price_tl" text,
"every_1_gb" text,
"max" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the upstream speed that you get for 89 tl?`:
```sql
|
SELECT "bandwidth" FROM "turkey" WHERE "downstream"='20 Mbit/s' AND "price_tl"='69 TL'; |
## Task
Generate a SQL query to answer the following question:
`What is the bandwidth for downstream of 20 mbit/s for 69 tl?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "turkey" (
"downstream" text,
"upstream" text,
"bandwidth" text,
"price_tl" text,
"every_1_gb" text,
"max" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the bandwidth for downstream of 20 mbit/s for 69 tl?`:
```sql
|
SELECT "year" FROM "table1_17302440_1" WHERE "west_manila"='6.5'; |
## Task
Generate a SQL query to answer the following question:
`What was the year when West Manila has a tariff increase of 6.5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_17302440_1" (
"year" real,
"west_manila" text,
"east_manila" text,
"consumer_price_index_2005_100" text,
"west_manila_as_a_share_of_1996_real_tariff" text,
"east_manila_as_a_share_of_1996_real_tariff" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the year when West Manila has a tariff increase of 6.5?`:
```sql
|
SELECT "east_manila_as_a_share_of_1996_real_tariff" FROM "table1_17302440_1" WHERE "consumer_price_index_2005_100"='119.4'; |
## Task
Generate a SQL query to answer the following question:
`What was East Manila's share of 1996 real tariff when its Consumer Price Index is 119.4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_17302440_1" (
"year" real,
"west_manila" text,
"east_manila" text,
"consumer_price_index_2005_100" text,
"west_manila_as_a_share_of_1996_real_tariff" text,
"east_manila_as_a_share_of_1996_real_tariff" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was East Manila's share of 1996 real tariff when its Consumer Price Index is 119.4?`:
```sql
|
SELECT "west_manila" FROM "table1_17302440_1" WHERE "consumer_price_index_2005_100"='60.6'; |
## Task
Generate a SQL query to answer the following question:
`What was West Manila's tariff increase when its CPI is 60.6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_17302440_1" (
"year" real,
"west_manila" text,
"east_manila" text,
"consumer_price_index_2005_100" text,
"west_manila_as_a_share_of_1996_real_tariff" text,
"east_manila_as_a_share_of_1996_real_tariff" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was West Manila's tariff increase when its CPI is 60.6?`:
```sql
|
SELECT "west_manila" FROM "table1_17302440_1" WHERE "consumer_price_index_2005_100"='119.4'; |
## Task
Generate a SQL query to answer the following question:
`What was West Manila's tariff increase when its CPI is 119.4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_17302440_1" (
"year" real,
"west_manila" text,
"east_manila" text,
"consumer_price_index_2005_100" text,
"west_manila_as_a_share_of_1996_real_tariff" text,
"east_manila_as_a_share_of_1996_real_tariff" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was West Manila's tariff increase when its CPI is 119.4?`:
```sql
|
SELECT "consumer_price_index_2005_100" FROM "table1_17302440_1" WHERE "west_manila_as_a_share_of_1996_real_tariff"='189%'; |
## Task
Generate a SQL query to answer the following question:
`What was the CPI of West Manila when its share of 1996 real tariff is 189%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_17302440_1" (
"year" real,
"west_manila" text,
"east_manila" text,
"consumer_price_index_2005_100" text,
"west_manila_as_a_share_of_1996_real_tariff" text,
"east_manila_as_a_share_of_1996_real_tariff" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the CPI of West Manila when its share of 1996 real tariff is 189%?`:
```sql
|
SELECT "west_manila_as_a_share_of_1996_real_tariff" FROM "table1_17302440_1" WHERE "consumer_price_index_2005_100"='92.9'; |
## Task
Generate a SQL query to answer the following question:
`What was West Manila's share of 1996 real tariff when it CPI was 92.9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_17302440_1" (
"year" real,
"west_manila" text,
"east_manila" text,
"consumer_price_index_2005_100" text,
"west_manila_as_a_share_of_1996_real_tariff" text,
"east_manila_as_a_share_of_1996_real_tariff" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was West Manila's share of 1996 real tariff when it CPI was 92.9?`:
```sql
|
SELECT MAX("attendance") FROM "regular_season" WHERE "opponent"='Cincinnati Bengals'; |
## Task
Generate a SQL query to answer the following question:
`Of the times the Broncos played the Cincinnati Bengals, what was the highest attendance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Of the times the Broncos played the Cincinnati Bengals, what was the highest attendance?`:
```sql
|
SELECT "date" FROM "regular_season" WHERE "opponent"='Miami Dolphins'; |
## Task
Generate a SQL query to answer the following question:
`When did the Broncos play the Miami Dolphins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `When did the Broncos play the Miami Dolphins?`:
```sql
|
SELECT "result" FROM "regular_season" WHERE "attendance"=18304; |
## Task
Generate a SQL query to answer the following question:
`In the game with an attendance of 18304, what was the final score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `In the game with an attendance of 18304, what was the final score?`:
```sql
|
SELECT COUNT("max_pressure") FROM "38_comparisons" WHERE "cartridge"='.380 ACP'; |
## Task
Generate a SQL query to answer the following question:
`How many pressure figures are given for the .380 acp cartridge?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "38_comparisons" (
"cartridge" text,
"bullet_weight" text,
"muzzle_velocity" text,
"muzzle_energy" text,
"max_pressure" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many pressure figures are given for the .380 acp cartridge?`:
```sql
|
SELECT "max_pressure" FROM "38_comparisons" WHERE "muzzle_energy"='201ft•lbf (273 J)'; |
## Task
Generate a SQL query to answer the following question:
`What is the max pressure of the cartridge where the muzzle energy is 201ft•lbf (273 j)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "38_comparisons" (
"cartridge" text,
"bullet_weight" text,
"muzzle_velocity" text,
"muzzle_energy" text,
"max_pressure" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the max pressure of the cartridge where the muzzle energy is 201ft•lbf (273 j)?`:
```sql
|
SELECT "max_pressure" FROM "38_comparisons" WHERE "cartridge"='.38 Long Colt'; |
## Task
Generate a SQL query to answer the following question:
`What is the max pressure of the .38 long colt cartridge?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "38_comparisons" (
"cartridge" text,
"bullet_weight" text,
"muzzle_velocity" text,
"muzzle_energy" text,
"max_pressure" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the max pressure of the .38 long colt cartridge?`:
```sql
|
SELECT "bullet_weight" FROM "38_comparisons" WHERE "max_pressure"='12,000 CUP'; |
## Task
Generate a SQL query to answer the following question:
`What is the bullet weight when the max pressure is 12,000 cup?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "38_comparisons" (
"cartridge" text,
"bullet_weight" text,
"muzzle_velocity" text,
"muzzle_energy" text,
"max_pressure" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the bullet weight when the max pressure is 12,000 cup?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "team"='Charlotte'; |
## Task
Generate a SQL query to answer the following question:
`What are the scores made by Charlotte team`
### 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 are the scores made by Charlotte team`:
```sql
|
SELECT "high_assists" FROM "game_log" WHERE "high_rebounds"='Al Horford (17)'; |
## Task
Generate a SQL query to answer the following question:
`Who made highest assists when high rebounds was Al Horford (17)`
### 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 made highest assists when high rebounds was Al Horford (17)`:
```sql
|
SELECT "score" FROM "game_log" WHERE "high_rebounds"='Zaza Pachulia (8)'; |
## Task
Generate a SQL query to answer the following question:
`Give the score when high rebounds was zaza pachulia (8)`
### 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 `Give the score when high rebounds was zaza pachulia (8)`:
```sql
|
SELECT "gs" FROM "external_links" WHERE "points"='12.1'; |
## Task
Generate a SQL query to answer the following question:
`Name the gs for points being 12.1`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "external_links" (
"season" text,
"games" real,
"gs" real,
"points" text,
"rebounds" text,
"assists" text,
"blocks" text,
"steals" text,
"turnovers" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the gs for points being 12.1`:
```sql
|
SELECT "assists" FROM "external_links" WHERE "games"=157; |
## Task
Generate a SQL query to answer the following question:
`Name the assists for 157 games`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "external_links" (
"season" text,
"games" real,
"gs" real,
"points" text,
"rebounds" text,
"assists" text,
"blocks" text,
"steals" text,
"turnovers" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the assists for 157 games`:
```sql
|
SELECT "steals" FROM "external_links" WHERE "season"='2007/2008'; |
## Task
Generate a SQL query to answer the following question:
`Name the steals for season 2007/2008`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "external_links" (
"season" text,
"games" real,
"gs" real,
"points" text,
"rebounds" text,
"assists" text,
"blocks" text,
"steals" text,
"turnovers" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the steals for season 2007/2008`:
```sql
|
SELECT COUNT("assists") FROM "external_links" WHERE "blocks"='77'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of assists for 77 blocks`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "external_links" (
"season" text,
"games" real,
"gs" real,
"points" text,
"rebounds" text,
"assists" text,
"blocks" text,
"steals" text,
"turnovers" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of assists for 77 blocks`:
```sql
|
SELECT "record" FROM "game_log" WHERE "high_assists"='Mike Bibby (8)'; |
## Task
Generate a SQL query to answer the following question:
`When mike bibby (8) had the highest amount of assists what is the record?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"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 `When mike bibby (8) had the highest amount of assists what is the record?`:
```sql
|
SELECT "location_attendance" FROM "game_log" WHERE "high_assists"='Mike Bibby (9)'; |
## Task
Generate a SQL query to answer the following question:
`When mike bibby (9) has the highest amount of assists what is the location and attendance?`
### 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 `When mike bibby (9) has the highest amount of assists what is the location and attendance?`:
```sql
|
SELECT "team" FROM "game_log" WHERE "date"='January 23'; |
## Task
Generate a SQL query to answer the following question:
`Who was the team played on January 23?`
### 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 was the team played on January 23?`:
```sql
|
SELECT "location_attendance" FROM "game_log" WHERE "team"='Orlando'; |
## Task
Generate a SQL query to answer the following question:
`Where was the game held and what was the attendance when they played Orlando?`
### 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 `Where was the game held and what was the attendance when they played Orlando?`:
```sql
|
SELECT MAX("game") FROM "game_log" WHERE "team"='Charlotte'; |
## Task
Generate a SQL query to answer the following question:
`In what game did Miami play Charlotte? `
### 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 `In what game did Miami play Charlotte? `:
```sql
|
SELECT "high_points" FROM "game_log" WHERE "date"='February 6'; |
## Task
Generate a SQL query to answer the following question:
`Who had the high points on February 6?`
### 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 high points on February 6?`:
```sql
|
SELECT MAX("laps_led") FROM "classification" WHERE "points"='16'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number of laps led with 16 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"fin_pos" real,
"car_no" real,
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"laps_led" real,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of laps led with 16 points?`:
```sql
|
SELECT COUNT("driver") FROM "classification" WHERE "team"='SAMAX Motorsport'; |
## Task
Generate a SQL query to answer the following question:
`How many drivers were there for Samax Motorsport?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"fin_pos" real,
"car_no" real,
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"laps_led" real,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many drivers were there for Samax Motorsport?`:
```sql
|
SELECT "team" FROM "classification" WHERE "driver"='Jeff Simmons'; |
## Task
Generate a SQL query to answer the following question:
`What is the team whose driver Jeff Simmons?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"fin_pos" real,
"car_no" real,
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"laps_led" real,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the team whose driver Jeff Simmons?`:
```sql
|
SELECT COUNT("driver") FROM "classification" WHERE "time_retired"='+3 Laps' AND "points"='24'; |
## Task
Generate a SQL query to answer the following question:
`How many drivers where there when the time/retired +3 laps and points were 24?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"fin_pos" real,
"car_no" real,
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"laps_led" real,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many drivers where there when the time/retired +3 laps and points were 24?`:
```sql
|
SELECT MAX("laps") FROM "classification" WHERE "driver"='Darren Manning'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number of laps for Darren Manning?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"fin_pos" real,
"car_no" real,
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"laps_led" real,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of laps for Darren Manning?`:
```sql
|
SELECT COUNT("car_no") FROM "classification" WHERE "time_retired"='+4.0019'; |
## Task
Generate a SQL query to answer the following question:
`How many car numbers were recorded when the time/retired is +4.0019?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"fin_pos" real,
"car_no" real,
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"laps_led" real,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many car numbers were recorded when the time/retired is +4.0019?`:
```sql
|
SELECT "game" FROM "game_log" WHERE "date"='January 28'; |
## Task
Generate a SQL query to answer the following question:
`What game number was played on January 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 `What game number was played on January 28?`:
```sql
|
SELECT "high_points" FROM "game_log" WHERE "date"='February 11'; |
## Task
Generate a SQL query to answer the following question:
`What is the high amount of points on February 11?`
### 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 is the high amount of points on February 11?`:
```sql
|
SELECT "high_assists" FROM "game_log" WHERE "team"='Denver'; |
## Task
Generate a SQL query to answer the following question:
`Who has the most assists on Denver?`
### 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 has the most assists on Denver?`:
```sql
|
SELECT "location_attendance" FROM "table1_17322817_10" WHERE "date"='April 13'; |
## Task
Generate a SQL query to answer the following question:
`Name the location attendance for april 13`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_17322817_10" (
"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 `Name the location attendance for april 13`:
```sql
|
SELECT "location_attendance" FROM "table1_17322817_10" WHERE "date"='April 5'; |
## Task
Generate a SQL query to answer the following question:
`Name the location attendance for april 5`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_17322817_10" (
"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 `Name the location attendance for april 5`:
```sql
|
SELECT "high_points" FROM "game_log" WHERE "date"='December 17'; |
## Task
Generate a SQL query to answer the following question:
`Who had the high points on December 17?`
### 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 high points on December 17?`:
```sql
|
SELECT COUNT("score") FROM "game_log" WHERE "team"='Houston'; |
## Task
Generate a SQL query to answer the following question:
`How many scores are listed for the game against Houston`
### 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 `How many scores are listed for the game against Houston`:
```sql
|
SELECT "location_attendance" FROM "game_log" WHERE "high_assists"='Andre Miller (7)'; |
## Task
Generate a SQL query to answer the following question:
`What was the location and attendance of the game when High Assists were Andre Miller (7)?`
### 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 was the location and attendance of the game when High Assists were Andre Miller (7)?`:
```sql
|
SELECT "high_assists" FROM "game_log" WHERE "game"=1; |
## Task
Generate a SQL query to answer the following question:
`Who was the High Assist in game 1?`
### 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 was the High Assist in game 1?`:
```sql
|
SELECT "high_assists" FROM "game_log" WHERE "high_rebounds"='Andre Iguodala (8)'; |
## Task
Generate a SQL query to answer the following question:
`Who was the High Assist when the High Rebounds was andre iguodala (8)?`
### 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 was the High Assist when the High Rebounds was andre iguodala (8)?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "high_points"='Andre Miller (30)'; |
## Task
Generate a SQL query to answer the following question:
`What was the W-L record when HIgh Points was andre miller (30)?`
### 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 was the W-L record when HIgh Points was andre miller (30)?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "high_points"='Andre Miller (17)'; |
## Task
Generate a SQL query to answer the following question:
`What was the score and game outcome when High Points was andre miller (17)?`
### 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 was the score and game outcome when High Points was andre miller (17)?`:
```sql
|
SELECT COUNT("game") FROM "game_log" WHERE "high_points"='Andre Iguodala (29)'; |
## Task
Generate a SQL query to answer the following question:
`How many games was High Points andre iguodala (29)?`
### 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 `How many games was High Points andre iguodala (29)?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.