output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "bookmarking_tagging_rating_and_comments" FROM "comparison_of_features" WHERE "list_management"='no' AND "charting"='no' AND "web_publishing"='no' AND "name"='microsoft exchange server'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE BOOKMARKING, TAGGING, RATING AND COMMENTS WITH NO LIST MANAGEMENT, NO CHARTING, NO WEB PUBLISHING, OF MICROSOFT EXCHANGE SERVER?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparison_of_features" (
"name" text,
"wikis" text,
"web_publishing" text,
"calendaring_software" text,
"project_management" text,
"workflow_system" text,
"document_management" text,
"list_management" text,
"xml_forms_management_and_workflow" text,
"discussion" text,
"blogs" text,
"surveys" text,
"time_tracking" text,
"business_intelligence" text,
"charting" text,
"bookmarking_tagging_rating_and_comments" text,
"social_software" text,
"enterprise_search" text,
"office_suite" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE BOOKMARKING, TAGGING, RATING AND COMMENTS WITH NO LIST MANAGEMENT, NO CHARTING, NO WEB PUBLISHING, OF MICROSOFT EXCHANGE SERVER?`:
```sql
|
SELECT "constellation" FROM "targets" WHERE "date_sent"='september 4, 2001' AND "distance_ly"<57.4; |
## Task
Generate a SQL query to answer the following question:
`What is Constellation, when Date Sent is "September 4, 2001", and when Distance ( ly ) is less than 57.4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "targets" (
"hd_designation" text,
"constellation" text,
"distance_ly" real,
"spectral_type" text,
"signal_power_k_w" real,
"date_sent" text,
"arrival_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Constellation, when Date Sent is "September 4, 2001", and when Distance ( ly ) is less than 57.4?`:
```sql
|
SELECT "date_sent" FROM "targets" WHERE "constellation"='delphinus'; |
## Task
Generate a SQL query to answer the following question:
`What is Date, when Constellation is "Delphinus"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "targets" (
"hd_designation" text,
"constellation" text,
"distance_ly" real,
"spectral_type" text,
"signal_power_k_w" real,
"date_sent" text,
"arrival_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Constellation is "Delphinus"?`:
```sql
|
SELECT COUNT("distance_ly") FROM "targets" WHERE "constellation"='draco'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of Distance ( ly ), when Constellation is "Draco"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "targets" (
"hd_designation" text,
"constellation" text,
"distance_ly" real,
"spectral_type" text,
"signal_power_k_w" real,
"date_sent" text,
"arrival_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Distance ( ly ), when Constellation is "Draco"?`:
```sql
|
SELECT "date_sent" FROM "targets" WHERE "signal_power_k_w"<126 AND "arrival_date"='january 2059' AND "hd_designation"='hd193664'; |
## Task
Generate a SQL query to answer the following question:
`What is Date Sent, when Signal Power ( kW ) is less than 126, when Arrival Date is "January 2059", and when HD Designation is "HD193664"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "targets" (
"hd_designation" text,
"constellation" text,
"distance_ly" real,
"spectral_type" text,
"signal_power_k_w" real,
"date_sent" text,
"arrival_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date Sent, when Signal Power ( kW ) is less than 126, when Arrival Date is "January 2059", and when HD Designation is "HD193664"?`:
```sql
|
SELECT "constellation" FROM "targets" WHERE "hd_designation"='hd197076'; |
## Task
Generate a SQL query to answer the following question:
`What is Constellation, when HD Designation is "HD197076"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "targets" (
"hd_designation" text,
"constellation" text,
"distance_ly" real,
"spectral_type" text,
"signal_power_k_w" real,
"date_sent" text,
"arrival_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Constellation, when HD Designation is "HD197076"?`:
```sql
|
SELECT "date" FROM "singles_7" WHERE "score"='6–4, 6–4' AND "opponent"='leonardo tavares'; |
## Task
Generate a SQL query to answer the following question:
`What date was the match against leonardo tavares with a score of 6–4, 6–4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_7" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the match against leonardo tavares with a score of 6–4, 6–4?`:
```sql
|
SELECT "date" FROM "singles_7" WHERE "opponent"='adrián menéndez-maceiras'; |
## Task
Generate a SQL query to answer the following question:
`What date was the match against adrián menéndez-maceiras?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_7" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the match against adrián menéndez-maceiras?`:
```sql
|
SELECT MAX("wins") FROM "2009_ladder" WHERE "golden_rivers"='quambatook' AND "against"<1129; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number of wins for Quambatook when Against is less than 1129?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_ladder" (
"golden_rivers" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of wins for Quambatook when Against is less than 1129?`:
```sql
|
SELECT COUNT("draws") FROM "2009_ladder" WHERE "wins"<3; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of draws when there are fewer than 3 wins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_ladder" (
"golden_rivers" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of draws when there are fewer than 3 wins?`:
```sql
|
SELECT COUNT("draws") FROM "2009_ladder" WHERE "losses">11 AND "wins"<4 AND "golden_rivers"='wakool'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of draws for Wakool when there are more than 11 losses and fewer than 4 wins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_ladder" (
"golden_rivers" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of draws for Wakool when there are more than 11 losses and fewer than 4 wins?`:
```sql
|
SELECT "country" FROM "second_round" WHERE "score"='69-74=143'; |
## Task
Generate a SQL query to answer the following question:
`Which Country has a Score of 69-74=143?`
### 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" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Country has a Score of 69-74=143?`:
```sql
|
SELECT "player" FROM "second_round" WHERE "to_par"<5 AND "score"='70-72=142'; |
## Task
Generate a SQL query to answer the following question:
`Which Player has a To Par smaller than 5, and a Score of 70-72=142?`
### 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" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Player has a To Par smaller than 5, and a Score of 70-72=142?`:
```sql
|
SELECT "score" FROM "second_round" WHERE "player"='frank moore'; |
## Task
Generate a SQL query to answer the following question:
`What was Frank Moore's score?`
### 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" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was Frank Moore's score?`:
```sql
|
SELECT "score" FROM "second_round_proper" WHERE "home_team"='birmingham city'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the game that home team birmingham city played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_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 of the game that home team birmingham city played?`:
```sql
|
SELECT "date" FROM "second_round_proper" WHERE "away_team"='northampton town'; |
## Task
Generate a SQL query to answer the following question:
`What date was the game when away team northampton town played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_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 game when away team northampton town played?`:
```sql
|
SELECT "away_team" FROM "second_round_proper" WHERE "home_team"='woking'; |
## Task
Generate a SQL query to answer the following question:
`Who was the team who played home team woking?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_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 team who played home team woking?`:
```sql
|
SELECT "home" FROM "fc_bayern_munich_ii_versus_sp_vgg_unterh" WHERE "league"='3rd liga (iii)'; |
## Task
Generate a SQL query to answer the following question:
`What is the home for the league 3rd liga (iii)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fc_bayern_munich_ii_versus_sp_vgg_unterh" (
"season" text,
"league" text,
"teams" text,
"home" text,
"away" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the home for the league 3rd liga (iii)?`:
```sql
|
SELECT "home" FROM "fc_bayern_munich_ii_versus_sp_vgg_unterh" WHERE "league"='3rd liga' AND "away"='4-0'; |
## Task
Generate a SQL query to answer the following question:
`What is the home for league 3rd liga, and an away of 4-0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fc_bayern_munich_ii_versus_sp_vgg_unterh" (
"season" text,
"league" text,
"teams" text,
"home" text,
"away" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the home for league 3rd liga, and an away of 4-0?`:
```sql
|
SELECT "home" FROM "fc_bayern_munich_ii_versus_sp_vgg_unterh" WHERE "away"='4-0'; |
## Task
Generate a SQL query to answer the following question:
`What is the home for the away of 4-0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fc_bayern_munich_ii_versus_sp_vgg_unterh" (
"season" text,
"league" text,
"teams" text,
"home" text,
"away" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the home for the away of 4-0?`:
```sql
|
SELECT "season" FROM "fc_bayern_munich_ii_versus_sp_vgg_unterh" WHERE "league"='3rd liga' AND "away"='1-0'; |
## Task
Generate a SQL query to answer the following question:
`What season has a league 3rd liga, and away of 1-0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fc_bayern_munich_ii_versus_sp_vgg_unterh" (
"season" text,
"league" text,
"teams" text,
"home" text,
"away" text
);
### SQL
Given the database schema, here is the SQL query that answers `What season has a league 3rd liga, and away of 1-0?`:
```sql
|
SELECT "home" FROM "fc_bayern_munich_ii_versus_sp_vgg_unterh" WHERE "league"='3rd liga' AND "away"='4-0'; |
## Task
Generate a SQL query to answer the following question:
`What is the home with a league 3rd liga, and an away of 4-0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fc_bayern_munich_ii_versus_sp_vgg_unterh" (
"season" text,
"league" text,
"teams" text,
"home" text,
"away" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the home with a league 3rd liga, and an away of 4-0?`:
```sql
|
SELECT "teams" FROM "fc_bayern_munich_ii_versus_sp_vgg_unterh" WHERE "season"='2009-10'; |
## Task
Generate a SQL query to answer the following question:
`What team has a season of 2009-10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fc_bayern_munich_ii_versus_sp_vgg_unterh" (
"season" text,
"league" text,
"teams" text,
"home" text,
"away" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team has a season of 2009-10?`:
```sql
|
SELECT MAX("goals_against") FROM "group_i" WHERE "points">25 AND "club"='sd indautxu' AND "position">3; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Goals Against, when Points is greater than 25, when Club is "SD Indautxu", and when Position is greater than 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_i" (
"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 highest Goals Against, when Points is greater than 25, when Club is "SD Indautxu", and when Position is greater than 3?`:
```sql
|
SELECT COUNT("wins") FROM "group_i" WHERE "draws"<2; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of Wins, when Draws is less than 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_i" (
"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 total number of Wins, when Draws is less than 2?`:
```sql
|
SELECT AVG("wins") FROM "group_i" WHERE "played"<30; |
## Task
Generate a SQL query to answer the following question:
`What is the average Wins, when Played is less than 30?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_i" (
"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 average Wins, when Played is less than 30?`:
```sql
|
SELECT COUNT("wins") FROM "group_i" WHERE "draws"<5 AND "goals_against">49 AND "played">30; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of Wins, when Draws is less than 5, when Goals is greater than 49, and when Played is greater than 30?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_i" (
"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 total number of Wins, when Draws is less than 5, when Goals is greater than 49, and when Played is greater than 30?`:
```sql
|
SELECT MIN("goal_difference") FROM "group_i" WHERE "position"=7 AND "played">30; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest Goal Difference, when Position is "7", and when Played is greater than 30?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_i" (
"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 lowest Goal Difference, when Position is "7", and when Played is greater than 30?`:
```sql
|
SELECT "week_4" FROM "2011" WHERE "week_3"='laura nicole'; |
## Task
Generate a SQL query to answer the following question:
`What is the week 3, prior to the when the week 4 was Laura Nicole?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2011" (
"week_1" text,
"week_2" text,
"week_3" text,
"week_4" text,
"week_5" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the week 3, prior to the when the week 4 was Laura Nicole?`:
```sql
|
SELECT "week_2" FROM "2011" WHERE "week_4"='miranda jordan'; |
## Task
Generate a SQL query to answer the following question:
`What was the week 2 prior to the when Miranda Jordan was the week 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2011" (
"week_1" text,
"week_2" text,
"week_3" text,
"week_4" text,
"week_5" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the week 2 prior to the when Miranda Jordan was the week 4?`:
```sql
|
SELECT "week_2" FROM "2011" WHERE "week_3"='brittany alyse'; |
## Task
Generate a SQL query to answer the following question:
`What was the week 2 prior to the when Brittany Alyse was week 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2011" (
"week_1" text,
"week_2" text,
"week_3" text,
"week_4" text,
"week_5" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the week 2 prior to the when Brittany Alyse was week 3?`:
```sql
|
SELECT "week_5" FROM "2011" WHERE "week_1"='dani dior'; |
## Task
Generate a SQL query to answer the following question:
`What is the week 5 after Dani Dior as week 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2011" (
"week_1" text,
"week_2" text,
"week_3" text,
"week_4" text,
"week_5" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the week 5 after Dani Dior as week 1?`:
```sql
|
SELECT "week_2" FROM "2011" WHERE "week_3"='lara leverence'; |
## Task
Generate a SQL query to answer the following question:
`What was the week 2 before Lara Leverence was week 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2011" (
"week_1" text,
"week_2" text,
"week_3" text,
"week_4" text,
"week_5" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the week 2 before Lara Leverence was week 3?`:
```sql
|
SELECT COUNT("bronze") FROM "medals_table" WHERE "total"<1; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of bronzes that is less than 1 in total?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of bronzes that is less than 1 in total?`:
```sql
|
SELECT COUNT("bronze") FROM "medals_table" WHERE "gold"<2 AND "silver">1; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of bronze that has less than 2 gold, and more than 1 silver?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of bronze that has less than 2 gold, and more than 1 silver?`:
```sql
|
SELECT MIN("rank") FROM "medals_table" WHERE "gold"<1 AND "silver"=0 AND "bronze"=1 AND "total"<1; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest rank with less than 1 gold, 0 silver, 1 bronze, and a total less than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest rank with less than 1 gold, 0 silver, 1 bronze, and a total less than 1?`:
```sql
|
SELECT AVG("bronze") FROM "medals_table" WHERE "gold"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the average bronze for less than 0 gold?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average bronze for less than 0 gold?`:
```sql
|
SELECT COUNT("total") FROM "medals_table" WHERE "bronze"<8 AND "nation"='netherlands' AND "rank"<16; |
## Task
Generate a SQL query to answer the following question:
`What is the total number for less than 8 bronze, the Netherlands nation, and is ranked less than 16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medals_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number for less than 8 bronze, the Netherlands nation, and is ranked less than 16?`:
```sql
|
SELECT "city" FROM "undergraduate_chapters_associate_chapter" WHERE "status"='active' AND "u_s_state_district"='california' AND "greek_designation"='established colony'; |
## Task
Generate a SQL query to answer the following question:
`What California city has an active status and a greek designation of established colony?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "undergraduate_chapters_associate_chapter" (
"greek_designation" text,
"collegiate_institution" text,
"charter_date" text,
"status" text,
"city" text,
"u_s_state_district" text
);
### SQL
Given the database schema, here is the SQL query that answers `What California city has an active status and a greek designation of established colony?`:
```sql
|
SELECT "greek_designation" FROM "undergraduate_chapters_associate_chapter" WHERE "u_s_state_district"='new york' AND "charter_date"='april 23, 2005'; |
## Task
Generate a SQL query to answer the following question:
`What's the greek designation of the new york chapter with a charter date of april 23, 2005?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "undergraduate_chapters_associate_chapter" (
"greek_designation" text,
"collegiate_institution" text,
"charter_date" text,
"status" text,
"city" text,
"u_s_state_district" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the greek designation of the new york chapter with a charter date of april 23, 2005?`:
```sql
|
SELECT "collegiate_institution" FROM "undergraduate_chapters_associate_chapter" WHERE "status"='active' AND "charter_date"='march 30, 2002'; |
## Task
Generate a SQL query to answer the following question:
`What collegiate institution has an active status and a charter date of march 30, 2002?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "undergraduate_chapters_associate_chapter" (
"greek_designation" text,
"collegiate_institution" text,
"charter_date" text,
"status" text,
"city" text,
"u_s_state_district" text
);
### SQL
Given the database schema, here is the SQL query that answers `What collegiate institution has an active status and a charter date of march 30, 2002?`:
```sql
|
SELECT "greek_designation" FROM "undergraduate_chapters_associate_chapter" WHERE "city"='riverside'; |
## Task
Generate a SQL query to answer the following question:
`What's the greek designation of the city riverside?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "undergraduate_chapters_associate_chapter" (
"greek_designation" text,
"collegiate_institution" text,
"charter_date" text,
"status" text,
"city" text,
"u_s_state_district" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the greek designation of the city riverside?`:
```sql
|
SELECT "city" FROM "undergraduate_chapters_associate_chapter" WHERE "charter_date"='november 24, 1999'; |
## Task
Generate a SQL query to answer the following question:
`What city has a charter date of november 24, 1999?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "undergraduate_chapters_associate_chapter" (
"greek_designation" text,
"collegiate_institution" text,
"charter_date" text,
"status" text,
"city" text,
"u_s_state_district" text
);
### SQL
Given the database schema, here is the SQL query that answers `What city has a charter date of november 24, 1999?`:
```sql
|
SELECT "u_s_state_district" FROM "undergraduate_chapters_associate_chapter" WHERE "charter_date"='april 17, 2011'; |
## Task
Generate a SQL query to answer the following question:
`What state or district has a charter date of april 17, 2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "undergraduate_chapters_associate_chapter" (
"greek_designation" text,
"collegiate_institution" text,
"charter_date" text,
"status" text,
"city" text,
"u_s_state_district" text
);
### SQL
Given the database schema, here is the SQL query that answers `What state or district has a charter date of april 17, 2011?`:
```sql
|
SELECT MIN("all_around") FROM "individual_hoop" WHERE "total"=19.85 AND "hoop"<9.85; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest all around when the total is 19.85 and the hoop is less than 9.85?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "individual_hoop" (
"place" real,
"name" text,
"all_around" real,
"hoop" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest all around when the total is 19.85 and the hoop is less than 9.85?`:
```sql
|
SELECT AVG("hoop") FROM "individual_hoop" WHERE "all_around"<9.7; |
## Task
Generate a SQL query to answer the following question:
`What is the average hoop when the all around is less than 9.7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "individual_hoop" (
"place" real,
"name" text,
"all_around" real,
"hoop" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average hoop when the all around is less than 9.7?`:
```sql
|
SELECT "per_capita_income" FROM "georgia_counties_ranked_by_per_capita_in" WHERE "population">'9,563' AND "median_family_income"='$49,310'; |
## Task
Generate a SQL query to answer the following question:
`What is Per Capita Income, when Population is greater than 9,563, and when Median Family Income is "$49,310"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "georgia_counties_ranked_by_per_capita_in" (
"county" text,
"per_capita_income" text,
"median_household_income" text,
"median_family_income" text,
"population" real,
"number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Per Capita Income, when Population is greater than 9,563, and when Median Family Income is "$49,310"?`:
```sql
|
SELECT "median_family_income" FROM "georgia_counties_ranked_by_per_capita_in" WHERE "median_household_income"='$50,717'; |
## Task
Generate a SQL query to answer the following question:
`What is Median Family Income, when Median Household Income is "$50,717"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "georgia_counties_ranked_by_per_capita_in" (
"county" text,
"per_capita_income" text,
"median_household_income" text,
"median_family_income" text,
"population" real,
"number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Median Family Income, when Median Household Income is "$50,717"?`:
```sql
|
SELECT MAX("number_of_households") FROM "georgia_counties_ranked_by_per_capita_in" WHERE "per_capita_income"='$25,557' AND "population"<'22,330'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Number of Households, when Per Capita Income is "$25,557", and when Population is less than "22,330"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "georgia_counties_ranked_by_per_capita_in" (
"county" text,
"per_capita_income" text,
"median_household_income" text,
"median_family_income" text,
"population" real,
"number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Number of Households, when Per Capita Income is "$25,557", and when Population is less than "22,330"?`:
```sql
|
SELECT MIN("population") FROM "georgia_counties_ranked_by_per_capita_in" WHERE "per_capita_income"='$16,330'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest Population, when Per Capita Income is "$16,330"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "georgia_counties_ranked_by_per_capita_in" (
"county" text,
"per_capita_income" text,
"median_household_income" text,
"median_family_income" text,
"population" real,
"number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Population, when Per Capita Income is "$16,330"?`:
```sql
|
SELECT MAX("population") FROM "georgia_counties_ranked_by_per_capita_in" WHERE "per_capita_income"='$17,168' AND "number_of_households">'3,287'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Population, when Per Capita Income is "$17,168", and when Number of Households is greater than 3,287?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "georgia_counties_ranked_by_per_capita_in" (
"county" text,
"per_capita_income" text,
"median_household_income" text,
"median_family_income" text,
"population" real,
"number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Population, when Per Capita Income is "$17,168", and when Number of Households is greater than 3,287?`:
```sql
|
SELECT "place" FROM "second_round" WHERE "score"='70-68=138' AND "player"='andrew magee'; |
## Task
Generate a SQL query to answer the following question:
`What is Place, when Score is "70-68=138", and when Player is "Andrew Magee"?`
### 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 is Place, when Score is "70-68=138", and when Player is "Andrew Magee"?`:
```sql
|
SELECT "to_par" FROM "second_round" WHERE "place"='t5' AND "score"='70-68=138'; |
## Task
Generate a SQL query to answer the following question:
`What is To par, when Place is "T5", and when Score is "70-68=138"?`
### 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 is To par, when Place is "T5", and when Score is "70-68=138"?`:
```sql
|
SELECT "score" FROM "second_round" WHERE "place"='t5' AND "country"='united states' AND "player"='davis love iii'; |
## Task
Generate a SQL query to answer the following question:
`What is Score, when Place is "T5", when Country is "United States", and when Player is "Davis Love III"?`
### 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 is Score, when Place is "T5", when Country is "United States", and when Player is "Davis Love III"?`:
```sql
|
SELECT "player" FROM "second_round" WHERE "country"='united states' AND "place"='t10' AND "score"='68-71=139'; |
## Task
Generate a SQL query to answer the following question:
`What is Player, when Country is "United States", when Place is "T10", and when Score is "68-71=139"?`
### 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 is Player, when Country is "United States", when Place is "T10", and when Score is "68-71=139"?`:
```sql
|
SELECT "score" FROM "second_round" WHERE "player"='vijay singh'; |
## Task
Generate a SQL query to answer the following question:
`What is Score, when Player is "Vijay Singh"?`
### 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 is Score, when Player is "Vijay Singh"?`:
```sql
|
SELECT "player" FROM "first_round" WHERE "to_par"='–2' AND "country"='wales'; |
## Task
Generate a SQL query to answer the following question:
`Which Player has a To par of –2, and a Country of wales?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Player has a To par of –2, and a Country of wales?`:
```sql
|
SELECT "score" FROM "first_round" WHERE "to_par"='–3' AND "player"='santiago luna'; |
## Task
Generate a SQL query to answer the following question:
`Which Score has a To par of –3, and a Player of santiago luna?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has a To par of –3, and a Player of santiago luna?`:
```sql
|
SELECT "player" FROM "first_round" WHERE "score"=67 AND "country"='united states'; |
## Task
Generate a SQL query to answer the following question:
`Which Player has a Score of 67 in united states?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Player has a Score of 67 in united states?`:
```sql
|
SELECT "opponents_in_the_final" FROM "wins_50" WHERE "tournament"='schenectady, u.s.'; |
## Task
Generate a SQL query to answer the following question:
`What are the Opponents at the Schenectady, U.S. Tournament?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wins_50" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the Opponents at the Schenectady, U.S. Tournament?`:
```sql
|
SELECT "outcome" FROM "singles_2_8" WHERE "date"='august 20, 2007'; |
## Task
Generate a SQL query to answer the following question:
`What was the outcome of the August 20, 2007 match?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_2_8" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the outcome of the August 20, 2007 match?`:
```sql
|
SELECT "score" FROM "singles_2_8" WHERE "date"='august 20, 2007'; |
## Task
Generate a SQL query to answer the following question:
`What was the score in the August 20, 2007 match?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_2_8" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score in the August 20, 2007 match?`:
```sql
|
SELECT "tournament" FROM "singles_2_8" WHERE "date"='july 13, 2008'; |
## Task
Generate a SQL query to answer the following question:
`Which tournament was held on July 13, 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_2_8" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament was held on July 13, 2008?`:
```sql
|
SELECT "opponent" FROM "singles_2_8" WHERE "date"='september 20, 2010'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent in the September 20, 2010 match?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_2_8" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent in the September 20, 2010 match?`:
```sql
|
SELECT "date" FROM "singles_2_8" WHERE "tournament"='izmir cup' AND "opponent"='somdev devvarman'; |
## Task
Generate a SQL query to answer the following question:
`What date was the Izmir Cup in which İlhan played against Somdev Devvarman?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_2_8" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the Izmir Cup in which İlhan played against Somdev Devvarman?`:
```sql
|
SELECT "year_s_won" FROM "missed_the_cut" WHERE "player"='tom lehman'; |
## Task
Generate a SQL query to answer the following question:
`What years did Tom Lehman win?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What years did Tom Lehman win?`:
```sql
|
SELECT COUNT("to_par") FROM "missed_the_cut" WHERE "year_s_won"='1995'; |
## Task
Generate a SQL query to answer the following question:
`What was the total To Par for the winner in 1995?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total To Par for the winner in 1995?`:
```sql
|
SELECT SUM("year") FROM "achievements" WHERE "event"='100 m hurdles' AND "competition"='world championships' AND "venue"='osaka, japan'; |
## Task
Generate a SQL query to answer the following question:
`How many years had a 100 m hurdles event at the world championships in Osaka, Japan?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years had a 100 m hurdles event at the world championships in Osaka, Japan?`:
```sql
|
SELECT "position" FROM "achievements" WHERE "venue"='valencia, spain'; |
## Task
Generate a SQL query to answer the following question:
`What was the position of the event held in Valencia, Spain?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the position of the event held in Valencia, Spain?`:
```sql
|
SELECT MIN("year") FROM "achievements" WHERE "venue"='berlin, germany' AND "event"='100 m hurdles'; |
## Task
Generate a SQL query to answer the following question:
`What was the earliest year that an event held in Berlin, Germany had a 100 m hurdles event?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the earliest year that an event held in Berlin, Germany had a 100 m hurdles event?`:
```sql
|
SELECT "event" FROM "achievements" WHERE "venue"='valencia, spain'; |
## Task
Generate a SQL query to answer the following question:
`What even was held in Valencia, Spain?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What even was held in Valencia, Spain?`:
```sql
|
SELECT "time" FROM "pre_season_and_friendlies" WHERE "competition"='tim trophy' AND "opponent"='juventus'; |
## Task
Generate a SQL query to answer the following question:
`What is the time of the tim trophy competition where juventus was the opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pre_season_and_friendlies" (
"date" text,
"time" text,
"competition" text,
"opponent" text,
"ground" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time of the tim trophy competition where juventus was the opponent?`:
```sql
|
SELECT "competition" FROM "pre_season_and_friendlies" WHERE "date"='15 august 2008'; |
## Task
Generate a SQL query to answer the following question:
`What is the competition on 15 August 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pre_season_and_friendlies" (
"date" text,
"time" text,
"competition" text,
"opponent" text,
"ground" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the competition on 15 August 2008?`:
```sql
|
SELECT "score" FROM "pre_season_and_friendlies" WHERE "competition"='friendly match' AND "date"='24 july 2008'; |
## Task
Generate a SQL query to answer the following question:
`What is the score of the friendly match competition on 24 July 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pre_season_and_friendlies" (
"date" text,
"time" text,
"competition" text,
"opponent" text,
"ground" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the friendly match competition on 24 July 2008?`:
```sql
|
SELECT "ground" FROM "pre_season_and_friendlies" WHERE "competition"='tim trophy' AND "time"='23:00 cet'; |
## Task
Generate a SQL query to answer the following question:
`What is the ground of the tim trophy competition, which had a time of 23:00 cet?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pre_season_and_friendlies" (
"date" text,
"time" text,
"competition" text,
"opponent" text,
"ground" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ground of the tim trophy competition, which had a time of 23:00 cet?`:
```sql
|
SELECT "competition" FROM "pre_season_and_friendlies" WHERE "time"='23:00 cet'; |
## Task
Generate a SQL query to answer the following question:
`What competition is at 23:00 cet?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pre_season_and_friendlies" (
"date" text,
"time" text,
"competition" text,
"opponent" text,
"ground" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What competition is at 23:00 cet?`:
```sql
|
SELECT "outcome" FROM "singles_14_12_2" WHERE "date"='march 20, 1994'; |
## Task
Generate a SQL query to answer the following question:
`What is the outcome on March 20, 1994?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_14_12_2" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the outcome on March 20, 1994?`:
```sql
|
SELECT "tournament" FROM "singles_14_12_2" WHERE "surface"='hard' AND "date"='february 25, 1996'; |
## Task
Generate a SQL query to answer the following question:
`What tournament had a hard surface on February 25, 1996?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_14_12_2" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tournament had a hard surface on February 25, 1996?`:
```sql
|
SELECT "score_in_the_final" FROM "singles_14_12_2" WHERE "surface"='hard' AND "opponent_in_the_final"='hiromi nagano'; |
## Task
Generate a SQL query to answer the following question:
`What is the score in the final with a hard surface and is against Hiromi Nagano?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_14_12_2" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score in the final with a hard surface and is against Hiromi Nagano?`:
```sql
|
SELECT "outcome" FROM "singles_14_12_2" WHERE "surface"='clay' AND "date"='april 21, 1996'; |
## Task
Generate a SQL query to answer the following question:
`What is the total outcome for the clay surface on April 21, 1996?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_14_12_2" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total outcome for the clay surface on April 21, 1996?`:
```sql
|
SELECT "aircraft" FROM "aerial_victories" WHERE "location"='s of avion'; |
## Task
Generate a SQL query to answer the following question:
`What aircraft is located at S of Avion?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "aerial_victories" (
"date" text,
"unit" real,
"aircraft" text,
"opponent" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What aircraft is located at S of Avion?`:
```sql
|
SELECT SUM("unit") FROM "aerial_victories" WHERE "aircraft"='f.e.2b' AND "location"='logeast'; |
## Task
Generate a SQL query to answer the following question:
`What is the Unit for the Aircraft F.e.2b, located in Logeast?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "aerial_victories" (
"date" text,
"unit" real,
"aircraft" text,
"opponent" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Unit for the Aircraft F.e.2b, located in Logeast?`:
```sql
|
SELECT "official_name" FROM "westmorland_county_new_brunswick" WHERE "census_ranking"='1,229 of 5,008'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the place that has a census ranking of 1,229 of 5,008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "westmorland_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 the name of the place that has a census ranking of 1,229 of 5,008?`:
```sql
|
SELECT "area_km_2" FROM "westmorland_county_new_brunswick" WHERE "official_name"='sackville'; |
## Task
Generate a SQL query to answer the following question:
`How large, in square kilometers, is Sackville?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "westmorland_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 `How large, in square kilometers, is Sackville?`:
```sql
|
SELECT "official_name" FROM "westmorland_county_new_brunswick" WHERE "population"<'1,429'; |
## Task
Generate a SQL query to answer the following question:
`What is the name(s) of the place(s) with a population of less than 1,429?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "westmorland_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 the name(s) of the place(s) with a population of less than 1,429?`:
```sql
|
SELECT "score" FROM "regular_season" WHERE "points"=33; |
## Task
Generate a SQL query to answer the following question:
`What score has 33 as the points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text,
"arena" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What score has 33 as the points?`:
```sql
|
SELECT "date" FROM "regular_season" WHERE "arena"='joe louis arena'; |
## Task
Generate a SQL query to answer the following question:
`What date has joe louis arena as the arena?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text,
"arena" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What date has joe louis arena as the arena?`:
```sql
|
SELECT "competition" FROM "international_goals" WHERE "date"='2 june 1992'; |
## Task
Generate a SQL query to answer the following question:
`What competition was played on 2 June 1992?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What competition was played on 2 June 1992?`:
```sql
|
SELECT "date" FROM "international_goals" WHERE "result"='3-0' AND "competition"='friendly match'; |
## Task
Generate a SQL query to answer the following question:
`What date was a friendly match played that ended in a 3-0 score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was a friendly match played that ended in a 3-0 score?`:
```sql
|
SELECT "score" FROM "international_goals" WHERE "date"='5 september 2001'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the match played on 5 September 2001?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the match played on 5 September 2001?`:
```sql
|
SELECT "venue" FROM "international_goals" WHERE "competition"='friendly match' AND "date"='2 june 1992'; |
## Task
Generate a SQL query to answer the following question:
`In what stadium was the friendly match on 2 June 1992 played in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what stadium was the friendly match on 2 June 1992 played in?`:
```sql
|
SELECT "score" FROM "international_goals" WHERE "competition"='1998 fifa world cup qualification'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the 1998 FIFA World Cup qualification competition?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the 1998 FIFA World Cup qualification competition?`:
```sql
|
SELECT "date" FROM "club_representative_appearances" WHERE "competition"='welsh rugby union challenge trophy' AND "result"='34-34'; |
## Task
Generate a SQL query to answer the following question:
`Name the Date has a Competition of welsh rugby union challenge trophy and a Result of 34-34? Question 1`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "club_representative_appearances" (
"date" text,
"nationality_opponent" text,
"ground" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Date has a Competition of welsh rugby union challenge trophy and a Result of 34-34? Question 1`:
```sql
|
SELECT "result" FROM "club_representative_appearances" WHERE "nationality_opponent"='new zealand'; |
## Task
Generate a SQL query to answer the following question:
`Name the Result of new zealand Nationality / Opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "club_representative_appearances" (
"date" text,
"nationality_opponent" text,
"ground" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Result of new zealand Nationality / Opponent?`:
```sql
|
SELECT "nationality_opponent" FROM "club_representative_appearances" WHERE "date"='10 january 1998'; |
## Task
Generate a SQL query to answer the following question:
`Name Nationality / Opponent on 10 january 1998?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "club_representative_appearances" (
"date" text,
"nationality_opponent" text,
"ground" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name Nationality / Opponent on 10 january 1998?`:
```sql
|
SELECT "ground" FROM "club_representative_appearances" WHERE "date"='18 january 1998'; |
## Task
Generate a SQL query to answer the following question:
`Name The Ground on 18 january 1998?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "club_representative_appearances" (
"date" text,
"nationality_opponent" text,
"ground" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name The Ground on 18 january 1998?`:
```sql
|
SELECT "nationality_opponent" FROM "club_representative_appearances" WHERE "competition"='welsh rugby union challenge trophy' AND "result"='38-29'; |
## Task
Generate a SQL query to answer the following question:
`Name the Nationality / Opponent of the Competition of welsh rugby union challenge trophy and a Result of 38-29?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "club_representative_appearances" (
"date" text,
"nationality_opponent" text,
"ground" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Nationality / Opponent of the Competition of welsh rugby union challenge trophy and a Result of 38-29?`:
```sql
|
SELECT "competition" FROM "club_representative_appearances" WHERE "nationality_opponent"='rosario'; |
## Task
Generate a SQL query to answer the following question:
`Name the Nationality / Opponent of rosario?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "club_representative_appearances" (
"date" text,
"nationality_opponent" text,
"ground" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Nationality / Opponent of rosario?`:
```sql
|
SELECT "team_1" FROM "matches" WHERE "team_2"='universidad nacional'; |
## Task
Generate a SQL query to answer the following question:
`What team 1 has a team 2 of universidad nacional?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "matches" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team 1 has a team 2 of universidad nacional?`:
```sql
|
SELECT "team_2" FROM "matches" WHERE "team_1"='harbour view'; |
## Task
Generate a SQL query to answer the following question:
`What team 2 has a team 1 of harbour view?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "matches" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team 2 has a team 1 of harbour view?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.