output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "1st_prize" FROM "tournament_results" WHERE "score"='271 (-9)'; |
## Task
Generate a SQL query to answer the following question:
`What was the value of 1st prize when the score was 271 (-9)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"purse" real,
"winner" text,
"score" text,
"1st_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the value of 1st prize when the score was 271 (-9)?`:
```sql
|
SELECT "date" FROM "tournament_results" WHERE "score"='200 (-16)'; |
## Task
Generate a SQL query to answer the following question:
`What day was the score 200 (-16)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"purse" real,
"winner" text,
"score" text,
"1st_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day was the score 200 (-16)?`:
```sql
|
SELECT "location" FROM "tournament_results" WHERE "tournament"='Outback Steakhouse Pro-Am'; |
## Task
Generate a SQL query to answer the following question:
`Where was Outback Steakhouse Pro-AM held?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"purse" real,
"winner" text,
"score" text,
"1st_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was Outback Steakhouse Pro-AM held?`:
```sql
|
SELECT "date_of_polls" FROM "chhattisgarh_result" WHERE "state"='Mizoram'; |
## Task
Generate a SQL query to answer the following question:
`Which dates of polls occur in the Mizoram state?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "chhattisgarh_result" (
"state" text,
"date_of_polls" text,
"seats_a_cs" real,
"date_of_counting" text,
"incumbent" text,
"election_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which dates of polls occur in the Mizoram state?`:
```sql
|
SELECT COUNT("date_of_polls") FROM "chhattisgarh_result" WHERE "state"='Madhya Pradesh'; |
## Task
Generate a SQL query to answer the following question:
`How many dates of polls occur in the Madhya Pradesh state?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "chhattisgarh_result" (
"state" text,
"date_of_polls" text,
"seats_a_cs" real,
"date_of_counting" text,
"incumbent" text,
"election_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many dates of polls occur in the Madhya Pradesh state?`:
```sql
|
SELECT COUNT("against") FROM "campeonato_paulista" WHERE "difference"=11; |
## Task
Generate a SQL query to answer the following question:
`How many under the category of Against have a Difference of 11`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many under the category of Against have a Difference of 11`:
```sql
|
SELECT "won" FROM "campeonato_paulista" WHERE "against"=20; |
## Task
Generate a SQL query to answer the following question:
`if Against is 20 how much is Won?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `if Against is 20 how much is Won?`:
```sql
|
SELECT "drawn" FROM "campeonato_paulista" WHERE "team"='Portuguesa Santista'; |
## Task
Generate a SQL query to answer the following question:
`How many Drawn does the team Portuguesa Santista have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Drawn does the team Portuguesa Santista have?`:
```sql
|
SELECT MAX("for") FROM "campeonato_paulista" WHERE "difference"=11; |
## Task
Generate a SQL query to answer the following question:
`If the difference is 11 how much is for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the difference is 11 how much is for?`:
```sql
|
SELECT "drawn" FROM "campeonato_paulista" WHERE "team"='Corinthians'; |
## Task
Generate a SQL query to answer the following question:
`How many drawn does the team Corinthians have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many drawn does the team Corinthians have?`:
```sql
|
SELECT MAX("won") FROM "campeonato_paulista" WHERE "difference"='1'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number won with a difference of 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number won with a difference of 1?`:
```sql
|
SELECT MAX("position") FROM "campeonato_paulista" WHERE "against"=28; |
## Task
Generate a SQL query to answer the following question:
`What the highest position when there is 28 against?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What the highest position when there is 28 against?`:
```sql
|
SELECT MAX("won") FROM "campeonato_paulista" WHERE "points"=31; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number won when the number of points is 31?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number won when the number of points is 31?`:
```sql
|
SELECT MIN("position") FROM "campeonato_paulista" WHERE "difference"='6'; |
## Task
Generate a SQL query to answer the following question:
`What is the smalledt position when the difference was 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smalledt position when the difference was 6?`:
```sql
|
SELECT COUNT("average_weekly_rank") FROM "series_ratings" WHERE "average_nightly_rank"='No. 2'; |
## Task
Generate a SQL query to answer the following question:
`How many were the show's average weekly ranking when it reached No. 2 in average nightly ranking?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_ratings" (
"season" real,
"num_of_episodes" real,
"timeslot" text,
"season_premiere" text,
"season_final" text,
"peak_audience" real,
"average_audience" real,
"average_nightly_rank" text,
"average_weekly_rank" text,
"average_yearly_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many were the show's average weekly ranking when it reached No. 2 in average nightly ranking?`:
```sql
|
SELECT "timeslot" FROM "series_ratings" WHERE "season"=3; |
## Task
Generate a SQL query to answer the following question:
`What is the show's time slot during season 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_ratings" (
"season" real,
"num_of_episodes" real,
"timeslot" text,
"season_premiere" text,
"season_final" text,
"peak_audience" real,
"average_audience" real,
"average_nightly_rank" text,
"average_weekly_rank" text,
"average_yearly_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the show's time slot during season 3?`:
```sql
|
SELECT "round_3" FROM "scoring_format" WHERE "from"=1982; |
## Task
Generate a SQL query to answer the following question:
`What are all the round 3's after 1982?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scoring_format" (
"from" real,
"to" real,
"goal" real,
"round_1" text,
"round_2" text,
"round_3" text,
"round_4" text,
"round_5" text,
"round_6" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are all the round 3's after 1982?`:
```sql
|
SELECT "round_5" FROM "scoring_format" WHERE "round_6"='Double'; |
## Task
Generate a SQL query to answer the following question:
`What are all the round 5's where round 6 and up is double?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scoring_format" (
"from" real,
"to" real,
"goal" real,
"round_1" text,
"round_2" text,
"round_3" text,
"round_4" text,
"round_5" text,
"round_6" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are all the round 5's where round 6 and up is double?`:
```sql
|
SELECT MAX("goal") FROM "scoring_format" WHERE "from"=1979; |
## Task
Generate a SQL query to answer the following question:
`What is the maximum goal after 1979?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scoring_format" (
"from" real,
"to" real,
"goal" real,
"round_1" text,
"round_2" text,
"round_3" text,
"round_4" text,
"round_5" text,
"round_6" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum goal after 1979?`:
```sql
|
SELECT "february" FROM "2000s"; |
## Task
Generate a SQL query to answer the following question:
`Name all of the february`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000s" (
"2000" text,
"january" text,
"february" text,
"march" text,
"april" text,
"may" text,
"june" text,
"july" text,
"august" text,
"september" text,
"october" text,
"november" text,
"december" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name all of the february`:
```sql
|
SELECT "june" FROM "2000s"; |
## Task
Generate a SQL query to answer the following question:
`Name the junes`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000s" (
"2000" text,
"january" text,
"february" text,
"march" text,
"april" text,
"may" text,
"june" text,
"july" text,
"august" text,
"september" text,
"october" text,
"november" text,
"december" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the junes`:
```sql
|
SELECT "july" FROM "2000s"; |
## Task
Generate a SQL query to answer the following question:
`Name the julys`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000s" (
"2000" text,
"january" text,
"february" text,
"march" text,
"april" text,
"may" text,
"june" text,
"july" text,
"august" text,
"september" text,
"october" text,
"november" text,
"december" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the julys`:
```sql
|
SELECT COUNT("february") FROM "2000s"; |
## Task
Generate a SQL query to answer the following question:
`Name the number of februaries`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000s" (
"2000" text,
"january" text,
"february" text,
"march" text,
"april" text,
"may" text,
"june" text,
"july" text,
"august" text,
"september" text,
"october" text,
"november" text,
"december" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of februaries`:
```sql
|
SELECT "february" FROM "2000s"; |
## Task
Generate a SQL query to answer the following question:
`Name the february`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000s" (
"2000" text,
"january" text,
"february" text,
"march" text,
"april" text,
"may" text,
"june" text,
"july" text,
"august" text,
"september" text,
"october" text,
"november" text,
"december" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the february`:
```sql
|
SELECT MAX("points") FROM "apea_s_campeonato_paulista" WHERE "position"=2; |
## Task
Generate a SQL query to answer the following question:
`How many points are listed when the position is 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "apea_s_campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points are listed when the position is 2?`:
```sql
|
SELECT MAX("drawn") FROM "apea_s_campeonato_paulista" WHERE "lost"=2; |
## Task
Generate a SQL query to answer the following question:
`When there is a lost of 2 what is the mumber drawn?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "apea_s_campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `When there is a lost of 2 what is the mumber drawn?`:
```sql
|
SELECT MIN("played") FROM "apea_s_campeonato_paulista"; |
## Task
Generate a SQL query to answer the following question:
`How many games are played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "apea_s_campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games are played?`:
```sql
|
SELECT MIN("lost") FROM "apea_s_campeonato_paulista" WHERE "position"=2; |
## Task
Generate a SQL query to answer the following question:
`When the position is 2 what is the number lost?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "apea_s_campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the position is 2 what is the number lost?`:
```sql
|
SELECT MIN("won") FROM "apea_s_campeonato_paulista" WHERE "team"='Ypiranga-SP'; |
## Task
Generate a SQL query to answer the following question:
`When the team is ypiranga-sp what is the number of won games?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "apea_s_campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the team is ypiranga-sp what is the number of won games?`:
```sql
|
SELECT MIN("for") FROM "table1_15400878_1" WHERE "points"=19; |
## Task
Generate a SQL query to answer the following question:
`Name the lease for when points is 19`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_15400878_1" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the lease for when points is 19`:
```sql
|
SELECT "difference" FROM "table1_15400878_1" WHERE "drawn">2.0; |
## Task
Generate a SQL query to answer the following question:
`Name the difference for when drawn is larger than 2.0`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_15400878_1" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the difference for when drawn is larger than 2.0`:
```sql
|
SELECT MAX("against") FROM "table1_15400878_1" WHERE "team"='Minas Gerais'; |
## Task
Generate a SQL query to answer the following question:
`Name the most against for minas gerais`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_15400878_1" (
"position" real,
"team" text,
"points" real,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most against for minas gerais`:
```sql
|
SELECT "lms_class" FROM "peter_drummond_1911_1918" WHERE "lms_nos"='14510-5'; |
## Task
Generate a SQL query to answer the following question:
`What is the LMS class of trains with numbers 14510-5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "peter_drummond_1911_1918" (
"class" text,
"wheels" real,
"date" text,
"builder" text,
"no_built" real,
"1919_nos" text,
"lms_class" text,
"lms_nos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the LMS class of trains with numbers 14510-5?`:
```sql
|
SELECT "date" FROM "peter_drummond_1911_1918" WHERE "wheels"=279; |
## Task
Generate a SQL query to answer the following question:
`What is the date of the 279 wheels?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "peter_drummond_1911_1918" (
"class" text,
"wheels" real,
"date" text,
"builder" text,
"no_built" real,
"1919_nos" text,
"lms_class" text,
"lms_nos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the 279 wheels?`:
```sql
|
SELECT "class" FROM "peter_drummond_1911_1918" WHERE "lms_class"='3F'; |
## Task
Generate a SQL query to answer the following question:
`What is the class when the LMS class is 3F?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "peter_drummond_1911_1918" (
"class" text,
"wheels" real,
"date" text,
"builder" text,
"no_built" real,
"1919_nos" text,
"lms_class" text,
"lms_nos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the class when the LMS class is 3F?`:
```sql
|
SELECT "lms_nos" FROM "peter_drummond_1911_1918" WHERE "builder"='G&SWR Kilmarnock'; |
## Task
Generate a SQL query to answer the following question:
`What is the LMS number of the trains built by G&SWR Kilmarnock?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "peter_drummond_1911_1918" (
"class" text,
"wheels" real,
"date" text,
"builder" text,
"no_built" real,
"1919_nos" text,
"lms_class" text,
"lms_nos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the LMS number of the trains built by G&SWR Kilmarnock?`:
```sql
|
SELECT COUNT("wheels") FROM "peter_drummond_1911_1918" WHERE "lms_nos"='16377-9'; |
## Task
Generate a SQL query to answer the following question:
`How many figures are there for wheels for LMS numbers 16377-9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "peter_drummond_1911_1918" (
"class" text,
"wheels" real,
"date" text,
"builder" text,
"no_built" real,
"1919_nos" text,
"lms_class" text,
"lms_nos" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many figures are there for wheels for LMS numbers 16377-9?`:
```sql
|
SELECT "builder" FROM "peter_drummond_1911_1918" WHERE "lms_class"='3F'; |
## Task
Generate a SQL query to answer the following question:
`What is the builder of the train with LMS Class 3f?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "peter_drummond_1911_1918" (
"class" text,
"wheels" real,
"date" text,
"builder" text,
"no_built" real,
"1919_nos" text,
"lms_class" text,
"lms_nos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the builder of the train with LMS Class 3f?`:
```sql
|
SELECT MAX("saffir_simpson_category") FROM "table_1_historical_storms_and_the_chi_19"; |
## Task
Generate a SQL query to answer the following question:
`What is the maximum number for the Saffir-Simpson category in the Carvill Hurricane Index?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_1_historical_storms_and_the_chi_19" (
"name" text,
"year" real,
"landfall" text,
"nhc_advisory_number" text,
"v_mph" real,
"r_miles" real,
"saffir_simpson_category" real,
"chi" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum number for the Saffir-Simpson category in the Carvill Hurricane Index?`:
```sql
|
SELECT MAX("v_mph") FROM "table_1_historical_storms_and_the_chi_19" WHERE "chi"='13.5'; |
## Task
Generate a SQL query to answer the following question:
`What is the maximum miles per hour recorded when the CHI (Carvill Hurricane Index) is equal to 13.5`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_1_historical_storms_and_the_chi_19" (
"name" text,
"year" real,
"landfall" text,
"nhc_advisory_number" text,
"v_mph" real,
"r_miles" real,
"saffir_simpson_category" real,
"chi" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum miles per hour recorded when the CHI (Carvill Hurricane Index) is equal to 13.5`:
```sql
|
SELECT "chi" FROM "table_1_historical_storms_and_the_chi_19" WHERE "nhc_advisory_number"='49B'; |
## Task
Generate a SQL query to answer the following question:
`What is the CHI (Carvill Hurricane Index) when the NHC advisory number is equal to 49b?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_1_historical_storms_and_the_chi_19" (
"name" text,
"year" real,
"landfall" text,
"nhc_advisory_number" text,
"v_mph" real,
"r_miles" real,
"saffir_simpson_category" real,
"chi" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the CHI (Carvill Hurricane Index) when the NHC advisory number is equal to 49b?`:
```sql
|
SELECT MAX("r_miles") FROM "table_1_historical_storms_and_the_chi_19" WHERE "landfall"='Texas' AND "saffir_simpson_category"<3.0; |
## Task
Generate a SQL query to answer the following question:
`What is the maximum number of miles reached in a Texas landfall when the Saffir-Simpson category is smaller than 3.0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_1_historical_storms_and_the_chi_19" (
"name" text,
"year" real,
"landfall" text,
"nhc_advisory_number" text,
"v_mph" real,
"r_miles" real,
"saffir_simpson_category" real,
"chi" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum number of miles reached in a Texas landfall when the Saffir-Simpson category is smaller than 3.0?`:
```sql
|
SELECT "r_miles" FROM "table_1_historical_storms_and_the_chi_19" WHERE "chi"='9.9'; |
## Task
Generate a SQL query to answer the following question:
`What are the miles when the Carvill Hurricane Index (CHI) is equal to 9.9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_1_historical_storms_and_the_chi_19" (
"name" text,
"year" real,
"landfall" text,
"nhc_advisory_number" text,
"v_mph" real,
"r_miles" real,
"saffir_simpson_category" real,
"chi" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the miles when the Carvill Hurricane Index (CHI) is equal to 9.9?`:
```sql
|
SELECT "saffir_simpson_category" FROM "table_1_historical_storms_and_the_chi_19" WHERE "name"='Bonnie'; |
## Task
Generate a SQL query to answer the following question:
`What is the Saffir-Simpson category for the hurricane named Bonnie?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_1_historical_storms_and_the_chi_19" (
"name" text,
"year" real,
"landfall" text,
"nhc_advisory_number" text,
"v_mph" real,
"r_miles" real,
"saffir_simpson_category" real,
"chi" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Saffir-Simpson category for the hurricane named Bonnie?`:
```sql
|
SELECT "common_name" FROM "table1_15417439_1" WHERE "accession_number"='XP_852505.1'; |
## Task
Generate a SQL query to answer the following question:
`What kind of animal corresponds to the accession number xp_852505.1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_15417439_1" (
"genus_species" text,
"common_name" text,
"accession_number" text,
"length" text,
"similarity" text,
"identity" text
);
### SQL
Given the database schema, here is the SQL query that answers `What kind of animal corresponds to the accession number xp_852505.1?`:
```sql
|
SELECT "similarity" FROM "table1_15417439_1" WHERE "genus_species"='Sus scrofa'; |
## Task
Generate a SQL query to answer the following question:
`How similar is the genus/species sus scrofa? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_15417439_1" (
"genus_species" text,
"common_name" text,
"accession_number" text,
"length" text,
"similarity" text,
"identity" text
);
### SQL
Given the database schema, here is the SQL query that answers `How similar is the genus/species sus scrofa? `:
```sql
|
SELECT "identity" FROM "table1_15417439_1" WHERE "genus_species"='Arabidopsis thaliana'; |
## Task
Generate a SQL query to answer the following question:
`What identities do the genus/species arabidopsis thaliana have? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_15417439_1" (
"genus_species" text,
"common_name" text,
"accession_number" text,
"length" text,
"similarity" text,
"identity" text
);
### SQL
Given the database schema, here is the SQL query that answers `What identities do the genus/species arabidopsis thaliana have? `:
```sql
|
SELECT "common_name" FROM "table1_15417439_1" WHERE "genus_species"='Rattus norvegicus'; |
## Task
Generate a SQL query to answer the following question:
`What's the animals name when the genus/species is rattus norvegicus? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_15417439_1" (
"genus_species" text,
"common_name" text,
"accession_number" text,
"length" text,
"similarity" text,
"identity" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the animals name when the genus/species is rattus norvegicus? `:
```sql
|
SELECT "length" FROM "table1_15417439_1" WHERE "genus_species"='Arabidopsis thaliana'; |
## Task
Generate a SQL query to answer the following question:
`For the genus/species arabidopsis thaliana, what are the lengths? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_15417439_1" (
"genus_species" text,
"common_name" text,
"accession_number" text,
"length" text,
"similarity" text,
"identity" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the genus/species arabidopsis thaliana, what are the lengths? `:
```sql
|
SELECT COUNT("original_air_date") FROM "table1_15430813_1" WHERE "no_in_season"=17; |
## Task
Generate a SQL query to answer the following question:
`How many original air dates were there for episode 17?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_15430813_1" (
"no_in_season" real,
"no_disc" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many original air dates were there for episode 17?`:
```sql
|
SELECT "original_air_date" FROM "table1_15430813_1" WHERE "title"='\"Prisoners\"'; |
## Task
Generate a SQL query to answer the following question:
`When did the episode titled "Prisoners" first air?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_15430813_1" (
"no_in_season" real,
"no_disc" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the episode titled "Prisoners" first air?`:
```sql
|
SELECT "institution" FROM "table_of_largest_rogue_trader_losses" WHERE "country"='London, United Kingdom'; |
## Task
Generate a SQL query to answer the following question:
`Which company was based in London, United Kingdom?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_of_largest_rogue_trader_losses" (
"name" text,
"country" text,
"date_s" real,
"loss" text,
"institution" text,
"market_activity" text,
"sentence" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which company was based in London, United Kingdom?`:
```sql
|
SELECT "original_air_date" FROM "table1_15431959_1" WHERE "written_by"='Peter DeLuise'; |
## Task
Generate a SQL query to answer the following question:
`What was the original air date of Stargate SG-1 written by Peter Deluise?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_15431959_1" (
"no_in_season" real,
"no_disc" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the original air date of Stargate SG-1 written by Peter Deluise?`:
```sql
|
SELECT MAX("no_in_season") FROM "table1_15431959_1" WHERE "directed_by"='Peter DeLuise'; |
## Task
Generate a SQL query to answer the following question:
`How many seasons did Peter Deluise direct Stargate SG-1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_15431959_1" (
"no_in_season" real,
"no_disc" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many seasons did Peter Deluise direct Stargate SG-1?`:
```sql
|
SELECT MIN("no_in_season") FROM "table1_15431959_1" WHERE "title"='\"Sight Unseen\"'; |
## Task
Generate a SQL query to answer the following question:
`Which number episode of season 6 was the title "Sight Unseen"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_15431959_1" (
"no_in_season" real,
"no_disc" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which number episode of season 6 was the title "Sight Unseen"?`:
```sql
|
SELECT "fifth_district" FROM "current_members" WHERE "third_district"='William Womer'; |
## Task
Generate a SQL query to answer the following question:
`Name the fifth district for william womer`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"first_district" text,
"second_district" text,
"third_district" text,
"fourth_district" text,
"fifth_district" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the fifth district for william womer`:
```sql
|
SELECT "third_district" FROM "current_members" WHERE "fifth_district"='Christine Young'; |
## Task
Generate a SQL query to answer the following question:
`Name the third district for christine young`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"first_district" text,
"second_district" text,
"third_district" text,
"fourth_district" text,
"fifth_district" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the third district for christine young`:
```sql
|
SELECT "fourth_district" FROM "current_members" WHERE "second_district"='Joan Runnels'; |
## Task
Generate a SQL query to answer the following question:
`Name the fourth district for joan runnels`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"first_district" text,
"second_district" text,
"third_district" text,
"fourth_district" text,
"fifth_district" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the fourth district for joan runnels`:
```sql
|
SELECT "fourth_district" FROM "current_members" WHERE "first_district"='Beverly Bodem'; |
## Task
Generate a SQL query to answer the following question:
`Name the fourth district for beverly bodem`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"first_district" text,
"second_district" text,
"third_district" text,
"fourth_district" text,
"fifth_district" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the fourth district for beverly bodem`:
```sql
|
SELECT COUNT("fifth_district") FROM "current_members" WHERE "third_district"='Richard Houskamp'; |
## Task
Generate a SQL query to answer the following question:
`Name the number for fifth district for richard houskamp`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"first_district" text,
"second_district" text,
"third_district" text,
"fourth_district" text,
"fifth_district" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number for fifth district for richard houskamp`:
```sql
|
SELECT "fifth_district" FROM "current_members" WHERE "fourth_district"='Steve Rudoni'; |
## Task
Generate a SQL query to answer the following question:
`Name the fifth district for steve rudoni`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"first_district" text,
"second_district" text,
"third_district" text,
"fourth_district" text,
"fifth_district" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the fifth district for steve rudoni`:
```sql
|
SELECT MAX("ends_lost") FROM "standings" WHERE "ends_won"=47; |
## Task
Generate a SQL query to answer the following question:
`What was the top ends lost where the ends won 47?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "standings" (
"locale" text,
"skip" text,
"w" real,
"l" real,
"pf" real,
"pa" real,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the top ends lost where the ends won 47?`:
```sql
|
SELECT "locale" FROM "standings" WHERE "stolen_ends"=12 AND "shot_pct"='77%'; |
## Task
Generate a SQL query to answer the following question:
`What was the location when the stolen ends is 12 and shot pct is 77%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "standings" (
"locale" text,
"skip" text,
"w" real,
"l" real,
"pf" real,
"pa" real,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the location when the stolen ends is 12 and shot pct is 77%?`:
```sql
|
SELECT "stolen_ends" FROM "standings" WHERE "locale"='Sweden'; |
## Task
Generate a SQL query to answer the following question:
`How many stolen ends were there when the locale was Sweden?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "standings" (
"locale" text,
"skip" text,
"w" real,
"l" real,
"pf" real,
"pa" real,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many stolen ends were there when the locale was Sweden?`:
```sql
|
SELECT "school_club_team" FROM "s" WHERE "season"='2012' AND "acquisition_via"='Trade'; |
## Task
Generate a SQL query to answer the following question:
`What was the school/club team whose season was in 2012 and were acquired via trade? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s" (
"name" text,
"position" text,
"number" real,
"school_club_team" text,
"season" text,
"acquisition_via" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the school/club team whose season was in 2012 and were acquired via trade? `:
```sql
|
SELECT "school_club_team" FROM "s" WHERE "name"='Mark Sanford'; |
## Task
Generate a SQL query to answer the following question:
`Which school/club team has a player named Mark Sanford? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s" (
"name" text,
"position" text,
"number" real,
"school_club_team" text,
"season" text,
"acquisition_via" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which school/club team has a player named Mark Sanford? `:
```sql
|
SELECT COUNT("number") FROM "s" WHERE "school_club_team"='Manuel Luis Quezon'; |
## Task
Generate a SQL query to answer the following question:
`How many school/club teams have a player named Manuel Luis Quezon? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s" (
"name" text,
"position" text,
"number" real,
"school_club_team" text,
"season" text,
"acquisition_via" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many school/club teams have a player named Manuel Luis Quezon? `:
```sql
|
SELECT COUNT("name") FROM "s" WHERE "school_club_team"='Washington'; |
## Task
Generate a SQL query to answer the following question:
`How many players are listed for the school/club team Washington? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s" (
"name" text,
"position" text,
"number" real,
"school_club_team" text,
"season" text,
"acquisition_via" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many players are listed for the school/club team Washington? `:
```sql
|
SELECT COUNT("position") FROM "s" WHERE "season"='2009'; |
## Task
Generate a SQL query to answer the following question:
`How many players with a position are listed for the 2009 season? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s" (
"name" text,
"position" text,
"number" real,
"school_club_team" text,
"season" text,
"acquisition_via" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many players with a position are listed for the 2009 season? `:
```sql
|
SELECT "school_club_team" FROM "a" WHERE "position"='Guard'; |
## Task
Generate a SQL query to answer the following question:
`Name the school/club for guard`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "a" (
"name" text,
"position" text,
"number" real,
"school_club_team" text,
"season" real,
"acquisition_via" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the school/club for guard`:
```sql
|
SELECT "position" FROM "a" WHERE "name"='judy-ann ramirez'; |
## Task
Generate a SQL query to answer the following question:
`Name the position for judy-ann ramirez`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "a" (
"name" text,
"position" text,
"number" real,
"school_club_team" text,
"season" real,
"acquisition_via" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the position for judy-ann ramirez`:
```sql
|
SELECT "losing_bonus" FROM "league_table" WHERE "points_difference"='-99'; |
## Task
Generate a SQL query to answer the following question:
`What is the losing bonus for the team with a point difference of -99?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "league_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"points_difference" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the losing bonus for the team with a point difference of -99?`:
```sql
|
SELECT "played" FROM "league_table" WHERE "points_for"='277'; |
## Task
Generate a SQL query to answer the following question:
`How many games played for teams with 277 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "league_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"points_difference" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games played for teams with 277 points?`:
```sql
|
SELECT "won" FROM "league_table" WHERE "tries_against"='49'; |
## Task
Generate a SQL query to answer the following question:
`How many games won for teams with 49 tries against?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "league_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"points_difference" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games won for teams with 49 tries against?`:
```sql
|
SELECT COUNT("points_difference") FROM "league_table" WHERE "tries_against"='62'; |
## Task
Generate a SQL query to answer the following question:
`How many teams have 62 tries against?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "league_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"points_difference" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many teams have 62 tries against?`:
```sql
|
SELECT "tries_for" FROM "league_table" WHERE "club"='Cambrian Welfare RFC'; |
## Task
Generate a SQL query to answer the following question:
`How many tries for, for club cambrian welfare rfc?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "league_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"points_difference" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many tries for, for club cambrian welfare rfc?`:
```sql
|
SELECT COUNT("points_difference") FROM "league_table" WHERE "tries_for"='21'; |
## Task
Generate a SQL query to answer the following question:
`How many teams have 21 tries for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "league_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"points_difference" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many teams have 21 tries for?`:
```sql
|
SELECT COUNT("chassis") FROM "entries" WHERE "no"=34; |
## Task
Generate a SQL query to answer the following question:
`How many chassis used number 34?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "entries" (
"no" real,
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many chassis used number 34?`:
```sql
|
SELECT "constructor" FROM "entries" WHERE "no"=22; |
## Task
Generate a SQL query to answer the following question:
`Who was the constructor of car 22?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "entries" (
"no" real,
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the constructor of car 22?`:
```sql
|
SELECT COUNT("engine") FROM "entries" WHERE "no"=48; |
## Task
Generate a SQL query to answer the following question:
`How many cars used number 48?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "entries" (
"no" real,
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many cars used number 48?`:
```sql
|
SELECT "driver" FROM "entries" WHERE "no"=44; |
## Task
Generate a SQL query to answer the following question:
`Who drove car 44?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "entries" (
"no" real,
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who drove car 44?`:
```sql
|
SELECT COUNT("year") FROM "mixed_doubles_finals_15_7_8" WHERE "outcome"='Runner-up' AND "championship"='US Open'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of years where runner-up and championship is us open`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_doubles_finals_15_7_8" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of years where runner-up and championship is us open`:
```sql
|
SELECT "surface" FROM "mixed_doubles_finals_15_7_8" WHERE "outcome"='Runner-up' AND "championship"='US Open'; |
## Task
Generate a SQL query to answer the following question:
`Name the surfaace where outcome is runner-up and championship is us open`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_doubles_finals_15_7_8" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the surfaace where outcome is runner-up and championship is us open`:
```sql
|
SELECT "partner" FROM "mixed_doubles_finals_15_7_8" WHERE "opponents"='Mark Woodforde Martina Navratilova'; |
## Task
Generate a SQL query to answer the following question:
`Name the partner for mark woodforde martina navratilova`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_doubles_finals_15_7_8" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the partner for mark woodforde martina navratilova`:
```sql
|
SELECT "score" FROM "mixed_doubles_finals_15_7_8" WHERE "opponents"='Rick Leach Zina Garrison'; |
## Task
Generate a SQL query to answer the following question:
`Name the score for rick leach zina garrison`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_doubles_finals_15_7_8" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the score for rick leach zina garrison`:
```sql
|
SELECT "swimsuit" FROM "semifinal_scores" WHERE "state"='Arizona'; |
## Task
Generate a SQL query to answer the following question:
`Name the swimsuit for arizona`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "semifinal_scores" (
"state" text,
"preliminary_average" text,
"interview" text,
"swimsuit" text,
"evening_gown" text,
"semifinal_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the swimsuit for arizona`:
```sql
|
SELECT "driver" FROM "indy_f3_challenge" WHERE "race_2"='7'; |
## Task
Generate a SQL query to answer the following question:
`Name the driver for race 2 7`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indy_f3_challenge" (
"pos" real,
"driver" text,
"qualifying" real,
"race_1" text,
"race_2" text,
"race_3" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the driver for race 2 7`:
```sql
|
SELECT COUNT("qualifying") FROM "indy_f3_challenge" WHERE "race_3"='3'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of qualifiying for race 3 being 3`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indy_f3_challenge" (
"pos" real,
"driver" text,
"qualifying" real,
"race_1" text,
"race_2" text,
"race_3" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of qualifiying for race 3 being 3`:
```sql
|
SELECT "driver" FROM "indy_f3_challenge" WHERE "race_2"='2'; |
## Task
Generate a SQL query to answer the following question:
`Name the driver for race 2 2 `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indy_f3_challenge" (
"pos" real,
"driver" text,
"qualifying" real,
"race_1" text,
"race_2" text,
"race_3" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the driver for race 2 2 `:
```sql
|
SELECT "race_1" FROM "indy_f3_challenge" WHERE "race_3"='8'; |
## Task
Generate a SQL query to answer the following question:
`Name the race 1 when race 3 is 8`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indy_f3_challenge" (
"pos" real,
"driver" text,
"qualifying" real,
"race_1" text,
"race_2" text,
"race_3" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the race 1 when race 3 is 8`:
```sql
|
SELECT "race_2" FROM "indy_f3_challenge" WHERE "driver"='James Winslow'; |
## Task
Generate a SQL query to answer the following question:
`Name the race 2 for james winslow`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indy_f3_challenge" (
"pos" real,
"driver" text,
"qualifying" real,
"race_1" text,
"race_2" text,
"race_3" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the race 2 for james winslow`:
```sql
|
SELECT COUNT("pos") FROM "indy_f3_challenge" WHERE "race_1"='2'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of positions for race 1 being 2`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indy_f3_challenge" (
"pos" real,
"driver" text,
"qualifying" real,
"race_1" text,
"race_2" text,
"race_3" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of positions for race 1 being 2`:
```sql
|
SELECT "report" FROM "full_series_results" WHERE "pole_position"='Carl Skerlong' AND "winning_team"='Newman Wachs Racing'; |
## Task
Generate a SQL query to answer the following question:
`Did the race get reported where the winning team was Newman Wachs racing and the pole belonged to Carl Skerlong`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "full_series_results" (
"rd" real,
"race" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Did the race get reported where the winning team was Newman Wachs racing and the pole belonged to Carl Skerlong`:
```sql
|
SELECT "report" FROM "full_series_results" WHERE "rd"=8; |
## Task
Generate a SQL query to answer the following question:
`Did the round 8 race get reported`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "full_series_results" (
"rd" real,
"race" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Did the round 8 race get reported`:
```sql
|
SELECT "race" FROM "full_series_results" WHERE "winning_team"='Mathiasen Motorsports' AND "pole_position"='Jonathan Bomarito'; |
## Task
Generate a SQL query to answer the following question:
`Which race was the winning team mathiasen motorsports and the pole belonged to jonathan bomarito`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "full_series_results" (
"rd" real,
"race" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which race was the winning team mathiasen motorsports and the pole belonged to jonathan bomarito`:
```sql
|
SELECT COUNT("winning_driver") FROM "full_series_results" WHERE "rd"=8; |
## Task
Generate a SQL query to answer the following question:
`how many winners were in round 8`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "full_series_results" (
"rd" real,
"race" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many winners were in round 8`:
```sql
|
SELECT COUNT("12_00_pm") FROM "afternoon" WHERE "time"='Wednesday'; |
## Task
Generate a SQL query to answer the following question:
`How many episodes air on Wednesday at 12:00pm?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "afternoon" (
"time" text,
"12_00_pm" text,
"01_00_pm" text,
"02_00_pm" text,
"03_00_pm" text,
"04_00_pm" text,
"05_00_pm" text,
"05_55_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes air on Wednesday at 12:00pm?`:
```sql
|
SELECT "02_00_pm" FROM "afternoon"; |
## Task
Generate a SQL query to answer the following question:
`What are the names of the episodes that airs at 2:00pm?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "afternoon" (
"time" text,
"12_00_pm" text,
"01_00_pm" text,
"02_00_pm" text,
"03_00_pm" text,
"04_00_pm" text,
"05_00_pm" text,
"05_55_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the names of the episodes that airs at 2:00pm?`:
```sql
|
SELECT "05_55_pm" FROM "afternoon" WHERE "time"='Friday'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the show that airs Friday at 5:55pm?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "afternoon" (
"time" text,
"12_00_pm" text,
"01_00_pm" text,
"02_00_pm" text,
"03_00_pm" text,
"04_00_pm" text,
"05_00_pm" text,
"05_55_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the show that airs Friday at 5:55pm?`:
```sql
|
SELECT "10_00_pm" FROM "night" WHERE "time"='Thursday'; |
## Task
Generate a SQL query to answer the following question:
`Name the 10 pm for thursday`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "night" (
"time" text,
"06_00_pm" text,
"07_00_pm" text,
"08_00_pm" text,
"09_00_pm" text,
"10_00_pm" text,
"10_30_pm" text,
"11_00_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 10 pm for thursday`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.