output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "competition" FROM "international_goals" WHERE "score"='1-0'; |
## Task
Generate a SQL query to answer the following question:
`Which competition had the score 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 `Which competition had the score 1-0?`:
```sql
|
SELECT "country" FROM "under_construction" WHERE "stadium"='timsah arena'; |
## Task
Generate a SQL query to answer the following question:
`Timsah arena is in what country?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "under_construction" (
"stadium" text,
"capacity" real,
"city" text,
"country" text,
"tenant" text,
"opening" real
);
### SQL
Given the database schema, here is the SQL query that answers `Timsah arena is in what country?`:
```sql
|
SELECT "country" FROM "general_classification" WHERE "team"='relax-gam'; |
## Task
Generate a SQL query to answer the following question:
`What country is Relax-Gam from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "general_classification" (
"cyclist" text,
"country" text,
"team" text,
"time" text,
"uci_pro_tour_points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country is Relax-Gam from?`:
```sql
|
SELECT "cyclist" FROM "general_classification" WHERE "team"='gerolsteiner'; |
## Task
Generate a SQL query to answer the following question:
`Who is Gerolsteiner's cyclist?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "general_classification" (
"cyclist" text,
"country" text,
"team" text,
"time" text,
"uci_pro_tour_points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is Gerolsteiner's cyclist?`:
```sql
|
SELECT "uci_pro_tour_points" FROM "general_classification" WHERE "cyclist"='davide rebellin'; |
## Task
Generate a SQL query to answer the following question:
`What is Davide Rebellin' UCI ProTour Points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "general_classification" (
"cyclist" text,
"country" text,
"team" text,
"time" text,
"uci_pro_tour_points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Davide Rebellin' UCI ProTour Points?`:
```sql
|
SELECT "home_team_score" FROM "round_17" WHERE "home_team"='north melbourne'; |
## Task
Generate a SQL query to answer the following question:
`What was North Melbourne's score when they were the home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_17" (
"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 North Melbourne's score when they were the home team?`:
```sql
|
SELECT "venue" FROM "round_17" WHERE "away_team"='footscray'; |
## Task
Generate a SQL query to answer the following question:
`Where did Footscray play as the away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_17" (
"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 `Where did Footscray play as the away team?`:
```sql
|
SELECT "away_team_score" FROM "round_17" WHERE "venue"='lake oval'; |
## Task
Generate a SQL query to answer the following question:
`What was the away team's score in the match at Lake Oval?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_17" (
"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 away team's score in the match at Lake Oval?`:
```sql
|
SELECT SUM("crowd") FROM "round_17" WHERE "away_team"='fitzroy'; |
## Task
Generate a SQL query to answer the following question:
`What was the sum of the crowds that watched Fitzroy play as the away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_17" (
"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 sum of the crowds that watched Fitzroy play as the away team?`:
```sql
|
SELECT SUM("rank") FROM "goalscoring" WHERE "years"='1996β2012' AND "apps">340; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of rank with years 1996β2012 and apps greater than 340?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "goalscoring" (
"rank" real,
"name" text,
"years" text,
"goals" real,
"apps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of rank with years 1996β2012 and apps greater than 340?`:
```sql
|
SELECT "player" FROM "c" WHERE "from"<1982 AND "position"='guard'; |
## Task
Generate a SQL query to answer the following question:
`Which player held the position of guard prior to 1982?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "c" (
"player" text,
"nationality" text,
"position" text,
"from" real,
"school_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player held the position of guard prior to 1982?`:
```sql
|
SELECT "away_team" FROM "round_6" WHERE "home_team"='carlton'; |
## Task
Generate a SQL query to answer the following question:
`What was the away team that faced Carlton?`
### 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 the away team that faced Carlton?`:
```sql
|
SELECT MAX("crowd") FROM "round_6" WHERE "away_team_score"='10.6 (66)'; |
## Task
Generate a SQL query to answer the following question:
`What was the largest crowd to see the away team score 10.6 (66)?`
### 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 the largest crowd to see the away team score 10.6 (66)?`:
```sql
|
SELECT COUNT("crowd") FROM "round_6" WHERE "away_team"='geelong'; |
## Task
Generate a SQL query to answer the following question:
`What is the total crowd size that saw Geelong play as the away team?`
### 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 total crowd size that saw Geelong play as the away team?`:
```sql
|
SELECT "away_team" FROM "round_6" WHERE "home_team_score"='4.5 (29)'; |
## Task
Generate a SQL query to answer the following question:
`What away team saw their opponents score 4.5 (29)?`
### 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 away team saw their opponents score 4.5 (29)?`:
```sql
|
SELECT "wins" FROM "career_summary" WHERE "poles"='0' AND "final_placing"='15th'; |
## Task
Generate a SQL query to answer the following question:
`How many wins did Hobbs had a 15th finish at poles 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" text,
"wins" text,
"poles" text,
"podiums" text,
"points" text,
"final_placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins did Hobbs had a 15th finish at poles 0?`:
```sql
|
SELECT "points" FROM "career_summary" WHERE "series"='gp3 series' AND "podiums"='2'; |
## Task
Generate a SQL query to answer the following question:
`What are the points for the GP3 series with 2 podiums?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" text,
"wins" text,
"poles" text,
"podiums" text,
"points" text,
"final_placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the points for the GP3 series with 2 podiums?`:
```sql
|
SELECT "races" FROM "career_summary" WHERE "podiums"='2'; |
## Task
Generate a SQL query to answer the following question:
`Which races have #2 podiums?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" text,
"wins" text,
"poles" text,
"podiums" text,
"points" text,
"final_placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which races have #2 podiums?`:
```sql
|
SELECT "final_placing" FROM "career_summary" WHERE "season"=2009; |
## Task
Generate a SQL query to answer the following question:
`What was the 2009 final placing?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" text,
"wins" text,
"poles" text,
"podiums" text,
"points" text,
"final_placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the 2009 final placing?`:
```sql
|
SELECT "points" FROM "career_summary" WHERE "races"='7'; |
## Task
Generate a SQL query to answer the following question:
`What was the points with 7 races?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" text,
"wins" text,
"poles" text,
"podiums" text,
"points" text,
"final_placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the points with 7 races?`:
```sql
|
SELECT "venue" FROM "round_1" WHERE "home_team"='south melbourne'; |
## Task
Generate a SQL query to answer the following question:
`What venue had south melbourne as the home team?`
### 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 venue had south melbourne as the home team?`:
```sql
|
SELECT "venue" FROM "round_1" WHERE "away_team"='collingwood'; |
## Task
Generate a SQL query to answer the following question:
`What venue had collingwood as the away team?`
### 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 venue had collingwood as the away team?`:
```sql
|
SELECT "home_team_score" FROM "round_1" WHERE "home_team"='south melbourne'; |
## Task
Generate a SQL query to answer the following question:
`What was the home team score when south melbourne was the home team?`
### 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 was the home team score when south melbourne was the home team?`:
```sql
|
SELECT "date" FROM "round_1" WHERE "away_team"='melbourne'; |
## Task
Generate a SQL query to answer the following question:
`What day was south melbourne the away squad?`
### 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 day was south melbourne the away squad?`:
```sql
|
SELECT "position" FROM "achievements" WHERE "year">1998 AND "notes"='2:31:40'; |
## Task
Generate a SQL query to answer the following question:
`What position did he finish after 1998 and a note time of 2:31:40?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position did he finish after 1998 and a note time of 2:31:40?`:
```sql
|
SELECT "venue" FROM "achievements" WHERE "notes"='2:38:44'; |
## Task
Generate a SQL query to answer the following question:
`What venue featured a notes of 2:38:44?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What venue featured a notes of 2:38:44?`:
```sql
|
SELECT "date" FROM "schedule" WHERE "week">8 AND "attendance">'57,893' AND "opponent"='at atlanta falcons'; |
## Task
Generate a SQL query to answer the following question:
`What date in a week later than 8 had an attendance of more than 57,893, and a Opponent of at atlanta falcons?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What date in a week later than 8 had an attendance of more than 57,893, and a Opponent of at atlanta falcons?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "week">6 AND "result"='l 30β24'; |
## Task
Generate a SQL query to answer the following question:
`Who did they play against in a week after 6 and the result was l 30β24?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who did they play against in a week after 6 and the result was l 30β24?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "result"='w 31β0'; |
## Task
Generate a SQL query to answer the following question:
`What opponent has a Result of w 31β0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What opponent has a Result of w 31β0?`:
```sql
|
SELECT MAX("round") FROM "2005_new_england_patriots_draft_selectio" WHERE "position"='cornerback'; |
## Task
Generate a SQL query to answer the following question:
`During which round was the final cornerback drafted for the New England Patriots in 2005?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2005_new_england_patriots_draft_selectio" (
"round" real,
"overall" real,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `During which round was the final cornerback drafted for the New England Patriots in 2005?`:
```sql
|
SELECT MIN("best_score") FROM "highest_and_lowest_scoring_performances" WHERE "worst_dancer"='leeza gibbons' AND "worst_score"<15; |
## Task
Generate a SQL query to answer the following question:
`What dance was Leeza Gibbons the worst dancer for, receiving a score lower than 15?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_and_lowest_scoring_performances" (
"dance" text,
"best_dancer" text,
"best_score" real,
"worst_dancer" text,
"worst_score" real
);
### SQL
Given the database schema, here is the SQL query that answers `What dance was Leeza Gibbons the worst dancer for, receiving a score lower than 15?`:
```sql
|
SELECT SUM("worst_score") FROM "highest_and_lowest_scoring_performances" WHERE "best_dancer"='apolo anton ohno' AND "best_score">30; |
## Task
Generate a SQL query to answer the following question:
`What is the worst score for the dance that has Apolo Anton Ohno as the best dancer, and where his best score is larger than 30?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_and_lowest_scoring_performances" (
"dance" text,
"best_dancer" text,
"best_score" real,
"worst_dancer" text,
"worst_score" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the worst score for the dance that has Apolo Anton Ohno as the best dancer, and where his best score is larger than 30?`:
```sql
|
SELECT MAX("crowd") FROM "round_13" WHERE "away_team"='carlton'; |
## Task
Generate a SQL query to answer the following question:
`What is the biggest crowd when carlton is the away squad?`
### 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 is the biggest crowd when carlton is the away squad?`:
```sql
|
SELECT SUM("crowd") FROM "round_13" WHERE "away_team"='richmond'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of crowd(s) when richmond is the away squad?`
### 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 is the sum of crowd(s) when richmond is the away squad?`:
```sql
|
SELECT "home_team_score" FROM "round_13" WHERE "venue"='glenferrie oval'; |
## Task
Generate a SQL query to answer the following question:
`What is the home team's score in the game played 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 `What is the home team's score in the game played at glenferrie oval?`:
```sql
|
SELECT "res" FROM "mixed_martial_arts_record" WHERE "opponent"='nate mohr'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the event against Nate Mohr?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the event against Nate Mohr?`:
```sql
|
SELECT "home_team_score" FROM "round_2" WHERE "venue"='junction oval'; |
## Task
Generate a SQL query to answer the following question:
`When the VFL played Junction Oval what was the home team score?`
### 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 `When the VFL played Junction Oval what was the home team score?`:
```sql
|
SELECT "crowd" FROM "round_2" WHERE "away_team"='geelong'; |
## Task
Generate a SQL query to answer the following question:
`What was away team Geelong's crowd numbers?`
### 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 away team Geelong's crowd numbers?`:
```sql
|
SELECT "date" FROM "round_6" WHERE "home_team_score"='12.7 (79)'; |
## Task
Generate a SQL query to answer the following question:
`What date did the home team score 12.7 (79)?`
### 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 date did the home team score 12.7 (79)?`:
```sql
|
SELECT "date" FROM "round_6" WHERE "away_team"='fitzroy'; |
## Task
Generate a SQL query to answer the following question:
`What is the date they played against fitzroy?`
### 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 date they played against fitzroy?`:
```sql
|
SELECT "away_team" FROM "round_6" WHERE "home_team_score"='6.10 (46)'; |
## Task
Generate a SQL query to answer the following question:
`What was the team they played when the home team scored 6.10 (46)?`
### 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 the team they played when the home team scored 6.10 (46)?`:
```sql
|
SELECT SUM("crowd") FROM "round_6" WHERE "venue"='princes park'; |
## Task
Generate a SQL query to answer the following question:
`How large was the crowd when they played at 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 `How large was the crowd when they played at princes park?`:
```sql
|
SELECT "away_team" FROM "round_6" WHERE "away_team_score"='12.11 (83)'; |
## Task
Generate a SQL query to answer the following question:
`What was the away team that scored 12.11 (83)?`
### 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 the away team that scored 12.11 (83)?`:
```sql
|
SELECT "date" FROM "round_2" WHERE "home_team_score"='10.10 (70)'; |
## Task
Generate a SQL query to answer the following question:
`What day does the home team score 10.10 (70)?`
### 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 day does the home team score 10.10 (70)?`:
```sql
|
SELECT "away_team" FROM "round_2" WHERE "venue"='junction oval'; |
## Task
Generate a SQL query to answer the following question:
`Who is the away team at junction oval?`
### 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 `Who is the away team at junction oval?`:
```sql
|
SELECT "away_team_score" FROM "round_2" WHERE "venue"='princes park'; |
## Task
Generate a SQL query to answer the following question:
`What is the away team's score 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 is the away team's score at princes park?`:
```sql
|
SELECT MAX("pct_internet_users") FROM "internet_availability" WHERE "pct_growth_2000_2008"=1622; |
## Task
Generate a SQL query to answer the following question:
`What was the highest percentage of internet users a nation with a 1622% growth in 2000-2008 had?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "internet_availability" (
"nation" text,
"population_thousands" real,
"internet_subscriptions_2000_thousands_of_users" real,
"internet_subscriptions_2008_thousands_of_users" real,
"pct_growth_2000_2008" real,
"pct_internet_users" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest percentage of internet users a nation with a 1622% growth in 2000-2008 had?`:
```sql
|
SELECT "home_team" FROM "round_16" WHERE "away_team"='footscray'; |
## Task
Generate a SQL query to answer the following question:
`Who was the home team when Footscray was the away team?`
### 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 `Who was the home team when Footscray was the away team?`:
```sql
|
SELECT "away_team_score" FROM "round_16" WHERE "home_team_score"='20.15 (135)'; |
## Task
Generate a SQL query to answer the following question:
`Who was the away team when the home team scored 20.15 (135)?`
### 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 `Who was the away team when the home team scored 20.15 (135)?`:
```sql
|
SELECT "home_team" FROM "round_16" WHERE "away_team_score"='5.10 (40)'; |
## Task
Generate a SQL query to answer the following question:
`Who was the home team when the away team scored 5.10 (40)?`
### 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 `Who was the home team when the away team scored 5.10 (40)?`:
```sql
|
SELECT "home_team_score" FROM "round_16" WHERE "crowd">'20,000' AND "venue"='punt road oval'; |
## Task
Generate a SQL query to answer the following question:
`What was the home team's score at the game played at Punt Road Oval with a crowd over 20,000?`
### 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 home team's score at the game played at Punt Road Oval with a crowd over 20,000?`:
```sql
|
SELECT "date" FROM "exhibition_schedule" WHERE "opponent"='buffalo bills'; |
## Task
Generate a SQL query to answer the following question:
`What day did the team play the buffalo bills?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "exhibition_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What day did the team play the buffalo bills?`:
```sql
|
SELECT "bb_pop" FROM "1958_1963" WHERE "riaa"='g' AND "year"<1961; |
## Task
Generate a SQL query to answer the following question:
`What is the BB Pop for the song with RIAA of G that was in a year earlier than 1961?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1958_1963" (
"year" real,
"bb_pop" text,
"bb_cw" text,
"bb_rb" text,
"bb_el" text,
"cb_cw" text,
"riaa" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the BB Pop for the song with RIAA of G that was in a year earlier than 1961?`:
```sql
|
SELECT "name" FROM "top_goalscorers" WHERE "other"='3 (15)'; |
## Task
Generate a SQL query to answer the following question:
`Which player has an Other of 3 (15)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_goalscorers" (
"name" text,
"years" text,
"league_a" text,
"fa_cup" text,
"league_cup_b" text,
"other" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player has an Other of 3 (15)?`:
```sql
|
SELECT "name" FROM "21st_century" WHERE "time"='01:17:01'; |
## Task
Generate a SQL query to answer the following question:
`What Name has a Time of 01:17:01?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "21st_century" (
"date" text,
"time" text,
"epicenter" text,
"magnitude" text,
"fatalities" text,
"name" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Name has a Time of 01:17:01?`:
```sql
|
SELECT "magnitude" FROM "21st_century" WHERE "date"='may 28, 2004'; |
## Task
Generate a SQL query to answer the following question:
`What is the Magnitude on the Date May 28, 2004?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "21st_century" (
"date" text,
"time" text,
"epicenter" text,
"magnitude" text,
"fatalities" text,
"name" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Magnitude on the Date May 28, 2004?`:
```sql
|
SELECT "name" FROM "21st_century" WHERE "time"='01:56:52'; |
## Task
Generate a SQL query to answer the following question:
`What Name has a Time of 01:56:52?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "21st_century" (
"date" text,
"time" text,
"epicenter" text,
"magnitude" text,
"fatalities" text,
"name" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Name has a Time of 01:56:52?`:
```sql
|
SELECT "fatalities" FROM "21st_century" WHERE "epicenter"='mΔzandarΔn'; |
## Task
Generate a SQL query to answer the following question:
`What number of Fatalities did the Epicenter MΔzandarΔn have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "21st_century" (
"date" text,
"time" text,
"epicenter" text,
"magnitude" text,
"fatalities" text,
"name" text
);
### SQL
Given the database schema, here is the SQL query that answers `What number of Fatalities did the Epicenter MΔzandarΔn have?`:
```sql
|
SELECT "fatalities" FROM "21st_century" WHERE "time"='12:38:46'; |
## Task
Generate a SQL query to answer the following question:
`What number of Fatalties is associated with the Time of 12:38:46?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "21st_century" (
"date" text,
"time" text,
"epicenter" text,
"magnitude" text,
"fatalities" text,
"name" text
);
### SQL
Given the database schema, here is the SQL query that answers `What number of Fatalties is associated with the Time of 12:38:46?`:
```sql
|
SELECT "time" FROM "21st_century" WHERE "epicenter"='bam'; |
## Task
Generate a SQL query to answer the following question:
`What is the Time when the Epicenter was Bam?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "21st_century" (
"date" text,
"time" text,
"epicenter" text,
"magnitude" text,
"fatalities" text,
"name" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Time when the Epicenter was Bam?`:
```sql
|
SELECT "chief_judge" FROM "former_judges" WHERE "appointed_by"='clinton'; |
## Task
Generate a SQL query to answer the following question:
`Who did Clinton appoint as a Chief Judge?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_judges" (
"state" text,
"born_died" text,
"active_service" text,
"chief_judge" text,
"senior_status" text,
"appointed_by" text,
"reason_for_termination" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did Clinton appoint as a Chief Judge?`:
```sql
|
SELECT MIN("crowd") FROM "round_17" WHERE "away_team"='carlton'; |
## Task
Generate a SQL query to answer the following question:
`What was the smallest crowd for a Carlton away game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_17" (
"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 smallest crowd for a Carlton away game?`:
```sql
|
SELECT "res" FROM "mixed_martial_arts_record" WHERE "time"='1:13'; |
## Task
Generate a SQL query to answer the following question:
`What is the result when the time is 1:13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result when the time is 1:13?`:
```sql
|
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "time"='1:47'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent when the time was 1:47?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent when the time was 1:47?`:
```sql
|
SELECT "venue" FROM "round_14" WHERE "away_team"='south melbourne'; |
## Task
Generate a SQL query to answer the following question:
`What venue did South Melbourne play as the away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_14" (
"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 did South Melbourne play as the away team?`:
```sql
|
SELECT "home_team_score" FROM "round_14" WHERE "crowd">'19,115' AND "venue"='punt road oval'; |
## Task
Generate a SQL query to answer the following question:
`What was the home team's score at the match in front of 19,115 at Punt Road Oval?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_14" (
"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 home team's score at the match in front of 19,115 at Punt Road Oval?`:
```sql
|
SELECT "away_team_score" FROM "round_14" WHERE "venue"='victoria park'; |
## Task
Generate a SQL query to answer the following question:
`What was the away team's score in the match at Victoria Park?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_14" (
"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 away team's score in the match at Victoria Park?`:
```sql
|
SELECT "home_team" FROM "round_14" WHERE "crowd">'19,115' AND "away_team_score"='9.14 (68)'; |
## Task
Generate a SQL query to answer the following question:
`What was thome home team whose opponent scored 9.14 (68) in front of 19,115?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_14" (
"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 thome home team whose opponent scored 9.14 (68) in front of 19,115?`:
```sql
|
SELECT "position" FROM "1999_new_england_patriots_draft_selectio" WHERE "round"=7 AND "college"='kansas state'; |
## Task
Generate a SQL query to answer the following question:
`Which position has a Round of 7, and a College of kansas state?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1999_new_england_patriots_draft_selectio" (
"round" real,
"overall" real,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position has a Round of 7, and a College of kansas state?`:
```sql
|
SELECT COUNT("round") FROM "1999_new_england_patriots_draft_selectio" WHERE "overall">17 AND "position"='quarterback'; |
## Task
Generate a SQL query to answer the following question:
`How many rounds have an Overall larger than 17, and a Position of quarterback?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1999_new_england_patriots_draft_selectio" (
"round" real,
"overall" real,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rounds have an Overall larger than 17, and a Position of quarterback?`:
```sql
|
SELECT AVG("overall") FROM "1999_new_england_patriots_draft_selectio" WHERE "round"=1 AND "position"='center'; |
## Task
Generate a SQL query to answer the following question:
`Which average overall has a Round of 1, and a Position of center?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1999_new_england_patriots_draft_selectio" (
"round" real,
"overall" real,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which average overall has a Round of 1, and a Position of center?`:
```sql
|
SELECT "venue" FROM "round_10" WHERE "home_team"='north melbourne'; |
## Task
Generate a SQL query to answer the following question:
`Where did North Melbourne play as the home 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 `Where did North Melbourne play as the home team?`:
```sql
|
SELECT MAX("crowd") FROM "round_10" WHERE "venue"='mcg'; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance when VFL played MCG?`
### 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 was the attendance when VFL played MCG?`:
```sql
|
SELECT "home_team_score" FROM "round_1" WHERE "away_team_score"='10.10 (70)'; |
## Task
Generate a SQL query to answer the following question:
`What was the home team score when the away team scored 10.10 (70)?`
### 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 was the home team score when the away team scored 10.10 (70)?`:
```sql
|
SELECT "crowd" FROM "round_1" WHERE "away_team_score"='9.12 (66)'; |
## Task
Generate a SQL query to answer the following question:
`How many people were in the crowd when the away team scored 9.12 (66)?`
### 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 `How many people were in the crowd when the away team scored 9.12 (66)?`:
```sql
|
SELECT "away_team_score" FROM "round_1" WHERE "venue"='windy hill'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the away team when they played at Windy Hill?`
### 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 was the score of the away team when they played at Windy Hill?`:
```sql
|
SELECT "crowd" FROM "round_1" WHERE "away_team"='melbourne'; |
## Task
Generate a SQL query to answer the following question:
`How large was the crowd when the away team was 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 `How large was the crowd when the away team was melbourne?`:
```sql
|
SELECT COUNT("crowd") FROM "round_15" WHERE "venue"='glenferrie oval'; |
## Task
Generate a SQL query to answer the following question:
`How many people watched a Glenferrie Oval?`
### 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 `How many people watched a Glenferrie Oval?`:
```sql
|
SELECT "away_team_score" FROM "round_15" WHERE "home_team"='geelong'; |
## Task
Generate a SQL query to answer the following question:
`How faced Geelong at home?`
### 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 `How faced Geelong at home?`:
```sql
|
SELECT SUM("crowd") FROM "round_15" WHERE "away_team"='essendon'; |
## Task
Generate a SQL query to answer the following question:
`How many people watch Essendon as an away team?`
### 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 `How many people watch Essendon as an away team?`:
```sql
|
SELECT "home_team" FROM "round_15" WHERE "away_team"='south melbourne'; |
## Task
Generate a SQL query to answer the following question:
`Where did South Melbourne go to play a team at home?`
### 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 `Where did South Melbourne go to play a team at home?`:
```sql
|
SELECT "venue" FROM "round_15" WHERE "home_team_score"='9.9 (63)'; |
## Task
Generate a SQL query to answer the following question:
`Where did a home team score 9.9 (63)?`
### 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 `Where did a home team score 9.9 (63)?`:
```sql
|
SELECT "away_team_score" FROM "round_15" WHERE "away_team"='essendon'; |
## Task
Generate a SQL query to answer the following question:
`What is essendon's away team score?`
### 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 is essendon's away team score?`:
```sql
|
SELECT "home_team" FROM "round_15" WHERE "away_team_score"='11.15 (81)'; |
## Task
Generate a SQL query to answer the following question:
`Which home team has an away team score of 11.15 (81)?`
### 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 `Which home team has an away team score of 11.15 (81)?`:
```sql
|
SELECT "date" FROM "round_15" WHERE "away_team"='geelong'; |
## Task
Generate a SQL query to answer the following question:
`What is the date with geelong as Away team?`
### 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 is the date with geelong as Away team?`:
```sql
|
SELECT MAX("crowd") FROM "round_15" WHERE "venue"='arden street oval'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest crowd at arden street oval?`
### 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 is the highest crowd at arden street oval?`:
```sql
|
SELECT AVG("crowd") FROM "round_15" WHERE "away_team"='geelong'; |
## Task
Generate a SQL query to answer the following question:
`What is geelong's aberage crowd as Away Team?`
### 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 is geelong's aberage crowd as Away Team?`:
```sql
|
SELECT "date" FROM "round_6" WHERE "away_team"='north melbourne'; |
## Task
Generate a SQL query to answer the following question:
`What was the date of the game when North Melbourne was the away team?`
### 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 the date of the game when North Melbourne was the away team?`:
```sql
|
SELECT "venue" FROM "round_6" WHERE "home_team_score"='8.18 (66)'; |
## Task
Generate a SQL query to answer the following question:
`Where was the game held when the home team scored 8.18 (66)?`
### 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 `Where was the game held when the home team scored 8.18 (66)?`:
```sql
|
SELECT "away_team" FROM "round_6" WHERE "home_team_score"='16.16 (112)'; |
## Task
Generate a SQL query to answer the following question:
`Who was the away team when the home team scored 16.16 (112)?`
### 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 when the home team scored 16.16 (112)?`:
```sql
|
SELECT "team" FROM "race_1_results" WHERE "grid"=9; |
## Task
Generate a SQL query to answer the following question:
`What is the team with grid 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_1_results" (
"name" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the team with grid 9?`:
```sql
|
SELECT "team" FROM "race_1_results" WHERE "name"='garth tander'; |
## Task
Generate a SQL query to answer the following question:
`What team features garth tander?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_1_results" (
"name" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What team features garth tander?`:
```sql
|
SELECT "stages" FROM "marlboro_tour" WHERE "distance"='2,192 km'; |
## Task
Generate a SQL query to answer the following question:
`How many stages are in a distance of 2,192 km?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "marlboro_tour" (
"year" text,
"name" text,
"date" text,
"stages" text,
"distance" text,
"winner" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many stages are in a distance of 2,192 km?`:
```sql
|
SELECT "distance" FROM "marlboro_tour" WHERE "stages"='16' AND "year"='1997'; |
## Task
Generate a SQL query to answer the following question:
`How long was the 16 staged event in 1997?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "marlboro_tour" (
"year" text,
"name" text,
"date" text,
"stages" text,
"distance" text,
"winner" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `How long was the 16 staged event in 1997?`:
```sql
|
SELECT "time" FROM "marlboro_tour" WHERE "year"='1984'; |
## Task
Generate a SQL query to answer the following question:
`What was the winning time in 1984?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "marlboro_tour" (
"year" text,
"name" text,
"date" text,
"stages" text,
"distance" text,
"winner" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the winning time in 1984?`:
```sql
|
SELECT "winner" FROM "marlboro_tour" WHERE "stages"='17' AND "year"='1987'; |
## Task
Generate a SQL query to answer the following question:
`Who won the 17 staged event in 1987?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "marlboro_tour" (
"year" text,
"name" text,
"date" text,
"stages" text,
"distance" text,
"winner" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the 17 staged event in 1987?`:
```sql
|
SELECT "name" FROM "marlboro_tour" WHERE "year"='1988'; |
## Task
Generate a SQL query to answer the following question:
`Which event happened in 1988?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "marlboro_tour" (
"year" text,
"name" text,
"date" text,
"stages" text,
"distance" text,
"winner" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which event happened in 1988?`:
```sql
|
SELECT "city_location" FROM "races" WHERE "pole_position"='rick mears' AND "winning_driver"='rick mears'; |
## Task
Generate a SQL query to answer the following question:
`Where did Rick Mears win, after starting in Pole Position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "races" (
"race_name" text,
"circuit" text,
"city_location" text,
"date" text,
"pole_position" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did Rick Mears win, after starting in Pole Position?`:
```sql
|
SELECT "city_location" FROM "races" WHERE "race_name"='budweiser/g. i. joe''s 200'; |
## Task
Generate a SQL query to answer the following question:
`Where is the budweiser/g. i. joe's 200?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "races" (
"race_name" text,
"circuit" text,
"city_location" text,
"date" text,
"pole_position" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the budweiser/g. i. joe's 200?`:
```sql
|
SELECT "city_location" FROM "races" WHERE "pole_position"='emerson fittipaldi'; |
## Task
Generate a SQL query to answer the following question:
`Where is Emerson Fittipaldi starting in Pole position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "races" (
"race_name" text,
"circuit" text,
"city_location" text,
"date" text,
"pole_position" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is Emerson Fittipaldi starting in Pole position?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.