output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "venue" FROM "round_18" WHERE "away_team_score"='18.9 (117)'; |
## Task
Generate a SQL query to answer the following question:
`Which venue has an Away team score of 18.9 (117)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_18" (
"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 venue has an Away team score of 18.9 (117)?`:
```sql
|
SELECT "date" FROM "round_18" WHERE "home_team_score"='7.11 (53)'; |
## Task
Generate a SQL query to answer the following question:
`What date has a Home team score of 7.11 (53)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_18" (
"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 has a Home team score of 7.11 (53)?`:
```sql
|
SELECT "away_team" FROM "round_18" WHERE "venue"='moorabbin oval'; |
## Task
Generate a SQL query to answer the following question:
`What is moorabbin oval's away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_18" (
"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 moorabbin oval's away team?`:
```sql
|
SELECT "home_team_score" FROM "round_18" WHERE "away_team_score"='10.14 (74)'; |
## Task
Generate a SQL query to answer the following question:
`What is the home score with an Away team score of 10.14 (74)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_18" (
"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 score with an Away team score of 10.14 (74)?`:
```sql
|
SELECT COUNT("grid") FROM "race" WHERE "driver"='karl wendlinger'; |
## Task
Generate a SQL query to answer the following question:
`What is Karl Wendlinger's total grid #?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"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 Karl Wendlinger's total grid #?`:
```sql
|
SELECT "away_team_score" FROM "round_19" WHERE "home_team_score"='20.20 (140)'; |
## Task
Generate a SQL query to answer the following question:
`Which away team score also had a home team score of 20.20 (140)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_19" (
"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 score also had a home team score of 20.20 (140)?`:
```sql
|
SELECT "home_team_score" FROM "round_19" WHERE "home_team"='fitzroy'; |
## Task
Generate a SQL query to answer the following question:
`Which Home team score had a Home team of Fitzroy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_19" (
"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 score had a Home team of Fitzroy?`:
```sql
|
SELECT "name" FROM "list_of_representatives_who_resigned" WHERE "replacement"='lieve wierinck'; |
## Task
Generate a SQL query to answer the following question:
`Who was replaced by Lieve Wierinck?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_representatives_who_resigned" (
"name" text,
"party" text,
"date_of_resignation" text,
"replacement" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was replaced by Lieve Wierinck?`:
```sql
|
SELECT SUM("gross_tonnage") FROM "list_of_rmsp_company_vessels" WHERE "material"='wood' AND "date_commissioned">1846 AND "ship"='esk'; |
## Task
Generate a SQL query to answer the following question:
`Name the sum of gross tonnage for wood on date more tahn 1846 for comissioned and ship of esk`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_rmsp_company_vessels" (
"ship" text,
"date_commissioned" real,
"gross_tonnage" real,
"propulsion" text,
"material" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sum of gross tonnage for wood on date more tahn 1846 for comissioned and ship of esk`:
```sql
|
SELECT SUM("gross_tonnage") FROM "list_of_rmsp_company_vessels" WHERE "ship"='isis' AND "date_commissioned"<1842; |
## Task
Generate a SQL query to answer the following question:
`Tell me the sum of Gross Tonnage for isis ship on date commisioned less than 1842`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_rmsp_company_vessels" (
"ship" text,
"date_commissioned" real,
"gross_tonnage" real,
"propulsion" text,
"material" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the sum of Gross Tonnage for isis ship on date commisioned less than 1842`:
```sql
|
SELECT MIN("date_commissioned") FROM "list_of_rmsp_company_vessels" WHERE "material"='iron' AND "ship"='rmsrhone' AND "gross_tonnage"<'2,738'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the lowest date commissioned for iron rmsrhone and gross tonnage less than 2,738`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_rmsp_company_vessels" (
"ship" text,
"date_commissioned" real,
"gross_tonnage" real,
"propulsion" text,
"material" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the lowest date commissioned for iron rmsrhone and gross tonnage less than 2,738`:
```sql
|
SELECT "height" FROM "men_s_tournament" WHERE "2008_club"='trentino volley'; |
## Task
Generate a SQL query to answer the following question:
`Name the height for 2008 club of trentino volley`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_tournament" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2008_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the height for 2008 club of trentino volley`:
```sql
|
SELECT "name" FROM "men_s_tournament" WHERE "2008_club"='gabeca montichiari'; |
## Task
Generate a SQL query to answer the following question:
`Who was in the 2008 club of gabeca montichiari?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_tournament" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2008_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was in the 2008 club of gabeca montichiari?`:
```sql
|
SELECT "constructor" FROM "race" WHERE "time_retired"='+1.027'; |
## Task
Generate a SQL query to answer the following question:
`What Constructor has a +1.027 Time/Retired?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Constructor has a +1.027 Time/Retired?`:
```sql
|
SELECT "constructor" FROM "race" WHERE "laps"=56; |
## Task
Generate a SQL query to answer the following question:
`What Constructor has 56 Laps?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Constructor has 56 Laps?`:
```sql
|
SELECT "driver" FROM "race" WHERE "grid">5 AND "laps"=28; |
## Task
Generate a SQL query to answer the following question:
`What Driver has 28 Laps and a Grid greater than 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Driver has 28 Laps and a Grid greater than 5?`:
```sql
|
SELECT MAX("laps") FROM "race" WHERE "time_retired"='wheel'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Laps with a Time/Retired Wheel?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"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 highest Laps with a Time/Retired Wheel?`:
```sql
|
SELECT "driver" FROM "race" WHERE "time_retired"='+1.027'; |
## Task
Generate a SQL query to answer the following question:
`What Driver has a +1.027 Time/Retired?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Driver has a +1.027 Time/Retired?`:
```sql
|
SELECT "result" FROM "challenge_cup" WHERE "score"='44-20'; |
## Task
Generate a SQL query to answer the following question:
`What game has a score of 44-20?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "challenge_cup" (
"date" text,
"competition" text,
"venue" text,
"result" text,
"score" text,
"goals" text
);
### SQL
Given the database schema, here is the SQL query that answers `What game has a score of 44-20?`:
```sql
|
SELECT "date" FROM "challenge_cup" WHERE "venue"='headingley stadium'; |
## Task
Generate a SQL query to answer the following question:
`What date was a game played at Headingley Stadium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "challenge_cup" (
"date" text,
"competition" text,
"venue" text,
"result" text,
"score" text,
"goals" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was a game played at Headingley Stadium?`:
```sql
|
SELECT "competition" FROM "challenge_cup" WHERE "venue"='shay stadium'; |
## Task
Generate a SQL query to answer the following question:
`What competition was played at Shay Stadium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "challenge_cup" (
"date" text,
"competition" text,
"venue" text,
"result" text,
"score" text,
"goals" text
);
### SQL
Given the database schema, here is the SQL query that answers `What competition was played at Shay Stadium?`:
```sql
|
SELECT "show" FROM "filmography" WHERE "year"<2011 AND "episode_title"='part 3'; |
## Task
Generate a SQL query to answer the following question:
`Which show had a part 3 before 2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "filmography" (
"year" real,
"show" text,
"season" real,
"episode_title" text,
"episode" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which show had a part 3 before 2011?`:
```sql
|
SELECT "books" FROM "residents_of_white_deer_park" WHERE "gender"='male' AND "animal_name"='bounder'; |
## Task
Generate a SQL query to answer the following question:
`What are the male Bounder books?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "residents_of_white_deer_park" (
"animal_name" text,
"species" text,
"books" text,
"tv_series" text,
"gender" text,
"tv_seasons" text,
"mate" text,
"first_appearance" text,
"last_appearance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the male Bounder books?`:
```sql
|
SELECT COUNT("attendance") FROM "game_log" WHERE "date"='april 12'; |
## Task
Generate a SQL query to answer the following question:
`How many people attended on April 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people attended on April 12?`:
```sql
|
SELECT "date" FROM "1905_1911" WHERE "no_built"=5 AND "wheels"='4-4-2t'; |
## Task
Generate a SQL query to answer the following question:
`On what date were 5 built with 4-4-2t wheels?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1905_1911" (
"class" text,
"wheels" text,
"date" text,
"no_built" real,
"loco_nos" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date were 5 built with 4-4-2t wheels?`:
```sql
|
SELECT "date" FROM "1905_1911" WHERE "loco_nos"='421-6'; |
## Task
Generate a SQL query to answer the following question:
`On what date was the number of locomotives 421-6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1905_1911" (
"class" text,
"wheels" text,
"date" text,
"no_built" real,
"loco_nos" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the number of locomotives 421-6?`:
```sql
|
SELECT "no_built" FROM "1905_1911" WHERE "loco_nos"='11-20'; |
## Task
Generate a SQL query to answer the following question:
`How many were built with a locomotive number of 11-20?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1905_1911" (
"class" text,
"wheels" text,
"date" text,
"no_built" real,
"loco_nos" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many were built with a locomotive number of 11-20?`:
```sql
|
SELECT "date" FROM "1905_1911" WHERE "wheels"='4-4-2' AND "no_built">5; |
## Task
Generate a SQL query to answer the following question:
`On what date were more than 5 built with 4-4-2 wheels?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1905_1911" (
"class" text,
"wheels" text,
"date" text,
"no_built" real,
"loco_nos" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date were more than 5 built with 4-4-2 wheels?`:
```sql
|
SELECT "date" FROM "1905_1911" WHERE "no_built"<10 AND "loco_nos"='31-35'; |
## Task
Generate a SQL query to answer the following question:
`On what date were less than 10 built with a locomotive number of 31-35?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1905_1911" (
"class" text,
"wheels" text,
"date" text,
"no_built" real,
"loco_nos" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date were less than 10 built with a locomotive number of 31-35?`:
```sql
|
SELECT "crowd" FROM "round_10" WHERE "away_team"='collingwood'; |
## Task
Generate a SQL query to answer the following question:
`How many spectators watched when the away team was Collingwood?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_10" (
"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 `How many spectators watched when the away team was Collingwood?`:
```sql
|
SELECT "away_team_score" FROM "round_10" WHERE "away_team"='essendon'; |
## Task
Generate a SQL query to answer the following question:
`What did Essendon score when they were the away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_10" (
"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 Essendon score when they were the away team?`:
```sql
|
SELECT "date" FROM "round_10" WHERE "home_team_score"='19.17 (131)'; |
## Task
Generate a SQL query to answer the following question:
`When did the home team score 19.17 (131)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_10" (
"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 did the home team score 19.17 (131)?`:
```sql
|
SELECT "home_team" FROM "round_6" WHERE "venue"='brunswick street oval'; |
## Task
Generate a SQL query to answer the following question:
`Who was the home team at Brunswick Street 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 `Who was the home team at Brunswick Street Oval?`:
```sql
|
SELECT "away_team_score" FROM "round_6" WHERE "away_team"='south melbourne'; |
## Task
Generate a SQL query to answer the following question:
`What was South Melbourne's away team score?`
### 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 was South Melbourne's away team score?`:
```sql
|
SELECT "away_team_score" FROM "round_6" WHERE "venue"='brunswick street oval'; |
## Task
Generate a SQL query to answer the following question:
`Who was the away team at Brunswick Street 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 `Who was the away team at Brunswick Street Oval?`:
```sql
|
SELECT MIN("height_m") FROM "the" WHERE "class"='hewitt' AND "prom_m"<148; |
## Task
Generate a SQL query to answer the following question:
`Tell me the lowest height for class of hewitt and prom less than 148`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the" (
"peak" text,
"height_m" real,
"prom_m" real,
"class" text,
"parent" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the lowest height for class of hewitt and prom less than 148`:
```sql
|
SELECT COUNT("prom_m") FROM "the" WHERE "height_m"<615; |
## Task
Generate a SQL query to answer the following question:
`Tell me the total number of prom for height less than 615`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the" (
"peak" text,
"height_m" real,
"prom_m" real,
"class" text,
"parent" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the total number of prom for height less than 615`:
```sql
|
SELECT "peak" FROM "the" WHERE "prom_m"<147 AND "height_m"<619; |
## Task
Generate a SQL query to answer the following question:
`I want to know the peak which is prom less than 147 and height less than 619`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the" (
"peak" text,
"height_m" real,
"prom_m" real,
"class" text,
"parent" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want to know the peak which is prom less than 147 and height less than 619`:
```sql
|
SELECT "peak" FROM "the" WHERE "prom_m"<147; |
## Task
Generate a SQL query to answer the following question:
`Tell me the peak for prom being less than 147`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the" (
"peak" text,
"height_m" real,
"prom_m" real,
"class" text,
"parent" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the peak for prom being less than 147`:
```sql
|
SELECT MIN("prom_m") FROM "the" WHERE "class"='hewitt' AND "peak"='cushat law' AND "height_m">615; |
## Task
Generate a SQL query to answer the following question:
`Tell me the lowest prom for class of hewitt and peak of cushat law and height more than 615`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the" (
"peak" text,
"height_m" real,
"prom_m" real,
"class" text,
"parent" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the lowest prom for class of hewitt and peak of cushat law and height more than 615`:
```sql
|
SELECT "peak" FROM "the" WHERE "height_m">619 AND "class"='hewitt' AND "prom_m"=148; |
## Task
Generate a SQL query to answer the following question:
`Name the peak for height more than 619 and class of hewitt with prom being 148`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the" (
"peak" text,
"height_m" real,
"prom_m" real,
"class" text,
"parent" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the peak for height more than 619 and class of hewitt with prom being 148`:
```sql
|
SELECT "percentage_democrats" FROM "partisan_mix_of_the_house_by_state" WHERE "democratic_republican"='2/4'; |
## Task
Generate a SQL query to answer the following question:
`What is the percentage democrats with 2/4 democrat/republican?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "partisan_mix_of_the_house_by_state" (
"state_ranked_in_partisan_order" text,
"percentage_democrats" text,
"percentage_republicans" text,
"democratic_republican" text,
"democratic_seat_plurality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the percentage democrats with 2/4 democrat/republican?`:
```sql
|
SELECT "percentage_democrats" FROM "partisan_mix_of_the_house_by_state" WHERE "democratic_seat_plurality"='-3' AND "democratic_republican"='2/5'; |
## Task
Generate a SQL query to answer the following question:
`What is the percentage democrats with democratic plurality of -3, and 2/5 democrat/republican?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "partisan_mix_of_the_house_by_state" (
"state_ranked_in_partisan_order" text,
"percentage_democrats" text,
"percentage_republicans" text,
"democratic_republican" text,
"democratic_seat_plurality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the percentage democrats with democratic plurality of -3, and 2/5 democrat/republican?`:
```sql
|
SELECT "percentage_republicans" FROM "partisan_mix_of_the_house_by_state" WHERE "democratic_republican"='7/6'; |
## Task
Generate a SQL query to answer the following question:
`What is the percent of republicans with 7/6 democrat/republican?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "partisan_mix_of_the_house_by_state" (
"state_ranked_in_partisan_order" text,
"percentage_democrats" text,
"percentage_republicans" text,
"democratic_republican" text,
"democratic_seat_plurality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the percent of republicans with 7/6 democrat/republican?`:
```sql
|
SELECT "democratic_seat_plurality" FROM "partisan_mix_of_the_house_by_state" WHERE "percentage_democrats"='29%'; |
## Task
Generate a SQL query to answer the following question:
`What is the democratic seat plurality with 29% democrat?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "partisan_mix_of_the_house_by_state" (
"state_ranked_in_partisan_order" text,
"percentage_democrats" text,
"percentage_republicans" text,
"democratic_republican" text,
"democratic_seat_plurality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the democratic seat plurality with 29% democrat?`:
```sql
|
SELECT "democratic_seat_plurality" FROM "partisan_mix_of_the_house_by_state" WHERE "state_ranked_in_partisan_order"='new hampshire'; |
## Task
Generate a SQL query to answer the following question:
`What is the democratic seat plurality with partisan order of New Hampshire?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "partisan_mix_of_the_house_by_state" (
"state_ranked_in_partisan_order" text,
"percentage_democrats" text,
"percentage_republicans" text,
"democratic_republican" text,
"democratic_seat_plurality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the democratic seat plurality with partisan order of New Hampshire?`:
```sql
|
SELECT "score" FROM "december" WHERE "visitor"='pacers'; |
## Task
Generate a SQL query to answer the following question:
`What is the score of the game with Pacers as the Visitor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "december" (
"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 `What is the score of the game with Pacers as the Visitor?`:
```sql
|
SELECT "home" FROM "december" WHERE "date"='december 5, 2007'; |
## Task
Generate a SQL query to answer the following question:
`Who was Home on December 5, 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "december" (
"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 Home on December 5, 2007?`:
```sql
|
SELECT "japanese_orthography" FROM "administered_by_the_national_government_" WHERE "abbreviation"='ndmc'; |
## Task
Generate a SQL query to answer the following question:
`What is the Japanese orthography for the abbreviation of ndmc?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "administered_by_the_national_government_" (
"english_name" text,
"japanese_orthography" text,
"pronouciation" text,
"abbreviation" text,
"provider_national_government" text,
"foundation" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Japanese orthography for the abbreviation of ndmc?`:
```sql
|
SELECT "english_name" FROM "administered_by_the_national_government_" WHERE "provider_national_government"='ministry of defense' AND "abbreviation"='nda bōei-dai(防衛大)'; |
## Task
Generate a SQL query to answer the following question:
`What is the english name of the ministry of defense with an abbreviation of nda bōei-dai(防衛大)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "administered_by_the_national_government_" (
"english_name" text,
"japanese_orthography" text,
"pronouciation" text,
"abbreviation" text,
"provider_national_government" text,
"foundation" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the english name of the ministry of defense with an abbreviation of nda bōei-dai(防衛大)?`:
```sql
|
SELECT "home_team_score" FROM "round_16" WHERE "venue"='victoria park'; |
## Task
Generate a SQL query to answer the following question:
`What did the team score when playing at home in victoria park?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_16" (
"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 team score when playing at home in victoria park?`:
```sql
|
SELECT MAX("crowd") FROM "round_16" WHERE "away_team_score"='11.14 (80)'; |
## Task
Generate a SQL query to answer the following question:
`What was the top crowd when the away team scored 11.14 (80)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_16" (
"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 top crowd when the away team scored 11.14 (80)?`:
```sql
|
SELECT "home_team_score" FROM "round_16" WHERE "home_team"='st kilda'; |
## Task
Generate a SQL query to answer the following question:
`What did st kilda score at home?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_16" (
"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 st kilda score at home?`:
```sql
|
SELECT MAX("crowd") FROM "round_16" WHERE "home_team"='collingwood'; |
## Task
Generate a SQL query to answer the following question:
`What was the top crowd when collingwood played home?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_16" (
"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 top crowd when collingwood played home?`:
```sql
|
SELECT "home_team" FROM "round_16" WHERE "venue"='western oval'; |
## Task
Generate a SQL query to answer the following question:
`Which team plays home in western oval venue?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_16" (
"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 team plays home in western oval venue?`:
```sql
|
SELECT "time_retired" FROM "race" WHERE "laps"<53 AND "driver"='innes ireland'; |
## Task
Generate a SQL query to answer the following question:
`When the driver is innes ireland and they drove under 53 laps, what was the Time/Retired?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the driver is innes ireland and they drove under 53 laps, what was the Time/Retired?`:
```sql
|
SELECT "laps" FROM "race" WHERE "driver"='peter arundell'; |
## Task
Generate a SQL query to answer the following question:
`How many laps does peter arundell have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps does peter arundell have?`:
```sql
|
SELECT "driver" FROM "race" WHERE "grid">11 AND "laps">52; |
## Task
Generate a SQL query to answer the following question:
`Which driver has a grid value larger than 11, and drove more than 52 laps?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which driver has a grid value larger than 11, and drove more than 52 laps?`:
```sql
|
SELECT "away_team_score" FROM "round_1" WHERE "crowd">'15,242' AND "home_team"='carlton'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the away team score with the crowd bigger than 15,242 with home team of carlton`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_1" (
"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 `Tell me the away team score with the crowd bigger than 15,242 with home team of carlton`:
```sql
|
SELECT "crowd" FROM "round_1" WHERE "away_team"='north melbourne'; |
## Task
Generate a SQL query to answer the following question:
`What is the crowd for away team of north melbourne?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_1" (
"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 for away team of north melbourne?`:
```sql
|
SELECT "date" FROM "round_1" WHERE "away_team"='essendon'; |
## Task
Generate a SQL query to answer the following question:
`What is the date when the away team is essendon?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_1" (
"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 date when the away team is essendon?`:
```sql
|
SELECT "visitor" FROM "february" WHERE "home"='vancouver' AND "date"='february 24'; |
## Task
Generate a SQL query to answer the following question:
`Name the visitor from vancouver on february 24`
### 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 `Name the visitor from vancouver on february 24`:
```sql
|
SELECT "description" FROM "list_of_great_central_railway_locomotive" WHERE "date"='1962'; |
## Task
Generate a SQL query to answer the following question:
`Which description is dated 1962?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_great_central_railway_locomotive" (
"number_name" text,
"description" text,
"livery" text,
"owner_s" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which description is dated 1962?`:
```sql
|
SELECT "home_team" FROM "round_11" WHERE "venue"='moorabbin oval'; |
## Task
Generate a SQL query to answer the following question:
`Moorabbin oval is home to what team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_11" (
"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 `Moorabbin oval is home to what team?`:
```sql
|
SELECT "away_team" FROM "round_11" WHERE "away_team_score"='10.14 (74)'; |
## Task
Generate a SQL query to answer the following question:
`Which away team scored 10.14 (74)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_11" (
"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 10.14 (74)?`:
```sql
|
SELECT COUNT("crowd") FROM "round_11" WHERE "home_team_score"='9.13 (67)'; |
## Task
Generate a SQL query to answer the following question:
`How many crowds had a home team score of 9.13 (67)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_11" (
"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 `How many crowds had a home team score of 9.13 (67)?`:
```sql
|
SELECT "crowd" FROM "round_11" WHERE "home_team_score"='7.10 (52)'; |
## Task
Generate a SQL query to answer the following question:
`How many people were in the crowd on the day the home team scored 7.10 (52)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_11" (
"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 `How many people were in the crowd on the day the home team scored 7.10 (52)?`:
```sql
|
SELECT "leader_at_the_summit" FROM "appearances_in_tour_de_france" WHERE "year"=2005; |
## Task
Generate a SQL query to answer the following question:
`Who was the leader at the summit for the race in 2005?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "appearances_in_tour_de_france" (
"year" real,
"stage" real,
"category" text,
"start" text,
"finish" text,
"leader_at_the_summit" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the leader at the summit for the race in 2005?`:
```sql
|
SELECT SUM("stage") FROM "appearances_in_tour_de_france" WHERE "category"='1' AND "year">2003; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of the stages for category 1 races after the year 2003?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "appearances_in_tour_de_france" (
"year" real,
"stage" real,
"category" text,
"start" text,
"finish" text,
"leader_at_the_summit" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the stages for category 1 races after the year 2003?`:
```sql
|
SELECT "venue" FROM "round_6" WHERE "home_team"='melbourne'; |
## Task
Generate a SQL query to answer the following question:
`What is the stadium of melbourne?`
### 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 stadium of melbourne?`:
```sql
|
SELECT AVG("crowd") FROM "round_6" WHERE "away_team_score"='19.16 (130)'; |
## Task
Generate a SQL query to answer the following question:
`How big was the average crowd when the opposing team scored 19.16 (130)?`
### 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 `How big was the average crowd when the opposing team scored 19.16 (130)?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "decision"='backstrom' AND "attendance">'18,568'; |
## Task
Generate a SQL query to answer the following question:
`What was the record in the game where the decision was Backstrom and there were more than 18,568 in attendance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"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 record in the game where the decision was Backstrom and there were more than 18,568 in attendance?`:
```sql
|
SELECT MAX("goals") FROM "zamora_trophy" WHERE "team"='getafe cf'; |
## Task
Generate a SQL query to answer the following question:
`For Getafe CF, what is the highest number of goals scored?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "zamora_trophy" (
"goalkeeper" text,
"goals" real,
"matches" real,
"average" real,
"team" text
);
### SQL
Given the database schema, here is the SQL query that answers `For Getafe CF, what is the highest number of goals scored?`:
```sql
|
SELECT AVG("matches") FROM "zamora_trophy" WHERE "goals"<41 AND "team"='ca osasuna' AND "average"<1.06; |
## Task
Generate a SQL query to answer the following question:
`For players with fewer than 41 goals for CA Osasuna and averages under 1.06, what is the average number of matches?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "zamora_trophy" (
"goalkeeper" text,
"goals" real,
"matches" real,
"average" real,
"team" text
);
### SQL
Given the database schema, here is the SQL query that answers `For players with fewer than 41 goals for CA Osasuna and averages under 1.06, what is the average number of matches?`:
```sql
|
SELECT AVG("goals") FROM "zamora_trophy" WHERE "average"=1.58 AND "matches"<38; |
## Task
Generate a SQL query to answer the following question:
`For averages of 1.58 and matches under 38, what is the average number of goals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "zamora_trophy" (
"goalkeeper" text,
"goals" real,
"matches" real,
"average" real,
"team" text
);
### SQL
Given the database schema, here is the SQL query that answers `For averages of 1.58 and matches under 38, what is the average number of goals?`:
```sql
|
SELECT "ranking" FROM "summary" WHERE "season"='2009'; |
## Task
Generate a SQL query to answer the following question:
`Which Ranking has a Season of 2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"season" text,
"uefa_season" text,
"coeff" text,
"ranking" real,
"champions" text,
"runner_up" text,
"3rd_place" text,
"cup_winner" text,
"cup_runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Ranking has a Season of 2009?`:
```sql
|
SELECT "champions" FROM "summary" WHERE "runner_up"='tobol' AND "coeff"='1.125'; |
## Task
Generate a SQL query to answer the following question:
`Which Champions have a Runner-up of tobol, and a Coeff of 1.125?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"season" text,
"uefa_season" text,
"coeff" text,
"ranking" real,
"champions" text,
"runner_up" text,
"3rd_place" text,
"cup_winner" text,
"cup_runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Champions have a Runner-up of tobol, and a Coeff of 1.125?`:
```sql
|
SELECT "season" FROM "summary" WHERE "3rd_place"='tobol' AND "champions"='irtysh'; |
## Task
Generate a SQL query to answer the following question:
`In what Season is there a 3rd place of tobol, and a Champion of irtysh?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"season" text,
"uefa_season" text,
"coeff" text,
"ranking" real,
"champions" text,
"runner_up" text,
"3rd_place" text,
"cup_winner" text,
"cup_runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what Season is there a 3rd place of tobol, and a Champion of irtysh?`:
```sql
|
SELECT "champions" FROM "summary" WHERE "coeff"='1.000'; |
## Task
Generate a SQL query to answer the following question:
`Which Champion has a Coeff of 1.000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"season" text,
"uefa_season" text,
"coeff" text,
"ranking" real,
"champions" text,
"runner_up" text,
"3rd_place" text,
"cup_winner" text,
"cup_runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Champion has a Coeff of 1.000?`:
```sql
|
SELECT MIN("game") FROM "qualifying_games" WHERE "date"='23 april' AND "batting_2nd"='england 5/113 (19)'; |
## Task
Generate a SQL query to answer the following question:
`what is the game for 23 april when batting 2nd is england 5/113 (19)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "qualifying_games" (
"game" real,
"date" text,
"batting_1st" text,
"batting_2nd" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the game for 23 april when batting 2nd is england 5/113 (19)?`:
```sql
|
SELECT MIN("game") FROM "qualifying_games" WHERE "batting_2nd"='new zealand 6/133 (18)'; |
## Task
Generate a SQL query to answer the following question:
`what is the game when batting 2nd is new zealand 6/133 (18)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "qualifying_games" (
"game" real,
"date" text,
"batting_1st" text,
"batting_2nd" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the game when batting 2nd is new zealand 6/133 (18)?`:
```sql
|
SELECT MAX("game") FROM "qualifying_games" WHERE "result"='new zealand by 4 wickets'; |
## Task
Generate a SQL query to answer the following question:
`what is the game when the result is new zealand by 4 wickets?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "qualifying_games" (
"game" real,
"date" text,
"batting_1st" text,
"batting_2nd" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the game when the result is new zealand by 4 wickets?`:
```sql
|
SELECT "batting_1st" FROM "qualifying_games" WHERE "game"=8; |
## Task
Generate a SQL query to answer the following question:
`who is batting 1st in game 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "qualifying_games" (
"game" real,
"date" text,
"batting_1st" text,
"batting_2nd" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is batting 1st in game 8?`:
```sql
|
SELECT "regular_season_1" FROM "year_by_year" WHERE "copa_m_xico"='no longer played' AND "pyramid_level"='2' AND "regular_season_2"='15th'; |
## Task
Generate a SQL query to answer the following question:
`What is the regular season 1 result of the season when the Copa México was no longer played, the pyramid level was 2, and the regular season 2 result was 15th?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"season" text,
"pyramid_level" text,
"regular_season_1" text,
"playoffs_1" text,
"regular_season_2" text,
"playoffs_2" text,
"copa_m_xico" text,
"concacaf" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the regular season 1 result of the season when the Copa México was no longer played, the pyramid level was 2, and the regular season 2 result was 15th?`:
```sql
|
SELECT "regular_season_2" FROM "year_by_year" WHERE "season"='2001-02'; |
## Task
Generate a SQL query to answer the following question:
`What is the regular season 2 result of season 2001-02?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"season" text,
"pyramid_level" text,
"regular_season_1" text,
"playoffs_1" text,
"regular_season_2" text,
"playoffs_2" text,
"copa_m_xico" text,
"concacaf" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the regular season 2 result of season 2001-02?`:
```sql
|
SELECT "playoffs_2" FROM "year_by_year" WHERE "season"='2010-11'; |
## Task
Generate a SQL query to answer the following question:
`What is the playoffs 2 result of season 2010-11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"season" text,
"pyramid_level" text,
"regular_season_1" text,
"playoffs_1" text,
"regular_season_2" text,
"playoffs_2" text,
"copa_m_xico" text,
"concacaf" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the playoffs 2 result of season 2010-11?`:
```sql
|
SELECT "playoffs_1" FROM "year_by_year" WHERE "season"='2004-05'; |
## Task
Generate a SQL query to answer the following question:
`What is the playoffs 1 result of season 2004-05?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"season" text,
"pyramid_level" text,
"regular_season_1" text,
"playoffs_1" text,
"regular_season_2" text,
"playoffs_2" text,
"copa_m_xico" text,
"concacaf" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the playoffs 1 result of season 2004-05?`:
```sql
|
SELECT SUM("grid") FROM "race" WHERE "driver"='alain prost'; |
## Task
Generate a SQL query to answer the following question:
`Which Grid did Alain Prost drive on?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Grid did Alain Prost drive on?`:
```sql
|
SELECT "time_retired" FROM "race" WHERE "driver"='riccardo patrese'; |
## Task
Generate a SQL query to answer the following question:
`What was Riccardo Patrese's time/retired?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was Riccardo Patrese's time/retired?`:
```sql
|
SELECT "venue" FROM "round_15" WHERE "away_team_score"='14.15 (99)'; |
## Task
Generate a SQL query to answer the following question:
`What venue has a score of 14.15 (99) for away teams?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_15" (
"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 venue has a score of 14.15 (99) for away teams?`:
```sql
|
SELECT "venue" FROM "round_15" WHERE "away_team_score"='14.11 (95)'; |
## Task
Generate a SQL query to answer the following question:
`What venue has the score of 14.11 (95) for away teams?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_15" (
"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 venue has the score of 14.11 (95) for away teams?`:
```sql
|
SELECT "rounds" FROM "drivers_and_constructors" WHERE "chassis"='n180' AND "driver"='geoff lees'; |
## Task
Generate a SQL query to answer the following question:
`How many rounds did geoff lees drive with chassis of n180?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "drivers_and_constructors" (
"constructor" text,
"chassis" text,
"engine" text,
"tyres" text,
"driver" text,
"rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rounds did geoff lees drive with chassis of n180?`:
```sql
|
SELECT "tyres" FROM "drivers_and_constructors" WHERE "driver"='didier pironi'; |
## Task
Generate a SQL query to answer the following question:
`What is the tyres for Didier pironi?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "drivers_and_constructors" (
"constructor" text,
"chassis" text,
"engine" text,
"tyres" text,
"driver" text,
"rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the tyres for Didier pironi?`:
```sql
|
SELECT "constructor" FROM "drivers_and_constructors" WHERE "driver"='jan lammers' AND "rounds"='7-14'; |
## Task
Generate a SQL query to answer the following question:
`Who was the constructor of the car that Jan Lammers made 7-14 rounds in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "drivers_and_constructors" (
"constructor" text,
"chassis" text,
"engine" text,
"tyres" text,
"driver" text,
"rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the constructor of the car that Jan Lammers made 7-14 rounds in?`:
```sql
|
SELECT "engine" FROM "drivers_and_constructors" WHERE "tyres"='g' AND "chassis"='d3 d4' AND "driver"='jan lammers' AND "rounds"='4-6'; |
## Task
Generate a SQL query to answer the following question:
`What engine was used during the race driven by Jan Lammers using a chassis of d3 d4, making a tyre of g and rounds of 4-6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "drivers_and_constructors" (
"constructor" text,
"chassis" text,
"engine" text,
"tyres" text,
"driver" text,
"rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `What engine was used during the race driven by Jan Lammers using a chassis of d3 d4, making a tyre of g and rounds of 4-6?`:
```sql
|
SELECT "competition" FROM "international_goals" WHERE "venue"='seoul' AND "result"='4-1'; |
## Task
Generate a SQL query to answer the following question:
`Which Competition has a Venue of Seoul, and Result of 4-1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Competition has a Venue of Seoul, and Result of 4-1?`:
```sql
|
SELECT "result" FROM "international_goals" WHERE "date"='june 12, 1997'; |
## Task
Generate a SQL query to answer the following question:
`What's the Result listed that has a Date of June 12, 1997?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Result listed that has a Date of June 12, 1997?`:
```sql
|
SELECT "score" FROM "international_goals" WHERE "result"='1-0'; |
## Task
Generate a SQL query to answer the following question:
`What's the Score listed that 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_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Score listed that has a Result of 1-0?`:
```sql
|
SELECT "result" FROM "international_goals" WHERE "competition"='1994 fifa world cup qualification' AND "date"='may 15, 1993'; |
## Task
Generate a SQL query to answer the following question:
`What's the Result for the Competition of 1994 FIFA World Cup Qualification, with the Date of May 15, 1993?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Result for the Competition of 1994 FIFA World Cup Qualification, with the Date of May 15, 1993?`:
```sql
|
SELECT "competition" FROM "international_goals" WHERE "result"='3-0' AND "venue"='suwon'; |
## Task
Generate a SQL query to answer the following question:
`Which Competition had a Result of 3-0 and VEnue of Suwon?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Competition had a Result of 3-0 and VEnue of Suwon?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.