output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "fatalities" FROM "turkish_airlines_reported_incidents_and_" WHERE "location"='ankara' AND "aircraft"='douglas c-47'; |
## Task
Generate a SQL query to answer the following question:
`Which fatality was at ankara for the aircraft douglas c-47?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "turkish_airlines_reported_incidents_and_" (
"date" text,
"flight" text,
"aircraft" text,
"registration" text,
"location" text,
"fatalities" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which fatality was at ankara for the aircraft douglas c-47?`:
```sql
|
SELECT COUNT("round") FROM "mixed_martial_arts_record" WHERE "res"='win' AND "method"='n/a'; |
## Task
Generate a SQL query to answer the following question:
`How many total rounds have the results of win, and n/a as the method?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many total rounds have the results of win, and n/a as the method?`:
```sql
|
SELECT "time" FROM "mixed_martial_arts_record" WHERE "event"='rings: final capture'; |
## Task
Generate a SQL query to answer the following question:
`How long did the match last in the Rings: Final Capture event?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `How long did the match last in the Rings: Final Capture event?`:
```sql
|
SELECT "res" FROM "mixed_martial_arts_record" WHERE "opponent"='wataru sakata'; |
## Task
Generate a SQL query to answer the following question:
`What is the result for the match against Wataru Sakata?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result for the match against Wataru Sakata?`:
```sql
|
SELECT "res" FROM "mixed_martial_arts_record" WHERE "opponent"='oleg taktarov'; |
## Task
Generate a SQL query to answer the following question:
`The match against Oleg Taktarov had what result?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `The match against Oleg Taktarov had what result?`:
```sql
|
SELECT "method" FROM "mixed_martial_arts_record" WHERE "record"='4-2'; |
## Task
Generate a SQL query to answer the following question:
`What was the method when 4-2 was the record?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the method when 4-2 was the record?`:
```sql
|
SELECT "score" FROM "fifth_round_proper" WHERE "tie_no"='6'; |
## Task
Generate a SQL query to answer the following question:
`What was the score for Tie no. 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for Tie no. 6?`:
```sql
|
SELECT "tie_no" FROM "fifth_round_proper" WHERE "away_team"='leicester city'; |
## Task
Generate a SQL query to answer the following question:
`What was the tie against the away team, Leicester City?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the tie against the away team, Leicester City?`:
```sql
|
SELECT "round" FROM "mixed_martial_arts_record" WHERE "time"='3:01'; |
## Task
Generate a SQL query to answer the following question:
`Which round has a time of 3:01?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which round has a time of 3:01?`:
```sql
|
SELECT "location" FROM "mixed_martial_arts_record" WHERE "round"='3' AND "event"='ufc 110'; |
## Task
Generate a SQL query to answer the following question:
`Where is the UFC 110 event with 3 rounds located?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the UFC 110 event with 3 rounds located?`:
```sql
|
SELECT "home_team_score" FROM "1st_round" WHERE "date"='sunday 24 february'; |
## Task
Generate a SQL query to answer the following question:
`Which Home team score is on sunday 24 february?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1st_round" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Home team score is on sunday 24 february?`:
```sql
|
SELECT "home_team" FROM "1st_round" WHERE "home_team_score"='12.10 (82)'; |
## Task
Generate a SQL query to answer the following question:
`Which Home team has a score of 12.10 (82)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1st_round" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Home team has a score of 12.10 (82)?`:
```sql
|
SELECT "crowd" FROM "1st_round" WHERE "home_team"='st kilda'; |
## Task
Generate a SQL query to answer the following question:
`Which Crowd has a Home team of st kilda?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1st_round" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Crowd has a Home team of st kilda?`:
```sql
|
SELECT "away_team" FROM "1st_round" WHERE "ground"='gabba'; |
## Task
Generate a SQL query to answer the following question:
`Which Away team has a Ground of gabba?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1st_round" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Away team has a Ground of gabba?`:
```sql
|
SELECT MAX("crowd") FROM "1st_round" WHERE "away_team"='sydney'; |
## Task
Generate a SQL query to answer the following question:
`Which Crowd has a Away team of sydney?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1st_round" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Crowd has a Away team of sydney?`:
```sql
|
SELECT COUNT("25_1_4_oz") FROM "proof_coins" WHERE "50_1_2_oz"='13,836' AND "100_1_oz"<'14,912'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE NUMBER OF COINS OF $25-1/4 OZ WITH $50-1/2 OZ OF 13,836, AND $100-01 OZ, SMALLER THAN 14,912?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "proof_coins" (
"year" real,
"10_1_10_oz" real,
"25_1_4_oz" real,
"50_1_2_oz" real,
"100_1_oz" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE NUMBER OF COINS OF $25-1/4 OZ WITH $50-1/2 OZ OF 13,836, AND $100-01 OZ, SMALLER THAN 14,912?`:
```sql
|
SELECT SUM("owgr_pts") FROM "tournament_results" WHERE "dates"='may 10-13'; |
## Task
Generate a SQL query to answer the following question:
`Which OWGR pts has Dates of may 10-13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tournament_results" (
"dates" text,
"tournament" text,
"prize_fund" real,
"winner" text,
"owgr_pts" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which OWGR pts has Dates of may 10-13?`:
```sql
|
SELECT MIN("owgr_pts") FROM "tournament_results" WHERE "dates"='apr 26-29' AND "prize_fund"<'120,000,000'; |
## Task
Generate a SQL query to answer the following question:
`Which OWGR pts has Dates of apr 26-29, and a Prize fund (¥) smaller than 120,000,000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tournament_results" (
"dates" text,
"tournament" text,
"prize_fund" real,
"winner" text,
"owgr_pts" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which OWGR pts has Dates of apr 26-29, and a Prize fund (¥) smaller than 120,000,000?`:
```sql
|
SELECT "owgr_pts" FROM "tournament_results" WHERE "prize_fund">'100,000,000' AND "dates"='oct 25-28'; |
## Task
Generate a SQL query to answer the following question:
`Which OWGR pts has a Prize fund (¥) larger than 100,000,000, and Dates of oct 25-28?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tournament_results" (
"dates" text,
"tournament" text,
"prize_fund" real,
"winner" text,
"owgr_pts" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which OWGR pts has a Prize fund (¥) larger than 100,000,000, and Dates of oct 25-28?`:
```sql
|
SELECT COUNT("owgr_pts") FROM "tournament_results" WHERE "prize_fund"='100,000,000' AND "tournament"='tsuruya open'; |
## Task
Generate a SQL query to answer the following question:
`How many OWGR pts have a Prize fund (¥) of 100,000,000, and a Tournament of tsuruya open?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tournament_results" (
"dates" text,
"tournament" text,
"prize_fund" real,
"winner" text,
"owgr_pts" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many OWGR pts have a Prize fund (¥) of 100,000,000, and a Tournament of tsuruya open?`:
```sql
|
SELECT "home" FROM "round_9" WHERE "attendance">'1,858'; |
## Task
Generate a SQL query to answer the following question:
`Which Home has an Attendance larger than 1,858?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_9" (
"date" text,
"home" text,
"score" text,
"away" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Home has an Attendance larger than 1,858?`:
```sql
|
SELECT MAX("attendance") FROM "round_9" WHERE "score"='0:2'; |
## Task
Generate a SQL query to answer the following question:
`Which Attendance has a Score of 0:2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_9" (
"date" text,
"home" text,
"score" text,
"away" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Attendance has a Score of 0:2?`:
```sql
|
SELECT "date" FROM "round_9" WHERE "attendance">'1,858'; |
## Task
Generate a SQL query to answer the following question:
`Which Date has an Attendance larger than 1,858?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_9" (
"date" text,
"home" text,
"score" text,
"away" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has an Attendance larger than 1,858?`:
```sql
|
SELECT "home" FROM "round_9" WHERE "score"='0:2'; |
## Task
Generate a SQL query to answer the following question:
`Which Home has a Score of 0:2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_9" (
"date" text,
"home" text,
"score" text,
"away" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Home has a Score of 0:2?`:
```sql
|
SELECT "date" FROM "regular_season" WHERE "location_attendance"='verizon center 7,448'; |
## Task
Generate a SQL query to answer the following question:
`Which Date has a Location/Attendance of verizon center 7,448?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Location/Attendance of verizon center 7,448?`:
```sql
|
SELECT AVG("game") FROM "regular_season" WHERE "score"='101-109 (ot)'; |
## Task
Generate a SQL query to answer the following question:
`Which Game has a Score of 101-109 (ot)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Game has a Score of 101-109 (ot)?`:
```sql
|
SELECT "high_assists" FROM "playoffs" WHERE "location_attendance"='fleetcenter' AND "score"='w 120-87'; |
## Task
Generate a SQL query to answer the following question:
`Which player made the highest number of assists during the game played at the FleetCenter, with end score of W 120-87?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player made the highest number of assists during the game played at the FleetCenter, with end score of W 120-87?`:
```sql
|
SELECT "high_points" FROM "playoffs" WHERE "score"='w 93-85'; |
## Task
Generate a SQL query to answer the following question:
`Which player was the high points scorer during the game with an end score of W 93-85?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player was the high points scorer during the game with an end score of W 93-85?`:
```sql
|
SELECT "score" FROM "playoffs" WHERE "high_points"='p. pierce (31)'; |
## Task
Generate a SQL query to answer the following question:
`For the game in which P. Pierce (31) scored the most points, what was the final score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the game in which P. Pierce (31) scored the most points, what was the final score?`:
```sql
|
SELECT "high_assists" FROM "playoffs" WHERE "game"=2; |
## Task
Generate a SQL query to answer the following question:
`Who made the most assists in Game 2 of this season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who made the most assists in Game 2 of this season?`:
```sql
|
SELECT MIN("goals_for") FROM "group_ii" WHERE "goals_against">58 AND "played">30; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest number of goals when the goals against are more than 58 and played number is more than 30?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_ii" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest number of goals when the goals against are more than 58 and played number is more than 30?`:
```sql
|
SELECT MIN("position") FROM "group_ii" WHERE "points"=32 AND "wins">13; |
## Task
Generate a SQL query to answer the following question:
`What is the minimum position when points are 32 and wins are greater than 13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_ii" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum position when points are 32 and wins are greater than 13?`:
```sql
|
SELECT MAX("draws") FROM "group_ii" WHERE "goals_against">33 AND "losses"=13 AND "goals_for"<51; |
## Task
Generate a SQL query to answer the following question:
`What is the most draws when goals against are more than 33, losses are 13 and goals for is less than 51?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_ii" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most draws when goals against are more than 33, losses are 13 and goals for is less than 51?`:
```sql
|
SELECT AVG("position") FROM "group_ii" WHERE "wins"<14 AND "draws"<3; |
## Task
Generate a SQL query to answer the following question:
`What is the position when wins are fewer than 14 and draws are fewer than 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_ii" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position when wins are fewer than 14 and draws are fewer than 3?`:
```sql
|
SELECT "club" FROM "group_ii" WHERE "losses"=15 AND "wins"=14; |
## Task
Generate a SQL query to answer the following question:
`Which club has 15 losses and 14 wins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_ii" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which club has 15 losses and 14 wins?`:
```sql
|
SELECT "home" FROM "game_log" WHERE "date"='march 19'; |
## Task
Generate a SQL query to answer the following question:
`What home is dated march 19?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What home is dated march 19?`:
```sql
|
SELECT "home" FROM "game_log" WHERE "points"=46; |
## Task
Generate a SQL query to answer the following question:
`What home has 46 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What home has 46 points?`:
```sql
|
SELECT "released" FROM "series_1" WHERE "series_sorted"='6y/aa'; |
## Task
Generate a SQL query to answer the following question:
`What was the date of release for the episode sorted value of 6Y/AA?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_1" (
"series_sorted" text,
"title" text,
"doctor" text,
"featuring" text,
"released" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of release for the episode sorted value of 6Y/AA?`:
```sql
|
SELECT "series_sorted" FROM "series_1" WHERE "released"='december 2009'; |
## Task
Generate a SQL query to answer the following question:
`What is the series sorted value for the episode released December 2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_1" (
"series_sorted" text,
"title" text,
"doctor" text,
"featuring" text,
"released" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the series sorted value for the episode released December 2009?`:
```sql
|
SELECT "round" FROM "belarusian_clubs_in_euporean_cups" WHERE "team_num2"='gomel'; |
## Task
Generate a SQL query to answer the following question:
`What round has Team #2 Gomel?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "belarusian_clubs_in_euporean_cups" (
"round" text,
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round has Team #2 Gomel?`:
```sql
|
SELECT "elevator" FROM "cardinal_electors" WHERE "order_and_title"='cardinal-deacon of s. nicola in carcere tulliano'; |
## Task
Generate a SQL query to answer the following question:
`Who was the elevator when the Cardinal-Deacon of S. Nicola in Carcere Tulliano was the order and title?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cardinal_electors" (
"elector" text,
"nationality" text,
"order_and_title" text,
"elevated" text,
"elevator" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the elevator when the Cardinal-Deacon of S. Nicola in Carcere Tulliano was the order and title?`:
```sql
|
SELECT "elevator" FROM "cardinal_electors" WHERE "order_and_title"='cardinal-priest of s. prassede'; |
## Task
Generate a SQL query to answer the following question:
`The Cardinal-Priest of S. Prassede order and title has who as the elevator?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cardinal_electors" (
"elector" text,
"nationality" text,
"order_and_title" text,
"elevated" text,
"elevator" text
);
### SQL
Given the database schema, here is the SQL query that answers `The Cardinal-Priest of S. Prassede order and title has who as the elevator?`:
```sql
|
SELECT "nationality" FROM "cardinal_electors" WHERE "elevator"='innocent iv'; |
## Task
Generate a SQL query to answer the following question:
`When the elevator was Innocent IV what was the nationality?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cardinal_electors" (
"elector" text,
"nationality" text,
"order_and_title" text,
"elevated" text,
"elevator" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the elevator was Innocent IV what was the nationality?`:
```sql
|
SELECT "elevator" FROM "cardinal_electors" WHERE "elector"='giovanni gaetano orsini'; |
## Task
Generate a SQL query to answer the following question:
`When Giovanni Gaetano Orsini was the elector who was the elevator?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cardinal_electors" (
"elector" text,
"nationality" text,
"order_and_title" text,
"elevated" text,
"elevator" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Giovanni Gaetano Orsini was the elector who was the elevator?`:
```sql
|
SELECT "nationality" FROM "cardinal_electors" WHERE "elector"='anchero pantaleone'; |
## Task
Generate a SQL query to answer the following question:
`When Anchero Pantaleone was the elector what is under nationality?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cardinal_electors" (
"elector" text,
"nationality" text,
"order_and_title" text,
"elevated" text,
"elevator" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Anchero Pantaleone was the elector what is under nationality?`:
```sql
|
SELECT "order_and_title" FROM "cardinal_electors" WHERE "elevated"='may 1262' AND "elector"='guillaume de bray'; |
## Task
Generate a SQL query to answer the following question:
`With a date of May 1262 under elevated, Guillaume de Bray as the elector, what is the order and title?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cardinal_electors" (
"elector" text,
"nationality" text,
"order_and_title" text,
"elevated" text,
"elevator" text
);
### SQL
Given the database schema, here is the SQL query that answers `With a date of May 1262 under elevated, Guillaume de Bray as the elector, what is the order and title?`:
```sql
|
SELECT "result" FROM "schedule" WHERE "opponent"='san francisco 49ers'; |
## Task
Generate a SQL query to answer the following question:
`What was the result when the San Francisco 49ers were the opponents?`
### 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,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result when the San Francisco 49ers were the opponents?`:
```sql
|
SELECT "score" FROM "singles_titles" WHERE "tournament"='rabat' AND "opponent_in_the_final"='yannik reuter'; |
## Task
Generate a SQL query to answer the following question:
`What was the Score of the Rabat Tournament with Opponent in the final Yannik Reuter?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_titles" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Score of the Rabat Tournament with Opponent in the final Yannik Reuter?`:
```sql
|
SELECT "opponent_in_the_final" FROM "singles_titles" WHERE "surface"='clay' AND "score"='6–0, 6–2'; |
## Task
Generate a SQL query to answer the following question:
`What is the Opponent of the match played on a Clay Surface with a Score of 6–0, 6–2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_titles" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Opponent of the match played on a Clay Surface with a Score of 6–0, 6–2?`:
```sql
|
SELECT "date" FROM "singles_titles" WHERE "opponent_in_the_final"='filip polášek'; |
## Task
Generate a SQL query to answer the following question:
`What is the Date of the match with Opponent in the final of Filip Polášek?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_titles" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of the match with Opponent in the final of Filip Polášek?`:
```sql
|
SELECT "score" FROM "singles_titles" WHERE "tournament"='rabat' AND "opponent_in_the_final"='frederico gil'; |
## Task
Generate a SQL query to answer the following question:
`What is the Score of the Rabat Tournament with Opponent in the final of Frederico Gil?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_titles" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score of the Rabat Tournament with Opponent in the final of Frederico Gil?`:
```sql
|
SELECT "date" FROM "schedule" WHERE "result"='w 30–15'; |
## Task
Generate a SQL query to answer the following question:
`On what Date was the Result of the game W 30–15?`
### 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,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what Date was the Result of the game W 30–15?`:
```sql
|
SELECT "date" FROM "schedule" WHERE "week"=9; |
## Task
Generate a SQL query to answer the following question:
`What is the Date of 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,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of Week 9?`:
```sql
|
SELECT "result" FROM "schedule" WHERE "date"='september 1, 1996'; |
## Task
Generate a SQL query to answer the following question:
`What is the Result of the game on September 1, 1996?`
### 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,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Result of the game on September 1, 1996?`:
```sql
|
SELECT AVG("week") FROM "schedule" WHERE "result"='w 34–24'; |
## Task
Generate a SQL query to answer the following question:
`On what Week was the Result W 34–24?`
### 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,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what Week was the Result W 34–24?`:
```sql
|
SELECT "week" FROM "schedule" WHERE "date"='november 10, 1996'; |
## Task
Generate a SQL query to answer the following question:
`What is the Week on November 10, 1996?`
### 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,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Week on November 10, 1996?`:
```sql
|
SELECT "status" FROM "parishes" WHERE "census_ranking"='3,474 of 5,008'; |
## Task
Generate a SQL query to answer the following question:
`What is the Status of the Paris with a Census Ranking of 3,474 of 5,008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "parishes" (
"official_name" text,
"status" text,
"area_km_2" real,
"population" real,
"census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Status of the Paris with a Census Ranking of 3,474 of 5,008?`:
```sql
|
SELECT COUNT("area_km_2") FROM "parishes" WHERE "population"='2,113'; |
## Task
Generate a SQL query to answer the following question:
`What is the Area of the Parish with a Population of 2,113?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "parishes" (
"official_name" text,
"status" text,
"area_km_2" real,
"population" real,
"census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Area of the Parish with a Population of 2,113?`:
```sql
|
SELECT MIN("population") FROM "parishes" WHERE "area_km_2"=236.76; |
## Task
Generate a SQL query to answer the following question:
`What is the Population of the Parish with an Area km 2 of 236.76?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "parishes" (
"official_name" text,
"status" text,
"area_km_2" real,
"population" real,
"census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Population of the Parish with an Area km 2 of 236.76?`:
```sql
|
SELECT "area_km_2" FROM "parishes" WHERE "population"=71; |
## Task
Generate a SQL query to answer the following question:
`What is the Area of the Parish with a Population of 71?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "parishes" (
"official_name" text,
"status" text,
"area_km_2" real,
"population" real,
"census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Area of the Parish with a Population of 71?`:
```sql
|
SELECT "elevation_height" FROM "flintlock_tests" WHERE "name"='halfbeak'; |
## Task
Generate a SQL query to answer the following question:
`What is the elevation and height for Halfbeak?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "flintlock_tests" (
"name" text,
"location" text,
"elevation_height" text,
"delivery" text,
"purpose" text,
"yield" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the elevation and height for Halfbeak?`:
```sql
|
SELECT "purpose" FROM "flintlock_tests" WHERE "name"='long shot'; |
## Task
Generate a SQL query to answer the following question:
`What is the purpose of Long Shot?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "flintlock_tests" (
"name" text,
"location" text,
"elevation_height" text,
"delivery" text,
"purpose" text,
"yield" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the purpose of Long Shot?`:
```sql
|
SELECT "yield" FROM "flintlock_tests" WHERE "purpose"='weapons development' AND "location"='nts area u2r'; |
## Task
Generate a SQL query to answer the following question:
`What is the yield in NTS Area U2R when the purpose is weapons development?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "flintlock_tests" (
"name" text,
"location" text,
"elevation_height" text,
"delivery" text,
"purpose" text,
"yield" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the yield in NTS Area U2R when the purpose is weapons development?`:
```sql
|
SELECT "location" FROM "references" WHERE "listed"='1977-09-15'; |
## Task
Generate a SQL query to answer the following question:
`What location was listed on 1977-09-15?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"name" text,
"built" text,
"listed" text,
"location" text,
"borough" text
);
### SQL
Given the database schema, here is the SQL query that answers `What location was listed on 1977-09-15?`:
```sql
|
SELECT "borough" FROM "references" WHERE "location"='seward' AND "listed"='1977-11-23'; |
## Task
Generate a SQL query to answer the following question:
`What is the Borough for the Seward listing on 1977-11-23?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"name" text,
"built" text,
"listed" text,
"location" text,
"borough" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Borough for the Seward listing on 1977-11-23?`:
```sql
|
SELECT "location" FROM "references" WHERE "listed"='1977-11-23'; |
## Task
Generate a SQL query to answer the following question:
`What location was listed on 1977-11-23?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"name" text,
"built" text,
"listed" text,
"location" text,
"borough" text
);
### SQL
Given the database schema, here is the SQL query that answers `What location was listed on 1977-11-23?`:
```sql
|
SELECT "listed" FROM "references" WHERE "borough"='valdez-cordova (census area)'; |
## Task
Generate a SQL query to answer the following question:
`What are the listings in the Valdez-cordova (census area) Borough?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"name" text,
"built" text,
"listed" text,
"location" text,
"borough" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the listings in the Valdez-cordova (census area) Borough?`:
```sql
|
SELECT "name" FROM "references" WHERE "listed"='1977-11-23'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the building listed on 1977-11-23?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"name" text,
"built" text,
"listed" text,
"location" text,
"borough" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the building listed on 1977-11-23?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "game"=52; |
## Task
Generate a SQL query to answer the following question:
`What was the Maple Leafs' record on game 52?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Maple Leafs' record on game 52?`:
```sql
|
SELECT MIN("sales_billion") FROM "2011_list" WHERE "headquarters"='germany' AND "profits_billion"<6.7; |
## Task
Generate a SQL query to answer the following question:
`What was Germany's lowest sales when the profit was smaller than 6.7 billion?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2011_list" (
"rank" real,
"company" text,
"headquarters" text,
"industry" text,
"sales_billion" real,
"profits_billion" real,
"assets_billion" real,
"market_value_billion" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was Germany's lowest sales when the profit was smaller than 6.7 billion?`:
```sql
|
SELECT "industry" FROM "2011_list" WHERE "profits_billion"<14.2 AND "assets_billion">'2,467.9'; |
## Task
Generate a SQL query to answer the following question:
`For which industry was the profit smaller than 14.2 billion and the assets larger than 2,467.9 billion?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2011_list" (
"rank" real,
"company" text,
"headquarters" text,
"industry" text,
"sales_billion" real,
"profits_billion" real,
"assets_billion" real,
"market_value_billion" real
);
### SQL
Given the database schema, here is the SQL query that answers `For which industry was the profit smaller than 14.2 billion and the assets larger than 2,467.9 billion?`:
```sql
|
SELECT "industry" FROM "2011_list" WHERE "assets_billion"<'1,258.1' AND "profits_billion"<11.6; |
## Task
Generate a SQL query to answer the following question:
`For which industry is the assets smaller than 1,258.1 and the profit smaller than 11.6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2011_list" (
"rank" real,
"company" text,
"headquarters" text,
"industry" text,
"sales_billion" real,
"profits_billion" real,
"assets_billion" real,
"market_value_billion" real
);
### SQL
Given the database schema, here is the SQL query that answers `For which industry is the assets smaller than 1,258.1 and the profit smaller than 11.6?`:
```sql
|
SELECT AVG("rank") FROM "2011_list" WHERE "headquarters"='usa' AND "market_value_billion">407.2; |
## Task
Generate a SQL query to answer the following question:
`What is the average rank for USA when the market value is 407.2 billion?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2011_list" (
"rank" real,
"company" text,
"headquarters" text,
"industry" text,
"sales_billion" real,
"profits_billion" real,
"assets_billion" real,
"market_value_billion" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average rank for USA when the market value is 407.2 billion?`:
```sql
|
SELECT "date" FROM "round_3" WHERE "attendance">875 AND "home"='platense'; |
## Task
Generate a SQL query to answer the following question:
`What was date was the attendance larger than 875 against Platense?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_3" (
"date" text,
"home" text,
"score" text,
"away" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was date was the attendance larger than 875 against Platense?`:
```sql
|
SELECT "home" FROM "round_3" WHERE "attendance"=3305; |
## Task
Generate a SQL query to answer the following question:
`Who was the home team with 3305 in attendance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_3" (
"date" text,
"home" text,
"score" text,
"away" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team with 3305 in attendance?`:
```sql
|
SELECT MAX("attendance") FROM "round_3" WHERE "home"='hispano'; |
## Task
Generate a SQL query to answer the following question:
`What was the highest attendance for the Hispano team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_3" (
"date" text,
"home" text,
"score" text,
"away" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest attendance for the Hispano team?`:
```sql
|
SELECT "country" FROM "final_round" WHERE "player"='tiger woods'; |
## Task
Generate a SQL query to answer the following question:
`What country has the player Tiger Woods?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What country has the player Tiger Woods?`:
```sql
|
SELECT MAX("money") FROM "final_round" WHERE "player"='loren roberts'; |
## Task
Generate a SQL query to answer the following question:
`What is the Money ($) player Loren Roberts has made?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Money ($) player Loren Roberts has made?`:
```sql
|
SELECT "pinnacle_height" FROM "structures_past_or_present_600_m_and_tal" WHERE "town"='metcalf, georgia'; |
## Task
Generate a SQL query to answer the following question:
`What is the Pinnacle height for Metcalf, Georgia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "structures_past_or_present_600_m_and_tal" (
"name" text,
"pinnacle_height" text,
"structure_type" text,
"main_use" text,
"town" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Pinnacle height for Metcalf, Georgia?`:
```sql
|
SELECT "player" FROM "second_round" WHERE "place"='t7' AND "score"='70-71=141'; |
## Task
Generate a SQL query to answer the following question:
`Who placed t7 with a score of 70-71=141?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_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 placed t7 with a score of 70-71=141?`:
```sql
|
SELECT "country" FROM "second_round" WHERE "score"='71-69=140'; |
## Task
Generate a SQL query to answer the following question:
`What country scored 71-69=140?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_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 country scored 71-69=140?`:
```sql
|
SELECT "nation" FROM "official_sports" WHERE "bronze">3 AND "gold"=0 AND "total"=9; |
## Task
Generate a SQL query to answer the following question:
`What nation had more than 3 bronze, 0 gold, and a total of 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "official_sports" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What nation had more than 3 bronze, 0 gold, and a total of 9?`:
```sql
|
SELECT MIN("year") FROM "2010s_eagles_5_3" WHERE "loser"='new york giants' AND "location"='new meadowlands stadium'; |
## Task
Generate a SQL query to answer the following question:
`What's the earliest year the new york giants lost at new meadowlands stadium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010s_eagles_5_3" (
"year" real,
"date" text,
"winner" text,
"result" text,
"loser" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the earliest year the new york giants lost at new meadowlands stadium?`:
```sql
|
SELECT COUNT("year") FROM "2010s_eagles_5_3" WHERE "location"='metlife stadium' AND "loser"='new york giants'; |
## Task
Generate a SQL query to answer the following question:
`How many years did the new york giants lose at metlife stadium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010s_eagles_5_3" (
"year" real,
"date" text,
"winner" text,
"result" text,
"loser" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years did the new york giants lose at metlife stadium?`:
```sql
|
SELECT COUNT("year") FROM "2010s_eagles_5_3" WHERE "location"='lincoln financial field' AND "winner"='new york giants' AND "result"='15-7'; |
## Task
Generate a SQL query to answer the following question:
`How many years did the new york giants win with a result of 15-7 at lincoln financial field?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010s_eagles_5_3" (
"year" real,
"date" text,
"winner" text,
"result" text,
"loser" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years did the new york giants win with a result of 15-7 at lincoln financial field?`:
```sql
|
SELECT "loser" FROM "2010s_eagles_5_3" WHERE "location"='lincoln financial field' AND "winner"='philadelphia eagles' AND "date"='september 30'; |
## Task
Generate a SQL query to answer the following question:
`Who lost when the philadelphia eagles won at lincoln financial field on september 30?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010s_eagles_5_3" (
"year" real,
"date" text,
"winner" text,
"result" text,
"loser" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who lost when the philadelphia eagles won at lincoln financial field on september 30?`:
```sql
|
SELECT "date" FROM "2010s_eagles_5_3" WHERE "winner"='new york giants' AND "year">2011; |
## Task
Generate a SQL query to answer the following question:
`What date did the new york giants win after 2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010s_eagles_5_3" (
"year" real,
"date" text,
"winner" text,
"result" text,
"loser" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the new york giants win after 2011?`:
```sql
|
SELECT "official_name" FROM "albert_county_new_brunswick" WHERE "census_ranking"='769 of 5,008'; |
## Task
Generate a SQL query to answer the following question:
`What is Official Name, when Census Ranking is 769 of 5,008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "albert_county_new_brunswick" (
"official_name" text,
"status" text,
"area_km_2" real,
"population" real,
"census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Official Name, when Census Ranking is 769 of 5,008?`:
```sql
|
SELECT "status" FROM "albert_county_new_brunswick" WHERE "area_km_2">303.73; |
## Task
Generate a SQL query to answer the following question:
`What is Status, when Area km 2 is greater than 303.73?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "albert_county_new_brunswick" (
"official_name" text,
"status" text,
"area_km_2" real,
"population" real,
"census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Status, when Area km 2 is greater than 303.73?`:
```sql
|
SELECT MIN("area_km_2") FROM "albert_county_new_brunswick" WHERE "population">'1,395'; |
## Task
Generate a SQL query to answer the following question:
`What is Area km 2, when Population is greater than 1,395?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "albert_county_new_brunswick" (
"official_name" text,
"status" text,
"area_km_2" real,
"population" real,
"census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Area km 2, when Population is greater than 1,395?`:
```sql
|
SELECT "place" FROM "third_round" WHERE "country"='zimbabwe'; |
## Task
Generate a SQL query to answer the following question:
`What is the Place of the Player from Zimbabwe?`
### 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 of the Player from Zimbabwe?`:
```sql
|
SELECT "place" FROM "third_round" WHERE "score"='73-68-71=212'; |
## Task
Generate a SQL query to answer the following question:
`What is the Place of the Player with a Score of 73-68-71=212?`
### 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 of the Player with a Score of 73-68-71=212?`:
```sql
|
SELECT "place" FROM "third_round" WHERE "to_par"='+3'; |
## Task
Generate a SQL query to answer the following question:
`What is the Place of the Player with a +3 To par?`
### 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 of the Player with a +3 To par?`:
```sql
|
SELECT "score" FROM "third_round" WHERE "to_par"='+4' AND "player"='stewart cink'; |
## Task
Generate a SQL query to answer the following question:
`What is the Score of Stewart Cink with a To par of +4?`
### 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 of Stewart Cink with a To par of +4?`:
```sql
|
SELECT "player" FROM "third_round" WHERE "place"='t10' AND "score"='74-73-68=215'; |
## Task
Generate a SQL query to answer the following question:
`What T10 Place Player has a Score of 74-73-68=215?`
### 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 T10 Place Player has a Score of 74-73-68=215?`:
```sql
|
SELECT MAX("pick") FROM "washington_redskins_draft_history" WHERE "position"='wr' AND "college"='michigan' AND "overall">255; |
## Task
Generate a SQL query to answer the following question:
`What is the maximum pick when WR was the position and Michigan the college, and the overall greater than 255?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum pick when WR was the position and Michigan the college, and the overall greater than 255?`:
```sql
|
SELECT SUM("round") FROM "washington_redskins_draft_history" WHERE "position"='db' AND "name"='jeff welch' AND "pick"<21; |
## Task
Generate a SQL query to answer the following question:
`What is the total round when DB was the position, and the pick less than 21, and Jeff Welch as the name?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total round when DB was the position, and the pick less than 21, and Jeff Welch as the name?`:
```sql
|
SELECT "player" FROM "made_the_cut" WHERE "year_s_won"='1978 , 1985'; |
## Task
Generate a SQL query to answer the following question:
`What is Player, when Year(s) Won is 1978 , 1985?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Player, when Year(s) Won is 1978 , 1985?`:
```sql
|
SELECT AVG("pick") FROM "washington_redskins_draft_history" WHERE "college"='purdue' AND "round"<5; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE AVERAGE PICK FOR PURDUE, WITH A ROUND SMALLER THAN 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE AVERAGE PICK FOR PURDUE, WITH A ROUND SMALLER THAN 5?`:
```sql
|
SELECT MAX("pick") FROM "washington_redskins_draft_history" WHERE "position"='te' AND "round"<2; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE HIGHEST PICK WITH A TE POSITION, AND ROUND SMALLER THAN 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE HIGHEST PICK WITH A TE POSITION, AND ROUND SMALLER THAN 2?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.