output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT SUM("laps") FROM "classification" WHERE "grid"<11 AND "driver"='jean-pierre jarier'; |
## Task
Generate a SQL query to answer the following question:
`I want the sum of Laps with Grid less than 11 for jean-pierre jarier`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `I want the sum of Laps with Grid less than 11 for jean-pierre jarier`:
```sql
|
SELECT "constructor" FROM "classification" WHERE "time_retired"='brakes' AND "grid"<14; |
## Task
Generate a SQL query to answer the following question:
`I want the constructor for brakes and grid less than 14`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `I want the constructor for brakes and grid less than 14`:
```sql
|
SELECT COUNT("episodes") FROM "episodes" WHERE "season_no"=1; |
## Task
Generate a SQL query to answer the following question:
`How may episodes did season 1 have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episodes" (
"season_no" real,
"season_start" text,
"season_end" text,
"episodes" real,
"host" text
);
### SQL
Given the database schema, here is the SQL query that answers `How may episodes did season 1 have?`:
```sql
|
SELECT "chassis" FROM "drivers_and_constructors" WHERE "entrant"='larrousse f1' AND "driver"='aguri suzuki'; |
## Task
Generate a SQL query to answer the following question:
`Which chassis did Aguri Suzuki drive with an entrant of Larrousse F1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "drivers_and_constructors" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which chassis did Aguri Suzuki drive with an entrant of Larrousse F1?`:
```sql
|
SELECT "entrant" FROM "drivers_and_constructors" WHERE "rounds"='16' AND "constructor"='ferrari'; |
## Task
Generate a SQL query to answer the following question:
`What was the entrant in round 16 were Ferrari was the constructor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "drivers_and_constructors" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the entrant in round 16 were Ferrari was the constructor?`:
```sql
|
SELECT "country" FROM "destinations" WHERE "icao"='zgha'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the country with ICAO of zgha`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "destinations" (
"city" text,
"country" text,
"region" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the country with ICAO of zgha`:
```sql
|
SELECT "icao" FROM "destinations" WHERE "city"='xi''an'; |
## Task
Generate a SQL query to answer the following question:
`I want the ICAO for city of xi'an`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "destinations" (
"city" text,
"country" text,
"region" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the ICAO for city of xi'an`:
```sql
|
SELECT "iata" FROM "destinations" WHERE "icao"='zgkl'; |
## Task
Generate a SQL query to answer the following question:
`I want the IATA for ICAO of zgkl`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "destinations" (
"city" text,
"country" text,
"region" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the IATA for ICAO of zgkl`:
```sql
|
SELECT "region" FROM "destinations" WHERE "icao"='vmmc'; |
## Task
Generate a SQL query to answer the following question:
`I want the region for ICAO of vmmc`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "destinations" (
"city" text,
"country" text,
"region" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the region for ICAO of vmmc`:
```sql
|
SELECT MAX("grid") FROM "classification" WHERE "time_retired"='+ 3 laps' AND "laps"<57; |
## Task
Generate a SQL query to answer the following question:
`What is the high grid number for a Time/Retired of + 3 laps, and a Laps smaller than 57?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the high grid number for a Time/Retired of + 3 laps, and a Laps smaller than 57?`:
```sql
|
SELECT "constructor" FROM "classification" WHERE "time_retired"='1:36:38.887'; |
## Task
Generate a SQL query to answer the following question:
`Who built the car that has a Time/Retired of 1:36:38.887?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who built the car that has a Time/Retired of 1:36:38.887?`:
```sql
|
SELECT "leading_scorer" FROM "january" WHERE "date"='9 january 2008'; |
## Task
Generate a SQL query to answer the following question:
`Who was the leading scorer on 9 January 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the leading scorer on 9 January 2008?`:
```sql
|
SELECT SUM("played") FROM "final_table" WHERE "club"='barcelona b' AND "wins"<11; |
## Task
Generate a SQL query to answer the following question:
`What is the number played for the Barcelona B club, with wins under 11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number played for the Barcelona B club, with wins under 11?`:
```sql
|
SELECT MAX("draws") FROM "final_table" WHERE "points"='20-18' AND "wins"<4; |
## Task
Generate a SQL query to answer the following question:
`What was the biggest draws, for wins under 4, and points of 20-18?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the biggest draws, for wins under 4, and points of 20-18?`:
```sql
|
SELECT AVG("goals_against") FROM "final_table" WHERE "goals_for">35 AND "goal_difference"=20; |
## Task
Generate a SQL query to answer the following question:
`What is the average of goals against, where overall goals are more than 35 and the goal difference is 20?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average of goals against, where overall goals are more than 35 and the goal difference is 20?`:
```sql
|
SELECT SUM("crowd") FROM "round_6" WHERE "away_team"='richmond'; |
## Task
Generate a SQL query to answer the following question:
`What is the Crowd number for the Away team of Richmond?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Crowd number for the Away team of Richmond?`:
```sql
|
SELECT "home_team_score" FROM "round_6" WHERE "venue"='glenferrie oval'; |
## Task
Generate a SQL query to answer the following question:
`What is the Home team score for the Venue named Glenferrie Oval?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Home team score for the Venue named Glenferrie Oval?`:
```sql
|
SELECT MIN("crowd") FROM "round_6" WHERE "venue"='princes park'; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest Crowd number for the Venue named Princes Park?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest Crowd number for the Venue named Princes Park?`:
```sql
|
SELECT "home_team" FROM "round_6" WHERE "away_team_score"='6.9 (45)'; |
## Task
Generate a SQL query to answer the following question:
`Which Home team has an Away team score of 6.9 (45)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Home team has an Away team score of 6.9 (45)?`:
```sql
|
SELECT "notes" FROM "submission_grappling_record" WHERE "method"='points' AND "event"='adcc 2001 absolute' AND "result"='loss'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the notes with method of points and event of adcc 2001 absolute with result of loss`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submission_grappling_record" (
"result" text,
"opponent" text,
"method" text,
"event" text,
"date" real,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the notes with method of points and event of adcc 2001 absolute with result of loss`:
```sql
|
SELECT MIN("date") FROM "submission_grappling_record" WHERE "result"='win' AND "method"='points' AND "notes"='opening round'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the lowest date for result of win and method of points with notes of opening round`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submission_grappling_record" (
"result" text,
"opponent" text,
"method" text,
"event" text,
"date" real,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the lowest date for result of win and method of points with notes of opening round`:
```sql
|
SELECT "result" FROM "submission_grappling_record" WHERE "notes"='quarter-finals' AND "event"='adcc 2001 absolute'; |
## Task
Generate a SQL query to answer the following question:
`Name the result with notes of quarter-finals and event of adcc 2001 absolute`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submission_grappling_record" (
"result" text,
"opponent" text,
"method" text,
"event" text,
"date" real,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the result with notes of quarter-finals and event of adcc 2001 absolute`:
```sql
|
SELECT "event" FROM "submission_grappling_record" WHERE "method"='points' AND "notes"='opening round'; |
## Task
Generate a SQL query to answer the following question:
`I want the event for method of points with notes of opening round`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submission_grappling_record" (
"result" text,
"opponent" text,
"method" text,
"event" text,
"date" real,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the event for method of points with notes of opening round`:
```sql
|
SELECT COUNT("wins") FROM "leaders" WHERE "events"<22 AND "rank"<3; |
## Task
Generate a SQL query to answer the following question:
`How many win total which has the rank smaller than 3 and events smaller than 22`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many win total which has the rank smaller than 3 and events smaller than 22`:
```sql
|
SELECT "denomination" FROM "current_member_schools" WHERE "location"='mt lawley'; |
## Task
Generate a SQL query to answer the following question:
`What denomination is mt lawley?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_member_schools" (
"school" text,
"location" text,
"enrolment" real,
"founded" real,
"denomination" text,
"day_boarding" text,
"school_colors" text
);
### SQL
Given the database schema, here is the SQL query that answers `What denomination is mt lawley?`:
```sql
|
SELECT "day_boarding" FROM "current_member_schools" WHERE "location"='mt lawley'; |
## Task
Generate a SQL query to answer the following question:
`Is mt lawley day or boarding?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_member_schools" (
"school" text,
"location" text,
"enrolment" real,
"founded" real,
"denomination" text,
"day_boarding" text,
"school_colors" text
);
### SQL
Given the database schema, here is the SQL query that answers `Is mt lawley day or boarding?`:
```sql
|
SELECT AVG("founded") FROM "current_member_schools" WHERE "location"='claremont'; |
## Task
Generate a SQL query to answer the following question:
`What is the average year founded for schools in claremont?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_member_schools" (
"school" text,
"location" text,
"enrolment" real,
"founded" real,
"denomination" text,
"day_boarding" text,
"school_colors" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average year founded for schools in claremont?`:
```sql
|
SELECT "away_team" FROM "round_13" WHERE "home_team"='north melbourne'; |
## Task
Generate a SQL query to answer the following question:
`When north melbourne was the home team who was the Away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When north melbourne was the home team who was the Away team?`:
```sql
|
SELECT "home_team" FROM "round_13" WHERE "home_team_score"='19.18 (132)'; |
## Task
Generate a SQL query to answer the following question:
`Which home team scored 19.18 (132)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which home team scored 19.18 (132)?`:
```sql
|
SELECT "away_team" FROM "round_13" WHERE "home_team"='collingwood'; |
## Task
Generate a SQL query to answer the following question:
`When collingwood played as the home team who was the away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When collingwood played as the home team who was the away team?`:
```sql
|
SELECT "home_team" FROM "round_13" WHERE "away_team"='south melbourne'; |
## Task
Generate a SQL query to answer the following question:
`When the Away team was south melbourne what was the home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the Away team was south melbourne what was the home team?`:
```sql
|
SELECT AVG("lowest") FROM "stadia_and_attendances" WHERE "average"<307; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest attendance for a stadium that has an average smaller than 307?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stadia_and_attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
"lowest" real,
"average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest attendance for a stadium that has an average smaller than 307?`:
```sql
|
SELECT "venue" FROM "round_7" WHERE "home_team_score"='17.13 (115)'; |
## Task
Generate a SQL query to answer the following question:
`When the home team scored 17.13 (115), where was the venue?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the home team scored 17.13 (115), where was the venue?`:
```sql
|
SELECT "away_team_score" FROM "round_7" WHERE "home_team"='south melbourne'; |
## Task
Generate a SQL query to answer the following question:
`When the home team was South Melbourne, what did the away team score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the home team was South Melbourne, what did the away team score?`:
```sql
|
SELECT AVG("rank") FROM "medal_count" WHERE "bronze"<13 AND "total"=11 AND "gold">4; |
## Task
Generate a SQL query to answer the following question:
`What is the average rank of a country with less than 13 bronze medals, a total of 11 medals, and more than 4 gold?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_count" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average rank of a country with less than 13 bronze medals, a total of 11 medals, and more than 4 gold?`:
```sql
|
SELECT MIN("bronze") FROM "medal_count" WHERE "silver"=9 AND "total">13 AND "gold">13; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest bronze a team with 9 silvers, a total larger than 13, and more than 13 gold medals has?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_count" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest bronze a team with 9 silvers, a total larger than 13, and more than 13 gold medals has?`:
```sql
|
SELECT MAX("silver") FROM "medal_count" WHERE "total">95; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number of silvers a team with more than 95 total medals has?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_count" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of silvers a team with more than 95 total medals has?`:
```sql
|
SELECT MAX("total") FROM "medal_count" WHERE "gold"<15 AND "bronze"<5 AND "rank">10; |
## Task
Generate a SQL query to answer the following question:
`What is the highest total medals a team with less than 15 gold, less than 5 bronze, and a rank larger than 10 has?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_count" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest total medals a team with less than 15 gold, less than 5 bronze, and a rank larger than 10 has?`:
```sql
|
SELECT "home_team" FROM "round_13" WHERE "venue"='glenferrie oval'; |
## Task
Generate a SQL query to answer the following question:
`Who is the home team who plays at Glenferrie Oval?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the home team who plays at Glenferrie Oval?`:
```sql
|
SELECT "away_team_score" FROM "round_13" WHERE "away_team"='carlton'; |
## Task
Generate a SQL query to answer the following question:
`What did the away team Carlton score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What did the away team Carlton score?`:
```sql
|
SELECT "away_team" FROM "round_13" WHERE "home_team_score"='19.21 (135)'; |
## Task
Generate a SQL query to answer the following question:
`In the game where the home team scored 19.21 (135), who was the away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the game where the home team scored 19.21 (135), who was the away team?`:
```sql
|
SELECT "away_team" FROM "round_13" WHERE "away_team_score"='13.13 (91)'; |
## Task
Generate a SQL query to answer the following question:
`Which away team scored 13.13 (91)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which away team scored 13.13 (91)?`:
```sql
|
SELECT "position" FROM "2003_squad_statistics" WHERE "tries">4 AND "points"=20 AND "player"='lee gilmour'; |
## Task
Generate a SQL query to answer the following question:
`What position did Lee Gilmour play while having more than 4 Tries and 20 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2003_squad_statistics" (
"player" text,
"position" text,
"tries" real,
"goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What position did Lee Gilmour play while having more than 4 Tries and 20 points?`:
```sql
|
SELECT "host" FROM "cbs_era_1979_2000" WHERE "ratings"='9.4/27'; |
## Task
Generate a SQL query to answer the following question:
`Who was the host that garnered ratings of 9.4/27?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cbs_era_1979_2000" (
"year" real,
"network" text,
"lap_by_lap" text,
"color_commentator_s" text,
"pit_reporters" text,
"host" text,
"ratings" text,
"viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the host that garnered ratings of 9.4/27?`:
```sql
|
SELECT "lap_by_lap" FROM "cbs_era_1979_2000" WHERE "year"<1994 AND "ratings"='8.0/21'; |
## Task
Generate a SQL query to answer the following question:
`Who was the lap-by-lap broadcaster before 1994 who garnered ratings of 8.0/21?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cbs_era_1979_2000" (
"year" real,
"network" text,
"lap_by_lap" text,
"color_commentator_s" text,
"pit_reporters" text,
"host" text,
"ratings" text,
"viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the lap-by-lap broadcaster before 1994 who garnered ratings of 8.0/21?`:
```sql
|
SELECT "host" FROM "cbs_era_1979_2000" WHERE "ratings"='9.6/26'; |
## Task
Generate a SQL query to answer the following question:
`Who was the host that garnered ratings of 9.6/26?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cbs_era_1979_2000" (
"year" real,
"network" text,
"lap_by_lap" text,
"color_commentator_s" text,
"pit_reporters" text,
"host" text,
"ratings" text,
"viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the host that garnered ratings of 9.6/26?`:
```sql
|
SELECT "ratings" FROM "cbs_era_1979_2000" WHERE "host"='chris economaki' AND "viewers"='12.3 million'; |
## Task
Generate a SQL query to answer the following question:
`What were the ratings for host Chris Economaki who had 12.3 million viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cbs_era_1979_2000" (
"year" real,
"network" text,
"lap_by_lap" text,
"color_commentator_s" text,
"pit_reporters" text,
"host" text,
"ratings" text,
"viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the ratings for host Chris Economaki who had 12.3 million viewers?`:
```sql
|
SELECT "network" FROM "cbs_era_1979_2000" WHERE "host"='ken squier' AND "viewers"='13.9 million'; |
## Task
Generate a SQL query to answer the following question:
`Who was the network who had Ken Squier as a host and 13.9 million viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cbs_era_1979_2000" (
"year" real,
"network" text,
"lap_by_lap" text,
"color_commentator_s" text,
"pit_reporters" text,
"host" text,
"ratings" text,
"viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the network who had Ken Squier as a host and 13.9 million viewers?`:
```sql
|
SELECT MIN("attendance") FROM "february" WHERE "date"='february 5'; |
## Task
Generate a SQL query to answer the following question:
`What was the lowest Attendance for Games played on the Date of February 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest Attendance for Games played on the Date of February 5?`:
```sql
|
SELECT SUM("attendance") FROM "february" WHERE "visitor"='chicago'; |
## Task
Generate a SQL query to answer the following question:
`What was the total Attendance for Games while Chicago was the visiting Team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total Attendance for Games while Chicago was the visiting Team?`:
```sql
|
SELECT "pole_position" FROM "grands_prix" WHERE "fastest_lap"='rubens barrichello' AND "round">11; |
## Task
Generate a SQL query to answer the following question:
`What pole position was Rubens Barrichello when he had the fastest lap and a round larger than 11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grands_prix" (
"round" real,
"grand_prix" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What pole position was Rubens Barrichello when he had the fastest lap and a round larger than 11?`:
```sql
|
SELECT "grand_prix" FROM "grands_prix" WHERE "winning_driver"='david coulthard' AND "pole_position"='michael schumacher' AND "round"<9; |
## Task
Generate a SQL query to answer the following question:
`Which Grand Prix did David Coulthard win with Michael Schumacher in the pole position before round 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grands_prix" (
"round" real,
"grand_prix" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Grand Prix did David Coulthard win with Michael Schumacher in the pole position before round 9?`:
```sql
|
SELECT "fastest_lap" FROM "grands_prix" WHERE "pole_position"='david coulthard' AND "winning_driver"='michael schumacher'; |
## Task
Generate a SQL query to answer the following question:
`Who had the fastest lap when David Coulthard had pole position and Michael Schumacher as a winning driver.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grands_prix" (
"round" real,
"grand_prix" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the fastest lap when David Coulthard had pole position and Michael Schumacher as a winning driver.`:
```sql
|
SELECT "fastest_lap" FROM "grands_prix" WHERE "grand_prix"='australian grand prix'; |
## Task
Generate a SQL query to answer the following question:
`Who had the fastest lap at the Australian Grand Prix?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grands_prix" (
"round" real,
"grand_prix" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the fastest lap at the Australian Grand Prix?`:
```sql
|
SELECT "team_2" FROM "second_round" WHERE "team_1"='la nuova piovese (veneto a)'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the team 2 for team 1 being la nuova piovese (veneto a)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the team 2 for team 1 being la nuova piovese (veneto a)`:
```sql
|
SELECT "team_1" FROM "second_round" WHERE "team_2"='civitavecchiese (latium a)'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the team 1 for team 2 being civitavecchiese (latium a)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the team 1 for team 2 being civitavecchiese (latium a)`:
```sql
|
SELECT "1st_leg" FROM "second_round" WHERE "team_1"='budoni (sardinia)'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the 1st leg for team being budoni (Sardinia)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the 1st leg for team being budoni (Sardinia)`:
```sql
|
SELECT "attendance" FROM "st_louis_cardinals_vs_houston_astros" WHERE "location"='busch stadium (ii)' AND "time"='3:54'; |
## Task
Generate a SQL query to answer the following question:
`How many attended the game at Busch Stadium (ii) when the time was 3:54?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "st_louis_cardinals_vs_houston_astros" (
"game" real,
"date" text,
"location" text,
"time" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many attended the game at Busch Stadium (ii) when the time was 3:54?`:
```sql
|
SELECT "date" FROM "st_louis_cardinals_vs_houston_astros" WHERE "game">6; |
## Task
Generate a SQL query to answer the following question:
`What dates were the games after game 6 played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "st_louis_cardinals_vs_houston_astros" (
"game" real,
"date" text,
"location" text,
"time" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What dates were the games after game 6 played?`:
```sql
|
SELECT "1977" FROM "singles_performance_timeline" WHERE "1972"='grand slam tournaments'; |
## Task
Generate a SQL query to answer the following question:
`What is the 1977 value that had Grand Slam Tournaments in 1972?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1972" text,
"1973" text,
"1974" text,
"1975" text,
"1976" text,
"1977" text,
"1978" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1977 value that had Grand Slam Tournaments in 1972?`:
```sql
|
SELECT "tournament" FROM "singles_performance_timeline" WHERE "1976"='grand slam tournaments'; |
## Task
Generate a SQL query to answer the following question:
`What is the tournament that had Grand Slam Tournaments in 1976?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1972" text,
"1973" text,
"1974" text,
"1975" text,
"1976" text,
"1977" text,
"1978" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the tournament that had Grand Slam Tournaments in 1976?`:
```sql
|
SELECT "1976" FROM "singles_performance_timeline" WHERE "tournament"='australian open'; |
## Task
Generate a SQL query to answer the following question:
`What is the 1976 value of the Australian Open?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1972" text,
"1973" text,
"1974" text,
"1975" text,
"1976" text,
"1977" text,
"1978" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1976 value of the Australian Open?`:
```sql
|
SELECT "1977" FROM "singles_performance_timeline" WHERE "1974"='a'; |
## Task
Generate a SQL query to answer the following question:
`What is the 1977 value that has a 1974 a value?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1972" text,
"1973" text,
"1974" text,
"1975" text,
"1976" text,
"1977" text,
"1978" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1977 value that has a 1974 a value?`:
```sql
|
SELECT "week" FROM "schedule" WHERE "record"='4-10'; |
## Task
Generate a SQL query to answer the following question:
`Which week led to a record of 4-10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"kickoff_a" text,
"game_site" text,
"attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which week led to a record of 4-10?`:
```sql
|
SELECT "week" FROM "schedule" WHERE "opponent"='san diego chargers'; |
## Task
Generate a SQL query to answer the following question:
`Which week was the game against the San Diego Chargers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"kickoff_a" text,
"game_site" text,
"attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which week was the game against the San Diego Chargers?`:
```sql
|
SELECT "height" FROM "2007_boys_team" WHERE "hometown"='huntington, wv'; |
## Task
Generate a SQL query to answer the following question:
`What is the height of the player who is from Huntington, WV?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height of the player who is from Huntington, WV?`:
```sql
|
SELECT "school" FROM "2007_boys_team" WHERE "hometown"='chicago, il'; |
## Task
Generate a SQL query to answer the following question:
`What school is the player who has a hometown of Chicago, IL from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school is the player who has a hometown of Chicago, IL from?`:
```sql
|
SELECT "college" FROM "2007_boys_team" WHERE "school"='south medford high school'; |
## Task
Generate a SQL query to answer the following question:
`Which college is the player from South Medford High School headed to?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which college is the player from South Medford High School headed to?`:
```sql
|
SELECT "school" FROM "2007_boys_team" WHERE "college"='duke'; |
## Task
Generate a SQL query to answer the following question:
`Which school is the player who is headed to Duke from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which school is the player who is headed to Duke from?`:
```sql
|
SELECT "hometown" FROM "2007_boys_team" WHERE "college"='duke'; |
## Task
Generate a SQL query to answer the following question:
`What is the hometown of the player who is headed to Duke?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the hometown of the player who is headed to Duke?`:
```sql
|
SELECT "louise" FROM "casts_and_directors_of_broadway_and_west" WHERE "dainty_june"='tracy venner'; |
## Task
Generate a SQL query to answer the following question:
`Who was Louise when Tracy Venner was Dainty June?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "casts_and_directors_of_broadway_and_west" (
"productions" text,
"rose" text,
"louise" text,
"dainty_june" text,
"herbie" text,
"director" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was Louise when Tracy Venner was Dainty June?`:
```sql
|
SELECT "dainty_june" FROM "casts_and_directors_of_broadway_and_west" WHERE "louise"='tammy blanchard'; |
## Task
Generate a SQL query to answer the following question:
`Who was Dainty June when Tammy Blanchard was Louise?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "casts_and_directors_of_broadway_and_west" (
"productions" text,
"rose" text,
"louise" text,
"dainty_june" text,
"herbie" text,
"director" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was Dainty June when Tammy Blanchard was Louise?`:
```sql
|
SELECT "dainty_june" FROM "casts_and_directors_of_broadway_and_west" WHERE "herbie"='boyd gaines'; |
## Task
Generate a SQL query to answer the following question:
`Who was Dainty June when Boyd Gaines was Herbie?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "casts_and_directors_of_broadway_and_west" (
"productions" text,
"rose" text,
"louise" text,
"dainty_june" text,
"herbie" text,
"director" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was Dainty June when Boyd Gaines was Herbie?`:
```sql
|
SELECT "productions" FROM "casts_and_directors_of_broadway_and_west" WHERE "rose"='angela lansbury' AND "herbie"='barrie ingham'; |
## Task
Generate a SQL query to answer the following question:
`What production had Angela Lansbury as Rose and Barrie Ingham as Herbie?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "casts_and_directors_of_broadway_and_west" (
"productions" text,
"rose" text,
"louise" text,
"dainty_june" text,
"herbie" text,
"director" text
);
### SQL
Given the database schema, here is the SQL query that answers `What production had Angela Lansbury as Rose and Barrie Ingham as Herbie?`:
```sql
|
SELECT "rose" FROM "casts_and_directors_of_broadway_and_west" WHERE "productions"='1975 broadway revival'; |
## Task
Generate a SQL query to answer the following question:
`Who was rose in the 1975 Broadway Revival?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "casts_and_directors_of_broadway_and_west" (
"productions" text,
"rose" text,
"louise" text,
"dainty_june" text,
"herbie" text,
"director" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was rose in the 1975 Broadway Revival?`:
```sql
|
SELECT "productions" FROM "casts_and_directors_of_broadway_and_west" WHERE "herbie"='rex robbins'; |
## Task
Generate a SQL query to answer the following question:
`Which production had Rex Robbins as Herbie?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "casts_and_directors_of_broadway_and_west" (
"productions" text,
"rose" text,
"louise" text,
"dainty_june" text,
"herbie" text,
"director" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which production had Rex Robbins as Herbie?`:
```sql
|
SELECT "date" FROM "round_21" WHERE "venue"='vfl park'; |
## Task
Generate a SQL query to answer the following question:
`On what date was the venue VFL Park?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_21" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the venue VFL Park?`:
```sql
|
SELECT "date" FROM "round_21" WHERE "home_team"='footscray'; |
## Task
Generate a SQL query to answer the following question:
`What date did Footscray play at home?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_21" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did Footscray play at home?`:
```sql
|
SELECT "home_team_score" FROM "round_21" WHERE "away_team"='geelong'; |
## Task
Generate a SQL query to answer the following question:
`What did the home team score when they played the away team of Geelong?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_21" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What did the home team score when they played the away team of Geelong?`:
```sql
|
SELECT "home_team" FROM "round_21" WHERE "away_team_score"='14.7 (91)'; |
## Task
Generate a SQL query to answer the following question:
`For the away team with a score of 14.7 (91) what was the home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_21" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the away team with a score of 14.7 (91) what was the home team?`:
```sql
|
SELECT MIN("pick") FROM "draft" WHERE "team"='boston celtics'; |
## Task
Generate a SQL query to answer the following question:
`What was the lowest pick number for the Boston Celtics?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"team" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest pick number for the Boston Celtics?`:
```sql
|
SELECT "visitor" FROM "november" WHERE "date"='23 november 2007'; |
## Task
Generate a SQL query to answer the following question:
`Who is the visitor team on 23 November 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the visitor team on 23 November 2007?`:
```sql
|
SELECT "leading_scorer" FROM "november" WHERE "date"='20 november 2007'; |
## Task
Generate a SQL query to answer the following question:
`Who is the leading scorer of the game on 20 November 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the leading scorer of the game on 20 November 2007?`:
```sql
|
SELECT "overall" FROM "1992_draft_picks" WHERE "player"='petter ronnquist'; |
## Task
Generate a SQL query to answer the following question:
`When was petter ronnquist picked?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1992_draft_picks" (
"round" real,
"overall" real,
"player" text,
"nationality" text,
"club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was petter ronnquist picked?`:
```sql
|
SELECT "venue" FROM "international_career" WHERE "result"='1β0'; |
## Task
Generate a SQL query to answer the following question:
`Which venue has a Result of 1β0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_career" (
"date" text,
"venue" text,
"result" text,
"scored" real,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which venue has a Result of 1β0?`:
```sql
|
SELECT "venue" FROM "international_career" WHERE "result"='1β2'; |
## Task
Generate a SQL query to answer the following question:
`Which venue has a Result of 1β2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_career" (
"date" text,
"venue" text,
"result" text,
"scored" real,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which venue has a Result of 1β2?`:
```sql
|
SELECT MAX("scored") FROM "international_career" WHERE "result"='1β1' AND "date"='4 march 2001'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest score with a Result of 1β1 on 4 march 2001?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_career" (
"date" text,
"venue" text,
"result" text,
"scored" real,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest score with a Result of 1β1 on 4 march 2001?`:
```sql
|
SELECT "result" FROM "international_career" WHERE "competition"='2003 eaff championship preliminary' AND "date"='2 march 2003'; |
## Task
Generate a SQL query to answer the following question:
`What is the result of 2003 eaff championship preliminary on 2 march 2003?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_career" (
"date" text,
"venue" text,
"result" text,
"scored" real,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result of 2003 eaff championship preliminary on 2 march 2003?`:
```sql
|
SELECT "engine" FROM "entries" WHERE "driver"='luigi villoresi'; |
## Task
Generate a SQL query to answer the following question:
`I want the engine for luigi villoresi`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "entries" (
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the engine for luigi villoresi`:
```sql
|
SELECT "chassis" FROM "entries" WHERE "entrant"='ecurie lutetia'; |
## Task
Generate a SQL query to answer the following question:
`I want the chassis for entrant of ecurie lutetia`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "entries" (
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the chassis for entrant of ecurie lutetia`:
```sql
|
SELECT "venue" FROM "round_2" WHERE "away_team_score"='15.9 (99)'; |
## Task
Generate a SQL query to answer the following question:
`What is the venue when the away team scored 15.9 (99)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue when the away team scored 15.9 (99)?`:
```sql
|
SELECT "date" FROM "round_2" WHERE "venue"='princes park'; |
## Task
Generate a SQL query to answer the following question:
`What date was the game played at princes park?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the game played at princes park?`:
```sql
|
SELECT "away_team_score" FROM "round_2" WHERE "venue"='vfl park'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the away team when the game was played at vfl park?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the away team when the game was played at vfl park?`:
```sql
|
SELECT "venue" FROM "round_2" WHERE "away_team_score"='17.21 (123)'; |
## Task
Generate a SQL query to answer the following question:
`What was the venue when the away team scored 17.21 (123)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the venue when the away team scored 17.21 (123)?`:
```sql
|
SELECT "home_team" FROM "round_2" WHERE "away_team_score"='17.21 (123)'; |
## Task
Generate a SQL query to answer the following question:
`What team was the home team when the away team scored 17.21 (123)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team was the home team when the away team scored 17.21 (123)?`:
```sql
|
SELECT "kaz_hayashi" FROM "2011" WHERE "block_a"='bushi'; |
## Task
Generate a SQL query to answer the following question:
`Name the kaz hayashi for block A being bushi`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2011" (
"block_a" text,
"black_bushi" text,
"bushi" text,
"kaz_hayashi" text,
"kenny_omega" text,
"minoru" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the kaz hayashi for block A being bushi`:
```sql
|
SELECT "minoru" FROM "2011" WHERE "block_a"='koji kanemoto'; |
## Task
Generate a SQL query to answer the following question:
`Name the minoru for block A being koji kanemoto`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2011" (
"block_a" text,
"black_bushi" text,
"bushi" text,
"kaz_hayashi" text,
"kenny_omega" text,
"minoru" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the minoru for block A being koji kanemoto`:
```sql
|
SELECT "bushi" FROM "2011" WHERE "kenny_omega"='yang (7:27)'; |
## Task
Generate a SQL query to answer the following question:
`Name the BUSHI when it has kenny omega of yang (7:27)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2011" (
"block_a" text,
"black_bushi" text,
"bushi" text,
"kaz_hayashi" text,
"kenny_omega" text,
"minoru" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the BUSHI when it has kenny omega of yang (7:27)`:
```sql
|
SELECT "bushi" FROM "2011" WHERE "kaz_hayashi"='kai (14:01)'; |
## Task
Generate a SQL query to answer the following question:
`Name the BUSHI that has kaz hayashi of kai (14:01)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2011" (
"block_a" text,
"black_bushi" text,
"bushi" text,
"kaz_hayashi" text,
"kenny_omega" text,
"minoru" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the BUSHI that has kaz hayashi of kai (14:01)`:
```sql
|
SELECT "kaz_hayashi" FROM "2011" WHERE "bushi"='yang (9:43)'; |
## Task
Generate a SQL query to answer the following question:
`Name the Kaz Hayashi which has BUSHI of yang (9:43)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2011" (
"block_a" text,
"black_bushi" text,
"bushi" text,
"kaz_hayashi" text,
"kenny_omega" text,
"minoru" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Kaz Hayashi which has BUSHI of yang (9:43)`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.