output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "horizontal_0_a" FROM "triangles_and_their_sides" WHERE "name"='通 TONG'; |
## Task
Generate a SQL query to answer the following question:
`Name the horizontal 0 for 通 tong`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "triangles_and_their_sides" (
"number" real,
"name" text,
"vertices" text,
"hypotenuse_0_c" text,
"vertical_0_b" text,
"horizontal_0_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the horizontal 0 for 通 tong`:
```sql
|
SELECT "horizontal_0_a" FROM "triangles_and_their_sides" WHERE "hypotenuse_0_c"='明弦(RY日月)'; |
## Task
Generate a SQL query to answer the following question:
`Name the horizontal 0 for 明弦(ry日月)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "triangles_and_their_sides" (
"number" real,
"name" text,
"vertices" text,
"hypotenuse_0_c" text,
"vertical_0_b" text,
"horizontal_0_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the horizontal 0 for 明弦(ry日月)`:
```sql
|
SELECT "vertical_0_b" FROM "triangles_and_their_sides" WHERE "horizontal_0_a"='明勾(YS月南)'; |
## Task
Generate a SQL query to answer the following question:
`Name the vertical for 明勾(ys月南)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "triangles_and_their_sides" (
"number" real,
"name" text,
"vertices" text,
"hypotenuse_0_c" text,
"vertical_0_b" text,
"horizontal_0_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the vertical for 明勾(ys月南)`:
```sql
|
SELECT COUNT("horizontal_0_a") FROM "triangles_and_their_sides" WHERE "number"=10; |
## Task
Generate a SQL query to answer the following question:
`Name the horizontal number for number 10`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "triangles_and_their_sides" (
"number" real,
"name" text,
"vertices" text,
"hypotenuse_0_c" text,
"vertical_0_b" text,
"horizontal_0_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the horizontal number for number 10`:
```sql
|
SELECT COUNT("mls_team") FROM "table1_25518547_3" WHERE "affiliation"='University of Maryland'; |
## Task
Generate a SQL query to answer the following question:
`How many teams drafted players from the University of Maryland?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25518547_3" (
"pick_num" real,
"mls_team" text,
"player" text,
"position" text,
"affiliation" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many teams drafted players from the University of Maryland?`:
```sql
|
SELECT "mls_team" FROM "table1_25518547_3" WHERE "player"='Samuel Appiah'; |
## Task
Generate a SQL query to answer the following question:
`What MLS team drafted samuel appiah?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25518547_3" (
"pick_num" real,
"mls_team" text,
"player" text,
"position" text,
"affiliation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What MLS team drafted samuel appiah?`:
```sql
|
SELECT "player" FROM "table1_25518547_3" WHERE "mls_team"='Philadelphia Union'; |
## Task
Generate a SQL query to answer the following question:
`What player was drafted by the philadelphia union?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25518547_3" (
"pick_num" real,
"mls_team" text,
"player" text,
"position" text,
"affiliation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player was drafted by the philadelphia union?`:
```sql
|
SELECT "founded" FROM "current_members" WHERE "nickname"='Fightin'' Engineers'; |
## Task
Generate a SQL query to answer the following question:
`This institution nicknamed Fightin' engineers was founded on what year?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `This institution nicknamed Fightin' engineers was founded on what year?`:
```sql
|
SELECT COUNT("joined") FROM "current_members" WHERE "location"='Franklin, Indiana'; |
## Task
Generate a SQL query to answer the following question:
`How many inputs joined this institution located in Franklin, Indiana?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many inputs joined this institution located in Franklin, Indiana?`:
```sql
|
SELECT COUNT("founded") FROM "current_members" WHERE "nickname"='Beavers'; |
## Task
Generate a SQL query to answer the following question:
`How many times this institution was founded that was nicknamed Beavers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times this institution was founded that was nicknamed Beavers?`:
```sql
|
SELECT "joined" FROM "current_members" WHERE "type"='Private/Church of God'; |
## Task
Generate a SQL query to answer the following question:
`How many joined this Private/Church of God institution?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many joined this Private/Church of God institution?`:
```sql
|
SELECT "joined" FROM "current_members" WHERE "institution"='Manchester University'; |
## Task
Generate a SQL query to answer the following question:
`How many joined Manchester University?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many joined Manchester University?`:
```sql
|
SELECT "circuit" FROM "table1_25531112_2" WHERE "event"='Clipsal 500'; |
## Task
Generate a SQL query to answer the following question:
`What circuit was the Clipsal 500 on?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25531112_2" (
"rd" text,
"event" text,
"circuit" text,
"city_state" text,
"date" text,
"championship" text,
"challenge" text,
"production" text
);
### SQL
Given the database schema, here is the SQL query that answers `What circuit was the Clipsal 500 on?`:
```sql
|
SELECT "challenge" FROM "table1_25531112_2" WHERE "circuit"='Albert Park Grand Prix Circuit'; |
## Task
Generate a SQL query to answer the following question:
`Who made the challenge on the Albert Park Grand Prix Circuit?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25531112_2" (
"rd" text,
"event" text,
"circuit" text,
"city_state" text,
"date" text,
"championship" text,
"challenge" text,
"production" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who made the challenge on the Albert Park Grand Prix Circuit?`:
```sql
|
SELECT "rd" FROM "table1_25531112_2" WHERE "circuit"='Eastern Creek Raceway'; |
## Task
Generate a SQL query to answer the following question:
`In what round was the circuit Eastern Creek Raceway?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25531112_2" (
"rd" text,
"event" text,
"circuit" text,
"city_state" text,
"date" text,
"championship" text,
"challenge" text,
"production" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what round was the circuit Eastern Creek Raceway?`:
```sql
|
SELECT "challenge" FROM "table1_25531112_2" WHERE "event"='Australian Grand Prix'; |
## Task
Generate a SQL query to answer the following question:
`Who made the challenge in the Australian Grand Prix?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25531112_2" (
"rd" text,
"event" text,
"circuit" text,
"city_state" text,
"date" text,
"championship" text,
"challenge" text,
"production" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who made the challenge in the Australian Grand Prix?`:
```sql
|
SELECT "shirt_sponsor" FROM "personnel_and_kits" WHERE "average_squad_age"='25.46'; |
## Task
Generate a SQL query to answer the following question:
`Who is the shirt sponsor of the team with an average squad age of 25.46?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "personnel_and_kits" (
"team" text,
"manager" text,
"captain" text,
"kit_manufacturer" text,
"shirt_sponsor" text,
"average_squad_age" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the shirt sponsor of the team with an average squad age of 25.46?`:
```sql
|
SELECT "shirt_sponsor" FROM "personnel_and_kits" WHERE "team"='FC Bunyodkor'; |
## Task
Generate a SQL query to answer the following question:
`Who is the shirt sponsor for FC Bunyodkor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "personnel_and_kits" (
"team" text,
"manager" text,
"captain" text,
"kit_manufacturer" text,
"shirt_sponsor" text,
"average_squad_age" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the shirt sponsor for FC Bunyodkor?`:
```sql
|
SELECT "average_squad_age" FROM "personnel_and_kits" WHERE "shirt_sponsor"='Sho''rtan Gaz Mahsulot' AND "kit_manufacturer"='Adidas'; |
## Task
Generate a SQL query to answer the following question:
`What is the average squad age of the team whose shirt sponsor is Sho'rtan Gaz Mahsulot and whose kit manufacturer is Adidas? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "personnel_and_kits" (
"team" text,
"manager" text,
"captain" text,
"kit_manufacturer" text,
"shirt_sponsor" text,
"average_squad_age" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average squad age of the team whose shirt sponsor is Sho'rtan Gaz Mahsulot and whose kit manufacturer is Adidas? `:
```sql
|
SELECT "captain" FROM "personnel_and_kits" WHERE "kit_manufacturer"='Nike'; |
## Task
Generate a SQL query to answer the following question:
`Who is the captain of the team whose kit manufacturer is Nike? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "personnel_and_kits" (
"team" text,
"manager" text,
"captain" text,
"kit_manufacturer" text,
"shirt_sponsor" text,
"average_squad_age" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the captain of the team whose kit manufacturer is Nike? `:
```sql
|
SELECT "manager" FROM "personnel_and_kits" WHERE "team"='FK Andijan'; |
## Task
Generate a SQL query to answer the following question:
`Who is the manager of FK Andijan? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "personnel_and_kits" (
"team" text,
"manager" text,
"captain" text,
"kit_manufacturer" text,
"shirt_sponsor" text,
"average_squad_age" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the manager of FK Andijan? `:
```sql
|
SELECT COUNT("year") FROM "year_by_year" WHERE "open_cup"='Did not qualify' AND "playoffs"='National Final'; |
## Task
Generate a SQL query to answer the following question:
`Name the year for open cup did not qualify and national final`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the year for open cup did not qualify and national final`:
```sql
|
SELECT "league" FROM "year_by_year" WHERE "year"=2000; |
## Task
Generate a SQL query to answer the following question:
`Name the league for 2000`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the league for 2000`:
```sql
|
SELECT "league" FROM "year_by_year" WHERE "playoffs"='Conference Finals'; |
## Task
Generate a SQL query to answer the following question:
`Name the league for conference finals`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the league for conference finals`:
```sql
|
SELECT "directed_by" FROM "table1_25547943_1" WHERE "written_by"='Bill Lawrence'; |
## Task
Generate a SQL query to answer the following question:
`Who directed the episode that was written by Bill Lawrence? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25547943_1" (
"series_num" real,
"season_num" 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 the episode that was written by Bill Lawrence? `:
```sql
|
SELECT "series_result" FROM "series" WHERE "season"='1998'; |
## Task
Generate a SQL query to answer the following question:
`Name the series result for season being 1998`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series" (
"series" real,
"season" text,
"played_in" text,
"first_match" text,
"tests_played_sched" text,
"tests_won_by_australia" real,
"tests_won_by_england" real,
"tests_drawn" real,
"series_result" text,
"holder_at_series_end" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the series result for season being 1998`:
```sql
|
SELECT COUNT("tests_won_by_australia") FROM "series" WHERE "series"=10; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of tests won by australia for series 10`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series" (
"series" real,
"season" text,
"played_in" text,
"first_match" text,
"tests_played_sched" text,
"tests_won_by_australia" real,
"tests_won_by_england" real,
"tests_drawn" real,
"series_result" text,
"holder_at_series_end" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of tests won by australia for series 10`:
```sql
|
SELECT COUNT("winner") FROM "classification_leadership" WHERE "mountains_classification"='not awarded'; |
## Task
Generate a SQL query to answer the following question:
`How many winners were there when the mountains classification was not awarded? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership" (
"stage" real,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"combination_classification" text,
"team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many winners were there when the mountains classification was not awarded? `:
```sql
|
SELECT "mountains_classification" FROM "classification_leadership" WHERE "winner"='Mikel Nieve'; |
## Task
Generate a SQL query to answer the following question:
`Who was awarded mountains classifications when Mikel Nieve was the winner? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership" (
"stage" real,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"combination_classification" text,
"team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was awarded mountains classifications when Mikel Nieve was the winner? `:
```sql
|
SELECT "mountains_classification" FROM "classification_leadership" WHERE "winner"='Alessandro Petacchi'; |
## Task
Generate a SQL query to answer the following question:
`Who was awarded mountains classification when Alessandro petacchi won? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership" (
"stage" real,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"combination_classification" text,
"team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was awarded mountains classification when Alessandro petacchi won? `:
```sql
|
SELECT MIN("production_code") FROM "table1_25548213_1" WHERE "title"='\"My Best Friend''s Baby''s Baby and My Baby''s Baby\"'; |
## Task
Generate a SQL query to answer the following question:
`What is the production code for he episode titled "my best friend's baby's baby and my baby's baby"`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25548213_1" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the production code for he episode titled "my best friend's baby's baby and my baby's baby"`:
```sql
|
SELECT COUNT("production_code") FROM "table1_25548213_1" WHERE "directed_by"='Linda Mendoza'; |
## Task
Generate a SQL query to answer the following question:
`List the number of episodes directed by linda mendoza.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25548213_1" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the number of episodes directed by linda mendoza.`:
```sql
|
SELECT "u_s_viewers_million" FROM "table1_25548213_1" WHERE "written_by"='Kevin Biegel & Aseem Batra'; |
## Task
Generate a SQL query to answer the following question:
`How many million viewers watch the episode that kevin biegel & aseem batra wrote?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25548213_1" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many million viewers watch the episode that kevin biegel & aseem batra wrote?`:
```sql
|
SELECT MAX("series_num") FROM "table1_25548213_1" WHERE "u_s_viewers_million"='5.31'; |
## Task
Generate a SQL query to answer the following question:
`What is the series number that had 5.31 million viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25548213_1" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the series number that had 5.31 million viewers?`:
```sql
|
SELECT "title" FROM "table1_25548213_1" WHERE "directed_by"='Bill Lawrence'; |
## Task
Generate a SQL query to answer the following question:
`What was the name of the episode that bill lawrence directed?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25548213_1" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the name of the episode that bill lawrence directed?`:
```sql
|
SELECT "title" FROM "table1_25548213_1" WHERE "u_s_viewers_million"='4.65'; |
## Task
Generate a SQL query to answer the following question:
`What was the name of the episode that had 4.65 million viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25548213_1" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the name of the episode that had 4.65 million viewers?`:
```sql
|
SELECT "original_air_date" FROM "table1_25548505_1" WHERE "title"='\"My Hard Labor\"'; |
## Task
Generate a SQL query to answer the following question:
`What is the original air date of the episode titled "My Hard Labor"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25548505_1" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original air date of the episode titled "My Hard Labor"?`:
```sql
|
SELECT "production_code" FROM "table1_25548505_1" WHERE "directed_by"='Michael McDonald'; |
## Task
Generate a SQL query to answer the following question:
`What is the production code of the episode directed by Michael McDonald?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25548505_1" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the production code of the episode directed by Michael McDonald?`:
```sql
|
SELECT "original_air_date" FROM "table1_25548505_1" WHERE "u_s_viewers_millions"='5.30'; |
## Task
Generate a SQL query to answer the following question:
`What was the original air date of the episode that had 5.30 million U.S. viewers? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25548505_1" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the original air date of the episode that had 5.30 million U.S. viewers? `:
```sql
|
SELECT "title" FROM "table1_25548505_1" WHERE "directed_by"='Linda Mendoza'; |
## Task
Generate a SQL query to answer the following question:
`What is the title of the episode directed by Linda Mendoza?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25548505_1" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the episode directed by Linda Mendoza?`:
```sql
|
SELECT "type" FROM "political" WHERE "area_km"='155.77'; |
## Task
Generate a SQL query to answer the following question:
`What are all the political types where area is 155.77?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "political" (
"city_municipality" text,
"type" text,
"no_of_barangays" real,
"population_2010" real,
"area_km" text,
"pop_density_per_km" real,
"income_class" text,
"zip_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are all the political types where area is 155.77?`:
```sql
|
SELECT MIN("no_of_barangays") FROM "political" WHERE "type"='Component City'; |
## Task
Generate a SQL query to answer the following question:
`What is the minimum number of barangays where the type is component city?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "political" (
"city_municipality" text,
"type" text,
"no_of_barangays" real,
"population_2010" real,
"area_km" text,
"pop_density_per_km" real,
"income_class" text,
"zip_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum number of barangays where the type is component city?`:
```sql
|
SELECT "city_municipality" FROM "political" WHERE "area_km"='176.40'; |
## Task
Generate a SQL query to answer the following question:
`What city/municipality has area of 176.40?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "political" (
"city_municipality" text,
"type" text,
"no_of_barangays" real,
"population_2010" real,
"area_km" text,
"pop_density_per_km" real,
"income_class" text,
"zip_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What city/municipality has area of 176.40?`:
```sql
|
SELECT "area_km" FROM "political" WHERE "population_2010"=38062; |
## Task
Generate a SQL query to answer the following question:
`What is the area where population in 2010 is 38062?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "political" (
"city_municipality" text,
"type" text,
"no_of_barangays" real,
"population_2010" real,
"area_km" text,
"pop_density_per_km" real,
"income_class" text,
"zip_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the area where population in 2010 is 38062?`:
```sql
|
SELECT COUNT("pop_density_per_km") FROM "political" WHERE "area_km"='48.67'; |
## Task
Generate a SQL query to answer the following question:
`What is the population density where area is 48.67?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "political" (
"city_municipality" text,
"type" text,
"no_of_barangays" real,
"population_2010" real,
"area_km" text,
"pop_density_per_km" real,
"income_class" text,
"zip_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the population density where area is 48.67?`:
```sql
|
SELECT "couple" FROM "average_chart" WHERE "average"='21.0'; |
## Task
Generate a SQL query to answer the following question:
`What couple averaged 21.0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "average_chart" (
"rank_by_average" real,
"competition_finish" real,
"couple" text,
"total" real,
"number_of_dances" real,
"average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What couple averaged 21.0?`:
```sql
|
SELECT MAX("number_of_dances") FROM "average_chart" WHERE "competition_finish"=3; |
## Task
Generate a SQL query to answer the following question:
`What was the number of dances for the competition finish of 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "average_chart" (
"rank_by_average" real,
"competition_finish" real,
"couple" text,
"total" real,
"number_of_dances" real,
"average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the number of dances for the competition finish of 3?`:
```sql
|
SELECT MIN("wins") FROM "career_summary"; |
## Task
Generate a SQL query to answer the following question:
`What was his minimum number wins in a single year?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was his minimum number wins in a single year?`:
```sql
|
SELECT "series" FROM "career_summary" WHERE "position"='NC†'; |
## Task
Generate a SQL query to answer the following question:
`In which series was his position NC† ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which series was his position NC† ?`:
```sql
|
SELECT "position" FROM "career_summary" WHERE "points"='38'; |
## Task
Generate a SQL query to answer the following question:
`What was his position when he garnered 38 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was his position when he garnered 38 points?`:
```sql
|
SELECT "sail_number" FROM "handicap_results_top_10" WHERE "yacht"='Two True'; |
## Task
Generate a SQL query to answer the following question:
`What was the sail number of Two True?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "handicap_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"corrected_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the sail number of Two True?`:
```sql
|
SELECT "corrected_time_d_hh_mm_ss" FROM "handicap_results_top_10" WHERE "yacht"='Swish'; |
## Task
Generate a SQL query to answer the following question:
`What was Swish's corrected time?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "handicap_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"corrected_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Swish's corrected time?`:
```sql
|
SELECT "yacht" FROM "handicap_results_top_10" WHERE "skipper"='Andrew Saies'; |
## Task
Generate a SQL query to answer the following question:
`What yacht did Andrew Saies sail on?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "handicap_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"corrected_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What yacht did Andrew Saies sail on?`:
```sql
|
SELECT "loa_metres" FROM "line_honours_results_top_10" WHERE "elapsed_time_d_hh_mm_ss"='3:06:41:37'; |
## Task
Generate a SQL query to answer the following question:
`What was the LOA when the elapsed time was 3:06:41:37?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "line_honours_results_top_10" (
"position" real,
"race_number" text,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"elapsed_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the LOA when the elapsed time was 3:06:41:37?`:
```sql
|
SELECT "loa_metres" FROM "line_honours_results_top_10" WHERE "yacht_type"='Simonis Voogd Maxi'; |
## Task
Generate a SQL query to answer the following question:
`What was the LOA for the Simonis Voogd Maxi? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "line_honours_results_top_10" (
"position" real,
"race_number" text,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"elapsed_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the LOA for the Simonis Voogd Maxi? `:
```sql
|
SELECT "position" FROM "line_honours_results_top_10" WHERE "skipper"='Mark Richards'; |
## Task
Generate a SQL query to answer the following question:
`In what position did skipper Mark Richards place? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "line_honours_results_top_10" (
"position" real,
"race_number" text,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"elapsed_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what position did skipper Mark Richards place? `:
```sql
|
SELECT "yacht_type" FROM "line_honours_results_top_10" WHERE "yacht"='ICAP Leopard'; |
## Task
Generate a SQL query to answer the following question:
`What is the yacht type of Icap Leopard? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "line_honours_results_top_10" (
"position" real,
"race_number" text,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"elapsed_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the yacht type of Icap Leopard? `:
```sql
|
SELECT COUNT("elapsed_time_d_hh_mm_ss") FROM "line_honours_results_top_10" WHERE "loa_metres"='27.38'; |
## Task
Generate a SQL query to answer the following question:
`How many elapsed times were posted for the yacht with 27.38 LOA meters? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "line_honours_results_top_10" (
"position" real,
"race_number" text,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"elapsed_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many elapsed times were posted for the yacht with 27.38 LOA meters? `:
```sql
|
SELECT "skipper" FROM "line_honours_results_top_10" WHERE "sail_number"='AUS60000'; |
## Task
Generate a SQL query to answer the following question:
`what skipper has the sail number aus60000? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "line_honours_results_top_10" (
"position" real,
"race_number" text,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"elapsed_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `what skipper has the sail number aus60000? `:
```sql
|
SELECT "aggressive_rider" FROM "classification_leadership" WHERE "winner"='Luis León Sánchez'; |
## Task
Generate a SQL query to answer the following question:
`Who was the aggressive rider when the winner was luis león sánchez?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership" (
"stage" real,
"winner" text,
"general_classification" text,
"mountains_classification" text,
"sprint_classification" text,
"young_rider_classification" text,
"team_classification" text,
"aggressive_rider" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the aggressive rider when the winner was luis león sánchez?`:
```sql
|
SELECT "aggressive_rider" FROM "classification_leadership" WHERE "sprint_classification"='André Greipel' AND "mountains_classification"='Timothy Roe'; |
## Task
Generate a SQL query to answer the following question:
`Who was the aggressive rider when the sprint classification was andré greipel and mountains classification was timothy roe?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership" (
"stage" real,
"winner" text,
"general_classification" text,
"mountains_classification" text,
"sprint_classification" text,
"young_rider_classification" text,
"team_classification" text,
"aggressive_rider" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the aggressive rider when the sprint classification was andré greipel and mountains classification was timothy roe?`:
```sql
|
SELECT "stage" FROM "classification_leadership" WHERE "winner"='Luis León Sánchez'; |
## Task
Generate a SQL query to answer the following question:
`What was the stage when the winner was luis león sánchez?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership" (
"stage" real,
"winner" text,
"general_classification" text,
"mountains_classification" text,
"sprint_classification" text,
"young_rider_classification" text,
"team_classification" text,
"aggressive_rider" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the stage when the winner was luis león sánchez?`:
```sql
|
SELECT "young_rider_classification" FROM "classification_leadership" WHERE "winner"='Manuel Cardoso'; |
## Task
Generate a SQL query to answer the following question:
`What was the young rider classification when manuel cardoso was the winner?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership" (
"stage" real,
"winner" text,
"general_classification" text,
"mountains_classification" text,
"sprint_classification" text,
"young_rider_classification" text,
"team_classification" text,
"aggressive_rider" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the young rider classification when manuel cardoso was the winner?`:
```sql
|
SELECT COUNT("winner") FROM "classification_leadership" WHERE "stage"=5; |
## Task
Generate a SQL query to answer the following question:
`How many winners were there for stage 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership" (
"stage" real,
"winner" text,
"general_classification" text,
"mountains_classification" text,
"sprint_classification" text,
"young_rider_classification" text,
"team_classification" text,
"aggressive_rider" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many winners were there for stage 5?`:
```sql
|
SELECT COUNT("population_2007") FROM "subdivisions" WHERE "municipality"='Gigmoto'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2007 population of Gigmoto?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "subdivisions" (
"municipality" text,
"no_of_barangays" real,
"area_hectares" real,
"population_2007" real,
"population_2010" real,
"pop_density_per_km_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2007 population of Gigmoto?`:
```sql
|
SELECT "population_2010" FROM "subdivisions" WHERE "no_of_barangays"=31; |
## Task
Generate a SQL query to answer the following question:
`What is the 2010 population of the municipality with 31 barangays?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "subdivisions" (
"municipality" text,
"no_of_barangays" real,
"area_hectares" real,
"population_2007" real,
"population_2010" real,
"pop_density_per_km_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2010 population of the municipality with 31 barangays?`:
```sql
|
SELECT "pop_density_per_km_2" FROM "subdivisions" WHERE "municipality"='Caramoran'; |
## Task
Generate a SQL query to answer the following question:
`What is the population density of Caramoran?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "subdivisions" (
"municipality" text,
"no_of_barangays" real,
"area_hectares" real,
"population_2007" real,
"population_2010" real,
"pop_density_per_km_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the population density of Caramoran?`:
```sql
|
SELECT "municipality" FROM "subdivisions" WHERE "pop_density_per_km_2"='130.6'; |
## Task
Generate a SQL query to answer the following question:
`What municipality has a 130.6 pupulation density?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "subdivisions" (
"municipality" text,
"no_of_barangays" real,
"area_hectares" real,
"population_2007" real,
"population_2010" real,
"pop_density_per_km_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `What municipality has a 130.6 pupulation density?`:
```sql
|
SELECT "no_of_s_barangay" FROM "municipalities" WHERE "municipality"='Paracale'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of S Barangay for Paracale?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "municipalities" (
"municipality" text,
"no_of_s_barangay" real,
"area_km" text,
"population_2007" real,
"population_2010" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of S Barangay for Paracale?`:
```sql
|
SELECT "municipality" FROM "municipalities" WHERE "area_km"='199.35'; |
## Task
Generate a SQL query to answer the following question:
`What is the municipality that has an area of exactly 199.35 sq. km?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "municipalities" (
"municipality" text,
"no_of_s_barangay" real,
"area_km" text,
"population_2007" real,
"population_2010" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the municipality that has an area of exactly 199.35 sq. km?`:
```sql
|
SELECT "municipality" FROM "municipalities" WHERE "area_km"='214.44'; |
## Task
Generate a SQL query to answer the following question:
`What is the municipality that has an area of exactly 214.44 sq. km?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "municipalities" (
"municipality" text,
"no_of_s_barangay" real,
"area_km" text,
"population_2007" real,
"population_2010" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the municipality that has an area of exactly 214.44 sq. km?`:
```sql
|
SELECT "3rd_pers_pl" FROM "table1_25574050_7" WHERE "2nd_pers_sing"='тонэн ~ тонэныд'; |
## Task
Generate a SQL query to answer the following question:
`Name the 3rd person pl for тонэн ~ тонэныд`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25574050_7" (
"case" text,
"1st_pers_sing" text,
"2nd_pers_sing" text,
"3rd_pers_sing" text,
"1st_pers_pl" text,
"2nd_pers_pl" text,
"3rd_pers_pl" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 3rd person pl for тонэн ~ тонэныд`:
```sql
|
SELECT "1st_pers_pl" FROM "table1_25574050_7" WHERE "2nd_pers_sing"='тонэ'; |
## Task
Generate a SQL query to answer the following question:
`Name the 1st person pl for тонэ`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25574050_7" (
"case" text,
"1st_pers_sing" text,
"2nd_pers_sing" text,
"3rd_pers_sing" text,
"1st_pers_pl" text,
"2nd_pers_pl" text,
"3rd_pers_pl" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 1st person pl for тонэ`:
```sql
|
SELECT "3rd_pers_pl" FROM "table1_25574050_7" WHERE "case"='dative'; |
## Task
Generate a SQL query to answer the following question:
`Name the 3rd pers pl for dative`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25574050_7" (
"case" text,
"1st_pers_sing" text,
"2nd_pers_sing" text,
"3rd_pers_sing" text,
"1st_pers_pl" text,
"2nd_pers_pl" text,
"3rd_pers_pl" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 3rd pers pl for dative`:
```sql
|
SELECT "winning_team" FROM "race_calendar" WHERE "series"='FR2.0 9'; |
## Task
Generate a SQL query to answer the following question:
`When fr2.0 9 is the series who is the winning team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_calendar" (
"circuit" text,
"location" text,
"date" text,
"series" text,
"winning_driver" text,
"winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `When fr2.0 9 is the series who is the winning team?`:
```sql
|
SELECT "date" FROM "race_calendar" WHERE "winning_driver"='Fairuz Fauzy'; |
## Task
Generate a SQL query to answer the following question:
`When fairuz fauzy is the winning driver what is the date?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_calendar" (
"circuit" text,
"location" text,
"date" text,
"series" text,
"winning_driver" text,
"winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `When fairuz fauzy is the winning driver what is the date?`:
```sql
|
SELECT "date" FROM "race_calendar" WHERE "series"='EMT 9'; |
## Task
Generate a SQL query to answer the following question:
`When emt 9 is the series what is the date?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_calendar" (
"circuit" text,
"location" text,
"date" text,
"series" text,
"winning_driver" text,
"winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `When emt 9 is the series what is the date?`:
```sql
|
SELECT "state_country" FROM "line_honours_results_top_10" WHERE "race_number"='36'; |
## Task
Generate a SQL query to answer the following question:
`what are all the state/nation where the race number is 36`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "line_honours_results_top_10" (
"position" real,
"race_number" text,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"elapsed_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `what are all the state/nation where the race number is 36`:
```sql
|
SELECT "state_country" FROM "line_honours_results_top_10" WHERE "skipper"='Sean Langman'; |
## Task
Generate a SQL query to answer the following question:
`What State/Country is Sean Langman the skipper?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "line_honours_results_top_10" (
"position" real,
"race_number" text,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"elapsed_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What State/Country is Sean Langman the skipper?`:
```sql
|
SELECT "yacht_type" FROM "line_honours_results_top_10" WHERE "skipper"='Bob Oatley'; |
## Task
Generate a SQL query to answer the following question:
`What yacht type is involved where Bob Oatley is the skipper?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "line_honours_results_top_10" (
"position" real,
"race_number" text,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"elapsed_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What yacht type is involved where Bob Oatley is the skipper?`:
```sql
|
SELECT COUNT("race_number") FROM "line_honours_results_top_10" WHERE "yacht"='Loki'; |
## Task
Generate a SQL query to answer the following question:
`How many races was Loki in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "line_honours_results_top_10" (
"position" real,
"race_number" text,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"elapsed_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many races was Loki in?`:
```sql
|
SELECT "loa_metres" FROM "line_honours_results_top_10" WHERE "skipper"='Jez Fanstone'; |
## Task
Generate a SQL query to answer the following question:
`What were the LOA (metres) for the yacht where the skipper was Jez Fanstone?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "line_honours_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"elapsed_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the LOA (metres) for the yacht where the skipper was Jez Fanstone?`:
```sql
|
SELECT "skipper" FROM "line_honours_results_top_10" WHERE "elapsed_time_d_hh_mm_ss"='3:07:39:33'; |
## Task
Generate a SQL query to answer the following question:
`Who was the skipper of the yacht with an elapsed time of 3:07:39:33?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "line_honours_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"elapsed_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the skipper of the yacht with an elapsed time of 3:07:39:33?`:
```sql
|
SELECT "elapsed_time_d_hh_mm_ss" FROM "line_honours_results_top_10" WHERE "yacht_type"='Farr 65'; |
## Task
Generate a SQL query to answer the following question:
`What was the elapsed time for the yacht that was a Farr 65 type?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "line_honours_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"elapsed_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the elapsed time for the yacht that was a Farr 65 type?`:
```sql
|
SELECT "sail_number" FROM "line_honours_results_top_10" WHERE "elapsed_time_d_hh_mm_ss"='2:22:30:42'; |
## Task
Generate a SQL query to answer the following question:
`What is the sail number of the yacht that had an elapsed time of 2:22:30:42?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "line_honours_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"elapsed_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sail number of the yacht that had an elapsed time of 2:22:30:42?`:
```sql
|
SELECT "state_country" FROM "line_honours_results_top_10" WHERE "elapsed_time_d_hh_mm_ss"='3:04:06:38'; |
## Task
Generate a SQL query to answer the following question:
`What state/country was the yacht that had an elapsed time of 3:04:06:38 from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "line_honours_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"elapsed_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What state/country was the yacht that had an elapsed time of 3:04:06:38 from?`:
```sql
|
SELECT "state_country" FROM "line_honours_results_top_10" WHERE "loa_metres"='15.79'; |
## Task
Generate a SQL query to answer the following question:
`What state/country was the yacht from that had 15.79 LOA (metres)? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "line_honours_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"elapsed_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What state/country was the yacht from that had 15.79 LOA (metres)? `:
```sql
|
SELECT "sail_number" FROM "line_honours_results_top_10" WHERE "skipper"='Matt Allen'; |
## Task
Generate a SQL query to answer the following question:
`What is Matt Allen's sail number?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "line_honours_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"elapsed_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Matt Allen's sail number?`:
```sql
|
SELECT "state_country" FROM "line_honours_results_top_10" WHERE "elapsed_time_d_hh_mm_ss"='2:15:14:06'; |
## Task
Generate a SQL query to answer the following question:
`What is the state that the boat is from that finished in 2:15:14:06?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "line_honours_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"elapsed_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the state that the boat is from that finished in 2:15:14:06?`:
```sql
|
SELECT "loa_metres" FROM "line_honours_results_top_10" WHERE "yacht"='Brindabella'; |
## Task
Generate a SQL query to answer the following question:
`What is the LOA of Brindabella?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "line_honours_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"elapsed_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the LOA of Brindabella?`:
```sql
|
SELECT "state_country" FROM "line_honours_results_top_10" WHERE "loa_metres"='19.50'; |
## Task
Generate a SQL query to answer the following question:
`What the is the state that the boat is from with LOA of 19.50?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "line_honours_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"elapsed_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What the is the state that the boat is from with LOA of 19.50?`:
```sql
|
SELECT COUNT("state_country") FROM "line_honours_results_top_10" WHERE "skipper"='Grant Wharington'; |
## Task
Generate a SQL query to answer the following question:
`How many states is Grant Wharington from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "line_honours_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"elapsed_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many states is Grant Wharington from?`:
```sql
|
SELECT COUNT("elapsed_time_d_hh_mm_ss") FROM "line_honours_results_top_10" WHERE "loa_metres"='20.49'; |
## Task
Generate a SQL query to answer the following question:
`How many times are provided for the boat with LOA of 20.49?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "line_honours_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"elapsed_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times are provided for the boat with LOA of 20.49?`:
```sql
|
SELECT COUNT("current_status") FROM "list_of_lighthouses_in_the_philippines" WHERE "date_first_lit"='1853'; |
## Task
Generate a SQL query to answer the following question:
`The date first lit is 1853 total number of current status.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_lighthouses_in_the_philippines" (
"lighthouse" text,
"location" text,
"province_city" text,
"date_first_lit" text,
"tower_height_in_ft_m" text,
"focal_plane_in_ft_m" text,
"current_status" text,
"current_condition_description" text
);
### SQL
Given the database schema, here is the SQL query that answers `The date first lit is 1853 total number of current status.`:
```sql
|
SELECT "focal_plane_in_ft_m" FROM "list_of_lighthouses_in_the_philippines" WHERE "location"='Naidi Hills, Basco'; |
## Task
Generate a SQL query to answer the following question:
`Location for focal plane in ft (m) is naidi hills, basco.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_lighthouses_in_the_philippines" (
"lighthouse" text,
"location" text,
"province_city" text,
"date_first_lit" text,
"tower_height_in_ft_m" text,
"focal_plane_in_ft_m" text,
"current_status" text,
"current_condition_description" text
);
### SQL
Given the database schema, here is the SQL query that answers `Location for focal plane in ft (m) is naidi hills, basco.`:
```sql
|
SELECT "date_first_lit" FROM "list_of_lighthouses_in_the_philippines" WHERE "focal_plane_in_ft_m"='43ft (13.1m)'; |
## Task
Generate a SQL query to answer the following question:
`Focal plane in ft (m) is 43ft (13.1m) is the first date lit.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_lighthouses_in_the_philippines" (
"lighthouse" text,
"location" text,
"province_city" text,
"date_first_lit" text,
"tower_height_in_ft_m" text,
"focal_plane_in_ft_m" text,
"current_status" text,
"current_condition_description" text
);
### SQL
Given the database schema, here is the SQL query that answers `Focal plane in ft (m) is 43ft (13.1m) is the first date lit.`:
```sql
|
SELECT "province_city" FROM "list_of_lighthouses_in_the_philippines" WHERE "lighthouse"='Corregidor Island (2)'; |
## Task
Generate a SQL query to answer the following question:
`The province/city corregidor island (2) is where the lighthouse is located. `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_lighthouses_in_the_philippines" (
"lighthouse" text,
"location" text,
"province_city" text,
"date_first_lit" text,
"tower_height_in_ft_m" text,
"focal_plane_in_ft_m" text,
"current_status" text,
"current_condition_description" text
);
### SQL
Given the database schema, here is the SQL query that answers `The province/city corregidor island (2) is where the lighthouse is located. `:
```sql
|
SELECT "focal_plane_in_ft_m" FROM "list_of_lighthouses_in_the_philippines" WHERE "tower_height_in_ft_m"='46ft (14.0m)'; |
## Task
Generate a SQL query to answer the following question:
`Where tower height in ft (m) is 46ft (14.0m) the focal plane is ft (m).`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_lighthouses_in_the_philippines" (
"lighthouse" text,
"location" text,
"province_city" text,
"date_first_lit" text,
"tower_height_in_ft_m" text,
"focal_plane_in_ft_m" text,
"current_status" text,
"current_condition_description" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where tower height in ft (m) is 46ft (14.0m) the focal plane is ft (m).`:
```sql
|
SELECT "no_in_series" FROM "table1_25604014_6" WHERE "directed_by"='Win Phelps' AND "no_in_season"=11; |
## Task
Generate a SQL query to answer the following question:
`What are the number in series of the pieces directed by Win Phelps and which number in season is 11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25604014_6" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the number in series of the pieces directed by Win Phelps and which number in season is 11?`:
```sql
|
SELECT "title" FROM "table1_25604014_6" WHERE "no_in_season"=2; |
## Task
Generate a SQL query to answer the following question:
`What are the titles of the pieces that are number 2 in season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25604014_6" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the titles of the pieces that are number 2 in season?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.