output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "name" FROM "planica" WHERE "2nd_m"='220.5'; |
## Task
Generate a SQL query to answer the following question:
`Who is shown for the 2nd (m) of 220.5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "planica" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" text,
"2nd_m" text,
"points" text,
"overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is shown for the 2nd (m) of 220.5?`:
```sql
|
SELECT "2nd_m" FROM "planica" WHERE "1st_m"='216.5'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2nd (m) when the 1st (m) is 216.5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "planica" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" text,
"2nd_m" text,
"points" text,
"overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2nd (m) when the 1st (m) is 216.5?`:
```sql
|
SELECT "overall_wc_points_rank" FROM "planica" WHERE "nationality"='FIN' AND "points"='418.8'; |
## Task
Generate a SQL query to answer the following question:
`For the nationality of FIN and the points of 418.8 what is the overall wc points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "planica" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" text,
"2nd_m" text,
"points" text,
"overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the nationality of FIN and the points of 418.8 what is the overall wc points?`:
```sql
|
SELECT "overall_wc_points_rank" FROM "planica" WHERE "points"='397.2'; |
## Task
Generate a SQL query to answer the following question:
`What are the overall wc points for points of 397.2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "planica" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" text,
"2nd_m" text,
"points" text,
"overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the overall wc points for points of 397.2?`:
```sql
|
SELECT "2nd_m" FROM "planica" WHERE "1st_m"='203.5'; |
## Task
Generate a SQL query to answer the following question:
`What is shown for 2nd (m) if the is 1st (m) is 203.5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "planica" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" text,
"2nd_m" text,
"points" text,
"overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is shown for 2nd (m) if the is 1st (m) is 203.5?`:
```sql
|
SELECT "overall_wc_points_rank" FROM "planica" WHERE "2nd_m"='214.5'; |
## Task
Generate a SQL query to answer the following question:
`What are the overall wc points for 2nd (m) of 214.5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "planica" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" text,
"2nd_m" text,
"points" text,
"overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the overall wc points for 2nd (m) of 214.5?`:
```sql
|
SELECT "overall_wc_points_rank" FROM "villach" WHERE "nationality"='FIN'; |
## Task
Generate a SQL query to answer the following question:
`The competitor for FIN had how many overall WC points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "villach" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" text,
"2nd_m" text,
"points" text,
"overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `The competitor for FIN had how many overall WC points?`:
```sql
|
SELECT COUNT("name") FROM "villach" WHERE "2nd_m"='96.0'; |
## Task
Generate a SQL query to answer the following question:
`How many full names are provided for the jumper whose 2nd jump was 96.0m?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "villach" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" text,
"2nd_m" text,
"points" text,
"overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many full names are provided for the jumper whose 2nd jump was 96.0m?`:
```sql
|
SELECT "1st_m" FROM "villach" WHERE "nationality"='FIN'; |
## Task
Generate a SQL query to answer the following question:
`What was the length of the jumper representing FIN, in meters?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "villach" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" text,
"2nd_m" text,
"points" text,
"overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the length of the jumper representing FIN, in meters?`:
```sql
|
SELECT "1st_m" FROM "garmisch_partenkirchen" WHERE "points"='272.7'; |
## Task
Generate a SQL query to answer the following question:
`What is the 1st(m) score for the Person who had a total points of 272.7`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "garmisch_partenkirchen" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" text,
"2nd_m" text,
"points" text,
"overall_fht_points" text,
"overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1st(m) score for the Person who had a total points of 272.7`:
```sql
|
SELECT "overall_wc_points_rank" FROM "garmisch_partenkirchen" WHERE "name"='Roman Koudelka'; |
## Task
Generate a SQL query to answer the following question:
`How many total points did roman Koudelka have`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "garmisch_partenkirchen" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" text,
"2nd_m" text,
"points" text,
"overall_fht_points" text,
"overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many total points did roman Koudelka have`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "week"=12; |
## Task
Generate a SQL query to answer the following question:
`Name the opponent for week 12`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"time_et" text,
"tv" text,
"result" text,
"record" text,
"game_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the opponent for week 12`:
```sql
|
SELECT COUNT("date") FROM "schedule" WHERE "game_site"='Shea Stadium'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of date for shea stadium`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"time_et" text,
"tv" text,
"result" text,
"record" text,
"game_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of date for shea stadium`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "game_site"='Astrodome'; |
## Task
Generate a SQL query to answer the following question:
`Name the opponent for astrodome`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"time_et" text,
"tv" text,
"result" text,
"record" text,
"game_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the opponent for astrodome`:
```sql
|
SELECT COUNT("home_team_score") FROM "round_1" WHERE "time"='4:40 PM'; |
## Task
Generate a SQL query to answer the following question:
`How many home team scores have a time of 4:40 PM?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" text,
"date" text,
"time" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many home team scores have a time of 4:40 PM?`:
```sql
|
SELECT "ground" FROM "round_1" WHERE "crowd"='8,256'; |
## Task
Generate a SQL query to answer the following question:
`What stadiums had an attendance of 8,256?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" text,
"date" text,
"time" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What stadiums had an attendance of 8,256?`:
```sql
|
SELECT COUNT("crowd") FROM "round_1" WHERE "home_team"='Port Adelaide'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of attendees where the home team was Port Adelaide?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" text,
"date" text,
"time" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of attendees where the home team was Port Adelaide?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "game_site"='Rich Stadium'; |
## Task
Generate a SQL query to answer the following question:
`Which team did they play at Rich Stadium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"kickoff_et" text,
"tv" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team did they play at Rich Stadium?`:
```sql
|
SELECT "date" FROM "schedule" WHERE "game_site"='Cleveland Municipal Stadium'; |
## Task
Generate a SQL query to answer the following question:
`What date did they play in Cleveland Municipal Stadium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"kickoff_et" text,
"tv" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did they play in Cleveland Municipal Stadium?`:
```sql
|
SELECT "year_model" FROM "engines" WHERE "engine"='4-cyl Straight engine DOHC 16V' AND "model"='1.5 CRDi'; |
## Task
Generate a SQL query to answer the following question:
`Name the year model for 4-cyl straight engine dohc 16v and 1.5 crdi`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines" (
"model" text,
"year_model" text,
"engine" text,
"cylinder_volume" text,
"power" text,
"torque" text,
"fuel_system" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the year model for 4-cyl straight engine dohc 16v and 1.5 crdi`:
```sql
|
SELECT "year_model" FROM "engines" WHERE "model"='1.3'; |
## Task
Generate a SQL query to answer the following question:
`Name the year model for 1.3`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines" (
"model" text,
"year_model" text,
"engine" text,
"cylinder_volume" text,
"power" text,
"torque" text,
"fuel_system" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the year model for 1.3`:
```sql
|
SELECT MIN("pos") FROM "table1_14460937_2" WHERE "clubs"='16'; |
## Task
Generate a SQL query to answer the following question:
`what is the minimum pos with clubs being 16`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14460937_2" (
"pos" real,
"member_association" text,
"points_total_500" real,
"clubs" text,
"group_stage" real,
"play_off" real,
"afc_cup" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the minimum pos with clubs being 16`:
```sql
|
SELECT MAX("afc_cup") FROM "table1_14460937_2"; |
## Task
Generate a SQL query to answer the following question:
`what is the maximum value for afc cup`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14460937_2" (
"pos" real,
"member_association" text,
"points_total_500" real,
"clubs" text,
"group_stage" real,
"play_off" real,
"afc_cup" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the maximum value for afc cup`:
```sql
|
SELECT COUNT("pos") FROM "table1_14460937_2" WHERE "member_association"='China PR'; |
## Task
Generate a SQL query to answer the following question:
` how many pos with member association being china pr`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14460937_2" (
"pos" real,
"member_association" text,
"points_total_500" real,
"clubs" text,
"group_stage" real,
"play_off" real,
"afc_cup" real
);
### SQL
Given the database schema, here is the SQL query that answers ` how many pos with member association being china pr`:
```sql
|
SELECT COUNT("points_total_500") FROM "table1_14460937_2" WHERE "pos"=11; |
## Task
Generate a SQL query to answer the following question:
` how many points (total 500) with pos being 11`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14460937_2" (
"pos" real,
"member_association" text,
"points_total_500" real,
"clubs" text,
"group_stage" real,
"play_off" real,
"afc_cup" real
);
### SQL
Given the database schema, here is the SQL query that answers ` how many points (total 500) with pos being 11`:
```sql
|
SELECT "1989_90" FROM "relegation" WHERE "1987_88"='55'; |
## Task
Generate a SQL query to answer the following question:
`How many points in 89/90 for the team with 55 in 87/88?`
### 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,
"1987_88" text,
"1988_89" text,
"1989_90" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points in 89/90 for the team with 55 in 87/88?`:
```sql
|
SELECT "1987_88" FROM "relegation" WHERE "team"='Racing de Córdoba'; |
## Task
Generate a SQL query to answer the following question:
`How many points in 87/88 for racing de córdoba?`
### 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,
"1987_88" text,
"1988_89" text,
"1989_90" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points in 87/88 for racing de córdoba?`:
```sql
|
SELECT MIN("played") FROM "relegation" WHERE "team"='Deportivo Español'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of games played for deportivo español?`
### 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,
"1987_88" text,
"1988_89" text,
"1989_90" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of games played for deportivo español?`:
```sql
|
SELECT "average" FROM "relegation" WHERE "1988_89"='34'; |
## Task
Generate a SQL query to answer the following question:
`What is the average for the team with 34 in 88/89?`
### 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,
"1987_88" text,
"1988_89" text,
"1989_90" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average for the team with 34 in 88/89?`:
```sql
|
SELECT COUNT("points") FROM "relegation" WHERE "team"='San Lorenzo'; |
## Task
Generate a SQL query to answer the following question:
`How many points total for san lorenzo?`
### 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,
"1987_88" text,
"1988_89" text,
"1989_90" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points total for san lorenzo?`:
```sql
|
SELECT "telephone_052" FROM "administrative_divisions" WHERE "area_km_2"='5.42'; |
## Task
Generate a SQL query to answer the following question:
`Name the telephone 052 for area km2 being 5.42`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "administrative_divisions" (
"number" real,
"name_of_administrative_unit" text,
"telephone_052" text,
"area_km_2" text,
"population_people" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the telephone 052 for area km2 being 5.42`:
```sql
|
SELECT "population_people" FROM "administrative_divisions" WHERE "area_km_2"='24.35'; |
## Task
Generate a SQL query to answer the following question:
`Name the population of people for area being 24.35`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "administrative_divisions" (
"number" real,
"name_of_administrative_unit" text,
"telephone_052" text,
"area_km_2" text,
"population_people" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the population of people for area being 24.35`:
```sql
|
SELECT COUNT("telephone_052") FROM "administrative_divisions" WHERE "area_km_2"='362.81'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of telephone 052 for 362.81`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "administrative_divisions" (
"number" real,
"name_of_administrative_unit" text,
"telephone_052" text,
"area_km_2" text,
"population_people" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of telephone 052 for 362.81`:
```sql
|
SELECT "name_of_administrative_unit" FROM "administrative_divisions" WHERE "number"=4; |
## Task
Generate a SQL query to answer the following question:
`Name the number of administrative unit for number 4`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "administrative_divisions" (
"number" real,
"name_of_administrative_unit" text,
"telephone_052" text,
"area_km_2" text,
"population_people" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of administrative unit for number 4`:
```sql
|
SELECT "name_of_administrative_unit" FROM "administrative_divisions" WHERE "population_people"=3464; |
## Task
Generate a SQL query to answer the following question:
`Name the name of administrative unit for 3464 people`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "administrative_divisions" (
"number" real,
"name_of_administrative_unit" text,
"telephone_052" text,
"area_km_2" text,
"population_people" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the name of administrative unit for 3464 people`:
```sql
|
SELECT COUNT("cmdlets") FROM "snap_ins_and_hosts" WHERE "version"='2008'; |
## Task
Generate a SQL query to answer the following question:
`How many of the cmdlets are the 2008 version?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "snap_ins_and_hosts" (
"application" text,
"version" text,
"cmdlets" text,
"provider" text,
"management_gui" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many of the cmdlets are the 2008 version?`:
```sql
|
SELECT "provider" FROM "snap_ins_and_hosts" WHERE "application"='Exchange Server'; |
## Task
Generate a SQL query to answer the following question:
`Which providers use exchange server?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "snap_ins_and_hosts" (
"application" text,
"version" text,
"cmdlets" text,
"provider" text,
"management_gui" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which providers use exchange server?`:
```sql
|
SELECT "provider" FROM "snap_ins_and_hosts" WHERE "version"='2008'; |
## Task
Generate a SQL query to answer the following question:
`Which providers use version 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "snap_ins_and_hosts" (
"application" text,
"version" text,
"cmdlets" text,
"provider" text,
"management_gui" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which providers use version 2008?`:
```sql
|
SELECT "provider" FROM "snap_ins_and_hosts" WHERE "application"='Exchange Server'; |
## Task
Generate a SQL query to answer the following question:
`Which providers don't use exchange server?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "snap_ins_and_hosts" (
"application" text,
"version" text,
"cmdlets" text,
"provider" text,
"management_gui" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which providers don't use exchange server?`:
```sql
|
SELECT COUNT("played") FROM "relegation" WHERE "1987_88"='27'; |
## Task
Generate a SQL query to answer the following question:
`how many points did the team that scored 27 points in the 1987-88 season score?`
### 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,
"1986_87" text,
"1987_88" text,
"1988_89" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many points did the team that scored 27 points in the 1987-88 season score?`:
```sql
|
SELECT "1986_87" FROM "relegation" WHERE "team"='Argentinos Juniors'; |
## Task
Generate a SQL query to answer the following question:
`how many points did the argentinos juniors team score during the 1986-87 season?`
### 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,
"1986_87" text,
"1987_88" text,
"1988_89" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many points did the argentinos juniors team score during the 1986-87 season?`:
```sql
|
SELECT MIN("1988_89") FROM "relegation" WHERE "1986_87"='38'; |
## Task
Generate a SQL query to answer the following question:
`how many points did the team that scored 38 points in the 1986-87 season score during the 1988-89 season?`
### 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,
"1986_87" text,
"1987_88" text,
"1988_89" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many points did the team that scored 38 points in the 1986-87 season score during the 1988-89 season?`:
```sql
|
SELECT MAX("played") FROM "relegation"; |
## Task
Generate a SQL query to answer the following question:
`what is the maximum number of matches played by a team?`
### 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,
"1986_87" text,
"1987_88" text,
"1988_89" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the maximum number of matches played by a team?`:
```sql
|
SELECT "1986_87" FROM "relegation" WHERE "average"='1.079'; |
## Task
Generate a SQL query to answer the following question:
`list the number of matches played by the teams that got an average of 1.079`
### 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,
"1986_87" text,
"1987_88" text,
"1988_89" real
);
### SQL
Given the database schema, here is the SQL query that answers `list the number of matches played by the teams that got an average of 1.079`:
```sql
|
SELECT "womens_singles" FROM "winners" WHERE "tour"='Korea Open Super Series'; |
## Task
Generate a SQL query to answer the following question:
`Name the womens singles for korea open super series`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"tour" text,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the womens singles for korea open super series`:
```sql
|
SELECT "tour" FROM "winners" WHERE "mens_singles"='Chen Jin' AND "womens_doubles"='Zhang Yawen Zhao Tingting'; |
## Task
Generate a SQL query to answer the following question:
`Name the tour when mens singles is chen jin and womens doubles is zhang yawen zhao tingting`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"tour" text,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the tour when mens singles is chen jin and womens doubles is zhang yawen zhao tingting`:
```sql
|
SELECT "womens_doubles" FROM "winners" WHERE "tour"='Malaysia Super Series'; |
## Task
Generate a SQL query to answer the following question:
`Name the womens doubles when tour is malaysia super series`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"tour" text,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the womens doubles when tour is malaysia super series`:
```sql
|
SELECT "mens_singles" FROM "winners" WHERE "womens_singles"='Wang Lin' AND "mixed_doubles"='Joachim Fischer Nielsen Christinna Pedersen'; |
## Task
Generate a SQL query to answer the following question:
`Name the mens singles when womens singles is wang lin and mixed doubles is joachim fischer nielsen christinna pedersen`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"tour" text,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the mens singles when womens singles is wang lin and mixed doubles is joachim fischer nielsen christinna pedersen`:
```sql
|
SELECT "mixed_doubles" FROM "winners" WHERE "tour"='Hong Kong Super Series'; |
## Task
Generate a SQL query to answer the following question:
`Name the mixed doubles when tour is hong kong super series`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"tour" text,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the mixed doubles when tour is hong kong super series`:
```sql
|
SELECT "mixed_doubles" FROM "winners" WHERE "womens_singles"='Zhu Lin'; |
## Task
Generate a SQL query to answer the following question:
`Name the mixed doubles for zhu lin`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"tour" text,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the mixed doubles for zhu lin`:
```sql
|
SELECT "week" FROM "schedule" WHERE "location"='Kingdome'; |
## Task
Generate a SQL query to answer the following question:
`Name the week for kingdome`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"time_et" text,
"tv" text,
"result" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the week for kingdome`:
```sql
|
SELECT "date" FROM "schedule" WHERE "result"='L 13–10 OT'; |
## Task
Generate a SQL query to answer the following question:
`Name the date when result is l 13–10 ot`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"time_et" text,
"tv" text,
"result" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date when result is l 13–10 ot`:
```sql
|
SELECT "record" FROM "schedule" WHERE "result"='L 24–22'; |
## Task
Generate a SQL query to answer the following question:
`Name the record for l 24–22`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"time_et" text,
"tv" text,
"result" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the record for l 24–22`:
```sql
|
SELECT "country" FROM "international_versions" WHERE "channel"='Fox'; |
## Task
Generate a SQL query to answer the following question:
`Which Country is the show aired on Fox?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_versions" (
"country" text,
"local_name" text,
"host" text,
"channel" text,
"year_aired" text,
"top_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Country is the show aired on Fox?`:
```sql
|
SELECT "channel" FROM "international_versions" WHERE "country"='New Zealand'; |
## Task
Generate a SQL query to answer the following question:
`Where is the show aired in New Zealand?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_versions" (
"country" text,
"local_name" text,
"host" text,
"channel" text,
"year_aired" text,
"top_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the show aired in New Zealand?`:
```sql
|
SELECT "channel" FROM "international_versions" WHERE "top_prize"='€100,000'; |
## Task
Generate a SQL query to answer the following question:
`What channel had the prize of €100,000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_versions" (
"country" text,
"local_name" text,
"host" text,
"channel" text,
"year_aired" text,
"top_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What channel had the prize of €100,000?`:
```sql
|
SELECT COUNT("host") FROM "international_versions" WHERE "channel"='Seven Network'; |
## Task
Generate a SQL query to answer the following question:
`How many hosts were on Seven Network?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_versions" (
"country" text,
"local_name" text,
"host" text,
"channel" text,
"year_aired" text,
"top_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many hosts were on Seven Network?`:
```sql
|
SELECT "country" FROM "international_versions" WHERE "channel"='TVNZ'; |
## Task
Generate a SQL query to answer the following question:
`What country is the show aired on TVNZ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_versions" (
"country" text,
"local_name" text,
"host" text,
"channel" text,
"year_aired" text,
"top_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country is the show aired on TVNZ?`:
```sql
|
SELECT "capital" FROM "administrative_divisions" WHERE "region"='Umbria'; |
## Task
Generate a SQL query to answer the following question:
`What is the capital of Umbria?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "administrative_divisions" (
"region" text,
"capital" text,
"area_km" real,
"area_sq_mi" real,
"population" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the capital of Umbria?`:
```sql
|
SELECT "region" FROM "administrative_divisions" WHERE "capital"='Milan'; |
## Task
Generate a SQL query to answer the following question:
`What is the region where Milan is located?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "administrative_divisions" (
"region" text,
"capital" text,
"area_km" real,
"area_sq_mi" real,
"population" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the region where Milan is located?`:
```sql
|
SELECT MAX("area_km") FROM "administrative_divisions" WHERE "region"='Tuscany'; |
## Task
Generate a SQL query to answer the following question:
`What is the area of Tuscany?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "administrative_divisions" (
"region" text,
"capital" text,
"area_km" real,
"area_sq_mi" real,
"population" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the area of Tuscany?`:
```sql
|
SELECT MIN("2500_3000ft") FROM "breakdown_by_region_and_height" WHERE "country"='Scotland'; |
## Task
Generate a SQL query to answer the following question:
`Name the minimum for 2500-3000 ft for scotland`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "breakdown_by_region_and_height" (
"country" text,
"total" real,
"4000ft" real,
"3500_4000ft" real,
"3000_3500ft" real,
"2500_3000ft" real,
"2000_2500ft" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the minimum for 2500-3000 ft for scotland`:
```sql
|
SELECT MAX("2500_3000ft") FROM "breakdown_by_region_and_height"; |
## Task
Generate a SQL query to answer the following question:
`Name the most of 2500-3000ft`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "breakdown_by_region_and_height" (
"country" text,
"total" real,
"4000ft" real,
"3500_4000ft" real,
"3000_3500ft" real,
"2500_3000ft" real,
"2000_2500ft" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most of 2500-3000ft`:
```sql
|
SELECT MIN("total") FROM "breakdown_by_region_and_height" WHERE "country"='Ireland'; |
## Task
Generate a SQL query to answer the following question:
`Name the minimum total for ireland`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "breakdown_by_region_and_height" (
"country" text,
"total" real,
"4000ft" real,
"3500_4000ft" real,
"3000_3500ft" real,
"2500_3000ft" real,
"2000_2500ft" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the minimum total for ireland`:
```sql
|
SELECT "directed_by" FROM "table1_14562722_1" WHERE "written_by"='Aaron Ehasz & John O''Bryan'; |
## Task
Generate a SQL query to answer the following question:
`Who directed all the episodes that were written by aaron ehasz & john o'bryan?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14562722_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed all the episodes that were written by aaron ehasz & john o'bryan?`:
```sql
|
SELECT "production_code" FROM "table1_14562722_1" WHERE "written_by"='Michael Dante DiMartino' AND "directed_by"='Lauren MacMullan'; |
## Task
Generate a SQL query to answer the following question:
`What was the production code of the episode that was written by michael dante dimartino and directed by lauren macmullan?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14562722_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the production code of the episode that was written by michael dante dimartino and directed by lauren macmullan?`:
```sql
|
SELECT "original_air_date" FROM "table1_14562722_1" WHERE "directed_by"='Giancarlo Volpe' AND "written_by"='John O''Bryan'; |
## Task
Generate a SQL query to answer the following question:
`What was the airdate of the episode that was directed by giancarlo volpe and written by is john o'bryan?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14562722_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the airdate of the episode that was directed by giancarlo volpe and written by is john o'bryan?`:
```sql
|
SELECT "situation" FROM "table1_14570857_1" WHERE "original_u_s_airdate"='December 5, 2007'; |
## Task
Generate a SQL query to answer the following question:
`Which situation has an original u.s. airdate of December 5, 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14570857_1" (
"num" real,
"episode_title" text,
"situation" text,
"date_of_situation" text,
"nature_of_situation" text,
"original_u_s_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which situation has an original u.s. airdate of December 5, 2007?`:
```sql
|
SELECT "date_of_situation" FROM "table1_14570857_1" WHERE "original_u_s_airdate"='December 5, 2007'; |
## Task
Generate a SQL query to answer the following question:
`What is the date of situation for the original u.s. airdate of December 5, 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14570857_1" (
"num" real,
"episode_title" text,
"situation" text,
"date_of_situation" text,
"nature_of_situation" text,
"original_u_s_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of situation for the original u.s. airdate of December 5, 2007?`:
```sql
|
SELECT COUNT("date_of_situation") FROM "table1_14570857_1" WHERE "num"=4; |
## Task
Generate a SQL query to answer the following question:
`How many entries are there for date of situation for #4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14570857_1" (
"num" real,
"episode_title" text,
"situation" text,
"date_of_situation" text,
"nature_of_situation" text,
"original_u_s_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many entries are there for date of situation for #4?`:
```sql
|
SELECT COUNT("num") FROM "table1_14570857_1" WHERE "date_of_situation"='23 January 2003'; |
## Task
Generate a SQL query to answer the following question:
`How many # entries are there for the date of situation of 23 January 2003?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14570857_1" (
"num" real,
"episode_title" text,
"situation" text,
"date_of_situation" text,
"nature_of_situation" text,
"original_u_s_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many # entries are there for the date of situation of 23 January 2003?`:
```sql
|
SELECT "nature_of_situation" FROM "table1_14570857_1" WHERE "date_of_situation"='8 October 2005 – 12 October 2005'; |
## Task
Generate a SQL query to answer the following question:
`For the 8 October 2005 – 12 October 2005 situation dates what was the nature of the situation?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14570857_1" (
"num" real,
"episode_title" text,
"situation" text,
"date_of_situation" text,
"nature_of_situation" text,
"original_u_s_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the 8 October 2005 – 12 October 2005 situation dates what was the nature of the situation?`:
```sql
|
SELECT "circuit" FROM "calendar" WHERE "gt3_winner"='Alex Mortimer Bradley Ellis'; |
## Task
Generate a SQL query to answer the following question:
`Name the circuit for gt3 alex mortimer bradley ellis`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar" (
"round" real,
"circuit" text,
"date" text,
"length" text,
"pole_position" text,
"gt3_winner" text,
"gt4_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the circuit for gt3 alex mortimer bradley ellis`:
```sql
|
SELECT "episodes" FROM "table1_14562722_2" WHERE "region_1"='September 19, 2006'; |
## Task
Generate a SQL query to answer the following question:
`Name the episodes when region 1 is september 19, 2006`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14562722_2" (
"volume" real,
"discs" real,
"episodes" real,
"region_1" text,
"region_2" text,
"region_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the episodes when region 1 is september 19, 2006`:
```sql
|
SELECT MAX("discs") FROM "table1_14562722_2"; |
## Task
Generate a SQL query to answer the following question:
`Name the maximum discs`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14562722_2" (
"volume" real,
"discs" real,
"episodes" real,
"region_1" text,
"region_2" text,
"region_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the maximum discs`:
```sql
|
SELECT MAX("episodes") FROM "table1_14562722_2" WHERE "region_4"='March 13, 2008'; |
## Task
Generate a SQL query to answer the following question:
`Name the most epiosdes when region 4 is march 13, 2008`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14562722_2" (
"volume" real,
"discs" real,
"episodes" real,
"region_1" text,
"region_2" text,
"region_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most epiosdes when region 4 is march 13, 2008`:
```sql
|
SELECT "individual_winners" FROM "national_summary" WHERE "nation"='Australia'; |
## Task
Generate a SQL query to answer the following question:
`what's the individual winners with nation being australia`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "national_summary" (
"nation" text,
"total_wins" real,
"team_wins" real,
"individual_wins" real,
"individual_winners" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the individual winners with nation being australia`:
```sql
|
SELECT MIN("total_wins") FROM "national_summary"; |
## Task
Generate a SQL query to answer the following question:
`what is the value for minimum total wins`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "national_summary" (
"nation" text,
"total_wins" real,
"team_wins" real,
"individual_wins" real,
"individual_winners" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the value for minimum total wins`:
```sql
|
SELECT "1896_no_game" FROM "game_results" WHERE "1894_wsu_10_0_moscow"='1994 No game'; |
## Task
Generate a SQL query to answer the following question:
`When 1994 no game is the 1894 wsu 10–0 moscow what is the 1896 no game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_results" (
"1890_no_game" text,
"1891_no_game" text,
"1892_no_game" text,
"1893_no_game" text,
"1894_wsu_10_0_moscow" text,
"1895_wsu_10_4_pullman" text,
"1896_no_game" text,
"1897_no_game" text,
"1898_no_game" text,
"1899_wsu_11_0_pullman" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 1994 no game is the 1894 wsu 10–0 moscow what is the 1896 no game?`:
```sql
|
SELECT "1894_wsu_10_0_moscow" FROM "game_results" WHERE "1893_no_game"='1963 WSU* 14–10 Pullman'; |
## Task
Generate a SQL query to answer the following question:
`When 1963 wsu* 14–10 pullman is the 1893 no game what is the 1894 wsu 10–0 moscow?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_results" (
"1890_no_game" text,
"1891_no_game" text,
"1892_no_game" text,
"1893_no_game" text,
"1894_wsu_10_0_moscow" text,
"1895_wsu_10_4_pullman" text,
"1896_no_game" text,
"1897_no_game" text,
"1898_no_game" text,
"1899_wsu_11_0_pullman" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 1963 wsu* 14–10 pullman is the 1893 no game what is the 1894 wsu 10–0 moscow?`:
```sql
|
SELECT COUNT("1899_wsu_11_0_pullman") FROM "game_results" WHERE "1894_wsu_10_0_moscow"='1934 WSU* 19–0 Pullman'; |
## Task
Generate a SQL query to answer the following question:
`When 1934 wsu* 19–0 pullman is the 1894 wsu 10–0 moscow how many 1899 wsu* 11–0 pullmans are there?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_results" (
"1890_no_game" text,
"1891_no_game" text,
"1892_no_game" text,
"1893_no_game" text,
"1894_wsu_10_0_moscow" text,
"1895_wsu_10_4_pullman" text,
"1896_no_game" text,
"1897_no_game" text,
"1898_no_game" text,
"1899_wsu_11_0_pullman" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 1934 wsu* 19–0 pullman is the 1894 wsu 10–0 moscow how many 1899 wsu* 11–0 pullmans are there?`:
```sql
|
SELECT "1890_no_game" FROM "game_results" WHERE "1897_no_game"='1987 No game'; |
## Task
Generate a SQL query to answer the following question:
`When 1987 no game is the 1897 no game what is the 1890 no game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_results" (
"1890_no_game" text,
"1891_no_game" text,
"1892_no_game" text,
"1893_no_game" text,
"1894_wsu_10_0_moscow" text,
"1895_wsu_10_4_pullman" text,
"1896_no_game" text,
"1897_no_game" text,
"1898_no_game" text,
"1899_wsu_11_0_pullman" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 1987 no game is the 1897 no game what is the 1890 no game?`:
```sql
|
SELECT "1896_no_game" FROM "game_results" WHERE "1891_no_game"='1971 No game'; |
## Task
Generate a SQL query to answer the following question:
`When 1971 no game is the 1891 no game what is the 1896 no game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_results" (
"1890_no_game" text,
"1891_no_game" text,
"1892_no_game" text,
"1893_no_game" text,
"1894_wsu_10_0_moscow" text,
"1895_wsu_10_4_pullman" text,
"1896_no_game" text,
"1897_no_game" text,
"1898_no_game" text,
"1899_wsu_11_0_pullman" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 1971 no game is the 1891 no game what is the 1896 no game?`:
```sql
|
SELECT "1895_wsu_10_4_pullman" FROM "game_results" WHERE "1897_no_game"='1907 UI* 5–4 Moscow'; |
## Task
Generate a SQL query to answer the following question:
`When the 1907 ui* 5–4 moscow is the 1897 no game what is the 1895 wsu* 10–4 pullman?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_results" (
"1890_no_game" text,
"1891_no_game" text,
"1892_no_game" text,
"1893_no_game" text,
"1894_wsu_10_0_moscow" text,
"1895_wsu_10_4_pullman" text,
"1896_no_game" text,
"1897_no_game" text,
"1898_no_game" text,
"1899_wsu_11_0_pullman" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the 1907 ui* 5–4 moscow is the 1897 no game what is the 1895 wsu* 10–4 pullman?`:
```sql
|
SELECT COUNT("team_s") FROM "nascar_sprint_cup_series" WHERE "winnings"='$1,752,299'; |
## Task
Generate a SQL query to answer the following question:
`What is the total amount o teams where winnings is $1,752,299?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total amount o teams where winnings is $1,752,299?`:
```sql
|
SELECT "avg_start" FROM "nascar_sprint_cup_series" WHERE "starts"=30; |
## Task
Generate a SQL query to answer the following question:
`What is the avg start that starts at 30?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the avg start that starts at 30?`:
```sql
|
SELECT COUNT("year") FROM "nascar_sprint_cup_series" WHERE "avg_start"='27.3'; |
## Task
Generate a SQL query to answer the following question:
`What is the totl amount of years where avg start is 27.3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the totl amount of years where avg start is 27.3?`:
```sql
|
SELECT "name_alma_mater" FROM "coaching_history" WHERE "wins"=15; |
## Task
Generate a SQL query to answer the following question:
`What coach had 15 wins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "coaching_history" (
"name_alma_mater" text,
"seasons" text,
"games" real,
"wins" real,
"losses" real,
"win_pct" text,
"ncaa_tour" text,
"nit_tour" text,
"mcc_tour" text,
"a_10_tour" text
);
### SQL
Given the database schema, here is the SQL query that answers `What coach had 15 wins?`:
```sql
|
SELECT "losses" FROM "coaching_history" WHERE "games"=19; |
## Task
Generate a SQL query to answer the following question:
`How many losses for the coach that coached 19 games?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "coaching_history" (
"name_alma_mater" text,
"seasons" text,
"games" real,
"wins" real,
"losses" real,
"win_pct" text,
"ncaa_tour" text,
"nit_tour" text,
"mcc_tour" text,
"a_10_tour" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many losses for the coach that coached 19 games?`:
```sql
|
SELECT "school_year" FROM "team" WHERE "class_a"='Sterling City' AND "class_aa"='Little Elm'; |
## Task
Generate a SQL query to answer the following question:
`Name the school year for class a for sterling city and little elm`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team" (
"school_year" text,
"class_a" text,
"class_aa" text,
"class_aaa" text,
"class_aaaa" text,
"class_aaaaa" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the school year for class a for sterling city and little elm`:
```sql
|
SELECT COUNT("class_aa") FROM "team" WHERE "class_aaa"='Bridgeport' AND "school_year"='1999-2000'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of class aa for bridgeport and 1999-2000`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team" (
"school_year" text,
"class_a" text,
"class_aa" text,
"class_aaa" text,
"class_aaaa" text,
"class_aaaaa" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of class aa for bridgeport and 1999-2000`:
```sql
|
SELECT "class_aa" FROM "team" WHERE "school_year"='1998-99'; |
## Task
Generate a SQL query to answer the following question:
`Name the class aa for 1998-99`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team" (
"school_year" text,
"class_a" text,
"class_aa" text,
"class_aaa" text,
"class_aaaa" text,
"class_aaaaa" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the class aa for 1998-99`:
```sql
|
SELECT "class_a" FROM "team" WHERE "class_aaaaa"='Pearland'; |
## Task
Generate a SQL query to answer the following question:
`Name the class a for pearland`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team" (
"school_year" text,
"class_a" text,
"class_aa" text,
"class_aaa" text,
"class_aaaa" text,
"class_aaaaa" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the class a for pearland`:
```sql
|
SELECT "class_aaaaa" FROM "team" WHERE "school_year"='2005-06'; |
## Task
Generate a SQL query to answer the following question:
`Name the class aaaaa for 2005-06`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team" (
"school_year" text,
"class_a" text,
"class_aa" text,
"class_aaa" text,
"class_aaaa" text,
"class_aaaaa" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the class aaaaa for 2005-06`:
```sql
|
SELECT COUNT("class_aaaaa") FROM "team" WHERE "school_year"='1988-89'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of class aaaaa for 1988-89`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team" (
"school_year" text,
"class_a" text,
"class_aa" text,
"class_aaa" text,
"class_aaaa" text,
"class_aaaaa" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of class aaaaa for 1988-89`:
```sql
|
SELECT "females_pct" FROM "table1_14598_9" WHERE "india_state_ut"='Maharashtra'; |
## Task
Generate a SQL query to answer the following question:
`What is the percentage of females where in India and are maharashtra?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14598_9" (
"state_ut_code" real,
"india_state_ut" text,
"literate_persons_pct" text,
"males_pct" text,
"females_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the percentage of females where in India and are maharashtra?`:
```sql
|
SELECT "females_pct" FROM "table1_14598_9" WHERE "literate_persons_pct"='68.74'; |
## Task
Generate a SQL query to answer the following question:
`What is the percentage of all females that are literate people have a percentage of 68.74?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14598_9" (
"state_ut_code" real,
"india_state_ut" text,
"literate_persons_pct" text,
"males_pct" text,
"females_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the percentage of all females that are literate people have a percentage of 68.74?`:
```sql
|
SELECT "females_pct" FROM "table1_14598_9" WHERE "state_ut_code"=4; |
## Task
Generate a SQL query to answer the following question:
`What is the percentage of females where the state code is a 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14598_9" (
"state_ut_code" real,
"india_state_ut" text,
"literate_persons_pct" text,
"males_pct" text,
"females_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the percentage of females where the state code is a 4?`:
```sql
|
SELECT "literate_persons_pct" FROM "table1_14598_9" WHERE "females_pct"='73.17'; |
## Task
Generate a SQL query to answer the following question:
`What is the percentage of all the literate people where females are 73.17?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14598_9" (
"state_ut_code" real,
"india_state_ut" text,
"literate_persons_pct" text,
"males_pct" text,
"females_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the percentage of all the literate people where females are 73.17?`:
```sql
|
SELECT "literate_persons_pct" FROM "table1_14598_9" WHERE "india_state_ut"='Andaman and Nicobar Islands'; |
## Task
Generate a SQL query to answer the following question:
`What is the percentage of literate people where india is andaman and Nicobar Islands?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14598_9" (
"state_ut_code" real,
"india_state_ut" text,
"literate_persons_pct" text,
"males_pct" text,
"females_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the percentage of literate people where india is andaman and Nicobar Islands?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.