output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "date" FROM "regular_season" WHERE "location"='Taylor Field'; |
## Task
Generate a SQL query to answer the following question:
`When was the game on Taylor Field played?`
### 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,
"location" text,
"final_score" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the game on Taylor Field played?`:
```sql
|
SELECT "4th_placed" FROM "calendar" WHERE "winner"='Greg Hancock'; |
## Task
Generate a SQL query to answer the following question:
`Who placed fourth when the winner was Greg Hancock?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar" (
"round" real,
"date" text,
"city_and_venue" text,
"winner" text,
"runner_up" text,
"3rd_placed" text,
"4th_placed" text,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who placed fourth when the winner was Greg Hancock?`:
```sql
|
SELECT "runner_up" FROM "calendar" WHERE "date"='September 11'; |
## Task
Generate a SQL query to answer the following question:
`Who was the runner-up on September 11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar" (
"round" real,
"date" text,
"city_and_venue" text,
"winner" text,
"runner_up" text,
"3rd_placed" text,
"4th_placed" text,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the runner-up on September 11?`:
```sql
|
SELECT COUNT("round") FROM "calendar" WHERE "date"='July 10'; |
## Task
Generate a SQL query to answer the following question:
`How many rounds were on July 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar" (
"round" real,
"date" text,
"city_and_venue" text,
"winner" text,
"runner_up" text,
"3rd_placed" text,
"4th_placed" text,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rounds were on July 10?`:
```sql
|
SELECT COUNT("year") FROM "nascar_sprint_cup_series" WHERE "avg_finish"='18.5'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of years for 18.5`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of years for 18.5`:
```sql
|
SELECT MAX("top_5") FROM "nascar_sprint_cup_series" WHERE "avg_finish"='27.6'; |
## Task
Generate a SQL query to answer the following question:
`Name the max top 5 for avg finish being 27.6`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the max top 5 for avg finish being 27.6`:
```sql
|
SELECT COUNT("wins") FROM "nascar_sprint_cup_series" WHERE "starts"=30; |
## Task
Generate a SQL query to answer the following question:
`Name the number of wins for 30 starts`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of wins for 30 starts`:
```sql
|
SELECT "year" FROM "nascar_sprint_cup_series" WHERE "team_s"='Donlavey Racing Bill Davis Racing'; |
## Task
Generate a SQL query to answer the following question:
`Name the year for donlavey racing bill davis racing`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the year for donlavey racing bill davis racing`:
```sql
|
SELECT "starts" FROM "nascar_sprint_cup_series" WHERE "avg_start"='23.7'; |
## Task
Generate a SQL query to answer the following question:
`Name the starts for 23.7`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the starts for 23.7`:
```sql
|
SELECT COUNT("position") FROM "nascar_sprint_cup_series" WHERE "avg_start"='23.7'; |
## Task
Generate a SQL query to answer the following question:
`Name the position for 23.7 avg start`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the position for 23.7 avg start`:
```sql
|
SELECT MIN("num") FROM "full_time_entries" WHERE "car_s"='Chevrolet Monte Carlo' AND "listed_owner_s"='Teresa Earnhardt' AND "driver_s"='Paul Menard'; |
## Task
Generate a SQL query to answer the following question:
`What is the car number for the Chevrolet Monte Carlo that Teresa Earnhardt owns and Paul Menard is her driver?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "full_time_entries" (
"team" text,
"car_s" text,
"num" real,
"driver_s" text,
"primary_sponsor_s" text,
"listed_owner_s" text,
"crew_chief" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the car number for the Chevrolet Monte Carlo that Teresa Earnhardt owns and Paul Menard is her driver?`:
```sql
|
SELECT "car_s" FROM "full_time_entries" WHERE "driver_s"='Jeff Fuller'; |
## Task
Generate a SQL query to answer the following question:
`What type of car does Jeff Fuller drive?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "full_time_entries" (
"team" text,
"car_s" text,
"num" real,
"driver_s" text,
"primary_sponsor_s" text,
"listed_owner_s" text,
"crew_chief" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of car does Jeff Fuller drive?`:
```sql
|
SELECT COUNT("car_s") FROM "full_time_entries" WHERE "listed_owner_s"='Gregg Mixon'; |
## Task
Generate a SQL query to answer the following question:
`How many cars does Gregg Mixon own?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "full_time_entries" (
"team" text,
"car_s" text,
"num" real,
"driver_s" text,
"primary_sponsor_s" text,
"listed_owner_s" text,
"crew_chief" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many cars does Gregg Mixon own?`:
```sql
|
SELECT "crew_chief" FROM "full_time_entries" WHERE "listed_owner_s"='Wayne Day'; |
## Task
Generate a SQL query to answer the following question:
`Who is Wayne Day's crew chief?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "full_time_entries" (
"team" text,
"car_s" text,
"num" real,
"driver_s" text,
"primary_sponsor_s" text,
"listed_owner_s" text,
"crew_chief" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is Wayne Day's crew chief?`:
```sql
|
SELECT MIN("num") FROM "full_time_entries" WHERE "driver_s"='Geoffrey Bodine'; |
## Task
Generate a SQL query to answer the following question:
`What number is on the car that Geoffrey Bodine drives?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "full_time_entries" (
"team" text,
"car_s" text,
"num" real,
"driver_s" text,
"primary_sponsor_s" text,
"listed_owner_s" text,
"crew_chief" text
);
### SQL
Given the database schema, here is the SQL query that answers `What number is on the car that Geoffrey Bodine drives?`:
```sql
|
SELECT "no_in_season" FROM "table1_2182654_3" WHERE "no_in_series"=24; |
## Task
Generate a SQL query to answer the following question:
`What episode number in the season is episode 24 in the series?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2182654_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode number in the season is episode 24 in the series?`:
```sql
|
SELECT COUNT("no_in_season") FROM "table1_2182654_3" WHERE "directed_by"='Jeremy Podeswa'; |
## Task
Generate a SQL query to answer the following question:
`How many episodes in the season were directed by Jeremy Podeswa?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2182654_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes in the season were directed by Jeremy Podeswa?`:
```sql
|
SELECT "title" FROM "table1_2182654_3" WHERE "directed_by"='Miguel Arteta'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the episode directed by Miguel Arteta?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2182654_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the episode directed by Miguel Arteta?`:
```sql
|
SELECT COUNT("no_in_series") FROM "table1_2182654_3" WHERE "directed_by"='Alan Taylor'; |
## Task
Generate a SQL query to answer the following question:
`How many episodes in the series were directed by Alan Taylor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2182654_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes in the series were directed by Alan Taylor?`:
```sql
|
SELECT COUNT("team_s") FROM "nascar_nationwide_series" WHERE "avg_start"='12.9'; |
## Task
Generate a SQL query to answer the following question:
`How many different teams had an average start of 12.9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different teams had an average start of 12.9?`:
```sql
|
SELECT "winnings" FROM "nascar_nationwide_series" WHERE "starts"=15; |
## Task
Generate a SQL query to answer the following question:
`How high was the amount of winnings (in $) in the year with 15 starts?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `How high was the amount of winnings (in $) in the year with 15 starts?`:
```sql
|
SELECT COUNT("winnings") FROM "nascar_nationwide_series" WHERE "avg_finish"='17.4'; |
## Task
Generate a SQL query to answer the following question:
`How many different amounts of winnings were there for the year when the team had an average finish of 17.4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different amounts of winnings were there for the year when the team had an average finish of 17.4?`:
```sql
|
SELECT MIN("top_5") FROM "nascar_nationwide_series" WHERE "avg_finish"='8.2'; |
## Task
Generate a SQL query to answer the following question:
`What was the top 5 in the year with an average finish of 8.2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the top 5 in the year with an average finish of 8.2?`:
```sql
|
SELECT "position" FROM "nascar_nationwide_series" WHERE "avg_finish"='21.5'; |
## Task
Generate a SQL query to answer the following question:
`What was the position of the team with an average finish of 21.5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the position of the team with an average finish of 21.5?`:
```sql
|
SELECT COUNT("year") FROM "nascar_sprint_cup_series" WHERE "position"='97th'; |
## Task
Generate a SQL query to answer the following question:
`How many years was the position 97th?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years was the position 97th?`:
```sql
|
SELECT COUNT("wins") FROM "nascar_sprint_cup_series" WHERE "avg_start"='29.0'; |
## Task
Generate a SQL query to answer the following question:
`How many wins when the average start is 29.0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins when the average start is 29.0?`:
```sql
|
SELECT "avg_finish" FROM "nascar_sprint_cup_series" WHERE "winnings"='$71,200'; |
## Task
Generate a SQL query to answer the following question:
`What is the average finish when winnings equals $71,200?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average finish when winnings equals $71,200?`:
```sql
|
SELECT "year" FROM "nascar_sprint_cup_series" WHERE "winnings"='$281,945'; |
## Task
Generate a SQL query to answer the following question:
`What year did the winnings equal $281,945?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did the winnings equal $281,945?`:
```sql
|
SELECT "top_5" FROM "nascar_sprint_cup_series" WHERE "avg_finish"='40.3'; |
## Task
Generate a SQL query to answer the following question:
`What are the top 5 average finishes equalling 40.3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the top 5 average finishes equalling 40.3?`:
```sql
|
SELECT "written_by" FROM "table1_21831229_3" WHERE "no_in_series"=31; |
## Task
Generate a SQL query to answer the following question:
`Who wrote episode 31 in the series?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_21831229_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_u_s_air_date" text,
"prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote episode 31 in the series?`:
```sql
|
SELECT "original_u_s_air_date" FROM "table1_21831229_3" WHERE "prod_code"=213; |
## Task
Generate a SQL query to answer the following question:
`What was the date that the episode with a production code of 213 was originally aired?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_21831229_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_u_s_air_date" text,
"prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date that the episode with a production code of 213 was originally aired?`:
```sql
|
SELECT "opponents" FROM "doubles_7_3_4" WHERE "score"='5–7, 6–7 (4–7)'; |
## Task
Generate a SQL query to answer the following question:
`Who was playing when the score was 5–7, 6–7 (4–7)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_7_3_4" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was playing when the score was 5–7, 6–7 (4–7)?`:
```sql
|
SELECT "opponents" FROM "doubles_7_3_4" WHERE "score"='5–7, 5–7'; |
## Task
Generate a SQL query to answer the following question:
`Who was playing when the score was 5–7, 5–7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_7_3_4" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was playing when the score was 5–7, 5–7?`:
```sql
|
SELECT COUNT("partner") FROM "doubles_7_3_4" WHERE "score"='7–6 (7–4) , 6–3'; |
## Task
Generate a SQL query to answer the following question:
`How many partners were there when the score was 7–6 (7–4) , 6–3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_7_3_4" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many partners were there when the score was 7–6 (7–4) , 6–3?`:
```sql
|
SELECT "record" FROM "regular_season" WHERE "opponent"='Stampeders'; |
## Task
Generate a SQL query to answer the following question:
`What was their record when they played the stampeders?`
### 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,
"location" text,
"final_score" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was their record when they played the stampeders?`:
```sql
|
SELECT "record" FROM "regular_season" WHERE "week"=11; |
## Task
Generate a SQL query to answer the following question:
`What was their record in week 11?`
### 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,
"location" text,
"final_score" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was their record in week 11?`:
```sql
|
SELECT MIN("wins") FROM "nascar_sprint_cup_series"; |
## Task
Generate a SQL query to answer the following question:
`Name the least wins`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least wins`:
```sql
|
SELECT "avg_start" FROM "nascar_sprint_cup_series" WHERE "avg_finish"='18.3'; |
## Task
Generate a SQL query to answer the following question:
`Name the avg start for avg finish of 18.3`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the avg start for avg finish of 18.3`:
```sql
|
SELECT "year" FROM "nascar_sprint_cup_series" WHERE "team_s"='#16 Roush Racing' AND "poles"<1.0; |
## Task
Generate a SQL query to answer the following question:
`Name the year for #16 roush racing for poles less than smaller 1.0`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the year for #16 roush racing for poles less than smaller 1.0`:
```sql
|
SELECT "transmission" FROM "table1_21888587_1" WHERE "power_rpm"='PS (kW; hp) @4500-6000'; |
## Task
Generate a SQL query to answer the following question:
`Name the transmission for ps (kw; hp) @4500-6000`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_21888587_1" (
"model" text,
"engine" text,
"power_rpm" text,
"torque_rpm" text,
"0_100km_h_acceleration" text,
"top_speed" text,
"transmission" text,
"co_2_emissions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the transmission for ps (kw; hp) @4500-6000`:
```sql
|
SELECT "0_100km_h_acceleration" FROM "table1_21888587_1" WHERE "power_rpm"='PS (kW; hp) @5400'; |
## Task
Generate a SQL query to answer the following question:
`Name the 0–100km/h acceleration for ps (kw; hp) @5400`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_21888587_1" (
"model" text,
"engine" text,
"power_rpm" text,
"torque_rpm" text,
"0_100km_h_acceleration" text,
"top_speed" text,
"transmission" text,
"co_2_emissions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 0–100km/h acceleration for ps (kw; hp) @5400`:
```sql
|
SELECT "listed_owner_s" FROM "team_chart" WHERE "primary_sponsor_s"='RepairOne'; |
## Task
Generate a SQL query to answer the following question:
`Name the listen owners for repairone`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team_chart" (
"team" text,
"truck_s" text,
"num" real,
"driver_s" text,
"primary_sponsor_s" text,
"listed_owner_s" text,
"crew_chief" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the listen owners for repairone`:
```sql
|
SELECT "truck_s" FROM "team_chart" WHERE "crew_chief"='Scott Neal'; |
## Task
Generate a SQL query to answer the following question:
`Name the trucks for scott neal`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team_chart" (
"team" text,
"truck_s" text,
"num" real,
"driver_s" text,
"primary_sponsor_s" text,
"listed_owner_s" text,
"crew_chief" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the trucks for scott neal`:
```sql
|
SELECT "listed_owner_s" FROM "team_chart" WHERE "team"='Brevak Racing'; |
## Task
Generate a SQL query to answer the following question:
`Name the listed owners for brevak racing`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team_chart" (
"team" text,
"truck_s" text,
"num" real,
"driver_s" text,
"primary_sponsor_s" text,
"listed_owner_s" text,
"crew_chief" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the listed owners for brevak racing`:
```sql
|
SELECT "crew_chief" FROM "team_chart" WHERE "driver_s"='Ricky Craven'; |
## Task
Generate a SQL query to answer the following question:
`Name the crew chief for ricky craven`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team_chart" (
"team" text,
"truck_s" text,
"num" real,
"driver_s" text,
"primary_sponsor_s" text,
"listed_owner_s" text,
"crew_chief" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the crew chief for ricky craven`:
```sql
|
SELECT "driver_s" FROM "team_chart" WHERE "primary_sponsor_s"='Superchips'; |
## Task
Generate a SQL query to answer the following question:
`Name the drivers for superchips`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team_chart" (
"team" text,
"truck_s" text,
"num" real,
"driver_s" text,
"primary_sponsor_s" text,
"listed_owner_s" text,
"crew_chief" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the drivers for superchips`:
```sql
|
SELECT "year_ceremony" FROM "table1_21904740_1" WHERE "spanish_title"='Viva Cuba'; |
## Task
Generate a SQL query to answer the following question:
`When was Viva Cuba submitted?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_21904740_1" (
"year_ceremony" text,
"english_title" text,
"spanish_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was Viva Cuba submitted?`:
```sql
|
SELECT "name_or_number" FROM "list_of_most_powerful_nuclear_tests" WHERE "yield_megatons"='15'; |
## Task
Generate a SQL query to answer the following question:
`Name the name for 15 yield`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_most_powerful_nuclear_tests" (
"date_gmt" text,
"yield_megatons" text,
"deployment" text,
"country" text,
"test_site" text,
"name_or_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the name for 15 yield`:
```sql
|
SELECT COUNT("state_rank_by_revenue") FROM "public_companies" WHERE "known_for"='Retailing'; |
## Task
Generate a SQL query to answer the following question:
`What is the rank of the company known for retailing?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "public_companies" (
"state_rank_by_revenue" real,
"company_name" text,
"national_rank" real,
"revenue_billions_2012_estimate" text,
"headquarters_city" text,
"known_for" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank of the company known for retailing?`:
```sql
|
SELECT "state_rank_by_revenue" FROM "public_companies" WHERE "company_name"='Murphy Oil'; |
## Task
Generate a SQL query to answer the following question:
`What is the rank for Murphy Oil?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "public_companies" (
"state_rank_by_revenue" real,
"company_name" text,
"national_rank" real,
"revenue_billions_2012_estimate" text,
"headquarters_city" text,
"known_for" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank for Murphy Oil?`:
```sql
|
SELECT "headquarters_city" FROM "public_companies" WHERE "revenue_billions_2012_estimate"='33.3'; |
## Task
Generate a SQL query to answer the following question:
`Where is the company with estimated revenue of 33.3 billion headquartered?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "public_companies" (
"state_rank_by_revenue" real,
"company_name" text,
"national_rank" real,
"revenue_billions_2012_estimate" text,
"headquarters_city" text,
"known_for" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the company with estimated revenue of 33.3 billion headquartered?`:
```sql
|
SELECT MIN("national_rank") FROM "public_companies" WHERE "company_name"='Windstream'; |
## Task
Generate a SQL query to answer the following question:
`What is the national rank of Windstream?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "public_companies" (
"state_rank_by_revenue" real,
"company_name" text,
"national_rank" real,
"revenue_billions_2012_estimate" text,
"headquarters_city" text,
"known_for" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the national rank of Windstream?`:
```sql
|
SELECT "state_rank_by_revenue" FROM "public_companies" WHERE "revenue_billions_2012_estimate"='6.8'; |
## Task
Generate a SQL query to answer the following question:
`What is the state rank of the company with 6.8 billion in revenue?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "public_companies" (
"state_rank_by_revenue" real,
"company_name" text,
"national_rank" real,
"revenue_billions_2012_estimate" text,
"headquarters_city" text,
"known_for" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the state rank of the company with 6.8 billion in revenue?`:
```sql
|
SELECT "entrant" FROM "entries" WHERE "driver"='Benedicto Campos'; |
## Task
Generate a SQL query to answer the following question:
`Name the entrant for benedicto campos`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "entries" (
"no" real,
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the entrant for benedicto campos`:
```sql
|
SELECT "no" FROM "entries" WHERE "entrant"='Automóvil Club Argentino' AND "driver"='Juan Manuel Fangio'; |
## Task
Generate a SQL query to answer the following question:
`Name the number for automóvil club argentino for juan manuel fangio`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "entries" (
"no" real,
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number for automóvil club argentino for juan manuel fangio`:
```sql
|
SELECT MAX("no") FROM "entries" WHERE "entrant"='Automóvil Club Argentino' AND "driver"='Benedicto Campos'; |
## Task
Generate a SQL query to answer the following question:
`Name the most number for automóvil club argentino for benedicto campos`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "entries" (
"no" real,
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most number for automóvil club argentino for benedicto campos`:
```sql
|
SELECT "driver" FROM "entries" WHERE "engine"='Talbot L6'; |
## Task
Generate a SQL query to answer the following question:
`Name the driver for talbot l6`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "entries" (
"no" real,
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the driver for talbot l6`:
```sql
|
SELECT "constructor" FROM "entries" WHERE "driver"='Alberto Ascari'; |
## Task
Generate a SQL query to answer the following question:
`Name the constructor for alberto ascari`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "entries" (
"no" real,
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the constructor for alberto ascari`:
```sql
|
SELECT "chassis" FROM "entries" WHERE "constructor"='Alta'; |
## Task
Generate a SQL query to answer the following question:
`Name the chassis for alta`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "entries" (
"no" real,
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the chassis for alta`:
```sql
|
SELECT MIN("no") FROM "table1_21977627_1" WHERE "chassis"='Maserati 4CL'; |
## Task
Generate a SQL query to answer the following question:
`The Maserati 4cl's minimum no was?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_21977627_1" (
"no" real,
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text
);
### SQL
Given the database schema, here is the SQL query that answers `The Maserati 4cl's minimum no was?`:
```sql
|
SELECT COUNT("entrant") FROM "table1_21977627_1" WHERE "driver"='Yves Giraud-Cabantous'; |
## Task
Generate a SQL query to answer the following question:
`How many entrants was yves giraud-cabantous?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_21977627_1" (
"no" real,
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many entrants was yves giraud-cabantous?`:
```sql
|
SELECT "chassis" FROM "table1_21977627_1" WHERE "engine"='Maserati L6s'; |
## Task
Generate a SQL query to answer the following question:
`What chasis did the maserati l6s have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_21977627_1" (
"no" real,
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text
);
### SQL
Given the database schema, here is the SQL query that answers `What chasis did the maserati l6s have?`:
```sql
|
SELECT COUNT("driver") FROM "table1_21977627_1" WHERE "entrant"='Bob Gerard Racing'; |
## Task
Generate a SQL query to answer the following question:
`How many drivers did Bob Gerard Racing have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_21977627_1" (
"no" real,
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many drivers did Bob Gerard Racing have?`:
```sql
|
SELECT COUNT("pts_agst") FROM "season_2006" WHERE "points"=7; |
## Task
Generate a SQL query to answer the following question:
`For the team with 7 points, how many points were scored against this season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_2006" (
"position" real,
"club" text,
"played" real,
"h_win" real,
"h_draw" real,
"a_win" real,
"a_draw" real,
"lost" real,
"def" real,
"pts_for" real,
"pts_agst" real,
"pair" real,
"long" real,
"points" real,
"average" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the team with 7 points, how many points were scored against this season?`:
```sql
|
SELECT MAX("pts_agst") FROM "season_2006"; |
## Task
Generate a SQL query to answer the following question:
`What is the maximum number of points scored against?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_2006" (
"position" real,
"club" text,
"played" real,
"h_win" real,
"h_draw" real,
"a_win" real,
"a_draw" real,
"lost" real,
"def" real,
"pts_for" real,
"pts_agst" real,
"pair" real,
"long" real,
"points" real,
"average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum number of points scored against?`:
```sql
|
SELECT "average" FROM "season_2006" WHERE "club"='Chesterfield Spires'; |
## Task
Generate a SQL query to answer the following question:
`What is Chesterfield Spires average?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_2006" (
"position" real,
"club" text,
"played" real,
"h_win" real,
"h_draw" real,
"a_win" real,
"a_draw" real,
"lost" real,
"def" real,
"pts_for" real,
"pts_agst" real,
"pair" real,
"long" real,
"points" real,
"average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Chesterfield Spires average?`:
```sql
|
SELECT COUNT("january_c") FROM "average_daily_maximum_and_minimum_temper" WHERE "july_c"='22/13'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of January (°C) temperatures when the July (°C) temperatures were 22/13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "average_daily_maximum_and_minimum_temper" (
"location" text,
"july_c" text,
"july_f" text,
"january_c" text,
"january_f" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of January (°C) temperatures when the July (°C) temperatures were 22/13?`:
```sql
|
SELECT COUNT("january_c") FROM "average_daily_maximum_and_minimum_temper" WHERE "july_c"='23/15'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of January (°C) temperatures when the July (°C) temperatures were 23/15?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "average_daily_maximum_and_minimum_temper" (
"location" text,
"july_c" text,
"july_f" text,
"january_c" text,
"january_f" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of January (°C) temperatures when the July (°C) temperatures were 23/15?`:
```sql
|
SELECT "location" FROM "average_daily_maximum_and_minimum_temper" WHERE "january_f"='30/17'; |
## Task
Generate a SQL query to answer the following question:
`In what location were the January (°F) temperatures 30/17?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "average_daily_maximum_and_minimum_temper" (
"location" text,
"july_c" text,
"july_f" text,
"january_c" text,
"january_f" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what location were the January (°F) temperatures 30/17?`:
```sql
|
SELECT "july_c" FROM "average_daily_maximum_and_minimum_temper" WHERE "july_f"='71/55'; |
## Task
Generate a SQL query to answer the following question:
`What were the July (°C) temperatures when the July (°F) temperatures were 71/55?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "average_daily_maximum_and_minimum_temper" (
"location" text,
"july_c" text,
"july_f" text,
"january_c" text,
"january_f" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the July (°C) temperatures when the July (°F) temperatures were 71/55?`:
```sql
|
SELECT "january_f" FROM "average_daily_maximum_and_minimum_temper" WHERE "location"='Corner Brook'; |
## Task
Generate a SQL query to answer the following question:
`What were the January (°F) temperatures in the Corner Brook location?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "average_daily_maximum_and_minimum_temper" (
"location" text,
"july_c" text,
"july_f" text,
"january_c" text,
"january_f" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the January (°F) temperatures in the Corner Brook location?`:
```sql
|
SELECT MAX("pts_agst") FROM "season_2008"; |
## Task
Generate a SQL query to answer the following question:
`Name the most points agst`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_2008" (
"position" real,
"club" text,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"def" real,
"pts_for" real,
"pts_agst" real,
"long" real,
"points" real,
"average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most points agst`:
```sql
|
SELECT MIN("lost") FROM "season_2008"; |
## Task
Generate a SQL query to answer the following question:
`Name the least lost`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_2008" (
"position" real,
"club" text,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"def" real,
"pts_for" real,
"pts_agst" real,
"long" real,
"points" real,
"average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least lost`:
```sql
|
SELECT "written_by" FROM "table1_21979779_1" WHERE "u_s_viewers_million"='3.07'; |
## Task
Generate a SQL query to answer the following question:
`who are the writers of the episode that had 3.07 millions of North American spectators?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_21979779_1" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `who are the writers of the episode that had 3.07 millions of North American spectators?`:
```sql
|
SELECT MAX("no") FROM "table1_21979779_1" WHERE "production_code"='2T7211'; |
## Task
Generate a SQL query to answer the following question:
`what is the biggest series episode number whose production code is 2t7211?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_21979779_1" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the biggest series episode number whose production code is 2t7211?`:
```sql
|
SELECT MIN("no") FROM "table1_21979779_1" WHERE "production_code"='2T7211'; |
## Task
Generate a SQL query to answer the following question:
`what is the smallest series episode number whose production code is 2t7211?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_21979779_1" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the smallest series episode number whose production code is 2t7211?`:
```sql
|
SELECT "original_air_date" FROM "table1_21979779_1" WHERE "u_s_viewers_million"='1.76'; |
## Task
Generate a SQL query to answer the following question:
`when was the premiere of the episode where the amount of North American spectators was 1.76 millions?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_21979779_1" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `when was the premiere of the episode where the amount of North American spectators was 1.76 millions?`:
```sql
|
SELECT MAX("series_num") FROM "table1_21994729_3" WHERE "prod_code"='2APX05'; |
## Task
Generate a SQL query to answer the following question:
`how many maximum series number have 2apx05 prod. code.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_21994729_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many maximum series number have 2apx05 prod. code.`:
```sql
|
SELECT COUNT("title") FROM "table1_21994729_3" WHERE "directed_by"='Reginald Hudlin'; |
## Task
Generate a SQL query to answer the following question:
`What are all the title directed by reginald hudlin`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_21994729_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are all the title directed by reginald hudlin`:
```sql
|
SELECT "written_by" FROM "table1_21994729_3" WHERE "directed_by"='Reginald Hudlin'; |
## Task
Generate a SQL query to answer the following question:
`reginald hudlin directed how many written by.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_21994729_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `reginald hudlin directed how many written by.`:
```sql
|
SELECT "written_by" FROM "table1_21994729_2" WHERE "prod_code"='1APX11'; |
## Task
Generate a SQL query to answer the following question:
`Who wore the episode with the production code of 1apx11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_21994729_2" (
"series_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wore the episode with the production code of 1apx11?`:
```sql
|
SELECT "written_by" FROM "table1_21994729_2" WHERE "title"='\"Heroes\"'; |
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode titled "heroes"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_21994729_2" (
"series_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode titled "heroes"?`:
```sql
|
SELECT "total" FROM "college" WHERE "rank"=11; |
## Task
Generate a SQL query to answer the following question:
`If the rank is 11, what is the total amount?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "college" (
"rank" real,
"school" text,
"basic_elements" text,
"tumbling" text,
"stunts" text,
"tosses" text,
"pyramids" text,
"deductions" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the rank is 11, what is the total amount?`:
```sql
|
SELECT "stunts" FROM "college" WHERE "school"='Central Colleges of the Philippines CCP Bobcats'; |
## Task
Generate a SQL query to answer the following question:
`If the school is Central Colleges of the Philippines CCP Bobcats, what is the stunts number?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "college" (
"rank" real,
"school" text,
"basic_elements" text,
"tumbling" text,
"stunts" text,
"tosses" text,
"pyramids" text,
"deductions" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the school is Central Colleges of the Philippines CCP Bobcats, what is the stunts number?`:
```sql
|
SELECT MIN("07_pts") FROM "relegation" WHERE "08_pts"=50; |
## Task
Generate a SQL query to answer the following question:
`What is the 07 points minimum if the 08 points is 50?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "relegation" (
"pos" real,
"team" text,
"07_pts" real,
"08_pts" real,
"09_pts" real,
"total_pts" real,
"total_pld" real,
"avg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 07 points minimum if the 08 points is 50?`:
```sql
|
SELECT "08_pts" FROM "relegation" WHERE "pos"=3; |
## Task
Generate a SQL query to answer the following question:
`If the POS is 3, what is the 08 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "relegation" (
"pos" real,
"team" text,
"07_pts" real,
"08_pts" real,
"09_pts" real,
"total_pts" real,
"total_pld" real,
"avg" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the POS is 3, what is the 08 points?`:
```sql
|
SELECT "08_pts" FROM "relegation" WHERE "team"='Rubio Ñú'; |
## Task
Generate a SQL query to answer the following question:
`If the team is Rubio ñú, what is the 08 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "relegation" (
"pos" real,
"team" text,
"07_pts" real,
"08_pts" real,
"09_pts" real,
"total_pts" real,
"total_pld" real,
"avg" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the team is Rubio ñú, what is the 08 points?`:
```sql
|
SELECT MAX("total_pts") FROM "relegation" WHERE "avg"='1.2803'; |
## Task
Generate a SQL query to answer the following question:
`If the average is 1.2803, what is the total points maximum?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "relegation" (
"pos" real,
"team" text,
"07_pts" real,
"08_pts" real,
"09_pts" real,
"total_pts" real,
"total_pld" real,
"avg" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the average is 1.2803, what is the total points maximum?`:
```sql
|
SELECT "total_pld" FROM "relegation" WHERE "pos"=4; |
## Task
Generate a SQL query to answer the following question:
`If the POS is 4, what is the total PLD?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "relegation" (
"pos" real,
"team" text,
"07_pts" real,
"08_pts" real,
"09_pts" real,
"total_pts" real,
"total_pld" real,
"avg" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the POS is 4, what is the total PLD?`:
```sql
|
SELECT "team_name" FROM "open_qualifiers" WHERE "total"='243'; |
## Task
Generate a SQL query to answer the following question:
`What is the team name when 243 is the total?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "open_qualifiers" (
"rank" real,
"team_name" text,
"basic_elements" text,
"tumbling" text,
"stunts" text,
"tosses_pyramids" text,
"deductions" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the team name when 243 is the total?`:
```sql
|
SELECT "team_name" FROM "open_qualifiers" WHERE "tumbling"='44.5'; |
## Task
Generate a SQL query to answer the following question:
`Which team names have 44.5 for tumbling?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "open_qualifiers" (
"rank" real,
"team_name" text,
"basic_elements" text,
"tumbling" text,
"stunts" text,
"tosses_pyramids" text,
"deductions" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team names have 44.5 for tumbling?`:
```sql
|
SELECT "total" FROM "open_qualifiers" WHERE "tosses_pyramids"='44'; |
## Task
Generate a SQL query to answer the following question:
`What is the total if 44 is tosses/pyramids?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "open_qualifiers" (
"rank" real,
"team_name" text,
"basic_elements" text,
"tumbling" text,
"stunts" text,
"tosses_pyramids" text,
"deductions" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total if 44 is tosses/pyramids?`:
```sql
|
SELECT "deductions" FROM "open_qualifiers" WHERE "tosses_pyramids"='56.5'; |
## Task
Generate a SQL query to answer the following question:
`How many deductions have 56.5 as tosses/pyramids?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "open_qualifiers" (
"rank" real,
"team_name" text,
"basic_elements" text,
"tumbling" text,
"stunts" text,
"tosses_pyramids" text,
"deductions" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many deductions have 56.5 as tosses/pyramids?`:
```sql
|
SELECT COUNT("rank") FROM "open_qualifiers" WHERE "tumbling"='36.5'; |
## Task
Generate a SQL query to answer the following question:
`What is the rank when 36.5 is tumbling?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "open_qualifiers" (
"rank" real,
"team_name" text,
"basic_elements" text,
"tumbling" text,
"stunts" text,
"tosses_pyramids" text,
"deductions" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank when 36.5 is tumbling?`:
```sql
|
SELECT MAX("rank") FROM "open_qualifiers" WHERE "tosses_pyramids"='64.5'; |
## Task
Generate a SQL query to answer the following question:
`What is the rank when 64.5 is tosses/pyramids?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "open_qualifiers" (
"rank" real,
"team_name" text,
"basic_elements" text,
"tumbling" text,
"stunts" text,
"tosses_pyramids" text,
"deductions" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank when 64.5 is tosses/pyramids?`:
```sql
|
SELECT COUNT("outcome") FROM "men_s_doubles_16_10_titles_6_runner_ups" WHERE "championship"='French Championships'; |
## Task
Generate a SQL query to answer the following question:
`How many different outcomes of the French Championships were there?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_doubles_16_10_titles_6_runner_ups" (
"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 `How many different outcomes of the French Championships were there?`:
```sql
|
SELECT COUNT("score_in_the_final") FROM "men_s_doubles_16_10_titles_6_runner_ups" WHERE "year"=1963; |
## Task
Generate a SQL query to answer the following question:
`How many different final scores were there in 1963?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_doubles_16_10_titles_6_runner_ups" (
"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 `How many different final scores were there in 1963?`:
```sql
|
SELECT "director" FROM "submissions" WHERE "film_title_used_in_nomination"='Steam of Life'; |
## Task
Generate a SQL query to answer the following question:
`Who directed the film titled 'Steam of Life'?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"title_in_the_original_language" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the film titled 'Steam of Life'?`:
```sql
|
SELECT "year_ceremony" FROM "submissions" WHERE "title_in_the_original_language"='Tummien perhosten koti'; |
## Task
Generate a SQL query to answer the following question:
`What year was the ceremony where the film 'Tummien Perhosten Koti' was submitted?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"title_in_the_original_language" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the ceremony where the film 'Tummien Perhosten Koti' was submitted?`:
```sql
|
SELECT COUNT("result") FROM "submissions" WHERE "title_in_the_original_language"='Joki'; |
## Task
Generate a SQL query to answer the following question:
`What are the results for the film titled 'Joki'?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"title_in_the_original_language" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the results for the film titled 'Joki'?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.