output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "tag_team" FROM "tag_team_turmoil_match" WHERE "entered"=6; |
## Task
Generate a SQL query to answer the following question:
`Name the Tag Team with Entered of 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tag_team_turmoil_match" (
"eliminated" text,
"tag_team" text,
"entered" real,
"eliminated_by" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Tag Team with Entered of 6?`:
```sql
|
SELECT "tag_team" FROM "tag_team_turmoil_match" WHERE "eliminated"='5'; |
## Task
Generate a SQL query to answer the following question:
`Name Tag Team with a Eliminated of 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tag_team_turmoil_match" (
"eliminated" text,
"tag_team" text,
"entered" real,
"eliminated_by" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name Tag Team with a Eliminated of 5?`:
```sql
|
SELECT "tag_team" FROM "tag_team_turmoil_match" WHERE "time"='03:34'; |
## Task
Generate a SQL query to answer the following question:
`Name the Tag Team with a Time of 03:34?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tag_team_turmoil_match" (
"eliminated" text,
"tag_team" text,
"entered" real,
"eliminated_by" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Tag Team with a Time of 03:34?`:
```sql
|
SELECT MAX("entered") FROM "tag_team_turmoil_match" WHERE "eliminated_by"='rosey and the hurricane'; |
## Task
Generate a SQL query to answer the following question:
`Name the highest Entered of Eliminated by of rosey and the hurricane?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tag_team_turmoil_match" (
"eliminated" text,
"tag_team" text,
"entered" real,
"eliminated_by" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the highest Entered of Eliminated by of rosey and the hurricane?`:
```sql
|
SELECT AVG("episodes") FROM "2005_fall_season" WHERE "tv_station"='ntv' AND "japanese_title"='あいのうた'; |
## Task
Generate a SQL query to answer the following question:
`Which Episodes have a TV Station of ntv, and a Japanese Title of あいのうた?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2005_fall_season" (
"japanese_title" text,
"romaji_title" text,
"tv_station" text,
"episodes" real,
"average_ratings" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Episodes have a TV Station of ntv, and a Japanese Title of あいのうた?`:
```sql
|
SELECT "tv_station" FROM "2005_fall_season" WHERE "average_ratings"='16.89%'; |
## Task
Generate a SQL query to answer the following question:
`Which TV Station has Average Ratings of 16.89%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2005_fall_season" (
"japanese_title" text,
"romaji_title" text,
"tv_station" text,
"episodes" real,
"average_ratings" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which TV Station has Average Ratings of 16.89%?`:
```sql
|
SELECT MAX("episodes") FROM "2005_fall_season" WHERE "tv_station"='tbs' AND "japanese_title"='今夜ひとりのベッドで'; |
## Task
Generate a SQL query to answer the following question:
`Which Episodes have a TV Station of tbs, and a Japanese Title of 今夜ひとりのベッドで?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2005_fall_season" (
"japanese_title" text,
"romaji_title" text,
"tv_station" text,
"episodes" real,
"average_ratings" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Episodes have a TV Station of tbs, and a Japanese Title of 今夜ひとりのベッドで?`:
```sql
|
SELECT "japanese_title" FROM "2005_fall_season" WHERE "tv_station"='tbs' AND "romaji_title"='hana yori dango'; |
## Task
Generate a SQL query to answer the following question:
`Which Japanese Title has a TV Station of tbs, and a Romaji Title of hana yori dango?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2005_fall_season" (
"japanese_title" text,
"romaji_title" text,
"tv_station" text,
"episodes" real,
"average_ratings" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Japanese Title has a TV Station of tbs, and a Romaji Title of hana yori dango?`:
```sql
|
SELECT "away_team" FROM "first_round_proper" WHERE "tie_no"='4'; |
## Task
Generate a SQL query to answer the following question:
`Who was the away team with a tie number of 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the away team with a tie number of 4?`:
```sql
|
SELECT "date" FROM "first_round_proper" WHERE "tie_no"='32'; |
## Task
Generate a SQL query to answer the following question:
`What date was the tie number of 32?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the tie number of 32?`:
```sql
|
SELECT "score" FROM "first_round_proper" WHERE "tie_no"='replay' AND "home_team"='mansfield town'; |
## Task
Generate a SQL query to answer the following question:
`What was the score when the tie number was a replay and the home team was mansfield town?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when the tie number was a replay and the home team was mansfield town?`:
```sql
|
SELECT "to_par" FROM "third_round" WHERE "score"='67-68-76=211'; |
## Task
Generate a SQL query to answer the following question:
`what is the to par when the score is 67-68-76=211?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the to par when the score is 67-68-76=211?`:
```sql
|
SELECT "score" FROM "third_round" WHERE "player"='tom watson'; |
## Task
Generate a SQL query to answer the following question:
`what is the score for tom watson?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the score for tom watson?`:
```sql
|
SELECT "player" FROM "third_round" WHERE "place"='t10' AND "score"='67-72-72=211'; |
## Task
Generate a SQL query to answer the following question:
`who is the player when the place is t10 and the score is 67-72-72=211?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the player when the place is t10 and the score is 67-72-72=211?`:
```sql
|
SELECT "place" FROM "third_round" WHERE "player"='bryce molder'; |
## Task
Generate a SQL query to answer the following question:
`what is the place for bryce molder?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the place for bryce molder?`:
```sql
|
SELECT "to_par" FROM "third_round" WHERE "player"='mathew goggin'; |
## Task
Generate a SQL query to answer the following question:
`what is the to par for mathew goggin?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the to par for mathew goggin?`:
```sql
|
SELECT AVG("quantity") FROM "passenger_and_express_train_locomotives" WHERE "axle_arrangement"='2′c h2'; |
## Task
Generate a SQL query to answer the following question:
`Which Quantity has an Axle arrangement of 2′c h2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "passenger_and_express_train_locomotives" (
"class" text,
"railway_number_s" text,
"drg_number_s" text,
"quantity" real,
"year_s_of_manufacture" text,
"axle_arrangement" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Quantity has an Axle arrangement of 2′c h2?`:
```sql
|
SELECT "year_s_of_manufacture" FROM "passenger_and_express_train_locomotives" WHERE "axle_arrangement"='2′b n2'; |
## Task
Generate a SQL query to answer the following question:
`Which Year(s) of manufacture has an Axle arrangement of 2′b n2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "passenger_and_express_train_locomotives" (
"class" text,
"railway_number_s" text,
"drg_number_s" text,
"quantity" real,
"year_s_of_manufacture" text,
"axle_arrangement" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year(s) of manufacture has an Axle arrangement of 2′b n2?`:
```sql
|
SELECT "rank" FROM "semifinal_a_b_1" WHERE "time"='5:56.73'; |
## Task
Generate a SQL query to answer the following question:
`Which Rank has a Time of 5:56.73?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "semifinal_a_b_1" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Rank has a Time of 5:56.73?`:
```sql
|
SELECT "rank" FROM "semifinal_a_b_1" WHERE "notes"='fb' AND "time"='5:57.31'; |
## Task
Generate a SQL query to answer the following question:
`Which Rank has Notes of fb, and a Time of 5:57.31?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "semifinal_a_b_1" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Rank has Notes of fb, and a Time of 5:57.31?`:
```sql
|
SELECT SUM("2000") FROM "top_markets_2000_2011" WHERE "2005"<'583,590' AND "2009"<'156,761' AND "2002">'1,393,020'; |
## Task
Generate a SQL query to answer the following question:
`How much 2000 has a 2005 smaller than 583,590, and a 2009 smaller than 156,761, and a 2002 larger than 1,393,020?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_markets_2000_2011" (
"country_or_territory" text,
"2000" real,
"2001" real,
"2002" real,
"2003" real,
"2004" real,
"2005" real,
"2006" real,
"2007" real,
"2008" real,
"2009" real,
"2010" real,
"2011" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much 2000 has a 2005 smaller than 583,590, and a 2009 smaller than 156,761, and a 2002 larger than 1,393,020?`:
```sql
|
SELECT AVG("2011") FROM "top_markets_2000_2011" WHERE "2004"<'271,691' AND "country_or_territory"='vietnam' AND "2009">'265,414'; |
## Task
Generate a SQL query to answer the following question:
`Which 2011 has a 2004 smaller than 271,691, and a Country or territory of vietnam, and a 2009 larger than 265,414?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_markets_2000_2011" (
"country_or_territory" text,
"2000" real,
"2001" real,
"2002" real,
"2003" real,
"2004" real,
"2005" real,
"2006" real,
"2007" real,
"2008" real,
"2009" real,
"2010" real,
"2011" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2011 has a 2004 smaller than 271,691, and a Country or territory of vietnam, and a 2009 larger than 265,414?`:
```sql
|
SELECT MIN("2007") FROM "top_markets_2000_2011" WHERE "country_or_territory"='china' AND "2002"<'670,099'; |
## Task
Generate a SQL query to answer the following question:
`Which 2007 has a Country or territory of china, and a 2002 smaller than 670,099?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_markets_2000_2011" (
"country_or_territory" text,
"2000" real,
"2001" real,
"2002" real,
"2003" real,
"2004" real,
"2005" real,
"2006" real,
"2007" real,
"2008" real,
"2009" real,
"2010" real,
"2011" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2007 has a Country or territory of china, and a 2002 smaller than 670,099?`:
```sql
|
SELECT SUM("giro_wins") FROM "per_country" WHERE "jerseys"=2 AND "country"='portugal' AND "young_rider">0; |
## Task
Generate a SQL query to answer the following question:
`what is the giro wins when jerseys is 2, country is portugal and young rider is more than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "per_country" (
"rank" text,
"country" text,
"jerseys" real,
"giro_wins" real,
"points" real,
"young_rider" real,
"most_recent_cyclist" text,
"most_recent_date" text,
"different_holders" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the giro wins when jerseys is 2, country is portugal and young rider is more than 0?`:
```sql
|
SELECT MAX("jerseys") FROM "per_country" WHERE "points"=0 AND "different_holders"<3 AND "giro_wins"<1 AND "young_rider">1; |
## Task
Generate a SQL query to answer the following question:
`what is the highest jersey when points is 0, different holders is less than 3, giro wins is less than 1 and young rider is more than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "per_country" (
"rank" text,
"country" text,
"jerseys" real,
"giro_wins" real,
"points" real,
"young_rider" real,
"most_recent_cyclist" text,
"most_recent_date" text,
"different_holders" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the highest jersey when points is 0, different holders is less than 3, giro wins is less than 1 and young rider is more than 1?`:
```sql
|
SELECT COUNT("jerseys") FROM "per_country" WHERE "young_rider">0 AND "country"='france' AND "points"<1; |
## Task
Generate a SQL query to answer the following question:
`how many times is young rider more than 0, country is france and points less than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "per_country" (
"rank" text,
"country" text,
"jerseys" real,
"giro_wins" real,
"points" real,
"young_rider" real,
"most_recent_cyclist" text,
"most_recent_date" text,
"different_holders" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many times is young rider more than 0, country is france and points less than 1?`:
```sql
|
SELECT MIN("different_holders") FROM "per_country" WHERE "country"='ireland' AND "giro_wins"<1; |
## Task
Generate a SQL query to answer the following question:
`what is the least different holders when the country is ireland and giro wins is less than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "per_country" (
"rank" text,
"country" text,
"jerseys" real,
"giro_wins" real,
"points" real,
"young_rider" real,
"most_recent_cyclist" text,
"most_recent_date" text,
"different_holders" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the least different holders when the country is ireland and giro wins is less than 1?`:
```sql
|
SELECT "speed" FROM "race_6a_lightweight_manx_grand_prix" WHERE "rider"='brian mateer'; |
## Task
Generate a SQL query to answer the following question:
`What is Brian Mateer's Speed?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_6a_lightweight_manx_grand_prix" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Brian Mateer's Speed?`:
```sql
|
SELECT AVG("rank") FROM "race_6a_lightweight_manx_grand_prix" WHERE "team"='250cc honda' AND "speed"='111.072mph'; |
## Task
Generate a SQL query to answer the following question:
`What is the Rank of the Rider with a Speed of 111.072mph in Team 250CC Honda?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_6a_lightweight_manx_grand_prix" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Rank of the Rider with a Speed of 111.072mph in Team 250CC Honda?`:
```sql
|
SELECT "nationality" FROM "heats" WHERE "time"='1:08.80'; |
## Task
Generate a SQL query to answer the following question:
`What is the Nationality of the swimmer with a Time of 1:08.80?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "heats" (
"rank" real,
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Nationality of the swimmer with a Time of 1:08.80?`:
```sql
|
SELECT "nationality" FROM "heats" WHERE "name"='anna khlistunova'; |
## Task
Generate a SQL query to answer the following question:
`What is Anna Khlistunova's Nationality?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "heats" (
"rank" real,
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Anna Khlistunova's Nationality?`:
```sql
|
SELECT "penalty" FROM "penalty_summary" WHERE "team"='det' AND "player"='andreas lilja'; |
## Task
Generate a SQL query to answer the following question:
`What is the penalty for the DET team player Andreas Lilja?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "penalty_summary" (
"period" text,
"team" text,
"player" text,
"penalty" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the penalty for the DET team player Andreas Lilja?`:
```sql
|
SELECT "penalty" FROM "penalty_summary" WHERE "player"='jonathan toews'; |
## Task
Generate a SQL query to answer the following question:
`What is the penalty for Jonathan Toews?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "penalty_summary" (
"period" text,
"team" text,
"player" text,
"penalty" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the penalty for Jonathan Toews?`:
```sql
|
SELECT "period" FROM "penalty_summary" WHERE "player"='ben eager'; |
## Task
Generate a SQL query to answer the following question:
`What is the period for Ben Eager?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "penalty_summary" (
"period" text,
"team" text,
"player" text,
"penalty" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the period for Ben Eager?`:
```sql
|
SELECT "period" FROM "penalty_summary" WHERE "team"='det' AND "time"='11:27'; |
## Task
Generate a SQL query to answer the following question:
`What is the period for the DET Team with a time of 11:27?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "penalty_summary" (
"period" text,
"team" text,
"player" text,
"penalty" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the period for the DET Team with a time of 11:27?`:
```sql
|
SELECT "player" FROM "penalty_summary" WHERE "penalty"='holding' AND "team"='det'; |
## Task
Generate a SQL query to answer the following question:
`What player has a penalty of holding on the DET team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "penalty_summary" (
"period" text,
"team" text,
"player" text,
"penalty" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player has a penalty of holding on the DET team?`:
```sql
|
SELECT "time" FROM "penalty_summary" WHERE "period"='1st' AND "player"='dustin byfuglien'; |
## Task
Generate a SQL query to answer the following question:
`What time does Dustin Byfuglien have in 1st period?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "penalty_summary" (
"period" text,
"team" text,
"player" text,
"penalty" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What time does Dustin Byfuglien have in 1st period?`:
```sql
|
SELECT "competition" FROM "international_goals" WHERE "result"='2-0' AND "location"='ferreiras' AND "assist_pass"='casey nogueira'; |
## Task
Generate a SQL query to answer the following question:
`Which competition has a result of 2-0 in Ferreiras with an assist/pass by Casey Nogueira?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"location" text,
"lineup" text,
"assist_pass" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which competition has a result of 2-0 in Ferreiras with an assist/pass by Casey Nogueira?`:
```sql
|
SELECT "score" FROM "international_goals" WHERE "lineup"='match reports'; |
## Task
Generate a SQL query to answer the following question:
`What is the score with the Lineup match reports?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"location" text,
"lineup" text,
"assist_pass" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score with the Lineup match reports?`:
```sql
|
SELECT "date" FROM "international_goals" WHERE "assist_pass"='shannon boxx'; |
## Task
Generate a SQL query to answer the following question:
`On what date is there an assist/pass by Shannon Boxx?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"location" text,
"lineup" text,
"assist_pass" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date is there an assist/pass by Shannon Boxx?`:
```sql
|
SELECT "assist_pass" FROM "international_goals" WHERE "location"='ferreiras'; |
## Task
Generate a SQL query to answer the following question:
`Which assist/pass is in Ferreiras?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"location" text,
"lineup" text,
"assist_pass" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which assist/pass is in Ferreiras?`:
```sql
|
SELECT "transfer_fee" FROM "transfers_out" WHERE "type"='career end' AND "name"='willy sagnol'; |
## Task
Generate a SQL query to answer the following question:
`Willy Sagnol with a type as career end had what has the transfer fee?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "transfers_out" (
"nat" text,
"name" text,
"type" text,
"transfer_window" text,
"transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Willy Sagnol with a type as career end had what has the transfer fee?`:
```sql
|
SELECT "nat" FROM "transfers_out" WHERE "transfer_window"='summer' AND "type"='transfer' AND "name"='marcell jansen'; |
## Task
Generate a SQL query to answer the following question:
`Marcell Jansen with a transfer window of summer, and of transfer as type is from what nation?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "transfers_out" (
"nat" text,
"name" text,
"type" text,
"transfer_window" text,
"transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Marcell Jansen with a transfer window of summer, and of transfer as type is from what nation?`:
```sql
|
SELECT "type" FROM "transfers_out" WHERE "nat"='ger' AND "name"='marcell jansen'; |
## Task
Generate a SQL query to answer the following question:
`Marcell Jansen of the nation GER has what for the type?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "transfers_out" (
"nat" text,
"name" text,
"type" text,
"transfer_window" text,
"transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Marcell Jansen of the nation GER has what for the type?`:
```sql
|
SELECT "name" FROM "transfers_out" WHERE "transfer_window"='winter' AND "transfer_fee"='free'; |
## Task
Generate a SQL query to answer the following question:
`What player had a transfer window of winter, and free as the transfer fee?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "transfers_out" (
"nat" text,
"name" text,
"type" text,
"transfer_window" text,
"transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player had a transfer window of winter, and free as the transfer fee?`:
```sql
|
SELECT "name" FROM "transfers_out" WHERE "transfer_window"='summer' AND "nat"='ger' AND "transfer_fee"='n/a'; |
## Task
Generate a SQL query to answer the following question:
`Which player from GER has a transfer window of summer, and a transfer fee of n/a?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "transfers_out" (
"nat" text,
"name" text,
"type" text,
"transfer_window" text,
"transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player from GER has a transfer window of summer, and a transfer fee of n/a?`:
```sql
|
SELECT MAX("year_left") FROM "former_members" WHERE "conference_joined"='sagamore' AND "year_joined">1942; |
## Task
Generate a SQL query to answer the following question:
`What's the highest Year Left that's got a Conference Joined of Sagamore with a Year Joined larger than 1942?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_members" (
"school" text,
"location" text,
"mascot" text,
"county" text,
"year_joined" real,
"year_left" real,
"conference_joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the highest Year Left that's got a Conference Joined of Sagamore with a Year Joined larger than 1942?`:
```sql
|
SELECT MAX("year_left") FROM "former_members" WHERE "school"='danville'; |
## Task
Generate a SQL query to answer the following question:
`What's the highest Year Left for the School of Danville?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_members" (
"school" text,
"location" text,
"mascot" text,
"county" text,
"year_joined" real,
"year_left" real,
"conference_joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the highest Year Left for the School of Danville?`:
```sql
|
SELECT "time" FROM "semifinal_2" WHERE "lane"=4; |
## Task
Generate a SQL query to answer the following question:
`What was lane 4's time?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was lane 4's time?`:
```sql
|
SELECT "part_number_s" FROM "sandy_bridge_dual_core_32_nm" WHERE "l2_cache"='2 × 256 kb' AND "frequency"='1.8 ghz'; |
## Task
Generate a SQL query to answer the following question:
`What's the part number of the processor that has an 1.8 ghz frequency and 2 × 256 kb L@ Cache?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sandy_bridge_dual_core_32_nm" (
"model_number" text,
"s_spec_number" text,
"cores" text,
"frequency" text,
"turbo" text,
"l2_cache" text,
"l3_cache" text,
"gpu_model" text,
"gpu_frequency" text,
"socket" text,
"i_o_bus" text,
"release_date" text,
"part_number_s" text,
"release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the part number of the processor that has an 1.8 ghz frequency and 2 × 256 kb L@ Cache?`:
```sql
|
SELECT "s_spec_number" FROM "sandy_bridge_dual_core_32_nm" WHERE "i_o_bus"='ultra-low power'; |
## Task
Generate a SQL query to answer the following question:
`What's the sSpec number of the processor having an ultra-low power I/O?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sandy_bridge_dual_core_32_nm" (
"model_number" text,
"s_spec_number" text,
"cores" text,
"frequency" text,
"turbo" text,
"l2_cache" text,
"l3_cache" text,
"gpu_model" text,
"gpu_frequency" text,
"socket" text,
"i_o_bus" text,
"release_date" text,
"part_number_s" text,
"release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the sSpec number of the processor having an ultra-low power I/O?`:
```sql
|
SELECT "cores" FROM "sandy_bridge_dual_core_32_nm" WHERE "socket"='bga-1023' AND "release_date"='february 2011'; |
## Task
Generate a SQL query to answer the following question:
`What the cores with a release date of February 2011 and a BGA-1023 socket?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sandy_bridge_dual_core_32_nm" (
"model_number" text,
"s_spec_number" text,
"cores" text,
"frequency" text,
"turbo" text,
"l2_cache" text,
"l3_cache" text,
"gpu_model" text,
"gpu_frequency" text,
"socket" text,
"i_o_bus" text,
"release_date" text,
"part_number_s" text,
"release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What the cores with a release date of February 2011 and a BGA-1023 socket?`:
```sql
|
SELECT "l3_cache" FROM "sandy_bridge_dual_core_32_nm" WHERE "i_o_bus"='standard power'; |
## Task
Generate a SQL query to answer the following question:
`What's the L3 Cache that has a standard power I/O?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sandy_bridge_dual_core_32_nm" (
"model_number" text,
"s_spec_number" text,
"cores" text,
"frequency" text,
"turbo" text,
"l2_cache" text,
"l3_cache" text,
"gpu_model" text,
"gpu_frequency" text,
"socket" text,
"i_o_bus" text,
"release_date" text,
"part_number_s" text,
"release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the L3 Cache that has a standard power I/O?`:
```sql
|
SELECT "release_date" FROM "sandy_bridge_dual_core_32_nm" WHERE "frequency"='2.8 ghz'; |
## Task
Generate a SQL query to answer the following question:
`What's the release date of the processor with 2.8 ghz of frequency?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sandy_bridge_dual_core_32_nm" (
"model_number" text,
"s_spec_number" text,
"cores" text,
"frequency" text,
"turbo" text,
"l2_cache" text,
"l3_cache" text,
"gpu_model" text,
"gpu_frequency" text,
"socket" text,
"i_o_bus" text,
"release_date" text,
"part_number_s" text,
"release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the release date of the processor with 2.8 ghz of frequency?`:
```sql
|
SELECT COUNT("s_d") FROM "pharmacotherapy_for_cocaine_abuse" WHERE "3_h_nisoxetine"='3298 (1986)' AND "n_d">37.01; |
## Task
Generate a SQL query to answer the following question:
`What is the total S ÷ D with a 3298 (1986) [3 H] nizoxetine and an N ÷ D greater than 37.01?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pharmacotherapy_for_cocaine_abuse" (
"3_h_cft" real,
"3_h_nisoxetine" text,
"3_h_paroxetine" text,
"n_d" real,
"s_d" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total S ÷ D with a 3298 (1986) [3 H] nizoxetine and an N ÷ D greater than 37.01?`:
```sql
|
SELECT "3_h_paroxetine" FROM "pharmacotherapy_for_cocaine_abuse" WHERE "3_h_cft"<3.93 AND "s_d">1891 AND "3_h_nisoxetine"='299 (180)'; |
## Task
Generate a SQL query to answer the following question:
`What is the [3 H] paroxetine with a [3 H] CFT less than 3.93, an S ÷ D greater than 1891, and a [3H] nizoxetine of 299 (180)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pharmacotherapy_for_cocaine_abuse" (
"3_h_cft" real,
"3_h_nisoxetine" text,
"3_h_paroxetine" text,
"n_d" real,
"s_d" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the [3 H] paroxetine with a [3 H] CFT less than 3.93, an S ÷ D greater than 1891, and a [3H] nizoxetine of 299 (180)?`:
```sql
|
SELECT SUM("3_h_cft") FROM "pharmacotherapy_for_cocaine_abuse" WHERE "n_d"<393.8 AND "3_h_paroxetine"='1045 (45)'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of the [3 H]CFT with an N ÷ D less than 393.8 and a [3H] paroxetine of 1045 (45)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pharmacotherapy_for_cocaine_abuse" (
"3_h_cft" real,
"3_h_nisoxetine" text,
"3_h_paroxetine" text,
"n_d" real,
"s_d" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the [3 H]CFT with an N ÷ D less than 393.8 and a [3H] paroxetine of 1045 (45)?`:
```sql
|
SELECT MAX("s_d") FROM "pharmacotherapy_for_cocaine_abuse" WHERE "3_h_paroxetine"='2420 (220)' AND "n_d"<393.8; |
## Task
Generate a SQL query to answer the following question:
`What is the highest S ÷ D with a 2420 (220) [3H] paroxetine and an N ÷ D less than 393.8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pharmacotherapy_for_cocaine_abuse" (
"3_h_cft" real,
"3_h_nisoxetine" text,
"3_h_paroxetine" text,
"n_d" real,
"s_d" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest S ÷ D with a 2420 (220) [3H] paroxetine and an N ÷ D less than 393.8?`:
```sql
|
SELECT "round" FROM "top_10_attendances" WHERE "venue"='westpac stadium' AND "away"='newcastle jets'; |
## Task
Generate a SQL query to answer the following question:
`What round was the match at Westpac Stadium that had the Newcastle Jets as the away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_attendances" (
"attendance" real,
"round" text,
"date" text,
"home" text,
"score" text,
"away" text,
"venue" text,
"weekday" text,
"time_of_day" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round was the match at Westpac Stadium that had the Newcastle Jets as the away team?`:
```sql
|
SELECT "weekday" FROM "top_10_attendances" WHERE "away"='perth glory'; |
## Task
Generate a SQL query to answer the following question:
`On what weekday was the match that had Perth Glory as the away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_attendances" (
"attendance" real,
"round" text,
"date" text,
"home" text,
"score" text,
"away" text,
"venue" text,
"weekday" text,
"time_of_day" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what weekday was the match that had Perth Glory as the away team?`:
```sql
|
SELECT "british_record" FROM "guernsey_records" WHERE "guernsey_record"='32-8-0'; |
## Task
Generate a SQL query to answer the following question:
`What is the British record for the fish with a Guernsey record of 32-8-0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "guernsey_records" (
"fish" text,
"guernsey_record" text,
"year" text,
"location" text,
"british_record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the British record for the fish with a Guernsey record of 32-8-0?`:
```sql
|
SELECT "year" FROM "guernsey_records" WHERE "guernsey_record"='2-3-12'; |
## Task
Generate a SQL query to answer the following question:
`What year was the Guernsey record of 2-3-12 set?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "guernsey_records" (
"fish" text,
"guernsey_record" text,
"year" text,
"location" text,
"british_record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the Guernsey record of 2-3-12 set?`:
```sql
|
SELECT "guernsey_record" FROM "guernsey_records" WHERE "location"='bordeaux harbour'; |
## Task
Generate a SQL query to answer the following question:
`What was the guernsey record set with a fish caught at Bordeaux Harbour?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "guernsey_records" (
"fish" text,
"guernsey_record" text,
"year" text,
"location" text,
"british_record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the guernsey record set with a fish caught at Bordeaux Harbour?`:
```sql
|
SELECT "release_date" FROM "1931" WHERE "production_num"<5038 AND "characters"='bosko'; |
## Task
Generate a SQL query to answer the following question:
`When was the film released that a less than 5038 production number and was of the character Bosko?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1931" (
"title" text,
"series" text,
"characters" text,
"production_num" real,
"release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the film released that a less than 5038 production number and was of the character Bosko?`:
```sql
|
SELECT "title" FROM "1931" WHERE "production_num"=4645; |
## Task
Generate a SQL query to answer the following question:
`With 4645 as the production number what was the title?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1931" (
"title" text,
"series" text,
"characters" text,
"production_num" real,
"release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `With 4645 as the production number what was the title?`:
```sql
|
SELECT MIN("production_num") FROM "1931" WHERE "title"='bosko''s fox hunt'; |
## Task
Generate a SQL query to answer the following question:
`The film titled Bosko's fox hunt had what as the smallest production number?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1931" (
"title" text,
"series" text,
"characters" text,
"production_num" real,
"release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `The film titled Bosko's fox hunt had what as the smallest production number?`:
```sql
|
SELECT MIN("production_num") FROM "1931" WHERE "series"='lt' AND "title"='dumb patrol'; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest production number for the LT series with the Dumb Patrol title?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1931" (
"title" text,
"series" text,
"characters" text,
"production_num" real,
"release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest production number for the LT series with the Dumb Patrol title?`:
```sql
|
SELECT AVG("capacity") FROM "list" WHERE "home_team_s"='vélez sársfield'; |
## Task
Generate a SQL query to answer the following question:
`What was the average capacity for vélez sársfield?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list" (
"stadium" text,
"capacity" real,
"city" text,
"province" text,
"home_team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average capacity for vélez sársfield?`:
```sql
|
SELECT "city" FROM "list" WHERE "home_team_s"='tigre'; |
## Task
Generate a SQL query to answer the following question:
`What city was the home team Tigre?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list" (
"stadium" text,
"capacity" real,
"city" text,
"province" text,
"home_team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What city was the home team Tigre?`:
```sql
|
SELECT "province" FROM "list" WHERE "city"='mendoza' AND "stadium"='feliciano gambarte'; |
## Task
Generate a SQL query to answer the following question:
`What province is in Mendoza with a stadium feliciano gambarte?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list" (
"stadium" text,
"capacity" real,
"city" text,
"province" text,
"home_team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What province is in Mendoza with a stadium feliciano gambarte?`:
```sql
|
SELECT "date" FROM "schedule" WHERE "week">9 AND "tv_time"='abc 8:00pm'; |
## Task
Generate a SQL query to answer the following question:
`On what date was there a tv time of ABC 8:00pm and after week 9?`
### 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,
"result" text,
"tv_time" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was there a tv time of ABC 8:00pm and after week 9?`:
```sql
|
SELECT SUM("year") FROM "list_of_game_of_the_year_awards" WHERE "genre"='first-person shooter'; |
## Task
Generate a SQL query to answer the following question:
`What is total number of years that has genre of first-person shooter?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_game_of_the_year_awards" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is total number of years that has genre of first-person shooter?`:
```sql
|
SELECT MIN("year") FROM "list_of_game_of_the_year_awards" WHERE "genre"='action-adventure'; |
## Task
Generate a SQL query to answer the following question:
`Which year is the lowest for genre of action-adventure?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_game_of_the_year_awards" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which year is the lowest for genre of action-adventure?`:
```sql
|
SELECT "roman_equivalent" FROM "alphabet_and_transliteration" WHERE "normalised_transliteration"='i'; |
## Task
Generate a SQL query to answer the following question:
`What is the Roman translation with "Normalised" transliteration i`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "alphabet_and_transliteration" (
"gothic_letter_or_digraph" text,
"roman_equivalent" text,
"normalised_transliteration" text,
"sound" text,
"normal_environment_of_occurrence_in_native_words" text,
"proto_germanic_origin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Roman translation with "Normalised" transliteration i`:
```sql
|
SELECT "normalised_transliteration" FROM "alphabet_and_transliteration" WHERE "roman_equivalent"='i'; |
## Task
Generate a SQL query to answer the following question:
`what is the "normalized" transliteration for Roman i`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "alphabet_and_transliteration" (
"gothic_letter_or_digraph" text,
"roman_equivalent" text,
"normalised_transliteration" text,
"sound" text,
"normal_environment_of_occurrence_in_native_words" text,
"proto_germanic_origin" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the "normalized" transliteration for Roman i`:
```sql
|
SELECT "normal_environment_of_occurrence_in_native_words" FROM "alphabet_and_transliteration" WHERE "proto_germanic_origin"='/ai/'; |
## Task
Generate a SQL query to answer the following question:
`what is the normal environment of occurrence that has a Proto-Germanic origin /ai/`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "alphabet_and_transliteration" (
"gothic_letter_or_digraph" text,
"roman_equivalent" text,
"normalised_transliteration" text,
"sound" text,
"normal_environment_of_occurrence_in_native_words" text,
"proto_germanic_origin" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the normal environment of occurrence that has a Proto-Germanic origin /ai/`:
```sql
|
SELECT MIN("against") FROM "matches" WHERE "status"='tour match' AND "venue"='ravenhill , belfast'; |
## Task
Generate a SQL query to answer the following question:
`Which the lowest Against has a Status of tour match, and a Venue of ravenhill , belfast?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "matches" (
"opposing_team" text,
"against" real,
"date" text,
"venue" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which the lowest Against has a Status of tour match, and a Venue of ravenhill , belfast?`:
```sql
|
SELECT AVG("against") FROM "matches" WHERE "venue"='twickenham , london' AND "date"='25 november 1978'; |
## Task
Generate a SQL query to answer the following question:
`Name the average Against that has a Venue of twickenham , london on 25 november 1978?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "matches" (
"opposing_team" text,
"against" real,
"date" text,
"venue" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average Against that has a Venue of twickenham , london on 25 november 1978?`:
```sql
|
SELECT MAX("against") FROM "matches" WHERE "date"='21 november 1978'; |
## Task
Generate a SQL query to answer the following question:
`Name the highest Against on 21 november 1978?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "matches" (
"opposing_team" text,
"against" real,
"date" text,
"venue" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the highest Against on 21 november 1978?`:
```sql
|
SELECT "against" FROM "matches" WHERE "venue"='brewery field , bridgend'; |
## Task
Generate a SQL query to answer the following question:
`Name the Against of Venue of brewery field , bridgend?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "matches" (
"opposing_team" text,
"against" real,
"date" text,
"venue" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Against of Venue of brewery field , bridgend?`:
```sql
|
SELECT "status" FROM "matches" WHERE "against">15; |
## Task
Generate a SQL query to answer the following question:
`Name the Status with an Against larger than 15?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "matches" (
"opposing_team" text,
"against" real,
"date" text,
"venue" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Status with an Against larger than 15?`:
```sql
|
SELECT "name" FROM "volleyball_at_the_2008_summer_olympics_m" WHERE "2008_club"='vc nova'; |
## Task
Generate a SQL query to answer the following question:
`what is the name when 2008 club is vc nova?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "volleyball_at_the_2008_summer_olympics_m" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2008_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the name when 2008 club is vc nova?`:
```sql
|
SELECT "name" FROM "volleyball_at_the_2008_summer_olympics_m" WHERE "2008_club"='patron patra'; |
## Task
Generate a SQL query to answer the following question:
`what is the name when 2008 club is patron patra?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "volleyball_at_the_2008_summer_olympics_m" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2008_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the name when 2008 club is patron patra?`:
```sql
|
SELECT "spike" FROM "volleyball_at_the_2008_summer_olympics_m" WHERE "2008_club"='vc nova'; |
## Task
Generate a SQL query to answer the following question:
`what is spike when 2008 club is vc nova?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "volleyball_at_the_2008_summer_olympics_m" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2008_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is spike when 2008 club is vc nova?`:
```sql
|
SELECT "score" FROM "fourth_round_proper" WHERE "date"='24 january 1976' AND "tie_no"='1'; |
## Task
Generate a SQL query to answer the following question:
`what is the score on 24 january 1976 with the tie no of 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the score on 24 january 1976 with the tie no of 1?`:
```sql
|
SELECT "home_team" FROM "fourth_round_proper" WHERE "away_team"='newcastle united'; |
## Task
Generate a SQL query to answer the following question:
`Who is the home team when the away team is newcastle united?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the home team when the away team is newcastle united?`:
```sql
|
SELECT "home_team" FROM "fourth_round_proper" WHERE "away_team"='wolverhampton wanderers'; |
## Task
Generate a SQL query to answer the following question:
`who is the home team when the away team is wolverhampton wanderers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the home team when the away team is wolverhampton wanderers?`:
```sql
|
SELECT "date" FROM "fourth_round_proper" WHERE "tie_no"='9'; |
## Task
Generate a SQL query to answer the following question:
`what is the date when the tie no is 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the date when the tie no is 9?`:
```sql
|
SELECT "away_team" FROM "fourth_round_proper" WHERE "tie_no"='7'; |
## Task
Generate a SQL query to answer the following question:
`who is the away team when the tie no is 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the away team when the tie no is 7?`:
```sql
|
SELECT "score" FROM "fourth_round_proper" WHERE "home_team"='sunderland'; |
## Task
Generate a SQL query to answer the following question:
`what is the score when the home team is sunderland?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the score when the home team is sunderland?`:
```sql
|
SELECT "title" FROM "1942" WHERE "director"='friz freleng' AND "production_number"='443'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the title that was directed by Friz Freleng and has a production number of 443?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1942" (
"title" text,
"series" text,
"director" text,
"production_number" text,
"release_date" text,
"reissue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the title that was directed by Friz Freleng and has a production number of 443?`:
```sql
|
SELECT "title" FROM "1942" WHERE "production_number"='627'; |
## Task
Generate a SQL query to answer the following question:
`Which title has a production number of 627?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1942" (
"title" text,
"series" text,
"director" text,
"production_number" text,
"release_date" text,
"reissue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which title has a production number of 627?`:
```sql
|
SELECT "film" FROM "screen_actors_guild" WHERE "year"<2002 AND "category"='outstanding actress'; |
## Task
Generate a SQL query to answer the following question:
`what is the film when the year is earlier than 2002 and the category is outstanding actress?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "screen_actors_guild" (
"year" real,
"category" text,
"film" text,
"result" text,
"lost_to" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the film when the year is earlier than 2002 and the category is outstanding actress?`:
```sql
|
SELECT COUNT("latitude") FROM "g" WHERE "land_sqmi">34.846 AND "geo_id"<3805529660 AND "township"='greenland' AND "ansi_code">1036405; |
## Task
Generate a SQL query to answer the following question:
`What is the total latitude of the greenland township with more than 34.846 sqmi of land, a geo id less than 3805529660, and an ANSI code greater than 1036405?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "g" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" real,
"water_sqmi" real,
"latitude" real,
"longitude" real,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total latitude of the greenland township with more than 34.846 sqmi of land, a geo id less than 3805529660, and an ANSI code greater than 1036405?`:
```sql
|
SELECT SUM("land_sqmi") FROM "g" WHERE "ansi_code"<1036538 AND "pop_2010"<42 AND "longitude">-99.442872 AND "water_sqmi">0.882; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of the land in sq mi with an ansi code less than 1036538, a 2010 population less than 42, a longitude greater than -99.442872, and more than 0.882 sq mi of water?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "g" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" real,
"water_sqmi" real,
"latitude" real,
"longitude" real,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the land in sq mi with an ansi code less than 1036538, a 2010 population less than 42, a longitude greater than -99.442872, and more than 0.882 sq mi of water?`:
```sql
|
SELECT MAX("water_sqmi") FROM "g" WHERE "land_sqmi">33.576 AND "township"='glenila' AND "latitude">48.832189; |
## Task
Generate a SQL query to answer the following question:
`What is the highest water (sq mi) of the township glenila, which has more than 33.576 sq mi of land and a latitude greater than 48.832189?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "g" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" real,
"water_sqmi" real,
"latitude" real,
"longitude" real,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest water (sq mi) of the township glenila, which has more than 33.576 sq mi of land and a latitude greater than 48.832189?`:
```sql
|
SELECT SUM("pop_2010") FROM "g" WHERE "latitude">47.710905 AND "longitude"=-101.79876 AND "land_sqmi"<35.695; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of the 2010 population with a latitude greater than 47.710905, a longitude of -101.79876, and less than 35.695 sq mi of land?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "g" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" real,
"water_sqmi" real,
"latitude" real,
"longitude" real,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the 2010 population with a latitude greater than 47.710905, a longitude of -101.79876, and less than 35.695 sq mi of land?`:
```sql
|
SELECT MIN("land_sqmi") FROM "g" WHERE "longitude"=-99.172785 AND "water_sqmi"<0.973; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest land in sq mi with a longitude of -99.172785 and less than 0.973 sq mi of water?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "g" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" real,
"water_sqmi" real,
"latitude" real,
"longitude" real,
"geo_id" real,
"ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest land in sq mi with a longitude of -99.172785 and less than 0.973 sq mi of water?`:
```sql
|
SELECT "name" FROM "coaches_staff" WHERE "position"='head coach'; |
## Task
Generate a SQL query to answer the following question:
`Who was the head coach?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "coaches_staff" (
"position" text,
"name" text,
"year_at_cu" text,
"experience" real,
"alma_mater" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the head coach?`:
```sql
|
SELECT "name" FROM "coaches_staff" WHERE "year_at_cu"='1st' AND "alma_mater"='dayton (''07)'; |
## Task
Generate a SQL query to answer the following question:
`Who has the alma mater of Dayton ('07), and was in their 1st year at CU?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "coaches_staff" (
"position" text,
"name" text,
"year_at_cu" text,
"experience" real,
"alma_mater" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has the alma mater of Dayton ('07), and was in their 1st year at CU?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.