output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "service" FROM "canada" WHERE "network"='atn urdu'; |
## Task
Generate a SQL query to answer the following question:
`Which service does the network of atn urdu offer?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "canada" (
"network" text,
"origin_of_programming" text,
"language" text,
"genre" text,
"service" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which service does the network of atn urdu offer?`:
```sql
|
SELECT "origin_of_programming" FROM "canada" WHERE "genre"='general' AND "network"='ntv bangla' AND "service"='cogeco cable'; |
## Task
Generate a SQL query to answer the following question:
`Whose origin of Programming offers a general genre, a network of ntv bangla and a service of cogeco cable?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "canada" (
"network" text,
"origin_of_programming" text,
"language" text,
"genre" text,
"service" text
);
### SQL
Given the database schema, here is the SQL query that answers `Whose origin of Programming offers a general genre, a network of ntv bangla and a service of cogeco cable?`:
```sql
|
SELECT "service" FROM "canada" WHERE "language"='hindi' AND "genre"='general' AND "network"='zee tv'; |
## Task
Generate a SQL query to answer the following question:
`Which service has a hindi language, general genre and zee tv network?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "canada" (
"network" text,
"origin_of_programming" text,
"language" text,
"genre" text,
"service" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which service has a hindi language, general genre and zee tv network?`:
```sql
|
SELECT "network" FROM "canada" WHERE "origin_of_programming"='india' AND "genre"='general' AND "service"='bell fibe tv' AND "language"='tamil'; |
## Task
Generate a SQL query to answer the following question:
`Which network has an origina of Programming in India, a general genre, a service of bell fibe tv, and tamil as its language?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "canada" (
"network" text,
"origin_of_programming" text,
"language" text,
"genre" text,
"service" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which network has an origina of Programming in India, a general genre, a service of bell fibe tv, and tamil as its language?`:
```sql
|
SELECT "language" FROM "canada" WHERE "origin_of_programming"='india' AND "genre"='general' AND "network"='ptc punjabi' AND "service"='bell fibe tv'; |
## Task
Generate a SQL query to answer the following question:
`Which language has Programming from India, general genre, a network of ptc punjabi and bell fibe tv service?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "canada" (
"network" text,
"origin_of_programming" text,
"language" text,
"genre" text,
"service" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which language has Programming from India, general genre, a network of ptc punjabi and bell fibe tv service?`:
```sql
|
SELECT AVG("bronze") FROM "medal_table" WHERE "rank"<11 AND "nation"='trinidad and tobago' AND "total"<1; |
## Task
Generate a SQL query to answer the following question:
`What is the average number of bronzes when the rank is below 11 for trinidad and tobago with less than 1 total medal?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of bronzes when the rank is below 11 for trinidad and tobago with less than 1 total medal?`:
```sql
|
SELECT SUM("gold") FROM "medal_table" WHERE "silver"=1 AND "bronze"<2 AND "total"=1 AND "rank"<10; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of gold medal totals for nations with 1 silver, less than 2 bronze, and ranked below 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of gold medal totals for nations with 1 silver, less than 2 bronze, and ranked below 10?`:
```sql
|
SELECT "allegiance" FROM "line_officers" WHERE "name"='winfield scott'; |
## Task
Generate a SQL query to answer the following question:
`Who did Winfield Scott have an allegiance with?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "line_officers" (
"name" text,
"date_of_birth" text,
"actual_rank" text,
"appointment_date" text,
"allegiance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did Winfield Scott have an allegiance with?`:
```sql
|
SELECT COUNT("2013_population_july_est") FROM "listing" WHERE "population_density_km_2">14.1; |
## Task
Generate a SQL query to answer the following question:
`What was the July 2013 population estimate of the location which had a population density larger than 14.1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "listing" (
"rank" real,
"name" text,
"population_2011_census" real,
"percent_of_national_population" text,
"pct_growth_2006_11" text,
"land_area_km" real,
"population_density_km_2" real,
"house_of_commons_seats" real,
"house_of_commons_seats_pct" text,
"2013_population_july_est" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the July 2013 population estimate of the location which had a population density larger than 14.1?`:
```sql
|
SELECT MIN("rank") FROM "listing" WHERE "population_2011_census">'3,645,257' AND "house_of_commons_seats_pct"='11.7%' AND "2013_population_july_est">'4,581,978'; |
## Task
Generate a SQL query to answer the following question:
`What was the lowest rank of an area with a 2011 Census population larger than 3,645,257, a House of Commons seat percentage of 11.7% and a July 2013 population estimate over 4,581,978?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "listing" (
"rank" real,
"name" text,
"population_2011_census" real,
"percent_of_national_population" text,
"pct_growth_2006_11" text,
"land_area_km" real,
"population_density_km_2" real,
"house_of_commons_seats" real,
"house_of_commons_seats_pct" text,
"2013_population_july_est" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest rank of an area with a 2011 Census population larger than 3,645,257, a House of Commons seat percentage of 11.7% and a July 2013 population estimate over 4,581,978?`:
```sql
|
SELECT MAX("rank") FROM "listing" WHERE "population_density_km_2">5.7 AND "pct_growth_2006_11"='5.7%'; |
## Task
Generate a SQL query to answer the following question:
`What was the highest rank of an area with a population density larger than 5.7 and a 2006–2011 percentage growth of 5.7%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "listing" (
"rank" real,
"name" text,
"population_2011_census" real,
"percent_of_national_population" text,
"pct_growth_2006_11" text,
"land_area_km" real,
"population_density_km_2" real,
"house_of_commons_seats" real,
"house_of_commons_seats_pct" text,
"2013_population_july_est" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest rank of an area with a population density larger than 5.7 and a 2006–2011 percentage growth of 5.7%?`:
```sql
|
SELECT MIN("population_2011_census") FROM "listing" WHERE "land_area_km">'908,607.67'; |
## Task
Generate a SQL query to answer the following question:
`What was the lowest 2011 Census population of an area with a land area larger than 908,607.67 km²?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "listing" (
"rank" real,
"name" text,
"population_2011_census" real,
"percent_of_national_population" text,
"pct_growth_2006_11" text,
"land_area_km" real,
"population_density_km_2" real,
"house_of_commons_seats" real,
"house_of_commons_seats_pct" text,
"2013_population_july_est" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest 2011 Census population of an area with a land area larger than 908,607.67 km²?`:
```sql
|
SELECT "rider" FROM "1971_isle_of_man_junior_tt_350cc_final_s" WHERE "speed"='86.15mph'; |
## Task
Generate a SQL query to answer the following question:
`Which rider from the 1971 Isle of Man Junior TT 250cc final standings had a speed equal to 86.15mph?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1971_isle_of_man_junior_tt_350cc_final_s" (
"place" real,
"rider" text,
"country" text,
"machine" text,
"speed" text,
"time" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which rider from the 1971 Isle of Man Junior TT 250cc final standings had a speed equal to 86.15mph?`:
```sql
|
SELECT "rider" FROM "1971_isle_of_man_junior_tt_350cc_final_s" WHERE "points"=10; |
## Task
Generate a SQL query to answer the following question:
`Which rider had a points score equal to 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1971_isle_of_man_junior_tt_350cc_final_s" (
"place" real,
"rider" text,
"country" text,
"machine" text,
"speed" text,
"time" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which rider had a points score equal to 10?`:
```sql
|
SELECT "start" FROM "most_tries" WHERE "conv"='0' AND "pens"='0' AND "tries"='8'; |
## Task
Generate a SQL query to answer the following question:
`Which Start has a 0 Conv, 0 Pens and 8 Tries?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_tries" (
"player" text,
"span" text,
"start" text,
"tries" text,
"conv" text,
"pens" text,
"drop" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Start has a 0 Conv, 0 Pens and 8 Tries?`:
```sql
|
SELECT "player" FROM "most_tries" WHERE "pens"='0' AND "start"='12'; |
## Task
Generate a SQL query to answer the following question:
`Which Player has 0 Pens and 12 Starts?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_tries" (
"player" text,
"span" text,
"start" text,
"tries" text,
"conv" text,
"pens" text,
"drop" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Player has 0 Pens and 12 Starts?`:
```sql
|
SELECT "start" FROM "most_tries" WHERE "tries"='8' AND "conv"='0'; |
## Task
Generate a SQL query to answer the following question:
`Which Start has 8 Tries and 0 Convs?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_tries" (
"player" text,
"span" text,
"start" text,
"tries" text,
"conv" text,
"pens" text,
"drop" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Start has 8 Tries and 0 Convs?`:
```sql
|
SELECT "away_team" FROM "round_12" WHERE "venue"='victoria park'; |
## Task
Generate a SQL query to answer the following question:
`Who was the away team for the game at Victoria Park?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_12" (
"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 for the game at Victoria Park?`:
```sql
|
SELECT MIN("overall") FROM "nfl_draft" WHERE "round"=7; |
## Task
Generate a SQL query to answer the following question:
`What was round 7's lowest overall?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"overall" real,
"player" text,
"position" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was round 7's lowest overall?`:
```sql
|
SELECT "player" FROM "nfl_draft" WHERE "overall"<22; |
## Task
Generate a SQL query to answer the following question:
`Who had the smallest overall under 22?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"overall" real,
"player" text,
"position" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the smallest overall under 22?`:
```sql
|
SELECT "position" FROM "nfl_draft" WHERE "overall">22 AND "school_club_team"='cal state-los angeles'; |
## Task
Generate a SQL query to answer the following question:
`What was Cal State-Los Angeles' position with an Overall above 22?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"overall" real,
"player" text,
"position" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Cal State-Los Angeles' position with an Overall above 22?`:
```sql
|
SELECT "player" FROM "nfl_draft" WHERE "school_club_team"='memphis state'; |
## Task
Generate a SQL query to answer the following question:
`Who played for Memphis State?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"overall" real,
"player" text,
"position" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played for Memphis State?`:
```sql
|
SELECT MAX("crowd") FROM "round_17" WHERE "away_team"='st kilda'; |
## Task
Generate a SQL query to answer the following question:
`What is the largest crowd for the St Kilda 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 is the largest crowd for the St Kilda as the away team?`:
```sql
|
SELECT "crowd" FROM "round_17" WHERE "home_team"='essendon'; |
## Task
Generate a SQL query to answer the following question:
`What was the crowd size when Essendon was 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 the crowd size when Essendon was the home team?`:
```sql
|
SELECT "venue" FROM "round_17" WHERE "crowd">'20,000'; |
## Task
Generate a SQL query to answer the following question:
`Which venue had a crowd larger than 20,000?`
### 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 `Which venue had a crowd larger than 20,000?`:
```sql
|
SELECT "away_team" FROM "round_17" WHERE "venue"='lake oval'; |
## Task
Generate a SQL query to answer the following question:
`Which away team played 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 `Which away team played at Lake Oval?`:
```sql
|
SELECT "date" FROM "round_17" WHERE "crowd">'10,800' AND "home_team_score"='7.13 (55)'; |
## Task
Generate a SQL query to answer the following question:
`On what date was the crowd more numerous than 10,800 when the home team score was 7.13 (55)?`
### 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 `On what date was the crowd more numerous than 10,800 when the home team score was 7.13 (55)?`:
```sql
|
SELECT COUNT("crowd") FROM "round_17" WHERE "venue"='glenferrie oval'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of the crowd at Glenferrie 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 is the total number of the crowd at Glenferrie Oval?`:
```sql
|
SELECT "date" FROM "round_6" WHERE "venue"='western oval'; |
## Task
Generate a SQL query to answer the following question:
`The Western Oval venue has what date?`
### 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 `The Western Oval venue has what date?`:
```sql
|
SELECT "kickoff" FROM "regular_season" WHERE "opponent"='miami dolphins'; |
## Task
Generate a SQL query to answer the following question:
`What is the kickoff time for the Miami Dolphins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"kickoff" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the kickoff time for the Miami Dolphins?`:
```sql
|
SELECT "result" FROM "regular_season" WHERE "opponent"='new england patriots'; |
## Task
Generate a SQL query to answer the following question:
`What was the final of the New England Patriots game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"kickoff" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final of the New England Patriots game?`:
```sql
|
SELECT MAX("attendance") FROM "exhibition_schedule" WHERE "date"='august 10, 1963' AND "week">1; |
## Task
Generate a SQL query to answer the following question:
`What is the largest attendance on august 10, 1963, and a week larger than 1?`
### 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 is the largest attendance on august 10, 1963, and a week larger than 1?`:
```sql
|
SELECT "date" FROM "round_8" WHERE "away_team_score"='9.5 (59)'; |
## Task
Generate a SQL query to answer the following question:
`What date was the game when the away team scored 9.5 (59)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_8" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the game when the away team scored 9.5 (59)?`:
```sql
|
SELECT "venue" FROM "round_8" WHERE "home_team_score"='17.7 (109)'; |
## Task
Generate a SQL query to answer the following question:
`Where was the game played when the home team scored 17.7 (109)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_8" (
"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 played when the home team scored 17.7 (109)?`:
```sql
|
SELECT "away_team_score" FROM "round_8" WHERE "home_team"='south melbourne'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the away team when the home team was south melbourne?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_8" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the away team when the home team was south melbourne?`:
```sql
|
SELECT MIN("crowd") FROM "round_8" WHERE "venue"='princes park'; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest crowd at princes park?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_8" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest crowd at princes park?`:
```sql
|
SELECT MAX("rank") FROM "medal_table" WHERE "silver"=15 AND "total"<47; |
## Task
Generate a SQL query to answer the following question:
`What is the highest ranked nation with 15 silver medals and no more than 47 total?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest ranked nation with 15 silver medals and no more than 47 total?`:
```sql
|
SELECT MAX("rank_by_average") FROM "average" WHERE "average"=25.3 AND "number_of_dances">10; |
## Task
Generate a SQL query to answer the following question:
`What was the highest rank by average of a couple who had an average of 25.3 and had more than 10 dances?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "average" (
"rank_by_average" real,
"place" real,
"couple" text,
"total" real,
"number_of_dances" real,
"average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest rank by average of a couple who had an average of 25.3 and had more than 10 dances?`:
```sql
|
SELECT "example" FROM "verb_derivations_using_the_root_qet_the_" WHERE "type"='associative'; |
## Task
Generate a SQL query to answer the following question:
`What is the example with the associative type?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "verb_derivations_using_the_root_qet_the_" (
"type" text,
"suffix" text,
"valency_change" text,
"example" text,
"meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the example with the associative type?`:
```sql
|
SELECT "suffix" FROM "verb_derivations_using_the_root_qet_the_" WHERE "valency_change"='0' AND "type"='intensive'; |
## Task
Generate a SQL query to answer the following question:
`What is the Suffix of the intensive and valency change of 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "verb_derivations_using_the_root_qet_the_" (
"type" text,
"suffix" text,
"valency_change" text,
"example" text,
"meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Suffix of the intensive and valency change of 0?`:
```sql
|
SELECT "valency_change" FROM "verb_derivations_using_the_root_qet_the_" WHERE "type"='associative'; |
## Task
Generate a SQL query to answer the following question:
`WHat is the Valency change of associative type?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "verb_derivations_using_the_root_qet_the_" (
"type" text,
"suffix" text,
"valency_change" text,
"example" text,
"meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHat is the Valency change of associative type?`:
```sql
|
SELECT "home_team" FROM "round_6" WHERE "away_team"='hawthorn'; |
## Task
Generate a SQL query to answer the following question:
`Who is the home team when hawthorn is the away side?`
### 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 is the home team when hawthorn is the away side?`:
```sql
|
SELECT "away_team" FROM "round_6" WHERE "away_team_score"='9.8 (62)'; |
## Task
Generate a SQL query to answer the following question:
`Who is the away side that scores 9.8 (62)?`
### 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 is the away side that scores 9.8 (62)?`:
```sql
|
SELECT MAX("crowd") FROM "round_6" WHERE "away_team_score"='10.14 (74)'; |
## Task
Generate a SQL query to answer the following question:
`What is the largest crowd that has the away side scoring 10.14 (74)?`
### 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 largest crowd that has the away side scoring 10.14 (74)?`:
```sql
|
SELECT "away_team" FROM "round_3" WHERE "venue"='windy hill'; |
## Task
Generate a SQL query to answer the following question:
`What was the away team that played at Windy Hill?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_3" (
"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 played at Windy Hill?`:
```sql
|
SELECT "home_team" FROM "round_3" WHERE "away_team_score"='6.14 (50)'; |
## Task
Generate a SQL query to answer the following question:
`What was the home team at the match when the away team scored 6.14 (50)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_3" (
"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 at the match when the away team scored 6.14 (50)?`:
```sql
|
SELECT "away_team" FROM "round_3" WHERE "crowd">'30,000'; |
## Task
Generate a SQL query to answer the following question:
`What was the away team at the match where the crowd was larger than 30,000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_3" (
"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 at the match where the crowd was larger than 30,000?`:
```sql
|
SELECT "venue" FROM "round_9" WHERE "away_team_score"='11.20 (86)'; |
## Task
Generate a SQL query to answer the following question:
`What is the venue when the away side scores 11.20 (86)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue when the away side scores 11.20 (86)?`:
```sql
|
SELECT MIN("crowd") FROM "round_9" WHERE "away_team"='richmond'; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest crowd when richmond is away?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest crowd when richmond is away?`:
```sql
|
SELECT "home_team_score" FROM "round_9" WHERE "home_team"='melbourne'; |
## Task
Generate a SQL query to answer the following question:
`What is melbourne's home team score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_9" (
"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 melbourne's home team score?`:
```sql
|
SELECT "color_commentator_s" FROM "television_broadcasters" WHERE "year"=2008; |
## Task
Generate a SQL query to answer the following question:
`Who is the color commentator in 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "television_broadcasters" (
"year" real,
"network" text,
"host" text,
"pre_race_analyst" text,
"lap_by_lap" text,
"color_commentator_s" text,
"pit_reporters" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the color commentator in 2008?`:
```sql
|
SELECT "member" FROM "see_also" WHERE "party"='national' AND "electorate"='hinkler'; |
## Task
Generate a SQL query to answer the following question:
`Which member of the National Party is from the Hinkler electorate?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"member" text,
"party" text,
"electorate" text,
"state" text,
"in_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which member of the National Party is from the Hinkler electorate?`:
```sql
|
SELECT "member" FROM "see_also" WHERE "state"='sa' AND "electorate"='grey'; |
## Task
Generate a SQL query to answer the following question:
`Which member is from the state of SA and the grey electorate?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"member" text,
"party" text,
"electorate" text,
"state" text,
"in_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which member is from the state of SA and the grey electorate?`:
```sql
|
SELECT "state" FROM "see_also" WHERE "electorate"='petrie'; |
## Task
Generate a SQL query to answer the following question:
`In which state is the Petrie electorate?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"member" text,
"party" text,
"electorate" text,
"state" text,
"in_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which state is the Petrie electorate?`:
```sql
|
SELECT COUNT("round") FROM "2002_new_england_patriots_draft_selectio" WHERE "position"='tight end' AND "overall">21; |
## Task
Generate a SQL query to answer the following question:
`What round was the draft pick of tight end with an Overall larger than 21?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2002_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 `What round was the draft pick of tight end with an Overall larger than 21?`:
```sql
|
SELECT "player" FROM "2002_new_england_patriots_draft_selectio" WHERE "position"='wide receiver' AND "round"=7; |
## Task
Generate a SQL query to answer the following question:
`Which player is a wide receiver picked in round 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2002_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 player is a wide receiver picked in round 7?`:
```sql
|
SELECT "player" FROM "2002_new_england_patriots_draft_selectio" WHERE "position"='running back'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the running back pick?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2002_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 `What is the name of the running back pick?`:
```sql
|
SELECT "date" FROM "round_4" WHERE "venue"='victoria park'; |
## Task
Generate a SQL query to answer the following question:
`When did the VFL pay at Victoria Park?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the VFL pay at Victoria Park?`:
```sql
|
SELECT "date" FROM "round_4" WHERE "away_team"='south melbourne'; |
## Task
Generate a SQL query to answer the following question:
`When 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_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did South Melbourne play as the away team?`:
```sql
|
SELECT "away_team_score" FROM "round_4" WHERE "home_team"='essendon'; |
## Task
Generate a SQL query to answer the following question:
`What was home team Essendon's opponents score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_4" (
"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 home team Essendon's opponents score?`:
```sql
|
SELECT "date" FROM "round_15" WHERE "home_team_score"='9.18 (72)'; |
## Task
Generate a SQL query to answer the following question:
`What date did the home team have a score of 9.18 (72)?`
### 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 date did the home team have a score of 9.18 (72)?`:
```sql
|
SELECT "away_team_score" FROM "round_15" WHERE "home_team_score"='9.18 (72)'; |
## Task
Generate a SQL query to answer the following question:
`What did the away team score when the home team scored 9.18 (72)?`
### 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 did the away team score when the home team scored 9.18 (72)?`:
```sql
|
SELECT "year" FROM "best_100_chinese_motion_pictures" WHERE "title"='the love eterne'; |
## Task
Generate a SQL query to answer the following question:
`When was The Love Eterne released?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "best_100_chinese_motion_pictures" (
"rank" real,
"title" text,
"year" real,
"region" text,
"director_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was The Love Eterne released?`:
```sql
|
SELECT COUNT("heat") FROM "heats" WHERE "lane"=5 AND "rank">110 AND "nationality"='honduras'; |
## Task
Generate a SQL query to answer the following question:
`How many heats had 5 lanes and a rank less than 110 for the nationality of Honduras?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "heats" (
"rank" real,
"heat" real,
"lane" real,
"name" text,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many heats had 5 lanes and a rank less than 110 for the nationality of Honduras?`:
```sql
|
SELECT COUNT("heat") FROM "heats" WHERE "lane"=2 AND "rank">75 AND "nationality"='madagascar'; |
## Task
Generate a SQL query to answer the following question:
`How many heats had 2 lanes, a rank above 75, and nationality of Madagascar?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "heats" (
"rank" real,
"heat" real,
"lane" real,
"name" text,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many heats had 2 lanes, a rank above 75, and nationality of Madagascar?`:
```sql
|
SELECT SUM("heat") FROM "heats" WHERE "nationality"='macedonia' AND "rank"<114; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of every heat for the nationality of Macedonia with a rank less than 114?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "heats" (
"rank" real,
"heat" real,
"lane" real,
"name" text,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of every heat for the nationality of Macedonia with a rank less than 114?`:
```sql
|
SELECT MIN("heat") FROM "heats" WHERE "nationality"='germany' AND "lane">8; |
## Task
Generate a SQL query to answer the following question:
`What was the least number of heats with more than 8 lanes for the Nationality of Germany?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "heats" (
"rank" real,
"heat" real,
"lane" real,
"name" text,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the least number of heats with more than 8 lanes for the Nationality of Germany?`:
```sql
|
SELECT "home_team_score" FROM "round_12" WHERE "venue"='victoria park'; |
## Task
Generate a SQL query to answer the following question:
`When the VFL played Victoria Park 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_12" (
"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 Victoria Park what was the home team score?`:
```sql
|
SELECT "driver" FROM "race" WHERE "points">19 AND "grid">2; |
## Task
Generate a SQL query to answer the following question:
`What driver has over 19 points and a grid of over 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What driver has over 19 points and a grid of over 2?`:
```sql
|
SELECT "away_team_score" FROM "round_14" WHERE "home_team"='geelong'; |
## Task
Generate a SQL query to answer the following question:
`What was the score for the away team when geelong was the home 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 was the score for the away team when geelong was the home team?`:
```sql
|
SELECT "home_team_score" FROM "round_14" WHERE "away_team"='footscray'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the home team when they played footscray?`
### 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 score of the home team when they played footscray?`:
```sql
|
SELECT "venue" FROM "round_14" WHERE "away_team_score"='9.14 (68)'; |
## Task
Generate a SQL query to answer the following question:
`Where was the game played when the away team scored 9.14 (68)?`
### 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 `Where was the game played when the away team scored 9.14 (68)?`:
```sql
|
SELECT "home_team_score" FROM "round_14" WHERE "home_team"='essendon'; |
## Task
Generate a SQL query to answer the following question:
`What was the score for the home team of essendon?`
### 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 score for the home team of essendon?`:
```sql
|
SELECT "home_team_score" FROM "round_16" WHERE "home_team"='essendon'; |
## Task
Generate a SQL query to answer the following question:
`What was the score for the Essendon home 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 `What was the score for the Essendon home team?`:
```sql
|
SELECT MIN("crowd") FROM "round_16" WHERE "home_team"='richmond'; |
## Task
Generate a SQL query to answer the following question:
`What was the smallest crowd for the Richmond home 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 `What was the smallest crowd for the Richmond home team?`:
```sql
|
SELECT MAX("crowd") FROM "round_16" WHERE "venue"='brunswick street oval'; |
## Task
Generate a SQL query to answer the following question:
`What was the largest crowd at the Brunswick Street Oval?`
### 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 largest crowd at the Brunswick Street Oval?`:
```sql
|
SELECT "home_team" FROM "round_15" WHERE "venue"='windy hill'; |
## Task
Generate a SQL query to answer the following question:
`Who was the home team when VFL played at Windy Hill?`
### 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 `Who was the home team when VFL played at Windy Hill?`:
```sql
|
SELECT SUM("crowd") FROM "round_15" WHERE "venue"='glenferrie oval'; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance when the VFL played 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 `What was the attendance when the VFL played Glenferrie Oval?`:
```sql
|
SELECT AVG("crowd") FROM "round_15" WHERE "away_team"='north melbourne'; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance 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_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 was the attendance when North Melbourne was the away team?`:
```sql
|
SELECT "date" FROM "round_15" WHERE "home_team"='essendon'; |
## Task
Generate a SQL query to answer the following question:
`When did Essendon play as the home 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 `When did Essendon play as the home team?`:
```sql
|
SELECT "approximate_age" FROM "the_stages" WHERE "virtues"='wisdom'; |
## Task
Generate a SQL query to answer the following question:
`Can you give me the age of the Virtues of Wisdom?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_stages" (
"approximate_age" text,
"virtues" text,
"psycho_social_crisis" text,
"significant_relationship" text,
"existential_question_not_in_citation_given" text,
"examples" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you give me the age of the Virtues of Wisdom?`:
```sql
|
SELECT "virtues" FROM "the_stages" WHERE "psycho_social_crisis"='intimacy vs. isolation'; |
## Task
Generate a SQL query to answer the following question:
`What Virtue looks at the intimacy vs. isolation crisis?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_stages" (
"approximate_age" text,
"virtues" text,
"psycho_social_crisis" text,
"significant_relationship" text,
"existential_question_not_in_citation_given" text,
"examples" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Virtue looks at the intimacy vs. isolation crisis?`:
```sql
|
SELECT "approximate_age" FROM "the_stages" WHERE "significant_relationship"='family'; |
## Task
Generate a SQL query to answer the following question:
`Can you give me the age of the Significant Relationship of Family?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_stages" (
"approximate_age" text,
"virtues" text,
"psycho_social_crisis" text,
"significant_relationship" text,
"existential_question_not_in_citation_given" text,
"examples" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you give me the age of the Significant Relationship of Family?`:
```sql
|
SELECT "virtues" FROM "the_stages" WHERE "significant_relationship"='parents'; |
## Task
Generate a SQL query to answer the following question:
`The Significant Relationship of Parents belongs with what Virtue?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_stages" (
"approximate_age" text,
"virtues" text,
"psycho_social_crisis" text,
"significant_relationship" text,
"existential_question_not_in_citation_given" text,
"examples" text
);
### SQL
Given the database schema, here is the SQL query that answers `The Significant Relationship of Parents belongs with what Virtue?`:
```sql
|
SELECT "away_team" FROM "round_18" WHERE "venue"='windy hill'; |
## Task
Generate a SQL query to answer the following question:
`Who is the away side at windy hill?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the away side at windy hill?`:
```sql
|
SELECT "home_team" FROM "round_18" WHERE "away_team_score"='11.15 (81)'; |
## Task
Generate a SQL query to answer the following question:
`Who is the home side when the away side scores 11.15 (81)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the home side when the away side scores 11.15 (81)?`:
```sql
|
SELECT COUNT("overall") FROM "nfl_draft" WHERE "player"='fred hoaglin'; |
## Task
Generate a SQL query to answer the following question:
`How many drafts featured fred hoaglin?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"overall" real,
"player" text,
"position" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many drafts featured fred hoaglin?`:
```sql
|
SELECT "round" FROM "nfl_draft" WHERE "school_club_team"='delta st.'; |
## Task
Generate a SQL query to answer the following question:
`What round did the player from delta st. get picked?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"overall" real,
"player" text,
"position" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round did the player from delta st. get picked?`:
```sql
|
SELECT MAX("overall") FROM "nfl_draft" WHERE "round"=16; |
## Task
Generate a SQL query to answer the following question:
`What is the highest overall number for someone from round 16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"overall" real,
"player" text,
"position" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest overall number for someone from round 16?`:
```sql
|
SELECT AVG("crowd") FROM "round_15" WHERE "home_team"='melbourne'; |
## Task
Generate a SQL query to answer the following question:
`What was the average crowd size when Melbourne was the home 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 was the average crowd size when Melbourne was the home team?`:
```sql
|
SELECT "away_team_score" FROM "round_15" WHERE "away_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_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 was North Melbourne's score when they were the home team?`:
```sql
|
SELECT "9th_position" FROM "history" WHERE "10th_position"='rabat ajax'; |
## Task
Generate a SQL query to answer the following question:
`What is in the ninth position where the tenth position is rabat ajax?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "history" (
"year" text,
"1st_position" text,
"2nd_position" text,
"9th_position" text,
"10th_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is in the ninth position where the tenth position is rabat ajax?`:
```sql
|
SELECT "year" FROM "history" WHERE "10th_position"='xghajra'; |
## Task
Generate a SQL query to answer the following question:
`In what year is the tenth position xghajra?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "history" (
"year" text,
"1st_position" text,
"2nd_position" text,
"9th_position" text,
"10th_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what year is the tenth position xghajra?`:
```sql
|
SELECT "year" FROM "history" WHERE "9th_position"='balzan'; |
## Task
Generate a SQL query to answer the following question:
`In what year is the 9th position balzan?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "history" (
"year" text,
"1st_position" text,
"2nd_position" text,
"9th_position" text,
"10th_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what year is the 9th position balzan?`:
```sql
|
SELECT "1st_position" FROM "history" WHERE "10th_position"='gozo'; |
## Task
Generate a SQL query to answer the following question:
`Where there is a tenth position of gozo, what is the first position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "history" (
"year" text,
"1st_position" text,
"2nd_position" text,
"9th_position" text,
"10th_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where there is a tenth position of gozo, what is the first position?`:
```sql
|
SELECT "year" FROM "history" WHERE "9th_position"='rabat ajax'; |
## Task
Generate a SQL query to answer the following question:
`In what year is the 9th position rabat ajax?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "history" (
"year" text,
"1st_position" text,
"2nd_position" text,
"9th_position" text,
"10th_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what year is the 9th position rabat ajax?`:
```sql
|
SELECT "away_team_score" FROM "round_10" WHERE "away_team"='hawthorn'; |
## Task
Generate a SQL query to answer the following question:
`What was Hawthorn's score as the away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_10" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Hawthorn's score as the away team?`:
```sql
|
SELECT "away_team" FROM "round_10" WHERE "away_team_score"='7.6 (48)'; |
## Task
Generate a SQL query to answer the following question:
`Who was the away team that scored 7.6 (48)?`
### 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 `Who was the away team that scored 7.6 (48)?`:
```sql
|
SELECT "away_team_score" FROM "round_10" WHERE "venue"='lake oval'; |
## Task
Generate a SQL query to answer the following question:
`Who was the away team at the game at Lake Oval?`
### 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 `Who was the away team at the game at Lake Oval?`:
```sql
|
SELECT "home_team" FROM "round_10" WHERE "home_team_score"='8.7 (55)'; |
## Task
Generate a SQL query to answer the following question:
`Who was the home team that scored 8.7 (55)?`
### 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 `Who was the home team that scored 8.7 (55)?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.