output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "week_4" FROM "scores" WHERE "week_3"='35.40'; |
## Task
Generate a SQL query to answer the following question:
`What is week 4 if week 3 is 35.40?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scores" (
"week_2" text,
"week_3" text,
"week_4" text,
"week_5" text,
"week_6" text,
"week_7" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is week 4 if week 3 is 35.40?`:
```sql
|
SELECT "week_7" FROM "scores" WHERE "week_3"='35.90'; |
## Task
Generate a SQL query to answer the following question:
`What is week 7 when week 3 is 35.90?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scores" (
"week_2" text,
"week_3" text,
"week_4" text,
"week_5" text,
"week_6" text,
"week_7" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is week 7 when week 3 is 35.90?`:
```sql
|
SELECT "week_6" FROM "scores" WHERE "week_7"='evicted' AND "week_4"='evicted' AND "week_3"='evicted' AND "week_2"='29.35'; |
## Task
Generate a SQL query to answer the following question:
`What is week 6 when week 7, week 4, and week 3 are evicted and week 2 29.35?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scores" (
"week_2" text,
"week_3" text,
"week_4" text,
"week_5" text,
"week_6" text,
"week_7" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is week 6 when week 7, week 4, and week 3 are evicted and week 2 29.35?`:
```sql
|
SELECT "week_5" FROM "scores" WHERE "week_6"='evicted' AND "week_2"='34.55'; |
## Task
Generate a SQL query to answer the following question:
`What is week 5 when week 6 is evicted, and week 2 is 34.55?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scores" (
"week_2" text,
"week_3" text,
"week_4" text,
"week_5" text,
"week_6" text,
"week_7" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is week 5 when week 6 is evicted, and week 2 is 34.55?`:
```sql
|
SELECT MIN("winner_s_share") FROM "winners" WHERE "year"=2011; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest Winner's share (¥) in 2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"country" text,
"score" text,
"purse" real,
"winner_s_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Winner's share (¥) in 2011?`:
```sql
|
SELECT SUM("purse") FROM "winners" WHERE "year">2012; |
## Task
Generate a SQL query to answer the following question:
`How much is the purse worth (¥) after 2012?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"country" text,
"score" text,
"purse" real,
"winner_s_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much is the purse worth (¥) after 2012?`:
```sql
|
SELECT "place" FROM "second_round" WHERE "score"='67-67=134'; |
## Task
Generate a SQL query to answer the following question:
`What place had a score of 67-67=134?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What place had a score of 67-67=134?`:
```sql
|
SELECT "country" FROM "second_round" WHERE "place"='t3' AND "score"='70-65=135'; |
## Task
Generate a SQL query to answer the following question:
`What country placed t3 with a score of 70-65=135?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country placed t3 with a score of 70-65=135?`:
```sql
|
SELECT "player" FROM "second_round" WHERE "country"='united states' AND "place"='t6' AND "score"='67-69=136'; |
## Task
Generate a SQL query to answer the following question:
`What player placed t6 for the United States with a score of 67-69=136?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player placed t6 for the United States with a score of 67-69=136?`:
```sql
|
SELECT "competition" FROM "matches" WHERE "round"='group a - match 1'; |
## Task
Generate a SQL query to answer the following question:
`What is Competition, when Round is "Group A - Match 1"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "matches" (
"competition" text,
"round" text,
"date_and_time" text,
"opponent_team" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Competition, when Round is "Group A - Match 1"?`:
```sql
|
SELECT "date_and_time" FROM "matches" WHERE "competition"='serie a' AND "result"='0-3'; |
## Task
Generate a SQL query to answer the following question:
`What is Date and Time, when Competition is "Serie A", and when Result is "0-3"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "matches" (
"competition" text,
"round" text,
"date_and_time" text,
"opponent_team" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date and Time, when Competition is "Serie A", and when Result is "0-3"?`:
```sql
|
SELECT "competition" FROM "matches" WHERE "round"='8 a'; |
## Task
Generate a SQL query to answer the following question:
`What is Competition, when Round is "8 A"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "matches" (
"competition" text,
"round" text,
"date_and_time" text,
"opponent_team" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Competition, when Round is "8 A"?`:
```sql
|
SELECT "city_of_license" FROM "am" WHERE "frequency">1380; |
## Task
Generate a SQL query to answer the following question:
`What is City of License, when Frequency is greater than 1380?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "am" (
"frequency" real,
"callsign" text,
"brand" text,
"city_of_license" text,
"type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is City of License, when Frequency is greater than 1380?`:
```sql
|
SELECT "brand" FROM "am" WHERE "frequency"=640; |
## Task
Generate a SQL query to answer the following question:
`What is Brand, when Frequency is "640"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "am" (
"frequency" real,
"callsign" text,
"brand" text,
"city_of_license" text,
"type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Brand, when Frequency is "640"?`:
```sql
|
SELECT AVG("frequency") FROM "am" WHERE "type"='norteño' AND "brand"='la cotorra'; |
## Task
Generate a SQL query to answer the following question:
`What is the average Frequency, when Type is "Norteño", and when Brand is "La Cotorra"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "am" (
"frequency" real,
"callsign" text,
"brand" text,
"city_of_license" text,
"type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Frequency, when Type is "Norteño", and when Brand is "La Cotorra"?`:
```sql
|
SELECT "type" FROM "am" WHERE "frequency"=1480; |
## Task
Generate a SQL query to answer the following question:
`What is Type, when Frequency is "1480"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "am" (
"frequency" real,
"callsign" text,
"brand" text,
"city_of_license" text,
"type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Type, when Frequency is "1480"?`:
```sql
|
SELECT SUM("frequency") FROM "am" WHERE "type"='christian pop'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of Frequency, when Type is "Christian Pop"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "am" (
"frequency" real,
"callsign" text,
"brand" text,
"city_of_license" text,
"type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Frequency, when Type is "Christian Pop"?`:
```sql
|
SELECT "type" FROM "am" WHERE "callsign"='xetam'; |
## Task
Generate a SQL query to answer the following question:
`What is the Type, when Callsign is "Xetam"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "am" (
"frequency" real,
"callsign" text,
"brand" text,
"city_of_license" text,
"type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Type, when Callsign is "Xetam"?`:
```sql
|
SELECT "chief_judge" FROM "former_judges" WHERE "appointed_by"='reagan category:articles with hcards'; |
## Task
Generate a SQL query to answer the following question:
`Which Chief Judge has Appointed by of reagan category:articles with hcards?`
### 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 `Which Chief Judge has Appointed by of reagan category:articles with hcards?`:
```sql
|
SELECT "senior_status" FROM "former_judges" WHERE "chief_judge"='—' AND "reason_for_termination"='death' AND "active_service"='1967–1983'; |
## Task
Generate a SQL query to answer the following question:
`Which Senior status has a Chief Judge of —, a Reason for termination of death, and Active service of 1967–1983?`
### 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 `Which Senior status has a Chief Judge of —, a Reason for termination of death, and Active service of 1967–1983?`:
```sql
|
SELECT "senior_status" FROM "former_judges" WHERE "appointed_by"='l. johnson category:articles with hcards' AND "born_died"='1918–2009'; |
## Task
Generate a SQL query to answer the following question:
`Which Senior status has Appointed by of l. johnson category:articles with hcards, and Born/Died of 1918–2009?`
### 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 `Which Senior status has Appointed by of l. johnson category:articles with hcards, and Born/Died of 1918–2009?`:
```sql
|
SELECT "chief_judge" FROM "former_judges" WHERE "active_service"='1873–1875'; |
## Task
Generate a SQL query to answer the following question:
`Which Chief Judge has Active service of 1873–1875?`
### 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 `Which Chief Judge has Active service of 1873–1875?`:
```sql
|
SELECT "reason_for_termination" FROM "former_judges" WHERE "appointed_by"='eisenhower category:articles with hcards'; |
## Task
Generate a SQL query to answer the following question:
`Which Reason for termination has Appointed by of eisenhower category:articles with hcards?`
### 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 `Which Reason for termination has Appointed by of eisenhower category:articles with hcards?`:
```sql
|
SELECT "senior_status" FROM "former_judges" WHERE "chief_judge"='1991–1995'; |
## Task
Generate a SQL query to answer the following question:
`Which Senior status has a Chief Judge of 1991–1995?`
### 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 `Which Senior status has a Chief Judge of 1991–1995?`:
```sql
|
SELECT "date" FROM "third_round_proper" WHERE "home_team"='wolverhampton wanderers'; |
## Task
Generate a SQL query to answer the following question:
`When did the Wolverhampton Wanderers play at home?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the Wolverhampton Wanderers play at home?`:
```sql
|
SELECT "notes" FROM "men" WHERE "year"=2004; |
## Task
Generate a SQL query to answer the following question:
`What are 2004's notes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men" (
"year" real,
"gold" text,
"silver" text,
"bronze" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are 2004's notes?`:
```sql
|
SELECT "year" FROM "men" WHERE "silver"='yuri omeltchenko'; |
## Task
Generate a SQL query to answer the following question:
`What year did Yuri Omeltchenko win Silver?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men" (
"year" real,
"gold" text,
"silver" text,
"bronze" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did Yuri Omeltchenko win Silver?`:
```sql
|
SELECT "silver" FROM "men" WHERE "year"=2000; |
## Task
Generate a SQL query to answer the following question:
`Who won Silver in 2000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men" (
"year" real,
"gold" text,
"silver" text,
"bronze" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won Silver in 2000?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "date"='april 12'; |
## Task
Generate a SQL query to answer the following question:
`What is the score 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,
"decision" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score on April 12?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "date"='april 5'; |
## Task
Generate a SQL query to answer the following question:
`What is the score on April 5?`
### 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,
"decision" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score on April 5?`:
```sql
|
SELECT "result" FROM "olympic_record" WHERE "matches"='6'; |
## Task
Generate a SQL query to answer the following question:
`What was the result when there were 6 matches?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "olympic_record" (
"year" text,
"result" text,
"matches" text,
"wins" text,
"draws" text,
"losses" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result when there were 6 matches?`:
```sql
|
SELECT "year" FROM "olympic_record" WHERE "result"='did not qualify'; |
## Task
Generate a SQL query to answer the following question:
`What year was the result did not qualify?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "olympic_record" (
"year" text,
"result" text,
"matches" text,
"wins" text,
"draws" text,
"losses" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the result did not qualify?`:
```sql
|
SELECT "result" FROM "olympic_record" WHERE "year"='2008'; |
## Task
Generate a SQL query to answer the following question:
`What was the result in 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "olympic_record" (
"year" text,
"result" text,
"matches" text,
"wins" text,
"draws" text,
"losses" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result in 2008?`:
```sql
|
SELECT "to_par" FROM "second_round" WHERE "score"='69-72=141' AND "player"='tim herron'; |
## Task
Generate a SQL query to answer the following question:
`What was the to par score for Tim Herron, who had a score of 69-72=141?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the to par score for Tim Herron, who had a score of 69-72=141?`:
```sql
|
SELECT "player" FROM "second_round" WHERE "score"='70-71=141'; |
## Task
Generate a SQL query to answer the following question:
`Which golfer finished with a score of 70-71=141?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which golfer finished with a score of 70-71=141?`:
```sql
|
SELECT "place" FROM "second_round" WHERE "to_par"='+1' AND "player"='adam scott'; |
## Task
Generate a SQL query to answer the following question:
`In what place did Adam Scott, who had a to par score of +1, finish?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what place did Adam Scott, who had a to par score of +1, finish?`:
```sql
|
SELECT "place" FROM "second_round" WHERE "score"='66-74=140'; |
## Task
Generate a SQL query to answer the following question:
`In what place did the golfer that scored 66-74=140 finish?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what place did the golfer that scored 66-74=140 finish?`:
```sql
|
SELECT "player" FROM "first_round" WHERE "place"='t2'; |
## Task
Generate a SQL query to answer the following question:
`Which player has a place of t2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player has a place of t2?`:
```sql
|
SELECT "score" FROM "first_round" WHERE "player"='nick faldo'; |
## Task
Generate a SQL query to answer the following question:
`What is the score for Nick Faldo?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score for Nick Faldo?`:
```sql
|
SELECT AVG("against") FROM "2010_ladder" WHERE "geelong_fl"='leopold' AND "wins">11; |
## Task
Generate a SQL query to answer the following question:
`What's the average against of Leopold with more than 11 wins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_ladder" (
"geelong_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the average against of Leopold with more than 11 wins?`:
```sql
|
SELECT SUM("wins") FROM "2010_ladder" WHERE "against"<1706 AND "geelong_fl"='leopold'; |
## Task
Generate a SQL query to answer the following question:
`How many total wins for Leopold that had fewer than 1706 against?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_ladder" (
"geelong_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many total wins for Leopold that had fewer than 1706 against?`:
```sql
|
SELECT MAX("draws") FROM "2010_ladder" WHERE "losses">6 AND "geelong_fl"='st josephs' AND "against"<1250; |
## Task
Generate a SQL query to answer the following question:
`What is the largest number of draws of St Josephs with losses greater than 6 and less than 1250 against?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_ladder" (
"geelong_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest number of draws of St Josephs with losses greater than 6 and less than 1250 against?`:
```sql
|
SELECT SUM("against") FROM "2010_ladder" WHERE "losses"=14 AND "byes">0; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of against when they had 14 losses and more than 0 byes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_ladder" (
"geelong_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of against when they had 14 losses and more than 0 byes?`:
```sql
|
SELECT "classification" FROM "exit_polling" WHERE "dennis_kucinich"='3%' AND "pct_of_all"='53%'; |
## Task
Generate a SQL query to answer the following question:
`What is Classification, when Dennis Kucinich is "3%", and when % of All is "53%"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "exit_polling" (
"classification" text,
"pct_of_all" text,
"john_kerry" text,
"john_edwards" text,
"dennis_kucinich" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Classification, when Dennis Kucinich is "3%", and when % of All is "53%"?`:
```sql
|
SELECT "dennis_kucinich" FROM "exit_polling" WHERE "pct_of_all"='53%'; |
## Task
Generate a SQL query to answer the following question:
`What is Dennis Kucinich, when % of All is "53%"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "exit_polling" (
"classification" text,
"pct_of_all" text,
"john_kerry" text,
"john_edwards" text,
"dennis_kucinich" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Dennis Kucinich, when % of All is "53%"?`:
```sql
|
SELECT "john_edwards" FROM "exit_polling" WHERE "john_kerry"='70%'; |
## Task
Generate a SQL query to answer the following question:
`What is John Edwards, when John Kerry is "70%"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "exit_polling" (
"classification" text,
"pct_of_all" text,
"john_kerry" text,
"john_edwards" text,
"dennis_kucinich" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is John Edwards, when John Kerry is "70%"?`:
```sql
|
SELECT "dennis_kucinich" FROM "exit_polling" WHERE "classification"='democrat'; |
## Task
Generate a SQL query to answer the following question:
`What is Dennis Kucinich, when Classification is "Democrat"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "exit_polling" (
"classification" text,
"pct_of_all" text,
"john_kerry" text,
"john_edwards" text,
"dennis_kucinich" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Dennis Kucinich, when Classification is "Democrat"?`:
```sql
|
SELECT "john_kerry" FROM "exit_polling" WHERE "john_edwards"='20%'; |
## Task
Generate a SQL query to answer the following question:
`What is John Kerry, when John Edwards is "20%"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "exit_polling" (
"classification" text,
"pct_of_all" text,
"john_kerry" text,
"john_edwards" text,
"dennis_kucinich" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is John Kerry, when John Edwards is "20%"?`:
```sql
|
SELECT "pct_of_all" FROM "exit_polling" WHERE "dennis_kucinich"='5%'; |
## Task
Generate a SQL query to answer the following question:
`What is % of All, when Dennis Kucinich is "5%"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "exit_polling" (
"classification" text,
"pct_of_all" text,
"john_kerry" text,
"john_edwards" text,
"dennis_kucinich" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is % of All, when Dennis Kucinich is "5%"?`:
```sql
|
SELECT "wind" FROM "men" WHERE "athlete"='robert emmiyan'; |
## Task
Generate a SQL query to answer the following question:
`What is Robert Emmiyan's Wind number?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men" (
"mark" text,
"wind" text,
"athlete" text,
"nationality" text,
"venue" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Robert Emmiyan's Wind number?`:
```sql
|
SELECT "athlete" FROM "men" WHERE "wind"='1.4'; |
## Task
Generate a SQL query to answer the following question:
`What athlete has a wind number of 1.4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men" (
"mark" text,
"wind" text,
"athlete" text,
"nationality" text,
"venue" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What athlete has a wind number of 1.4?`:
```sql
|
SELECT "mark" FROM "men" WHERE "wind"='2.0' AND "date"='april 2, 1994'; |
## Task
Generate a SQL query to answer the following question:
`What is the mark from April 2, 1994 with a wind number of 2.0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men" (
"mark" text,
"wind" text,
"athlete" text,
"nationality" text,
"venue" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the mark from April 2, 1994 with a wind number of 2.0?`:
```sql
|
SELECT "date" FROM "dfb_cup_appearances" WHERE "round"='second round'; |
## Task
Generate a SQL query to answer the following question:
`What is the date of the second round?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "dfb_cup_appearances" (
"season" text,
"round" text,
"date" text,
"home" text,
"away" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the second round?`:
```sql
|
SELECT "round" FROM "dfb_cup_appearances" WHERE "date"='26 august 1995'; |
## Task
Generate a SQL query to answer the following question:
`What is the round on 26 August 1995?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "dfb_cup_appearances" (
"season" text,
"round" text,
"date" text,
"home" text,
"away" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the round on 26 August 1995?`:
```sql
|
SELECT "round" FROM "dfb_cup_appearances" WHERE "date"='13 october 1984'; |
## Task
Generate a SQL query to answer the following question:
`What is the round played on 13 October 1984?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "dfb_cup_appearances" (
"season" text,
"round" text,
"date" text,
"home" text,
"away" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the round played on 13 October 1984?`:
```sql
|
SELECT "result" FROM "dfb_cup_appearances" WHERE "home"='ssv ulm 1846'; |
## Task
Generate a SQL query to answer the following question:
`What is the result for SSV ULM 1846?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "dfb_cup_appearances" (
"season" text,
"round" text,
"date" text,
"home" text,
"away" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result for SSV ULM 1846?`:
```sql
|
SELECT "transfer_window" FROM "out" WHERE "moving_to"='alianza atlético' AND "name"='v. zapata'; |
## Task
Generate a SQL query to answer the following question:
`What is the transfer window when moving to alianza atlético by the name of v. zapata?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "out" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the transfer window when moving to alianza atlético by the name of v. zapata?`:
```sql
|
SELECT "moving_to" FROM "out" WHERE "type"='loaned out' AND "name"='tragodara'; |
## Task
Generate a SQL query to answer the following question:
`Where is moving to the type loaned out under the name tragodara?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "out" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is moving to the type loaned out under the name tragodara?`:
```sql
|
SELECT "name" FROM "out" WHERE "moving_to"='atlético minero'; |
## Task
Generate a SQL query to answer the following question:
`What is the name when moving to atlético minero?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "out" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name when moving to atlético minero?`:
```sql
|
SELECT "type" FROM "out" WHERE "moving_to"='alianza atlético'; |
## Task
Generate a SQL query to answer the following question:
`what is the type movinig to alianza atlético?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "out" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the type movinig to alianza atlético?`:
```sql
|
SELECT "name" FROM "out" WHERE "moving_to"='atlético minero'; |
## Task
Generate a SQL query to answer the following question:
`what is the name moving to atlético minero?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "out" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the name moving to atlético minero?`:
```sql
|
SELECT "surface" FROM "doubles_25_10_15" WHERE "date"='15 august 2009'; |
## Task
Generate a SQL query to answer the following question:
`What is the surface on 15 August 2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_25_10_15" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the surface on 15 August 2009?`:
```sql
|
SELECT SUM("seats") FROM "government" WHERE "change"=-1 AND "party"='others' AND "pct_votes">0; |
## Task
Generate a SQL query to answer the following question:
`How many seats does the party of others have with a change of -1 and more than 0% votes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "government" (
"party" text,
"pct_votes" real,
"pct_change" real,
"seats" real,
"change" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many seats does the party of others have with a change of -1 and more than 0% votes?`:
```sql
|
SELECT MIN("seats") FROM "government" WHERE "pct_change"=-3.7 AND "pct_votes">4.7; |
## Task
Generate a SQL query to answer the following question:
`What are the fewest seats with a -3.7% change and more than 4.7% votes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "government" (
"party" text,
"pct_votes" real,
"pct_change" real,
"seats" real,
"change" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the fewest seats with a -3.7% change and more than 4.7% votes?`:
```sql
|
SELECT SUM("change") FROM "government" WHERE "pct_votes"<4.7 AND "seats">0; |
## Task
Generate a SQL query to answer the following question:
`What is the change number with fewer than 4.7% votes and more than 0 seats?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "government" (
"party" text,
"pct_votes" real,
"pct_change" real,
"seats" real,
"change" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the change number with fewer than 4.7% votes and more than 0 seats?`:
```sql
|
SELECT MIN("seats") FROM "government" WHERE "pct_votes"<5.4 AND "change">-1; |
## Task
Generate a SQL query to answer the following question:
`What are the fewest seats with fewer than 5.4% seats and more than -1 change?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "government" (
"party" text,
"pct_votes" real,
"pct_change" real,
"seats" real,
"change" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the fewest seats with fewer than 5.4% seats and more than -1 change?`:
```sql
|
SELECT "score_in_the_final" FROM "doubles_13_8_5" WHERE "partner"='olga lugina' AND "tournament"='poitiers , france itf $25,000'; |
## Task
Generate a SQL query to answer the following question:
`What was the score where Olga Lugina played in the Tournament of poitiers , france itf $25,000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_13_8_5" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score where Olga Lugina played in the Tournament of poitiers , france itf $25,000?`:
```sql
|
SELECT "surface" FROM "doubles_13_8_5" WHERE "partner"='ruxandra dragomir'; |
## Task
Generate a SQL query to answer the following question:
`What surface did Ruxandra Dragomir play on?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_13_8_5" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What surface did Ruxandra Dragomir play on?`:
```sql
|
SELECT "partner" FROM "doubles_13_8_5" WHERE "opponents_in_the_final"='lenka cenková kateřina šišková'; |
## Task
Generate a SQL query to answer the following question:
`Who had the opponent of Lenka Cenková kateřina šišková in the final?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_13_8_5" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the opponent of Lenka Cenková kateřina šišková in the final?`:
```sql
|
SELECT "tournament" FROM "doubles_13_8_5" WHERE "opponents_in_the_final"='els callens nancy feber'; |
## Task
Generate a SQL query to answer the following question:
`What tournament had an opponent of Els Callens Nancy Feber?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_13_8_5" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tournament had an opponent of Els Callens Nancy Feber?`:
```sql
|
SELECT "winning_driver" FROM "other_grands_prix" WHERE "winning_constructor"='mercer'; |
## Task
Generate a SQL query to answer the following question:
`What kind of Winning driver has a Winning constructor of mercer?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "other_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What kind of Winning driver has a Winning constructor of mercer?`:
```sql
|
SELECT "winning_driver" FROM "other_grands_prix" WHERE "winning_constructor"='mercedes' AND "name"='elgin trophy'; |
## Task
Generate a SQL query to answer the following question:
`Which Winning driver has a Winning constructor of mercedes, and a Name of elgin trophy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "other_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Winning driver has a Winning constructor of mercedes, and a Name of elgin trophy?`:
```sql
|
SELECT "report" FROM "other_grands_prix" WHERE "name"='tourist trophy'; |
## Task
Generate a SQL query to answer the following question:
`Name the Report of tourist trophy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "other_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Report of tourist trophy?`:
```sql
|
SELECT "winning_constructor" FROM "other_grands_prix" WHERE "date"='31 may' AND "circuit"='madonie'; |
## Task
Generate a SQL query to answer the following question:
`Name the Winning constructor on 31 may and a Circuit of madonie?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "other_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Winning constructor on 31 may and a Circuit of madonie?`:
```sql
|
SELECT "date" FROM "other_grands_prix" WHERE "winning_constructor"='mercedes' AND "circuit"='elgin'; |
## Task
Generate a SQL query to answer the following question:
`Name the Date of mercedes, and a Circuit of elgin?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "other_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Date of mercedes, and a Circuit of elgin?`:
```sql
|
SELECT "winning_driver" FROM "other_grands_prix" WHERE "winning_constructor"='mercedes' AND "date"='22 august'; |
## Task
Generate a SQL query to answer the following question:
`Name the Winning driver of mercedes on 22 august?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "other_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Winning driver of mercedes on 22 august?`:
```sql
|
SELECT "coach" FROM "members_clubs" WHERE "2007_2008_season"='6th'; |
## Task
Generate a SQL query to answer the following question:
`Which coach had a 2007-2008 season of 6th?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "members_clubs" (
"club" text,
"coach" text,
"city" text,
"stadium" text,
"2007_2008_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which coach had a 2007-2008 season of 6th?`:
```sql
|
SELECT "stadium" FROM "members_clubs" WHERE "coach"='rashid budaj'; |
## Task
Generate a SQL query to answer the following question:
`Which stadium did Rashid Budaj coach?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "members_clubs" (
"club" text,
"coach" text,
"city" text,
"stadium" text,
"2007_2008_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which stadium did Rashid Budaj coach?`:
```sql
|
SELECT "coach" FROM "members_clubs" WHERE "city"='al farwaniyah'; |
## Task
Generate a SQL query to answer the following question:
`Who coached for al farwaniyah?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "members_clubs" (
"club" text,
"coach" text,
"city" text,
"stadium" text,
"2007_2008_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who coached for al farwaniyah?`:
```sql
|
SELECT "coach" FROM "members_clubs" WHERE "club"='qadsia'; |
## Task
Generate a SQL query to answer the following question:
`Who was the coach for qadsia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "members_clubs" (
"club" text,
"coach" text,
"city" text,
"stadium" text,
"2007_2008_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the coach for qadsia?`:
```sql
|
SELECT "stadium" FROM "members_clubs" WHERE "club"='kuwait'; |
## Task
Generate a SQL query to answer the following question:
`Which stadium had the club Kuwait?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "members_clubs" (
"club" text,
"coach" text,
"city" text,
"stadium" text,
"2007_2008_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which stadium had the club Kuwait?`:
```sql
|
SELECT "score" FROM "singles" WHERE "year"='1990'; |
## Task
Generate a SQL query to answer the following question:
`What's the score in 1990?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"year" text,
"champion" text,
"runner_up" text,
"score" text,
"name" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the score in 1990?`:
```sql
|
SELECT "champion" FROM "singles" WHERE "name"='philips open' AND "runner_up"='javier sánchez'; |
## Task
Generate a SQL query to answer the following question:
`Who was the champion of the Philips Open with a runner-up of Javier Sánchez?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"year" text,
"champion" text,
"runner_up" text,
"score" text,
"name" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the champion of the Philips Open with a runner-up of Javier Sánchez?`:
```sql
|
SELECT "score" FROM "singles" WHERE "name"='nice international championships' AND "champion"='björn borg'; |
## Task
Generate a SQL query to answer the following question:
`What's the score of the Nice International Championships where Björn Borg was the champion?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"year" text,
"champion" text,
"runner_up" text,
"score" text,
"name" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the score of the Nice International Championships where Björn Borg was the champion?`:
```sql
|
SELECT "year" FROM "singles" WHERE "score"='6–2, 2–6, 5–7, 7–6, 8–6'; |
## Task
Generate a SQL query to answer the following question:
`What year had a score of 6–2, 2–6, 5–7, 7–6, 8–6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"year" text,
"champion" text,
"runner_up" text,
"score" text,
"name" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year had a score of 6–2, 2–6, 5–7, 7–6, 8–6?`:
```sql
|
SELECT "name" FROM "singles" WHERE "champion"='henrik sundström'; |
## Task
Generate a SQL query to answer the following question:
`What's the name when Henrik Sundström was champion?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"year" text,
"champion" text,
"runner_up" text,
"score" text,
"name" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the name when Henrik Sundström was champion?`:
```sql
|
SELECT "score" FROM "fourth_round_proper" WHERE "away_team"='bolton wanderers'; |
## Task
Generate a SQL query to answer the following question:
`When the away team was Bolton Wanderers, what was the score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the away team was Bolton Wanderers, what was the score?`:
```sql
|
SELECT "score" FROM "fourth_round_proper" WHERE "date"='30/01/1991' AND "away_team"='liverpool'; |
## Task
Generate a SQL query to answer the following question:
`On the date of 30/01/1991, when the away team was Liverpool, what was the score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `On the date of 30/01/1991, when the away team was Liverpool, what was the score?`:
```sql
|
SELECT "score" FROM "fourth_round_proper" WHERE "tie_no"='1'; |
## Task
Generate a SQL query to answer the following question:
`When the tie no was 1, what was the score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the tie no was 1, what was the score?`:
```sql
|
SELECT "score" FROM "fourth_round_proper" WHERE "home_team"='shrewsbury town'; |
## Task
Generate a SQL query to answer the following question:
`When the home team was Shrewsbury town, what was the score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the home team was Shrewsbury town, what was the score?`:
```sql
|
SELECT "tie_no" FROM "fourth_round_proper" WHERE "home_team"='woking'; |
## Task
Generate a SQL query to answer the following question:
`When the home team was Woking, what was the tie no?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the home team was Woking, what was the tie no?`:
```sql
|
SELECT "attendance" FROM "replays" WHERE "away_team"='cambridge city'; |
## Task
Generate a SQL query to answer the following question:
`How many people attended the game against away team Cambridge City?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "replays" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people attended the game against away team Cambridge City?`:
```sql
|
SELECT "home_team" FROM "replays" WHERE "away_team"='aylesbury vale'; |
## Task
Generate a SQL query to answer the following question:
`Who was the home team that played against Aylesbury Vale?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "replays" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team that played against Aylesbury Vale?`:
```sql
|
SELECT "home_team" FROM "replays" WHERE "tie_no"='44'; |
## Task
Generate a SQL query to answer the following question:
`Which home team has 44 ties?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "replays" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which home team has 44 ties?`:
```sql
|
SELECT "attendance" FROM "replays" WHERE "home_team"='witton albion'; |
## Task
Generate a SQL query to answer the following question:
`How many people attended the game with home team Witton Albion?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "replays" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people attended the game with home team Witton Albion?`:
```sql
|
SELECT "attendance" FROM "quarterfinals" WHERE "home_team"='billericay town'; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance at the Billericay Town home game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "quarterfinals" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance at the Billericay Town home game?`:
```sql
|
SELECT "tie_no" FROM "quarterfinals" WHERE "away_team"='ashford town (middx)'; |
## Task
Generate a SQL query to answer the following question:
`What was the tie number of the away game for Ashford Town (Middx)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "quarterfinals" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the tie number of the away game for Ashford Town (Middx)?`:
```sql
|
SELECT "attendance" FROM "quarterfinals" WHERE "home_team"='billericay town'; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance at the Billericay Town home game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "quarterfinals" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance at the Billericay Town home game?`:
```sql
|
SELECT "away_team" FROM "quarterfinals" WHERE "attendance"='81'; |
## Task
Generate a SQL query to answer the following question:
`Who was the away team at the game attended by 81?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "quarterfinals" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the away team at the game attended by 81?`:
```sql
|
SELECT "score" FROM "fifth_round_proper" WHERE "tie_no"='5'; |
## Task
Generate a SQL query to answer the following question:
`What score has a tie of 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What score has a tie of 5?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.