output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "record" FROM "schedule" WHERE "date"='September 7'; |
## Task
Generate a SQL query to answer the following question:
`What was the record for the Argonauts on September 7?`
### 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,
"final_score" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record for the Argonauts on September 7?`:
```sql
|
SELECT MIN("week") FROM "schedule"; |
## Task
Generate a SQL query to answer the following question:
`What is he smallest numbered week?`
### 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,
"final_score" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is he smallest numbered week?`:
```sql
|
SELECT "violins" FROM "suggested_string_section_sizes" WHERE "reference"='\"Arranged By Nelson Riddle\"' AND "section_size"='12 players'; |
## Task
Generate a SQL query to answer the following question:
`How many violines are suggested in the "Arranged by Nelson Riddle" reference with section size of 12 players?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "suggested_string_section_sizes" (
"reference" text,
"author" text,
"section_size" text,
"violins" real,
"violas" real,
"celli" real,
"basses" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many violines are suggested in the "Arranged by Nelson Riddle" reference with section size of 12 players?`:
```sql
|
SELECT "celli" FROM "suggested_string_section_sizes" WHERE "section_size"='20 players'; |
## Task
Generate a SQL query to answer the following question:
`How many cellos are suggested in the reference with section size for 20 players?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "suggested_string_section_sizes" (
"reference" text,
"author" text,
"section_size" text,
"violins" real,
"violas" real,
"celli" real,
"basses" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many cellos are suggested in the reference with section size for 20 players?`:
```sql
|
SELECT "reference" FROM "suggested_string_section_sizes" WHERE "violas"=2 AND "author"='Nelson Riddle'; |
## Task
Generate a SQL query to answer the following question:
`What reference, written by Nelson Riddle, suggests 2 violas?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "suggested_string_section_sizes" (
"reference" text,
"author" text,
"section_size" text,
"violins" real,
"violas" real,
"celli" real,
"basses" real
);
### SQL
Given the database schema, here is the SQL query that answers `What reference, written by Nelson Riddle, suggests 2 violas?`:
```sql
|
SELECT MAX("basses") FROM "suggested_string_section_sizes"; |
## Task
Generate a SQL query to answer the following question:
`What is the biggest number of basses suggested in either one of the references?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "suggested_string_section_sizes" (
"reference" text,
"author" text,
"section_size" text,
"violins" real,
"violas" real,
"celli" real,
"basses" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the biggest number of basses suggested in either one of the references?`:
```sql
|
SELECT "current_marital_status" FROM "television" WHERE "name"='Stella Farentino'; |
## Task
Generate a SQL query to answer the following question:
`What is Stella Farentino's current relationship status?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "television" (
"name" text,
"deceased_spouse" text,
"cause_of_death" text,
"date_of_spouses_death" text,
"length_of_marriage" text,
"children_together" text,
"current_marital_status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Stella Farentino's current relationship status?`:
```sql
|
SELECT "children_together" FROM "television" WHERE "deceased_spouse"='Dennis Hawley'; |
## Task
Generate a SQL query to answer the following question:
`How many children did Dennis Hawley have at his time of death?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "television" (
"name" text,
"deceased_spouse" text,
"cause_of_death" text,
"date_of_spouses_death" text,
"length_of_marriage" text,
"children_together" text,
"current_marital_status" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many children did Dennis Hawley have at his time of death?`:
```sql
|
SELECT "cause_of_death" FROM "television" WHERE "name"='Stella Farentino'; |
## Task
Generate a SQL query to answer the following question:
`How did Stella Farentino die?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "television" (
"name" text,
"deceased_spouse" text,
"cause_of_death" text,
"date_of_spouses_death" text,
"length_of_marriage" text,
"children_together" text,
"current_marital_status" text
);
### SQL
Given the database schema, here is the SQL query that answers `How did Stella Farentino die?`:
```sql
|
SELECT "cause_of_death" FROM "literature" WHERE "length_of_marriage"='28 years'; |
## Task
Generate a SQL query to answer the following question:
`What was the cause of death in the marriage that lasted 28 years? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "literature" (
"name" text,
"deceased_spouse" text,
"cause_of_death" text,
"date_of_spouses_death" text,
"length_of_marriage" text,
"children_together" text,
"current_marital_status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the cause of death in the marriage that lasted 28 years? `:
```sql
|
SELECT "length_of_marriage" FROM "literature" WHERE "name"='Ray Bradbury'; |
## Task
Generate a SQL query to answer the following question:
`How long were Ray Bradbury and his wife married?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "literature" (
"name" text,
"deceased_spouse" text,
"cause_of_death" text,
"date_of_spouses_death" text,
"length_of_marriage" text,
"children_together" text,
"current_marital_status" text
);
### SQL
Given the database schema, here is the SQL query that answers `How long were Ray Bradbury and his wife married?`:
```sql
|
SELECT "name" FROM "film" WHERE "deceased_spouse"='Louis Malle'; |
## Task
Generate a SQL query to answer the following question:
`Name the name for deceased spouse being louis malle`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "film" (
"name" text,
"deceased_spouse" text,
"cause_of_death" text,
"date_of_spouses_death" text,
"length_of_marriage" text,
"children_together" text,
"current_marital_status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the name for deceased spouse being louis malle`:
```sql
|
SELECT "deceased_spouse" FROM "film" WHERE "length_of_marriage"='24 years'; |
## Task
Generate a SQL query to answer the following question:
`Name the deceased spouse for length of marriage being 24 years`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "film" (
"name" text,
"deceased_spouse" text,
"cause_of_death" text,
"date_of_spouses_death" text,
"length_of_marriage" text,
"children_together" text,
"current_marital_status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the deceased spouse for length of marriage being 24 years`:
```sql
|
SELECT "deceased_spouse" FROM "film" WHERE "name"='Carol DeLuise'; |
## Task
Generate a SQL query to answer the following question:
`Name the decease spouse for carol deluise`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "film" (
"name" text,
"deceased_spouse" text,
"cause_of_death" text,
"date_of_spouses_death" text,
"length_of_marriage" text,
"children_together" text,
"current_marital_status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the decease spouse for carol deluise`:
```sql
|
SELECT "children_together" FROM "film" WHERE "length_of_marriage"='9 years'; |
## Task
Generate a SQL query to answer the following question:
`Name the children together for 9 years of marriage`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "film" (
"name" text,
"deceased_spouse" text,
"cause_of_death" text,
"date_of_spouses_death" text,
"length_of_marriage" text,
"children_together" text,
"current_marital_status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the children together for 9 years of marriage`:
```sql
|
SELECT "deceased_spouse" FROM "u_s_presidents" WHERE "length_of_marriage"='4 years'; |
## Task
Generate a SQL query to answer the following question:
`Who was the deceased spouse who was married for 4 years?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_presidents" (
"name" text,
"deceased_spouse" text,
"cause_of_death" text,
"date_of_spouses_death" text,
"length_of_marriage" text,
"children_together" text,
"current_marital_status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the deceased spouse who was married for 4 years?`:
```sql
|
SELECT "children_together" FROM "u_s_presidents" WHERE "name"='Benjamin Harrison'; |
## Task
Generate a SQL query to answer the following question:
`Who were the children of Benjamin Harrison?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_presidents" (
"name" text,
"deceased_spouse" text,
"cause_of_death" text,
"date_of_spouses_death" text,
"length_of_marriage" text,
"children_together" text,
"current_marital_status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the children of Benjamin Harrison?`:
```sql
|
SELECT "segment_1" FROM "table1_24172078_2" WHERE "episode_num"='2/225'; |
## Task
Generate a SQL query to answer the following question:
`Name the segment 1 for episode # 2/225`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24172078_2" (
"episode_num" text,
"segment_1" text,
"segment_2" text,
"original_airdate" text,
"lessons_taught" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the segment 1 for episode # 2/225`:
```sql
|
SELECT "lessons_taught" FROM "table1_24172078_2" WHERE "episode_num"='2/205'; |
## Task
Generate a SQL query to answer the following question:
`Name the lessons taught for episode # 2/205`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24172078_2" (
"episode_num" text,
"segment_1" text,
"segment_2" text,
"original_airdate" text,
"lessons_taught" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the lessons taught for episode # 2/205`:
```sql
|
SELECT "state_class" FROM "table1_2417308_3" WHERE "successor"='William Bigler (D)'; |
## Task
Generate a SQL query to answer the following question:
`What state had william bigler (d) as a successor)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2417308_3" (
"state_class" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_of_successors_formal_installation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What state had william bigler (d) as a successor)`:
```sql
|
SELECT "date_successor_seated" FROM "table1_2417330_4" WHERE "successor"='Vacant'; |
## Task
Generate a SQL query to answer the following question:
`Name the date successor seated for successor being vacant`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2417330_4" (
"district" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date successor seated for successor being vacant`:
```sql
|
SELECT "vacator" FROM "table1_2417330_4" WHERE "district"='Kentucky 2nd'; |
## Task
Generate a SQL query to answer the following question:
`Name the vacator for kentucky 2nd`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2417330_4" (
"district" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the vacator for kentucky 2nd`:
```sql
|
SELECT "successor" FROM "table1_2417330_4" WHERE "reason_for_change"='Election was successfully contested July 30, 1861'; |
## Task
Generate a SQL query to answer the following question:
`Name the successor for election was successfully contested july 30, 1861`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2417330_4" (
"district" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the successor for election was successfully contested july 30, 1861`:
```sql
|
SELECT "successor" FROM "table1_2417330_4" WHERE "reason_for_change"='Vacant' AND "date_successor_seated"='December 3, 1862'; |
## Task
Generate a SQL query to answer the following question:
`Name the successor for vacant and december 3, 1862`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2417330_4" (
"district" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the successor for vacant and december 3, 1862`:
```sql
|
SELECT "vacator" FROM "table1_2417340_4" WHERE "district"='Georgia 2nd'; |
## Task
Generate a SQL query to answer the following question:
`What was the vacator for georgia 2nd?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2417340_4" (
"district" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the vacator for georgia 2nd?`:
```sql
|
SELECT "successor" FROM "table1_2417340_4" WHERE "vacator"='Vacant' AND "district"='Alabama 3rd'; |
## Task
Generate a SQL query to answer the following question:
`What was the successor for vacant alabama 3rd?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2417340_4" (
"district" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the successor for vacant alabama 3rd?`:
```sql
|
SELECT "successor" FROM "table1_2417340_4" WHERE "vacator"='Vacant' AND "district"='Louisiana 5th'; |
## Task
Generate a SQL query to answer the following question:
`Who was the successor for vacant louisiana 5th`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2417340_4" (
"district" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the successor for vacant louisiana 5th`:
```sql
|
SELECT "successor" FROM "table1_2417345_3" WHERE "date_of_successors_formal_installation"='February 23, 1870'; |
## Task
Generate a SQL query to answer the following question:
`Who were the successors when the date the successors were installed was February 23, 1870?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2417345_3" (
"state_class" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_of_successors_formal_installation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the successors when the date the successors were installed was February 23, 1870?`:
```sql
|
SELECT "vacator" FROM "table1_2417345_3" WHERE "date_of_successors_formal_installation"='February 1, 1871'; |
## Task
Generate a SQL query to answer the following question:
`Who was the vacator when the successor was formally installed on February 1, 1871?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2417345_3" (
"state_class" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_of_successors_formal_installation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the vacator when the successor was formally installed on February 1, 1871?`:
```sql
|
SELECT "successor" FROM "table1_2417345_3" WHERE "date_of_successors_formal_installation"='March 30, 1870'; |
## Task
Generate a SQL query to answer the following question:
`Who was the successor that was formally installed on March 30, 1870?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2417345_3" (
"state_class" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_of_successors_formal_installation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the successor that was formally installed on March 30, 1870?`:
```sql
|
SELECT "date_of_successors_formal_installation" FROM "table1_2417330_3" WHERE "successor"='Orville H. Browning (R)'; |
## Task
Generate a SQL query to answer the following question:
`When did Orville H. Browning (r) succeed?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2417330_3" (
"state_class" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_of_successors_formal_installation" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did Orville H. Browning (r) succeed?`:
```sql
|
SELECT "date_of_successors_formal_installation" FROM "table1_2417330_3" WHERE "state_class"='Missouri (3)'; |
## Task
Generate a SQL query to answer the following question:
`List all dates of succession in the state class Missouri (3).`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2417330_3" (
"state_class" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_of_successors_formal_installation" text
);
### SQL
Given the database schema, here is the SQL query that answers `List all dates of succession in the state class Missouri (3).`:
```sql
|
SELECT COUNT("vacator") FROM "table1_2417340_3" WHERE "date_of_successors_formal_installation"='June 22, 1868'; |
## Task
Generate a SQL query to answer the following question:
`List the number of vacators when successors were formally installed on June 22, 1868.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2417340_3" (
"state_class" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_of_successors_formal_installation" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the number of vacators when successors were formally installed on June 22, 1868.`:
```sql
|
SELECT "state_class" FROM "table1_2417340_3" WHERE "date_of_successors_formal_installation"='June 22, 1868'; |
## Task
Generate a SQL query to answer the following question:
`List all state classes when successors were formally installed on June 22, 1868.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2417340_3" (
"state_class" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_of_successors_formal_installation" text
);
### SQL
Given the database schema, here is the SQL query that answers `List all state classes when successors were formally installed on June 22, 1868.`:
```sql
|
SELECT "reason_for_change" FROM "table1_2417395_4" WHERE "date_successor_seated"='December 13, 1880'; |
## Task
Generate a SQL query to answer the following question:
`What was the reason for change to the successor that was seated on December 13, 1880?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2417395_4" (
"district" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the reason for change to the successor that was seated on December 13, 1880?`:
```sql
|
SELECT "district" FROM "table1_2417445_4" WHERE "reason_for_vacancy"='Died May 22, 1895'; |
## Task
Generate a SQL query to answer the following question:
`When the person died May 22, 1895 is the reason for vacancy what is the district?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2417445_4" (
"district" text,
"vacator" text,
"reason_for_vacancy" text,
"successor" text,
"date_of_successors_taking_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the person died May 22, 1895 is the reason for vacancy what is the district?`:
```sql
|
SELECT "reason_for_vacancy" FROM "table1_2417445_4" WHERE "vacator"='Frederick Remann (R)'; |
## Task
Generate a SQL query to answer the following question:
`When frederick remann (r) is the vacator what is the reason for vacancy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2417445_4" (
"district" text,
"vacator" text,
"reason_for_vacancy" text,
"successor" text,
"date_of_successors_taking_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `When frederick remann (r) is the vacator what is the reason for vacancy?`:
```sql
|
SELECT "reason_for_vacancy" FROM "table1_2417445_4" WHERE "successor"='Rudolph Kleberg (D)'; |
## Task
Generate a SQL query to answer the following question:
`When rudolph kleberg (d) is the successor is the reason for vacancy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2417445_4" (
"district" text,
"vacator" text,
"reason_for_vacancy" text,
"successor" text,
"date_of_successors_taking_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `When rudolph kleberg (d) is the successor is the reason for vacancy?`:
```sql
|
SELECT "reason_for_vacancy" FROM "table1_2417445_4" WHERE "district"='Massachusetts 6th'; |
## Task
Generate a SQL query to answer the following question:
`When massachusetts 6th is the district what is the reason for vacancy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2417445_4" (
"district" text,
"vacator" text,
"reason_for_vacancy" text,
"successor" text,
"date_of_successors_taking_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `When massachusetts 6th is the district what is the reason for vacancy?`:
```sql
|
SELECT "date_of_successors_taking_office" FROM "table1_2417445_4" WHERE "successor"='Rudolph Kleberg (D)'; |
## Task
Generate a SQL query to answer the following question:
`When rudolph kleberg (d) is the successor what is the date of successors taking office?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2417445_4" (
"district" text,
"vacator" text,
"reason_for_vacancy" text,
"successor" text,
"date_of_successors_taking_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `When rudolph kleberg (d) is the successor what is the date of successors taking office?`:
```sql
|
SELECT "geographical_regions" FROM "delegates" WHERE "province_community"='Distrito Nacional'; |
## Task
Generate a SQL query to answer the following question:
`What geographical region is the province distrito nacional located in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "delegates" (
"province_community" text,
"contestant" text,
"age" real,
"height" text,
"hometown" text,
"geographical_regions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What geographical region is the province distrito nacional located in?`:
```sql
|
SELECT "geographical_regions" FROM "delegates" WHERE "contestant"='Laura Jiménez Ynoa'; |
## Task
Generate a SQL query to answer the following question:
`What geographical region is contestant laura jiménez ynoa from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "delegates" (
"province_community" text,
"contestant" text,
"age" real,
"height" text,
"hometown" text,
"geographical_regions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What geographical region is contestant laura jiménez ynoa from?`:
```sql
|
SELECT COUNT("hometown") FROM "delegates" WHERE "height"='m (ft 10 1⁄2 in)'; |
## Task
Generate a SQL query to answer the following question:
`How many hometowns have a height of m (ft 10 1⁄2 in)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "delegates" (
"province_community" text,
"contestant" text,
"age" real,
"height" text,
"hometown" text,
"geographical_regions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many hometowns have a height of m (ft 10 1⁄2 in)?`:
```sql
|
SELECT "contestant" FROM "delegates" WHERE "province_community"='Baoruco'; |
## Task
Generate a SQL query to answer the following question:
`Which contestant is from the province of baoruco`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "delegates" (
"province_community" text,
"contestant" text,
"age" real,
"height" text,
"hometown" text,
"geographical_regions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which contestant is from the province of baoruco`:
```sql
|
SELECT "age" FROM "delegates" WHERE "height"='m (ft 3⁄4 in)'; |
## Task
Generate a SQL query to answer the following question:
`How old is the person with the height of m (ft 3⁄4 in)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "delegates" (
"province_community" text,
"contestant" text,
"age" real,
"height" text,
"hometown" text,
"geographical_regions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How old is the person with the height of m (ft 3⁄4 in)?`:
```sql
|
SELECT "viewers_millions" FROM "episodes" WHERE "broadcast_date"=2010; |
## Task
Generate a SQL query to answer the following question:
`What was the number of viewers in millions for the broadcast from 2010? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episodes" (
"episode" real,
"broadcast_date" real,
"bbc_one_presenter_s" text,
"starring" text,
"radio_1_presenter" text,
"viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the number of viewers in millions for the broadcast from 2010? `:
```sql
|
SELECT "starring" FROM "episodes" WHERE "episode"=3; |
## Task
Generate a SQL query to answer the following question:
`Who starred in episode 3? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episodes" (
"episode" real,
"broadcast_date" real,
"bbc_one_presenter_s" text,
"starring" text,
"radio_1_presenter" text,
"viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who starred in episode 3? `:
```sql
|
SELECT COUNT("episode") FROM "episodes" WHERE "broadcast_date"=2010; |
## Task
Generate a SQL query to answer the following question:
`How many episodes were broadcast in 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episodes" (
"episode" real,
"broadcast_date" real,
"bbc_one_presenter_s" text,
"starring" text,
"radio_1_presenter" text,
"viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes were broadcast in 2010?`:
```sql
|
SELECT "radio_1_presenter" FROM "episodes" WHERE "viewers_millions"='9.73'; |
## Task
Generate a SQL query to answer the following question:
`Who was the radio 1 presenter for the broadcast that had 9.73 million viewers? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episodes" (
"episode" real,
"broadcast_date" real,
"bbc_one_presenter_s" text,
"starring" text,
"radio_1_presenter" text,
"viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the radio 1 presenter for the broadcast that had 9.73 million viewers? `:
```sql
|
SELECT "powertrain_engine_transmission" FROM "current_bus_fleet_roster" WHERE "division"='KMD' AND "model"='C40LF'; |
## Task
Generate a SQL query to answer the following question:
`Name the powertrain for kmd and c40lf`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_bus_fleet_roster" (
"order_year" real,
"fleet_series_qty" text,
"manufacturer" text,
"model" text,
"powertrain_engine_transmission" text,
"fuel_or_propulsion" text,
"division" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the powertrain for kmd and c40lf`:
```sql
|
SELECT "division" FROM "current_bus_fleet_roster" WHERE "powertrain_engine_transmission"='Detroit Diesel Series 50EGR Allison WB-400R'; |
## Task
Generate a SQL query to answer the following question:
`Name the division for detroit diesel series 50egr allison wb-400r`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_bus_fleet_roster" (
"order_year" real,
"fleet_series_qty" text,
"manufacturer" text,
"model" text,
"powertrain_engine_transmission" text,
"fuel_or_propulsion" text,
"division" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the division for detroit diesel series 50egr allison wb-400r`:
```sql
|
SELECT "manufacturer" FROM "current_bus_fleet_roster" WHERE "order_year"=2011; |
## Task
Generate a SQL query to answer the following question:
`Name the manufacturer for 2011`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_bus_fleet_roster" (
"order_year" real,
"fleet_series_qty" text,
"manufacturer" text,
"model" text,
"powertrain_engine_transmission" text,
"fuel_or_propulsion" text,
"division" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the manufacturer for 2011`:
```sql
|
SELECT COUNT("location") FROM "members" WHERE "nickname"='Billikens'; |
## Task
Generate a SQL query to answer the following question:
`List the number of locations for the team known as the billikens.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "members" (
"institution" text,
"nickname" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" real,
"left" real
);
### SQL
Given the database schema, here is the SQL query that answers `List the number of locations for the team known as the billikens.`:
```sql
|
SELECT MIN("enrollment") FROM "members" WHERE "location"='Milwaukee, Wisconsin'; |
## Task
Generate a SQL query to answer the following question:
`How many people are enrolled at the university in milwaukee, wisconsin`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "members" (
"institution" text,
"nickname" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" real,
"left" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many people are enrolled at the university in milwaukee, wisconsin`:
```sql
|
SELECT MAX("left") FROM "members"; |
## Task
Generate a SQL query to answer the following question:
`In what year did the teams leave the conference?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "members" (
"institution" text,
"nickname" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" real,
"left" real
);
### SQL
Given the database schema, here is the SQL query that answers `In what year did the teams leave the conference?`:
```sql
|
SELECT "institution" FROM "members" WHERE "nickname"='Tigers'; |
## Task
Generate a SQL query to answer the following question:
`What university team is referred to as the tigers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "members" (
"institution" text,
"nickname" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" real,
"left" real
);
### SQL
Given the database schema, here is the SQL query that answers `What university team is referred to as the tigers?`:
```sql
|
SELECT "magnitude" FROM "list_of_foreshocks_and_aftershocks" WHERE "latitude"='43.048° N'; |
## Task
Generate a SQL query to answer the following question:
`When 43.048° n is the latitude what is the magnitude?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_foreshocks_and_aftershocks" (
"date_yyyy_mm_dd" text,
"time_utc" text,
"latitude" text,
"longitude" text,
"depth" text,
"magnitude" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 43.048° n is the latitude what is the magnitude?`:
```sql
|
SELECT COUNT("latitude") FROM "list_of_foreshocks_and_aftershocks" WHERE "time_utc"='9:47:38'; |
## Task
Generate a SQL query to answer the following question:
`When 9:47:38 is the time (utc) how many measurements of latitude are there?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_foreshocks_and_aftershocks" (
"date_yyyy_mm_dd" text,
"time_utc" text,
"latitude" text,
"longitude" text,
"depth" text,
"magnitude" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 9:47:38 is the time (utc) how many measurements of latitude are there?`:
```sql
|
SELECT COUNT("longitude") FROM "list_of_foreshocks_and_aftershocks" WHERE "latitude"='42.903° N'; |
## Task
Generate a SQL query to answer the following question:
`When 42.903° n is the latitude how many measurements of longitude are there?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_foreshocks_and_aftershocks" (
"date_yyyy_mm_dd" text,
"time_utc" text,
"latitude" text,
"longitude" text,
"depth" text,
"magnitude" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 42.903° n is the latitude how many measurements of longitude are there?`:
```sql
|
SELECT "depth" FROM "list_of_foreshocks_and_aftershocks" WHERE "time_utc"='11:40:26'; |
## Task
Generate a SQL query to answer the following question:
`When 11:40:26 is the time (utc) what is the depth?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_foreshocks_and_aftershocks" (
"date_yyyy_mm_dd" text,
"time_utc" text,
"latitude" text,
"longitude" text,
"depth" text,
"magnitude" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 11:40:26 is the time (utc) what is the depth?`:
```sql
|
SELECT "main_presenter" FROM "list_of_reality_television_show_franchis" WHERE "year_premiered"=2011; |
## Task
Generate a SQL query to answer the following question:
`Who is every main presenter for the year 2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_reality_television_show_franchis" (
"region_country" text,
"local_name" text,
"main_presenter" text,
"network" text,
"year_premiered" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is every main presenter for the year 2011?`:
```sql
|
SELECT "main_presenter" FROM "list_of_reality_television_show_franchis" WHERE "region_country"='Estonia'; |
## Task
Generate a SQL query to answer the following question:
`Who is every main presenter for the Estonia region/country?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_reality_television_show_franchis" (
"region_country" text,
"local_name" text,
"main_presenter" text,
"network" text,
"year_premiered" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is every main presenter for the Estonia region/country?`:
```sql
|
SELECT MAX("year_premiered") FROM "list_of_reality_television_show_franchis" WHERE "network"='TV2' AND "main_presenter"='Øyvind Mund'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest year premiered for the TV2 network when main present is øyvind mund?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_reality_television_show_franchis" (
"region_country" text,
"local_name" text,
"main_presenter" text,
"network" text,
"year_premiered" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest year premiered for the TV2 network when main present is øyvind mund?`:
```sql
|
SELECT COUNT("year_premiered") FROM "list_of_reality_television_show_franchis" WHERE "main_presenter"='Sa Beining'; |
## Task
Generate a SQL query to answer the following question:
`How many years premiered have Sa Beining as main presenter?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_reality_television_show_franchis" (
"region_country" text,
"local_name" text,
"main_presenter" text,
"network" text,
"year_premiered" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many years premiered have Sa Beining as main presenter?`:
```sql
|
SELECT "year_premiered" FROM "list_of_reality_television_show_franchis" WHERE "main_presenter"='Behzat Uighur'; |
## Task
Generate a SQL query to answer the following question:
`What is every year premiered when Behzat Uighur is main presenter?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_reality_television_show_franchis" (
"region_country" text,
"local_name" text,
"main_presenter" text,
"network" text,
"year_premiered" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is every year premiered when Behzat Uighur is main presenter?`:
```sql
|
SELECT MAX("year_premiered") FROM "list_of_reality_television_show_franchis" WHERE "main_presenter"='Benjamin Castaldi'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest year premiered when Benjamin Castaldi is main presenter?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_reality_television_show_franchis" (
"region_country" text,
"local_name" text,
"main_presenter" text,
"network" text,
"year_premiered" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest year premiered when Benjamin Castaldi is main presenter?`:
```sql
|
SELECT "episode_number_production_number" FROM "united_kingdom" WHERE "title"='Tasers and Mind Erasers'; |
## Task
Generate a SQL query to answer the following question:
`Name the episode number for tasers and mind erasers`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_kingdom" (
"episode_number_production_number" text,
"title" text,
"original_airdate" text,
"time_of_airing" text,
"total_viewers_on_hallmark" real,
"total_viewers_on_hallmark_1" real,
"total_viewers" real,
"rank_on_channel" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the episode number for tasers and mind erasers`:
```sql
|
SELECT "original_airdate" FROM "united_kingdom" WHERE "episode_number_production_number"='7 1-07'; |
## Task
Generate a SQL query to answer the following question:
`Name the original air date for 7 1-07`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_kingdom" (
"episode_number_production_number" text,
"title" text,
"original_airdate" text,
"time_of_airing" text,
"total_viewers_on_hallmark" real,
"total_viewers_on_hallmark_1" real,
"total_viewers" real,
"rank_on_channel" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the original air date for 7 1-07`:
```sql
|
SELECT "total_viewers_on_hallmark_1" FROM "united_kingdom" WHERE "title"='Pilot'; |
## Task
Generate a SQL query to answer the following question:
`Name the total viewers on hallmark for pilot`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_kingdom" (
"episode_number_production_number" text,
"title" text,
"original_airdate" text,
"time_of_airing" text,
"total_viewers_on_hallmark" real,
"total_viewers_on_hallmark_1" real,
"total_viewers" real,
"rank_on_channel" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total viewers on hallmark for pilot`:
```sql
|
SELECT "rank_on_channel" FROM "united_kingdom" WHERE "title"='Mooning and Crooning'; |
## Task
Generate a SQL query to answer the following question:
`Name the rank on channel mooning and crooning`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_kingdom" (
"episode_number_production_number" text,
"title" text,
"original_airdate" text,
"time_of_airing" text,
"total_viewers_on_hallmark" real,
"total_viewers_on_hallmark_1" real,
"total_viewers" real,
"rank_on_channel" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the rank on channel mooning and crooning`:
```sql
|
SELECT "rank_on_channel" FROM "united_kingdom" WHERE "title"='Pilot'; |
## Task
Generate a SQL query to answer the following question:
`Name the rank on channel for pilot`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_kingdom" (
"episode_number_production_number" text,
"title" text,
"original_airdate" text,
"time_of_airing" text,
"total_viewers_on_hallmark" real,
"total_viewers_on_hallmark_1" real,
"total_viewers" real,
"rank_on_channel" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the rank on channel for pilot`:
```sql
|
SELECT "manner_of_departure" FROM "managerial_changes" WHERE "team"='Racing Santander'; |
## Task
Generate a SQL query to answer the following question:
`What is the manner of departure for the team racing santander?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the manner of departure for the team racing santander?`:
```sql
|
SELECT "replaced_by" FROM "managerial_changes" WHERE "date_of_appointment"='2 November 2010'; |
## Task
Generate a SQL query to answer the following question:
`Who replaced on the date of appointment 2 november 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who replaced on the date of appointment 2 november 2010?`:
```sql
|
SELECT "team" FROM "managerial_changes" WHERE "position_in_table"='19th'; |
## Task
Generate a SQL query to answer the following question:
`What is the team for the position in table 19th?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the team for the position in table 19th?`:
```sql
|
SELECT "team" FROM "managerial_changes" WHERE "replaced_by"='Miroslav Đukić'; |
## Task
Generate a SQL query to answer the following question:
`What is the team that the replaced by is miroslav đukić?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the team that the replaced by is miroslav đukić?`:
```sql
|
SELECT COUNT("position_in_table") FROM "managerial_changes" WHERE "date_of_vacancy"='14 February 2011'; |
## Task
Generate a SQL query to answer the following question:
`How many times was the date of vacancy 14 february 2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was the date of vacancy 14 february 2011?`:
```sql
|
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "team"='Osasuna'; |
## Task
Generate a SQL query to answer the following question:
`what is the date of appointment for the team osasuna?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the date of appointment for the team osasuna?`:
```sql
|
SELECT MIN("l") FROM "wilderness_years_1888_1893"; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest amount of L in any season? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wilderness_years_1888_1893" (
"season" real,
"pl" real,
"w" real,
"l" real,
"d" real,
"captain" text,
"most_runs" text,
"most_wkts" text,
"wkt_keeper" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest amount of L in any season? `:
```sql
|
SELECT "l" FROM "wilderness_years_1888_1893" WHERE "most_runs"='Levi Wright'; |
## Task
Generate a SQL query to answer the following question:
`What was the L in the season where Levi Wright had the most runs? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wilderness_years_1888_1893" (
"season" real,
"pl" real,
"w" real,
"l" real,
"d" real,
"captain" text,
"most_runs" text,
"most_wkts" text,
"wkt_keeper" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the L in the season where Levi Wright had the most runs? `:
```sql
|
SELECT COUNT("vote") FROM "table1_24233848_2" WHERE "finish"='3rd Voted Out Day 9'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of votes for 3rd voted out day 9`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24233848_2" (
"episode" real,
"airdate" text,
"reward" text,
"immunity" text,
"eliminated" text,
"vote" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of votes for 3rd voted out day 9`:
```sql
|
SELECT "eliminated" FROM "table1_24233848_2" WHERE "finish"='7th Voted Out Day 21'; |
## Task
Generate a SQL query to answer the following question:
`Name the eliminated 7th voted out day 21`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24233848_2" (
"episode" real,
"airdate" text,
"reward" text,
"immunity" text,
"eliminated" text,
"vote" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the eliminated 7th voted out day 21`:
```sql
|
SELECT "vote" FROM "table1_24233848_2" WHERE "eliminated"='Thiago'; |
## Task
Generate a SQL query to answer the following question:
`Name the vote for thiago`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24233848_2" (
"episode" real,
"airdate" text,
"reward" text,
"immunity" text,
"eliminated" text,
"vote" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the vote for thiago`:
```sql
|
SELECT "vote" FROM "table1_24233848_2" WHERE "finish"='9th Voted Out Day 22'; |
## Task
Generate a SQL query to answer the following question:
`Name the vote for 9th voted out day 22`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24233848_2" (
"episode" real,
"airdate" text,
"reward" text,
"immunity" text,
"eliminated" text,
"vote" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the vote for 9th voted out day 22`:
```sql
|
SELECT "reward" FROM "table1_24233848_2" WHERE "eliminated"='Hilca'; |
## Task
Generate a SQL query to answer the following question:
`Name the reward eliminated hilca`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24233848_2" (
"episode" real,
"airdate" text,
"reward" text,
"immunity" text,
"eliminated" text,
"vote" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the reward eliminated hilca`:
```sql
|
SELECT "exports_us_mil" FROM "development_regions" WHERE "county"='Vest'; |
## Task
Generate a SQL query to answer the following question:
`When the country is vest, what were the exports?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "development_regions" (
"county" text,
"exports_us_mil" text,
"percent_of_total_exports" text,
"imports_us_mil" text,
"percent_of_total_imports" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the country is vest, what were the exports?`:
```sql
|
SELECT "major_version" FROM "windows" WHERE "web_kit_version"='528.17'; |
## Task
Generate a SQL query to answer the following question:
`What was the major version when the webkit version was 528.17?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "windows" (
"major_version" text,
"minor_version" text,
"web_kit_version" text,
"operating_system" text,
"release_date" text,
"features" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the major version when the webkit version was 528.17?`:
```sql
|
SELECT "major_version" FROM "windows" WHERE "release_date"='May 12, 2009' AND "minor_version"='3.2.3'; |
## Task
Generate a SQL query to answer the following question:
`List major versions released on May 12, 2009, that had a minor version of 3.2.3.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "windows" (
"major_version" text,
"minor_version" text,
"web_kit_version" text,
"operating_system" text,
"release_date" text,
"features" text
);
### SQL
Given the database schema, here is the SQL query that answers `List major versions released on May 12, 2009, that had a minor version of 3.2.3.`:
```sql
|
SELECT "minor_version" FROM "windows" WHERE "release_date"='April 16, 2008'; |
## Task
Generate a SQL query to answer the following question:
`What was the minor version released on April 16, 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "windows" (
"major_version" text,
"minor_version" text,
"web_kit_version" text,
"operating_system" text,
"release_date" text,
"features" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the minor version released on April 16, 2008?`:
```sql
|
SELECT "web_kit_version" FROM "windows" WHERE "major_version"='Safari 3' AND "minor_version"='3.1.2'; |
## Task
Generate a SQL query to answer the following question:
`List all webkit versions when the major version was Safari 3, and the minor version was 3.1.2.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "windows" (
"major_version" text,
"minor_version" text,
"web_kit_version" text,
"operating_system" text,
"release_date" text,
"features" text
);
### SQL
Given the database schema, here is the SQL query that answers `List all webkit versions when the major version was Safari 3, and the minor version was 3.1.2.`:
```sql
|
SELECT "operating_system" FROM "windows" WHERE "web_kit_version"='525.29.1'; |
## Task
Generate a SQL query to answer the following question:
`List all OS's with a webkit version of 525.29.1.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "windows" (
"major_version" text,
"minor_version" text,
"web_kit_version" text,
"operating_system" text,
"release_date" text,
"features" text
);
### SQL
Given the database schema, here is the SQL query that answers `List all OS's with a webkit version of 525.29.1.`:
```sql
|
SELECT "web_kit_version" FROM "windows" WHERE "minor_version"='3.1.2'; |
## Task
Generate a SQL query to answer the following question:
`What is the webkit version when the minor version was 3.1.2.?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "windows" (
"major_version" text,
"minor_version" text,
"web_kit_version" text,
"operating_system" text,
"release_date" text,
"features" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the webkit version when the minor version was 3.1.2.?`:
```sql
|
SELECT "main_legion_base" FROM "table1_242785_3" WHERE "notes"='Primigenia goddess of Fate. XX in Batavi revolt'; |
## Task
Generate a SQL query to answer the following question:
`What was the main legion base for the Romans when the notes were "primigenia goddess of fate. xx in batavi revolt"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_242785_3" (
"legion_no_and_title" text,
"main_legion_base" text,
"emblem" text,
"date_founded_founder" text,
"date_disband" text,
"castra_legionaria_legion_bases_main_base_start_date_31_bc_if_unspecified" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the main legion base for the Romans when the notes were "primigenia goddess of fate. xx in batavi revolt"?`:
```sql
|
SELECT "notes" FROM "table1_242785_3" WHERE "date_founded_founder"='57 BC Caesar'; |
## Task
Generate a SQL query to answer the following question:
`What are the notes during 57 bc caesar?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_242785_3" (
"legion_no_and_title" text,
"main_legion_base" text,
"emblem" text,
"date_founded_founder" text,
"date_disband" text,
"castra_legionaria_legion_bases_main_base_start_date_31_bc_if_unspecified" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the notes during 57 bc caesar?`:
```sql
|
SELECT "notes" FROM "table1_242785_3" WHERE "castra_legionaria_legion_bases_main_base_start_date_31_bc_if_unspecified"='39-c.300 Moguntiacum * (GS)'; |
## Task
Generate a SQL query to answer the following question:
`What are the notes when castra legionaria (legion bases) is 39-c.300 moguntiacum * (gs)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_242785_3" (
"legion_no_and_title" text,
"main_legion_base" text,
"emblem" text,
"date_founded_founder" text,
"date_disband" text,
"castra_legionaria_legion_bases_main_base_start_date_31_bc_if_unspecified" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the notes when castra legionaria (legion bases) is 39-c.300 moguntiacum * (gs)?`:
```sql
|
SELECT "date_founded_founder" FROM "table1_242785_3" WHERE "emblem"='Hercules'; |
## Task
Generate a SQL query to answer the following question:
`What is the date founded/founder when the emblem was Hercules?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_242785_3" (
"legion_no_and_title" text,
"main_legion_base" text,
"emblem" text,
"date_founded_founder" text,
"date_disband" text,
"castra_legionaria_legion_bases_main_base_start_date_31_bc_if_unspecified" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date founded/founder when the emblem was Hercules?`:
```sql
|
SELECT "main_legion_base" FROM "table1_242785_3" WHERE "date_disband"='70 XX'; |
## Task
Generate a SQL query to answer the following question:
`What is the main legion base that disbanded 70 xx?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_242785_3" (
"legion_no_and_title" text,
"main_legion_base" text,
"emblem" text,
"date_founded_founder" text,
"date_disband" text,
"castra_legionaria_legion_bases_main_base_start_date_31_bc_if_unspecified" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the main legion base that disbanded 70 xx?`:
```sql
|
SELECT "date_disband" FROM "table1_242785_1" WHERE "main_legionary_base"='Svishtov , Bulgaria'; |
## Task
Generate a SQL query to answer the following question:
`When did svishtov , bulgaria disband?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_242785_1" (
"legion_no_and_title" text,
"main_legionary_base" text,
"emblem" text,
"date_founded_founder" text,
"date_disband" text,
"castra_legionaria_legion_bases_main_base_start_date_31_bc_if_unspecified" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did svishtov , bulgaria disband?`:
```sql
|
SELECT "date_founded_founder" FROM "table1_242785_1" WHERE "notes"='prima Italica:raised for aborted Caucasus war'; |
## Task
Generate a SQL query to answer the following question:
`when notes are prima italica:raised for aborted caucasus war, when was that founded?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_242785_1" (
"legion_no_and_title" text,
"main_legionary_base" text,
"emblem" text,
"date_founded_founder" text,
"date_disband" text,
"castra_legionaria_legion_bases_main_base_start_date_31_bc_if_unspecified" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `when notes are prima italica:raised for aborted caucasus war, when was that founded?`:
```sql
|
SELECT "notes" FROM "table1_242785_1" WHERE "main_legionary_base"='Svishtov , Bulgaria'; |
## Task
Generate a SQL query to answer the following question:
`What are the notes for svishtov , bulgaria?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_242785_1" (
"legion_no_and_title" text,
"main_legionary_base" text,
"emblem" text,
"date_founded_founder" text,
"date_disband" text,
"castra_legionaria_legion_bases_main_base_start_date_31_bc_if_unspecified" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the notes for svishtov , bulgaria?`:
```sql
|
SELECT COUNT("team") FROM "pitchers" WHERE "overall_rank"=4; |
## Task
Generate a SQL query to answer the following question:
`Name the team ranked 4`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pitchers" (
"pitcher" text,
"strikeouts" real,
"season" real,
"team" text,
"league" text,
"overall_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the team ranked 4`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.