output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT COUNT("new_pageant") FROM "replaced_pageants" WHERE "country_territory"='Aruba'; |
## Task
Generate a SQL query to answer the following question:
`How many new pageants does Aruba have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "replaced_pageants" (
"country_territory" text,
"former_pageant" text,
"last_competed" real,
"new_pageant" text,
"franchise_since" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many new pageants does Aruba have?`:
```sql
|
SELECT "new_pageant" FROM "replaced_pageants" WHERE "country_territory"='Spain'; |
## Task
Generate a SQL query to answer the following question:
`which is the new pageant from spain?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "replaced_pageants" (
"country_territory" text,
"former_pageant" text,
"last_competed" real,
"new_pageant" text,
"franchise_since" real
);
### SQL
Given the database schema, here is the SQL query that answers `which is the new pageant from spain?`:
```sql
|
SELECT "away_team" FROM "round_16" WHERE "home_team"='Carlton'; |
## Task
Generate a SQL query to answer the following question:
`Who was the away team when Carlton was the 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,
"ground" text,
"crowd" real,
"date" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the away team when Carlton was the home team?`:
```sql
|
SELECT COUNT("team") FROM "argentine_clubs_in_international_competi" WHERE "conmebol_1996"='did not qualify'; |
## Task
Generate a SQL query to answer the following question:
`what is the number of teams where conmebol 1996 did not qualify?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "argentine_clubs_in_international_competi" (
"team" text,
"intercontinental" text,
"recopa_1996" text,
"supercopa_1996" text,
"conmebol_1996" text,
"copa_libertadores_1997" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the number of teams where conmebol 1996 did not qualify?`:
```sql
|
SELECT "copa_libertadores_1997" FROM "argentine_clubs_in_international_competi" WHERE "team"='Racing Club'; |
## Task
Generate a SQL query to answer the following question:
`what is the racing club where copa libertadores 1997?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "argentine_clubs_in_international_competi" (
"team" text,
"intercontinental" text,
"recopa_1996" text,
"supercopa_1996" text,
"conmebol_1996" text,
"copa_libertadores_1997" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the racing club where copa libertadores 1997?`:
```sql
|
SELECT "copa_libertadores_1997" FROM "argentine_clubs_in_international_competi" WHERE "supercopa_1996"='QF'; |
## Task
Generate a SQL query to answer the following question:
`what is th copa libertadores 1997 is qf?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "argentine_clubs_in_international_competi" (
"team" text,
"intercontinental" text,
"recopa_1996" text,
"supercopa_1996" text,
"conmebol_1996" text,
"copa_libertadores_1997" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is th copa libertadores 1997 is qf?`:
```sql
|
SELECT MAX("crowd") FROM "round_19" WHERE "ground"='SCG'; |
## Task
Generate a SQL query to answer the following question:
`What's the maximum crowd when scg is the ground?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_19" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the maximum crowd when scg is the ground?`:
```sql
|
SELECT "away_team" FROM "round_19" WHERE "away_team_score"='5.11 (41)'; |
## Task
Generate a SQL query to answer the following question:
`What are the away teams when they scored 5.11 (41)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_19" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the away teams when they scored 5.11 (41)?`:
```sql
|
SELECT "ground" FROM "round_19" WHERE "away_team_score"='6.9 (45)'; |
## Task
Generate a SQL query to answer the following question:
`What are the ground when the away team scored 6.9 (45)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_19" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the ground when the away team scored 6.9 (45)?`:
```sql
|
SELECT "ground" FROM "round_19" WHERE "crowd"=19929; |
## Task
Generate a SQL query to answer the following question:
`What are the ground where the crowd totals 19929?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_19" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the ground where the crowd totals 19929?`:
```sql
|
SELECT "home_team" FROM "round_18" WHERE "ground"='Manuka Oval'; |
## Task
Generate a SQL query to answer the following question:
`Name the home team for manuka oval`
### 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,
"ground" text,
"crowd" real,
"date" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the home team for manuka oval`:
```sql
|
SELECT "away_team_score" FROM "round_18" WHERE "away_team"='Richmond'; |
## Task
Generate a SQL query to answer the following question:
`Name the away team score for richmond`
### 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,
"ground" text,
"crowd" real,
"date" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the away team score for richmond`:
```sql
|
SELECT "report" FROM "round_22" WHERE "home_team"='North Melbourne'; |
## Task
Generate a SQL query to answer the following question:
`Who made the report when the home team is north Melbourne?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_22" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who made the report when the home team is north Melbourne?`:
```sql
|
SELECT "home_team" FROM "round_22" WHERE "away_team"='Richmond'; |
## Task
Generate a SQL query to answer the following question:
`Who played Richmond at home?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_22" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played Richmond at home?`:
```sql
|
SELECT "home_team" FROM "round_22" WHERE "ground"='AAMI Stadium'; |
## Task
Generate a SQL query to answer the following question:
`Who has the home ground Aami stadium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_22" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has the home ground Aami stadium?`:
```sql
|
SELECT "candidates" FROM "south_carolina" WHERE "incumbent"='D. Wyatt Aiken'; |
## Task
Generate a SQL query to answer the following question:
`Who were all candidate when incumbent was D. Wyatt Aiken?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "south_carolina" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were all candidate when incumbent was D. Wyatt Aiken?`:
```sql
|
SELECT COUNT("incumbent") FROM "south_carolina" WHERE "district"='South Carolina 5'; |
## Task
Generate a SQL query to answer the following question:
`How many incumbents for the district of South Carolina 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "south_carolina" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many incumbents for the district of South Carolina 5?`:
```sql
|
SELECT "first_elected" FROM "south_carolina" WHERE "incumbent"='John J. Hemphill'; |
## Task
Generate a SQL query to answer the following question:
`Who was everyone first elected when incumbent was John J. Hemphill?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "south_carolina" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was everyone first elected when incumbent was John J. Hemphill?`:
```sql
|
SELECT "mixed_doubles" FROM "juniors" WHERE "girls_singles"='Lindaweni Fanetri'; |
## Task
Generate a SQL query to answer the following question:
`When the girls singles is lindaweni fanetri what is the mixed doubled?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "juniors" (
"year" real,
"boys_singles" text,
"girls_singles" text,
"boys_doubles" text,
"girls_doubles" text,
"mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the girls singles is lindaweni fanetri what is the mixed doubled?`:
```sql
|
SELECT "boys_doubles" FROM "juniors" WHERE "girls_doubles"='Ayu Pratiwi Anggi Widia'; |
## Task
Generate a SQL query to answer the following question:
`When the girls doubles is ayu pratiwi anggi widia what is the boys doubles?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "juniors" (
"year" real,
"boys_singles" text,
"girls_singles" text,
"boys_doubles" text,
"girls_doubles" text,
"mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the girls doubles is ayu pratiwi anggi widia what is the boys doubles?`:
```sql
|
SELECT MAX("year") FROM "juniors" WHERE "mixed_doubles"='Didit Juang Indrianto Yayu Rahayu'; |
## Task
Generate a SQL query to answer the following question:
`When mixed doubles is didit juang indrianto yayu rahayu what is the most current year?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "juniors" (
"year" real,
"boys_singles" text,
"girls_singles" text,
"boys_doubles" text,
"girls_doubles" text,
"mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `When mixed doubles is didit juang indrianto yayu rahayu what is the most current year?`:
```sql
|
SELECT "boys_singles" FROM "juniors" WHERE "mixed_doubles"='Danny Bawa Chrisnanta Debby Susanto'; |
## Task
Generate a SQL query to answer the following question:
`When mixed doubles is danny bawa chrisnanta debby susanto what is the boys singles?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "juniors" (
"year" real,
"boys_singles" text,
"girls_singles" text,
"boys_doubles" text,
"girls_doubles" text,
"mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `When mixed doubles is danny bawa chrisnanta debby susanto what is the boys singles?`:
```sql
|
SELECT "mixed_doubles" FROM "juniors" WHERE "girls_doubles"='Anneke Feinya Agustin Wenny Setiawati'; |
## Task
Generate a SQL query to answer the following question:
`When girls doubles is anneke feinya agustin wenny setiawati what is the mixed doubles?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "juniors" (
"year" real,
"boys_singles" text,
"girls_singles" text,
"boys_doubles" text,
"girls_doubles" text,
"mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `When girls doubles is anneke feinya agustin wenny setiawati what is the mixed doubles?`:
```sql
|
SELECT COUNT("publisher_s") FROM "table1_14325653_2" WHERE "video_game"='Flushed Away'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of publishers for flushed away`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14325653_2" (
"year_ceremony" text,
"video_game" text,
"publisher_s" text,
"platform_s_a" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of publishers for flushed away`:
```sql
|
SELECT "publisher_s" FROM "table1_14325653_2" WHERE "video_game"='Resident Evil 4'; |
## Task
Generate a SQL query to answer the following question:
`Name the publisher for resident evil 4`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14325653_2" (
"year_ceremony" text,
"video_game" text,
"publisher_s" text,
"platform_s_a" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the publisher for resident evil 4`:
```sql
|
SELECT MAX("totalnum") FROM "table1_14330096_4"; |
## Task
Generate a SQL query to answer the following question:
`What is the highest total number?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14330096_4" (
"totalnum" real,
"seriesnum" real,
"title" text,
"writer" text,
"director" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest total number?`:
```sql
|
SELECT "totalnum" FROM "table1_14330096_4" WHERE "director"='Roger Goldby'; |
## Task
Generate a SQL query to answer the following question:
`How many of the episodes have Roger Goldby as the director?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14330096_4" (
"totalnum" real,
"seriesnum" real,
"title" text,
"writer" text,
"director" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many of the episodes have Roger Goldby as the director?`:
```sql
|
SELECT "title" FROM "table1_14330096_4" WHERE "director"='Patrick Lau' AND "writer"='Lisa Holdsworth'; |
## Task
Generate a SQL query to answer the following question:
`Which episodes have Patrick Lau as the director and Lisa Holdsworth as the writer?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14330096_4" (
"totalnum" real,
"seriesnum" real,
"title" text,
"writer" text,
"director" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which episodes have Patrick Lau as the director and Lisa Holdsworth as the writer?`:
```sql
|
SELECT MIN("accounting_closure_date") FROM "current_agr_reactors" WHERE "agr_power_station"='Hunterston B'; |
## Task
Generate a SQL query to answer the following question:
`What is the Closure date of Hunterston B`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_agr_reactors" (
"agr_power_station" text,
"net_m_we" real,
"construction_started" real,
"connected_to_grid" real,
"commercial_operation" real,
"accounting_closure_date" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Closure date of Hunterston B`:
```sql
|
SELECT COUNT("connected_to_grid") FROM "current_agr_reactors" WHERE "agr_power_station"='Heysham 2'; |
## Task
Generate a SQL query to answer the following question:
`How many power stations are connected to grid at Heysham 2`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_agr_reactors" (
"agr_power_station" text,
"net_m_we" real,
"construction_started" real,
"connected_to_grid" real,
"commercial_operation" real,
"accounting_closure_date" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many power stations are connected to grid at Heysham 2`:
```sql
|
SELECT "construction_started" FROM "current_agr_reactors" WHERE "agr_power_station"='Heysham 1'; |
## Task
Generate a SQL query to answer the following question:
`What year did construction start at Heysham 1`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_agr_reactors" (
"agr_power_station" text,
"net_m_we" real,
"construction_started" real,
"connected_to_grid" real,
"commercial_operation" real,
"accounting_closure_date" real
);
### SQL
Given the database schema, here is the SQL query that answers `What year did construction start at Heysham 1`:
```sql
|
SELECT MIN("construction_started") FROM "current_agr_reactors" WHERE "net_m_we"=1190; |
## Task
Generate a SQL query to answer the following question:
`When did construction start on the Power station with a net MWE of 1190`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_agr_reactors" (
"agr_power_station" text,
"net_m_we" real,
"construction_started" real,
"connected_to_grid" real,
"commercial_operation" real,
"accounting_closure_date" real
);
### SQL
Given the database schema, here is the SQL query that answers `When did construction start on the Power station with a net MWE of 1190`:
```sql
|
SELECT MAX("extra_points") FROM "scoring_leaders" WHERE "player"='John Heston'; |
## Task
Generate a SQL query to answer the following question:
`Name the most extra points for john heston`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scoring_leaders" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most extra points for john heston`:
```sql
|
SELECT MAX("points") FROM "michigan_63_oberlin_0"; |
## Task
Generate a SQL query to answer the following question:
`Who scored the most points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_63_oberlin_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who scored the most points?`:
```sql
|
SELECT "position" FROM "michigan_63_oberlin_0" WHERE "player"='Joe Maddock'; |
## Task
Generate a SQL query to answer the following question:
`What position did Joe Maddock play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_63_oberlin_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What position did Joe Maddock play?`:
```sql
|
SELECT COUNT("extra_points") FROM "michigan_63_oberlin_0" WHERE "player"='Paul Jones'; |
## Task
Generate a SQL query to answer the following question:
`How many extra points did Paul Jones score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_63_oberlin_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many extra points did Paul Jones score?`:
```sql
|
SELECT "points" FROM "michigan_86_ohio_state_0" WHERE "player"='Albert Herrnstein'; |
## Task
Generate a SQL query to answer the following question:
`How many points did Albert Herrnstein make?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_86_ohio_state_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did Albert Herrnstein make?`:
```sql
|
SELECT "position" FROM "michigan_86_ohio_state_0" WHERE "player"='Paul Jones'; |
## Task
Generate a SQL query to answer the following question:
`What positions did Paul Jones play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_86_ohio_state_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What positions did Paul Jones play?`:
```sql
|
SELECT MIN("field_goals") FROM "michigan_86_ohio_state_0"; |
## Task
Generate a SQL query to answer the following question:
`What is the least amount of field goals made by a player?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_86_ohio_state_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least amount of field goals made by a player?`:
```sql
|
SELECT MAX("extra_points_1_point") FROM "scoring_summary" WHERE "player"='Paul Dickey'; |
## Task
Generate a SQL query to answer the following question:
`How many extra points did Paul Dickey received`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scoring_summary" (
"player" text,
"touchdowns_5_points" real,
"extra_points_1_point" real,
"field_goals_5_points" real,
"safeties_2_points" real,
"total_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many extra points did Paul Dickey received`:
```sql
|
SELECT MIN("field_goals_5_points") FROM "scoring_summary"; |
## Task
Generate a SQL query to answer the following question:
`How many 5 points field goals is minimum`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scoring_summary" (
"player" text,
"touchdowns_5_points" real,
"extra_points_1_point" real,
"field_goals_5_points" real,
"safeties_2_points" real,
"total_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many 5 points field goals is minimum`:
```sql
|
SELECT COUNT("player") FROM "scoring_summary" WHERE "total_points"=75; |
## Task
Generate a SQL query to answer the following question:
`How many player with total points of 75`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scoring_summary" (
"player" text,
"touchdowns_5_points" real,
"extra_points_1_point" real,
"field_goals_5_points" real,
"safeties_2_points" real,
"total_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many player with total points of 75`:
```sql
|
SELECT MAX("field_goals") FROM "michigan_65_ohio_normal_0"; |
## Task
Generate a SQL query to answer the following question:
`Name the most field goals`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_65_ohio_normal_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most field goals`:
```sql
|
SELECT COUNT("points") FROM "michigan_65_ohio_normal_0" WHERE "position"='Right halfback' AND "starter"='yes'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of points for right halfback and starter being yes`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_65_ohio_normal_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of points for right halfback and starter being yes`:
```sql
|
SELECT COUNT("field_goals") FROM "michigan_65_ohio_normal_0" WHERE "position"='Right tackle'; |
## Task
Generate a SQL query to answer the following question:
`Na,e the number of field goals for right tackle`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_65_ohio_normal_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Na,e the number of field goals for right tackle`:
```sql
|
SELECT MAX("extra_points") FROM "michigan_65_ohio_normal_0" WHERE "position"='Right halfback'; |
## Task
Generate a SQL query to answer the following question:
`Name the most extra points for right halfback`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_65_ohio_normal_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most extra points for right halfback`:
```sql
|
SELECT "position" FROM "michigan_48_ohio_northern_0" WHERE "player"='Tom Hammond'; |
## Task
Generate a SQL query to answer the following question:
`What positions does Tom Hammond play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_48_ohio_northern_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What positions does Tom Hammond play?`:
```sql
|
SELECT "position" FROM "michigan_48_ohio_northern_0" WHERE "player"='Hal Weeks'; |
## Task
Generate a SQL query to answer the following question:
`What positions does Hal Weeks play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_48_ohio_northern_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What positions does Hal Weeks play?`:
```sql
|
SELECT "points" FROM "michigan_48_ohio_northern_0" WHERE "player"='Clark'; |
## Task
Generate a SQL query to answer the following question:
`How many points does Clark have? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_48_ohio_northern_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points does Clark have? `:
```sql
|
SELECT COUNT("points") FROM "michigan_72_american_medical_school_0" WHERE "position"='Right guard'; |
## Task
Generate a SQL query to answer the following question:
`How many points did the player who was right guard score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_72_american_medical_school_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did the player who was right guard score?`:
```sql
|
SELECT "starter" FROM "michigan_72_american_medical_school_0" WHERE "touchdowns"=3; |
## Task
Generate a SQL query to answer the following question:
`Was there a starter when 3 touchdowns were scored?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_72_american_medical_school_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Was there a starter when 3 touchdowns were scored?`:
```sql
|
SELECT MAX("touchdowns") FROM "michigan_72_american_medical_school_0" WHERE "player"='Heston'; |
## Task
Generate a SQL query to answer the following question:
`How many touchdowns were there when Heston was in play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_72_american_medical_school_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many touchdowns were there when Heston was in play?`:
```sql
|
SELECT MAX("points") FROM "michigan_72_american_medical_school_0" WHERE "position"='Left tackle' AND "extra_points"=5; |
## Task
Generate a SQL query to answer the following question:
`How many maximum points were there when the left tackle was played and there were 5 extra points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_72_american_medical_school_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many maximum points were there when the left tackle was played and there were 5 extra points?`:
```sql
|
SELECT COUNT("uk_co_presenter") FROM "presenters" WHERE "co_presenter"='Joe Swash' AND "comedian"='Russell Kane'; |
## Task
Generate a SQL query to answer the following question:
`Who are the UK co-presenters that have Joe Swash as a co-presenter and Russell Kane as a comedian?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "presenters" (
"series" text,
"main_presenter" text,
"co_presenter" text,
"comedian" text,
"uk_co_presenter" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the UK co-presenters that have Joe Swash as a co-presenter and Russell Kane as a comedian?`:
```sql
|
SELECT "series" FROM "presenters" WHERE "main_presenter"='Caroline Flack'; |
## Task
Generate a SQL query to answer the following question:
`What series have Caroline Flack as a main presenter?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "presenters" (
"series" text,
"main_presenter" text,
"co_presenter" text,
"comedian" text,
"uk_co_presenter" text
);
### SQL
Given the database schema, here is the SQL query that answers `What series have Caroline Flack as a main presenter?`:
```sql
|
SELECT "co_presenter" FROM "presenters" WHERE "series"='Seven (2007)'; |
## Task
Generate a SQL query to answer the following question:
`Who is the co-presenter of the series Seven (2007)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "presenters" (
"series" text,
"main_presenter" text,
"co_presenter" text,
"comedian" text,
"uk_co_presenter" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the co-presenter of the series Seven (2007)?`:
```sql
|
SELECT "main_presenter" FROM "presenters" WHERE "series"='Twelve (2012)'; |
## Task
Generate a SQL query to answer the following question:
`Who is the main presenter of the series Twelve (2012)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "presenters" (
"series" text,
"main_presenter" text,
"co_presenter" text,
"comedian" text,
"uk_co_presenter" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the main presenter of the series Twelve (2012)?`:
```sql
|
SELECT "uk_co_presenter" FROM "presenters" WHERE "co_presenter"='Joe Swash' AND "series"='Eleven (2011)'; |
## Task
Generate a SQL query to answer the following question:
`Who is the UK co-presenters that have Joe Swash as a co-presenter of the series Eleven (2011)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "presenters" (
"series" text,
"main_presenter" text,
"co_presenter" text,
"comedian" text,
"uk_co_presenter" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the UK co-presenters that have Joe Swash as a co-presenter of the series Eleven (2011)?`:
```sql
|
SELECT "finished" FROM "series_1_2002" WHERE "celebrity"='Nell McAndrew'; |
## Task
Generate a SQL query to answer the following question:
`What position did Nell McAndrew finish?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_1_2002" (
"celebrity" text,
"famous_for" text,
"entered" text,
"exited" text,
"finished" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position did Nell McAndrew finish?`:
```sql
|
SELECT "celebrity" FROM "series_1_2002" WHERE "famous_for"='Champion boxer'; |
## Task
Generate a SQL query to answer the following question:
`Who was the champion boxer?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_1_2002" (
"celebrity" text,
"famous_for" text,
"entered" text,
"exited" text,
"finished" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the champion boxer?`:
```sql
|
SELECT "entered" FROM "series_1_2002" WHERE "celebrity"='Darren Day'; |
## Task
Generate a SQL query to answer the following question:
`When did Darren Day enter?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_1_2002" (
"celebrity" text,
"famous_for" text,
"entered" text,
"exited" text,
"finished" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did Darren Day enter?`:
```sql
|
SELECT "finished" FROM "series_1_2002" WHERE "celebrity"='Tara Palmer-Tomkinson'; |
## Task
Generate a SQL query to answer the following question:
`What position did Tara Palmer-Tomkinson finish?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_1_2002" (
"celebrity" text,
"famous_for" text,
"entered" text,
"exited" text,
"finished" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position did Tara Palmer-Tomkinson finish?`:
```sql
|
SELECT "entered" FROM "series_1_2002" WHERE "finished"='4th'; |
## Task
Generate a SQL query to answer the following question:
`When did the 4th finisher enter?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_1_2002" (
"celebrity" text,
"famous_for" text,
"entered" text,
"exited" text,
"finished" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the 4th finisher enter?`:
```sql
|
SELECT "entered" FROM "series_1_2002" WHERE "celebrity"='Darren Day'; |
## Task
Generate a SQL query to answer the following question:
`When did Darren Day enter?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_1_2002" (
"celebrity" text,
"famous_for" text,
"entered" text,
"exited" text,
"finished" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did Darren Day enter?`:
```sql
|
SELECT COUNT("exited") FROM "series_2_2003" WHERE "finished"='9th'; |
## Task
Generate a SQL query to answer the following question:
`How many people finished 9th?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_2_2003" (
"celebrity" text,
"famous_for" text,
"entered" text,
"exited" text,
"finished" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people finished 9th?`:
```sql
|
SELECT MIN("camp_mates") FROM "series_details"; |
## Task
Generate a SQL query to answer the following question:
`What was the least amount of camp mates?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_details" (
"series" text,
"presenters" text,
"start_date" text,
"end_date" text,
"days_in_camp" real,
"camp_mates" real,
"winner" text,
"highest_viewers_millions" text,
"lowest_viewers_millions" text,
"average_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the least amount of camp mates?`:
```sql
|
SELECT COUNT("directed_by") FROM "table1_14346353_1" WHERE "teleplay_by"='David Simon' AND "series_num"=4; |
## Task
Generate a SQL query to answer the following question:
`Who directed series #4 that was teleplayed by David Simon?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14346353_1" (
"series_num" real,
"title" text,
"story_by" text,
"teleplay_by" text,
"directed_by" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed series #4 that was teleplayed by David Simon?`:
```sql
|
SELECT "title" FROM "table1_14346353_1" WHERE "series_num"=1; |
## Task
Generate a SQL query to answer the following question:
`What is the title of series #1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14346353_1" (
"series_num" real,
"title" text,
"story_by" text,
"teleplay_by" text,
"directed_by" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of series #1?`:
```sql
|
SELECT "finished" FROM "table1_14345690_5" WHERE "exited"='Day 11'; |
## Task
Generate a SQL query to answer the following question:
`What is the finished place where exited is day 11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14345690_5" (
"celebrity" text,
"famous_for" text,
"entered" text,
"exited" text,
"finished" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the finished place where exited is day 11?`:
```sql
|
SELECT "famous_for" FROM "table1_14345690_5" WHERE "finished"='2nd'; |
## Task
Generate a SQL query to answer the following question:
`Who is the famous for that finished 2nd?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14345690_5" (
"celebrity" text,
"famous_for" text,
"entered" text,
"exited" text,
"finished" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the famous for that finished 2nd?`:
```sql
|
SELECT "famous_for" FROM "table1_14345690_5" WHERE "finished"='5th'; |
## Task
Generate a SQL query to answer the following question:
`What is the famous for where the finished is 5th?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14345690_5" (
"celebrity" text,
"famous_for" text,
"entered" text,
"exited" text,
"finished" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the famous for where the finished is 5th?`:
```sql
|
SELECT "exited" FROM "table1_14345690_5" WHERE "celebrity"='Vic Reeves'; |
## Task
Generate a SQL query to answer the following question:
`What is the exited day where the celebrity is vic reeves?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14345690_5" (
"celebrity" text,
"famous_for" text,
"entered" text,
"exited" text,
"finished" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the exited day where the celebrity is vic reeves?`:
```sql
|
SELECT "celebrity" FROM "table1_14345690_5" WHERE "finished"='5th'; |
## Task
Generate a SQL query to answer the following question:
`what is the celebrity where the finished is 5th?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14345690_5" (
"celebrity" text,
"famous_for" text,
"entered" text,
"exited" text,
"finished" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the celebrity where the finished is 5th?`:
```sql
|
SELECT "first_elected" FROM "ohio" WHERE "incumbent"='John Thomas Wilson'; |
## Task
Generate a SQL query to answer the following question:
`When was incumbent John Thomas Wilson first elected? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ohio" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was incumbent John Thomas Wilson first elected? `:
```sql
|
SELECT "candidates" FROM "ohio" WHERE "incumbent"='John Beatty'; |
## Task
Generate a SQL query to answer the following question:
`Who were the candidates in the election where John Beatty was the incumbent? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ohio" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the candidates in the election where John Beatty was the incumbent? `:
```sql
|
SELECT "incumbent" FROM "ohio" WHERE "district"='Ohio 16'; |
## Task
Generate a SQL query to answer the following question:
`Who was the incumbent in the Ohio 16 district? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ohio" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"result" text,
"candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the incumbent in the Ohio 16 district? `:
```sql
|
SELECT "average" FROM "relegation" WHERE "1991_92"='N/A' AND "1992_93"='37'; |
## Task
Generate a SQL query to answer the following question:
`What is the average for the team with n/a in 1992 and 37 in 1992-93?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "relegation" (
"team" text,
"average" text,
"points" real,
"played" real,
"1991_92" text,
"1992_93" text,
"1993_94" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average for the team with n/a in 1992 and 37 in 1992-93?`:
```sql
|
SELECT "1991_92" FROM "relegation" WHERE "average"='1.053'; |
## Task
Generate a SQL query to answer the following question:
`What is the result in 91-92 for the team with a 1.053 average?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "relegation" (
"team" text,
"average" text,
"points" real,
"played" real,
"1991_92" text,
"1992_93" text,
"1993_94" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result in 91-92 for the team with a 1.053 average?`:
```sql
|
SELECT "1992_93" FROM "relegation" WHERE "1991_92"='55'; |
## Task
Generate a SQL query to answer the following question:
`What is the 92'-93 result for the team with 55 in 91'-92?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "relegation" (
"team" text,
"average" text,
"points" real,
"played" real,
"1991_92" text,
"1992_93" text,
"1993_94" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 92'-93 result for the team with 55 in 91'-92?`:
```sql
|
SELECT "average" FROM "relegation" WHERE "1991_92"='39'; |
## Task
Generate a SQL query to answer the following question:
`What is the average for the team with 39 in 1991-92?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "relegation" (
"team" text,
"average" text,
"points" real,
"played" real,
"1991_92" text,
"1992_93" text,
"1993_94" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average for the team with 39 in 1991-92?`:
```sql
|
SELECT "birth_date" FROM "team_roster_season_2012_13" WHERE "shirt_no"=7; |
## Task
Generate a SQL query to answer the following question:
`Name the birth date for shirt number 7`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team_roster_season_2012_13" (
"shirt_no" real,
"nationality" text,
"player" text,
"birth_date" text,
"height" real,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the birth date for shirt number 7`:
```sql
|
SELECT MAX("height") FROM "team_roster_season_2012_13" WHERE "player"='Yury Berezhko'; |
## Task
Generate a SQL query to answer the following question:
`Name the maximum height for yury berezhko`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team_roster_season_2012_13" (
"shirt_no" real,
"nationality" text,
"player" text,
"birth_date" text,
"height" real,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the maximum height for yury berezhko`:
```sql
|
SELECT MIN("points") FROM "relegation" WHERE "1989_90"='31'; |
## Task
Generate a SQL query to answer the following question:
`Name the least points where 1989-90 is 31`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "relegation" (
"team" text,
"average" text,
"points" real,
"played" real,
"1989_90" text,
"1990_91" text,
"1991_1992" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least points where 1989-90 is 31`:
```sql
|
SELECT "1991_1992" FROM "relegation" WHERE "team"='River Plate'; |
## Task
Generate a SQL query to answer the following question:
`Name the 1991-1992 for river plate`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "relegation" (
"team" text,
"average" text,
"points" real,
"played" real,
"1989_90" text,
"1990_91" text,
"1991_1992" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 1991-1992 for river plate`:
```sql
|
SELECT "model" FROM "table1_1439045_5" WHERE "gflops_200_m_hz"='3.2'; |
## Task
Generate a SQL query to answer the following question:
`Which models can perform flops(@ 200mhz) is 3.2`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1439045_5" (
"model" text,
"year" text,
"die_size_mm_2_1" text,
"config_core_2" text,
"m_triangles_s_1" real,
"m_pixel_s_1" real,
"bus_width_bit" text,
"direct_x" text,
"open_gl" text,
"open_gl_es" text,
"gflops_200_m_hz" text,
"frequency" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which models can perform flops(@ 200mhz) is 3.2`:
```sql
|
SELECT "open_gl_es" FROM "table1_1439045_5" WHERE "model"='SGX520'; |
## Task
Generate a SQL query to answer the following question:
`Which version of opengl is used by model sgx520?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1439045_5" (
"model" text,
"year" text,
"die_size_mm_2_1" text,
"config_core_2" text,
"m_triangles_s_1" real,
"m_pixel_s_1" real,
"bus_width_bit" text,
"direct_x" text,
"open_gl" text,
"open_gl_es" text,
"gflops_200_m_hz" text,
"frequency" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which version of opengl is used by model sgx520?`:
```sql
|
SELECT "die_size_mm_2_1" FROM "table1_1439045_5" WHERE "model"='SGX531'; |
## Task
Generate a SQL query to answer the following question:
`What is the die size(mm 2) for model sgx531?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1439045_5" (
"model" text,
"year" text,
"die_size_mm_2_1" text,
"config_core_2" text,
"m_triangles_s_1" real,
"m_pixel_s_1" real,
"bus_width_bit" text,
"direct_x" text,
"open_gl" text,
"open_gl_es" text,
"gflops_200_m_hz" text,
"frequency" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the die size(mm 2) for model sgx531?`:
```sql
|
SELECT COUNT("1991_92") FROM "relegation" WHERE "1992_93"='44'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of 1991-92 for 1992-93 for 44`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "relegation" (
"team" text,
"average" text,
"points" real,
"played" real,
"1991_92" text,
"1992_93" text,
"1993_94" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of 1991-92 for 1992-93 for 44`:
```sql
|
SELECT "team" FROM "relegation" WHERE "average"='1.026' AND "1991_92"='40'; |
## Task
Generate a SQL query to answer the following question:
` Name the team for average 1.026 for 1991-92 being 40`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "relegation" (
"team" text,
"average" text,
"points" real,
"played" real,
"1991_92" text,
"1992_93" text,
"1993_94" real
);
### SQL
Given the database schema, here is the SQL query that answers ` Name the team for average 1.026 for 1991-92 being 40`:
```sql
|
SELECT "economic_class" FROM "barangays" WHERE "punong_barangay_term_2010_2013"='Antonio B. Gangan'; |
## Task
Generate a SQL query to answer the following question:
`Name the economic class for punong barangay being antonio b. gangan`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "barangays" (
"barangay" text,
"population_2010" real,
"economic_class" text,
"land_area_in_sqm" real,
"punong_barangay_term_2010_2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the economic class for punong barangay being antonio b. gangan`:
```sql
|
SELECT "economic_class" FROM "barangays" WHERE "punong_barangay_term_2010_2013"='Arnold G. Apalla'; |
## Task
Generate a SQL query to answer the following question:
`Name the economic class for arnold g. apalla`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "barangays" (
"barangay" text,
"population_2010" real,
"economic_class" text,
"land_area_in_sqm" real,
"punong_barangay_term_2010_2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the economic class for arnold g. apalla`:
```sql
|
SELECT "economic_class" FROM "barangays" WHERE "punong_barangay_term_2010_2013"='Artemoio M. Baymosa'; |
## Task
Generate a SQL query to answer the following question:
`Name the economic class for artemoio m. baymosa`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "barangays" (
"barangay" text,
"population_2010" real,
"economic_class" text,
"land_area_in_sqm" real,
"punong_barangay_term_2010_2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the economic class for artemoio m. baymosa`:
```sql
|
SELECT COUNT("1st_m") FROM "kuopio" WHERE "2nd_m"='125.5'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of 1stm when 2nd m is 125.5`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "kuopio" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" text,
"2nd_m" text,
"points" text,
"overall_nt_points" text,
"overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of 1stm when 2nd m is 125.5`:
```sql
|
SELECT "overall_wc_points_rank" FROM "kuopio" WHERE "2nd_m"='122.5'; |
## Task
Generate a SQL query to answer the following question:
`Name the overall wc points rank for 2nd m for 122.5`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "kuopio" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" text,
"2nd_m" text,
"points" text,
"overall_nt_points" text,
"overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the overall wc points rank for 2nd m for 122.5`:
```sql
|
SELECT COUNT("nationality") FROM "kuopio" WHERE "name"='Tom Hilde'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of nationality is tom hilde`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "kuopio" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" text,
"2nd_m" text,
"points" text,
"overall_nt_points" text,
"overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of nationality is tom hilde`:
```sql
|
SELECT "original_air_date_atv" FROM "table1_1439096_1" WHERE "title"='\"Recall to Service\"'; |
## Task
Generate a SQL query to answer the following question:
`What was the original air date (atv) of the episode "Recall to Service"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1439096_1" (
"episode_no" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date_atv" text,
"production_no" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the original air date (atv) of the episode "Recall to Service"?`:
```sql
|
SELECT "director" FROM "table1_1439096_1" WHERE "original_air_date_atv"='26 October 1969'; |
## Task
Generate a SQL query to answer the following question:
`Who was the director of the episode originally aired on 26 October 1969?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1439096_1" (
"episode_no" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date_atv" text,
"production_no" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the director of the episode originally aired on 26 October 1969?`:
```sql
|
SELECT MIN("production_no") FROM "table1_1439096_1"; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest production number?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1439096_1" (
"episode_no" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date_atv" text,
"production_no" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest production number?`:
```sql
|
SELECT "title" FROM "table1_1439096_1" WHERE "original_air_date_atv"='28 September 1969'; |
## Task
Generate a SQL query to answer the following question:
`What is the title of the episode with the original air date of 28 September 1969?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1439096_1" (
"episode_no" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date_atv" text,
"production_no" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the episode with the original air date of 28 September 1969?`:
```sql
|
SELECT "original_air_date_atv" FROM "table1_1439096_1" WHERE "episode_no"=1; |
## Task
Generate a SQL query to answer the following question:
`What was the original air date (atv) of episode 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1439096_1" (
"episode_no" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date_atv" text,
"production_no" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the original air date (atv) of episode 1?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.