output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "score" FROM "fourth_round_proper" WHERE "date"='23 january 1982' AND "home_team"='gillingham'; |
## Task
Generate a SQL query to answer the following question:
`What is the score of the game home team gillingham played on 23 january 1982?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the game home team gillingham played on 23 january 1982?`:
```sql
|
SELECT "tie_no" FROM "fourth_round_proper" WHERE "home_team"='huddersfield town'; |
## Task
Generate a SQL query to answer the following question:
`What is the tie no of the game that home team huddersfield town played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the tie no of the game that home team huddersfield town played?`:
```sql
|
SELECT "home" FROM "chicago_black_hawks_4_st_louis_blues_1" WHERE "record"='2-0'; |
## Task
Generate a SQL query to answer the following question:
`What is the home team of the game with a 2-0 record?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "chicago_black_hawks_4_st_louis_blues_1" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the home team of the game with a 2-0 record?`:
```sql
|
SELECT "score" FROM "chicago_black_hawks_4_st_louis_blues_1" WHERE "record"='3-0'; |
## Task
Generate a SQL query to answer the following question:
`What is the score of the game with a 3-0 record?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "chicago_black_hawks_4_st_louis_blues_1" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the game with a 3-0 record?`:
```sql
|
SELECT "visitor" FROM "chicago_black_hawks_4_st_louis_blues_1" WHERE "date"='april 4'; |
## Task
Generate a SQL query to answer the following question:
`What is the visitor team on April 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "chicago_black_hawks_4_st_louis_blues_1" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the visitor team on April 4?`:
```sql
|
SELECT "score" FROM "chicago_black_hawks_4_st_louis_blues_1" WHERE "visitor"='chicago black hawks' AND "record"='3-1'; |
## Task
Generate a SQL query to answer the following question:
`What is the score of the game with the chicago black hawks as the visitor and a 3-1 record?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "chicago_black_hawks_4_st_louis_blues_1" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the game with the chicago black hawks as the visitor and a 3-1 record?`:
```sql
|
SELECT "instant_messaging" FROM "comparison_of_features" WHERE "telephony"='yes with integrated sametime'; |
## Task
Generate a SQL query to answer the following question:
`What is Instant Messaging, when Telephony is "Yes with integrated Sametime"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparison_of_features" (
"name" text,
"e_mail_server" text,
"faxing" text,
"instant_messaging" text,
"telephony" text,
"videoconferencing" text,
"web_conferencing" text,
"data_conferencing" text,
"application_sharing" text,
"electronic_meeting_system" text,
"synchronous_conferencing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Instant Messaging, when Telephony is "Yes with integrated Sametime"?`:
```sql
|
SELECT "videoconferencing" FROM "comparison_of_features" WHERE "synchronous_conferencing"='no' AND "web_conferencing"='no' AND "faxing"='yes'; |
## Task
Generate a SQL query to answer the following question:
`What is Videoconferencing, when Synchronous Conferencing is "No", when Web Conferencing is "No", and when Faxing is "Yes"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparison_of_features" (
"name" text,
"e_mail_server" text,
"faxing" text,
"instant_messaging" text,
"telephony" text,
"videoconferencing" text,
"web_conferencing" text,
"data_conferencing" text,
"application_sharing" text,
"electronic_meeting_system" text,
"synchronous_conferencing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Videoconferencing, when Synchronous Conferencing is "No", when Web Conferencing is "No", and when Faxing is "Yes"?`:
```sql
|
SELECT "videoconferencing" FROM "comparison_of_features" WHERE "data_conferencing"='no' AND "web_conferencing"='no'; |
## Task
Generate a SQL query to answer the following question:
`What is Videoconferencing, when Data Conferencing is "No", and when Web Conferencing is "No"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparison_of_features" (
"name" text,
"e_mail_server" text,
"faxing" text,
"instant_messaging" text,
"telephony" text,
"videoconferencing" text,
"web_conferencing" text,
"data_conferencing" text,
"application_sharing" text,
"electronic_meeting_system" text,
"synchronous_conferencing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Videoconferencing, when Data Conferencing is "No", and when Web Conferencing is "No"?`:
```sql
|
SELECT "application_sharing" FROM "comparison_of_features" WHERE "web_conferencing"='web conferencing'; |
## Task
Generate a SQL query to answer the following question:
`What is Application Sharing, when Web Conferencing is "Web Conferencing"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparison_of_features" (
"name" text,
"e_mail_server" text,
"faxing" text,
"instant_messaging" text,
"telephony" text,
"videoconferencing" text,
"web_conferencing" text,
"data_conferencing" text,
"application_sharing" text,
"electronic_meeting_system" text,
"synchronous_conferencing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Application Sharing, when Web Conferencing is "Web Conferencing"?`:
```sql
|
SELECT "instant_messaging" FROM "comparison_of_features" WHERE "electronic_meeting_system"='yes' AND "name"='microsoft sharepoint'; |
## Task
Generate a SQL query to answer the following question:
`What is Instant Messaging, when Electronic Meeting System is "Yes", and when Name is "Microsoft Sharepoint"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparison_of_features" (
"name" text,
"e_mail_server" text,
"faxing" text,
"instant_messaging" text,
"telephony" text,
"videoconferencing" text,
"web_conferencing" text,
"data_conferencing" text,
"application_sharing" text,
"electronic_meeting_system" text,
"synchronous_conferencing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Instant Messaging, when Electronic Meeting System is "Yes", and when Name is "Microsoft Sharepoint"?`:
```sql
|
SELECT "instant_messaging" FROM "comparison_of_features" WHERE "telephony"='yes with integrated sametime'; |
## Task
Generate a SQL query to answer the following question:
`What is Instant Messaging, when Telephony is "Yes with integrated Sametime"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparison_of_features" (
"name" text,
"e_mail_server" text,
"faxing" text,
"instant_messaging" text,
"telephony" text,
"videoconferencing" text,
"web_conferencing" text,
"data_conferencing" text,
"application_sharing" text,
"electronic_meeting_system" text,
"synchronous_conferencing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Instant Messaging, when Telephony is "Yes with integrated Sametime"?`:
```sql
|
SELECT "july_1_2010_density_km" FROM "list_of_the_most_populous_us_counties_so" WHERE "april_1_2010_density_mi"='1,694'; |
## Task
Generate a SQL query to answer the following question:
`What is the July 1, 2010 density when the April 1, 2010 density is 1,694?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_the_most_populous_us_counties_so" (
"rank" text,
"county" text,
"state" text,
"land_area_km" text,
"land_area_mi" text,
"april_1_2010_census" text,
"april_1_2010_density_km" text,
"april_1_2010_density_mi" text,
"july_1_2010_official_estimate" text,
"july_1_2010_density_km" text,
"july_1_2010_density_mi" text,
"july_1_2011_official_estimate" text,
"july_1_2011_density_km" text,
"july_1_2011_density_mi" text,
"mid_2010_to_mid_2011_change_absolute" text,
"mid_2010_to_mid_2011_change_pct" text,
"county_seat_or_courthouse" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the July 1, 2010 density when the April 1, 2010 density is 1,694?`:
```sql
|
SELECT "mid_2010_to_mid_2011_change_absolute" FROM "list_of_the_most_populous_us_counties_so" WHERE "april_1_2010_census"='662,564'; |
## Task
Generate a SQL query to answer the following question:
`Name the mid-2010 to mid-2011 change in the case where then April 1, 2010 census reports 662,564?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_the_most_populous_us_counties_so" (
"rank" text,
"county" text,
"state" text,
"land_area_km" text,
"land_area_mi" text,
"april_1_2010_census" text,
"april_1_2010_density_km" text,
"april_1_2010_density_mi" text,
"july_1_2010_official_estimate" text,
"july_1_2010_density_km" text,
"july_1_2010_density_mi" text,
"july_1_2011_official_estimate" text,
"july_1_2011_density_km" text,
"july_1_2011_density_mi" text,
"mid_2010_to_mid_2011_change_absolute" text,
"mid_2010_to_mid_2011_change_pct" text,
"county_seat_or_courthouse" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the mid-2010 to mid-2011 change in the case where then April 1, 2010 census reports 662,564?`:
```sql
|
SELECT "rank" FROM "list_of_the_most_populous_us_counties_so" WHERE "july_1_2010_density_km"='437'; |
## Task
Generate a SQL query to answer the following question:
`What is the rank where the July 1, 2010 density equals 437?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_the_most_populous_us_counties_so" (
"rank" text,
"county" text,
"state" text,
"land_area_km" text,
"land_area_mi" text,
"april_1_2010_census" text,
"april_1_2010_density_km" text,
"april_1_2010_density_mi" text,
"july_1_2010_official_estimate" text,
"july_1_2010_density_km" text,
"july_1_2010_density_mi" text,
"july_1_2011_official_estimate" text,
"july_1_2011_density_km" text,
"july_1_2011_density_mi" text,
"mid_2010_to_mid_2011_change_absolute" text,
"mid_2010_to_mid_2011_change_pct" text,
"county_seat_or_courthouse" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank where the July 1, 2010 density equals 437?`:
```sql
|
SELECT "july_1_2011_density_mi" FROM "list_of_the_most_populous_us_counties_so" WHERE "july_1_2010_official_estimate"='800,482'; |
## Task
Generate a SQL query to answer the following question:
`What is the July 1, 2011 density if the July 1, 2010 official estimate is 800,482?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_the_most_populous_us_counties_so" (
"rank" text,
"county" text,
"state" text,
"land_area_km" text,
"land_area_mi" text,
"april_1_2010_census" text,
"april_1_2010_density_km" text,
"april_1_2010_density_mi" text,
"july_1_2010_official_estimate" text,
"july_1_2010_density_km" text,
"july_1_2010_density_mi" text,
"july_1_2011_official_estimate" text,
"july_1_2011_density_km" text,
"july_1_2011_density_mi" text,
"mid_2010_to_mid_2011_change_absolute" text,
"mid_2010_to_mid_2011_change_pct" text,
"county_seat_or_courthouse" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the July 1, 2011 density if the July 1, 2010 official estimate is 800,482?`:
```sql
|
SELECT "mid_2010_to_mid_2011_change_pct" FROM "list_of_the_most_populous_us_counties_so" WHERE "july_1_2011_density_mi"='508'; |
## Task
Generate a SQL query to answer the following question:
`What is the mid-2010 to mid-2011 change where the July 1, 2011 density is 508?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_the_most_populous_us_counties_so" (
"rank" text,
"county" text,
"state" text,
"land_area_km" text,
"land_area_mi" text,
"april_1_2010_census" text,
"april_1_2010_density_km" text,
"april_1_2010_density_mi" text,
"july_1_2010_official_estimate" text,
"july_1_2010_density_km" text,
"july_1_2010_density_mi" text,
"july_1_2011_official_estimate" text,
"july_1_2011_density_km" text,
"july_1_2011_density_mi" text,
"mid_2010_to_mid_2011_change_absolute" text,
"mid_2010_to_mid_2011_change_pct" text,
"county_seat_or_courthouse" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the mid-2010 to mid-2011 change where the July 1, 2011 density is 508?`:
```sql
|
SELECT "county" FROM "list_of_the_most_populous_us_counties_so" WHERE "july_1_2010_density_km"='41'; |
## Task
Generate a SQL query to answer the following question:
`What country had a July 1, 2010 density of 41?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_the_most_populous_us_counties_so" (
"rank" text,
"county" text,
"state" text,
"land_area_km" text,
"land_area_mi" text,
"april_1_2010_census" text,
"april_1_2010_density_km" text,
"april_1_2010_density_mi" text,
"july_1_2010_official_estimate" text,
"july_1_2010_density_km" text,
"july_1_2010_density_mi" text,
"july_1_2011_official_estimate" text,
"july_1_2011_density_km" text,
"july_1_2011_density_mi" text,
"mid_2010_to_mid_2011_change_absolute" text,
"mid_2010_to_mid_2011_change_pct" text,
"county_seat_or_courthouse" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country had a July 1, 2010 density of 41?`:
```sql
|
SELECT "tournament" FROM "doubles_20_8_12" WHERE "outcome"='winner' AND "opponents"='eddie dibbs harold solomon'; |
## Task
Generate a SQL query to answer the following question:
`What Tournament has an Outcome of winner, and Opponents of eddie dibbs harold solomon?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_20_8_12" (
"outcome" text,
"date" real,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Tournament has an Outcome of winner, and Opponents of eddie dibbs harold solomon?`:
```sql
|
SELECT "partner" FROM "doubles_20_8_12" WHERE "score"='3–6, 2–6'; |
## Task
Generate a SQL query to answer the following question:
`What Partner has a Score of 3–6, 2–6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_20_8_12" (
"outcome" text,
"date" real,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Partner has a Score of 3–6, 2–6?`:
```sql
|
SELECT "tournament" FROM "doubles_20_8_12" WHERE "partner"='tom gorman'; |
## Task
Generate a SQL query to answer the following question:
`What Tournament has a Partner of tom gorman?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_20_8_12" (
"outcome" text,
"date" real,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Tournament has a Partner of tom gorman?`:
```sql
|
SELECT "outcome" FROM "doubles_20_8_12" WHERE "opponents"='bob hewitt frew mcmillan'; |
## Task
Generate a SQL query to answer the following question:
`What Outcome has Opponents of bob hewitt frew mcmillan?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_20_8_12" (
"outcome" text,
"date" real,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Outcome has Opponents of bob hewitt frew mcmillan?`:
```sql
|
SELECT "opposing_teams" FROM "1961" WHERE "date"='11/02/1961'; |
## Task
Generate a SQL query to answer the following question:
`Who was the name of the opposing team on 11/02/1961?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1961" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the name of the opposing team on 11/02/1961?`:
```sql
|
SELECT "opposing_teams" FROM "1961" WHERE "against"<5; |
## Task
Generate a SQL query to answer the following question:
`Which Opposing team had an Against smaller Than 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1961" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opposing team had an Against smaller Than 5?`:
```sql
|
SELECT "status" FROM "1961" WHERE "date"='07/01/1961'; |
## Task
Generate a SQL query to answer the following question:
`What is the status for 07/01/1961?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1961" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the status for 07/01/1961?`:
```sql
|
SELECT "position" FROM "round_one" WHERE "player"='karl singer'; |
## Task
Generate a SQL query to answer the following question:
`What position does Karl Singer play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_one" (
"pick" real,
"afl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position does Karl Singer play?`:
```sql
|
SELECT "player" FROM "round_one" WHERE "position"='offensive tackle' AND "afl_team"='new york jets'; |
## Task
Generate a SQL query to answer the following question:
`Which player is an offensive tackle for the New York Jets?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_one" (
"pick" real,
"afl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player is an offensive tackle for the New York Jets?`:
```sql
|
SELECT "position" FROM "round_one" WHERE "player"='mike dennis'; |
## Task
Generate a SQL query to answer the following question:
`What position does Mike Dennis play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_one" (
"pick" real,
"afl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position does Mike Dennis play?`:
```sql
|
SELECT "afl_team" FROM "round_one" WHERE "position"='offensive tackle' AND "pick"=4; |
## Task
Generate a SQL query to answer the following question:
`Which AFL team has a pick 4 for the offensive tackle position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_one" (
"pick" real,
"afl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which AFL team has a pick 4 for the offensive tackle position?`:
```sql
|
SELECT "country" FROM "loans" WHERE "name"='sodje'; |
## Task
Generate a SQL query to answer the following question:
`From which country was Sodje loaned?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "loans" (
"name" text,
"country" text,
"loan_club" text,
"started" text,
"ended" text,
"start_source" text
);
### SQL
Given the database schema, here is the SQL query that answers `From which country was Sodje loaned?`:
```sql
|
SELECT "loan_club" FROM "loans" WHERE "name"='c. dickinson'; |
## Task
Generate a SQL query to answer the following question:
`From which club is player C. Dickinson?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "loans" (
"name" text,
"country" text,
"loan_club" text,
"started" text,
"ended" text,
"start_source" text
);
### SQL
Given the database schema, here is the SQL query that answers `From which club is player C. Dickinson?`:
```sql
|
SELECT "fate" FROM "the_ships" WHERE "ship"='bremen'; |
## Task
Generate a SQL query to answer the following question:
`What is the fate for the Bremen ship?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_ships" (
"ship" text,
"tonnage" text,
"builder" text,
"original_operator" text,
"fate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fate for the Bremen ship?`:
```sql
|
SELECT "original_operator" FROM "the_ships" WHERE "builder"='ag vulcan' AND "ship"='prinzess irene'; |
## Task
Generate a SQL query to answer the following question:
`Who is the original operator for the AG Vulcan builder and the Prinzess Irene ship?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_ships" (
"ship" text,
"tonnage" text,
"builder" text,
"original_operator" text,
"fate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the original operator for the AG Vulcan builder and the Prinzess Irene ship?`:
```sql
|
SELECT "tonnage" FROM "the_ships" WHERE "builder"='ag vulcan' AND "original_operator"='ndl' AND "ship"='prinzess irene'; |
## Task
Generate a SQL query to answer the following question:
`What is the Tonnage that has builder AG Vulcan, and the original operator NDL, and the ship, Prinzess Irene?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_ships" (
"ship" text,
"tonnage" text,
"builder" text,
"original_operator" text,
"fate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Tonnage that has builder AG Vulcan, and the original operator NDL, and the ship, Prinzess Irene?`:
```sql
|
SELECT "combined" FROM "swimming_and_diving" WHERE "100_yard_freestyle"='cody miller (palo verde)'; |
## Task
Generate a SQL query to answer the following question:
`What Combined has a 100 yard Freestyle of cody miller (palo verde)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "swimming_and_diving" (
"combined" text,
"50_yard_freestyle" text,
"100_yard_freestyle" text,
"200_yard_freestyle" text,
"500_yard_freestyle" text,
"100_yard_backstroke" text,
"100_yard_butterfly" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Combined has a 100 yard Freestyle of cody miller (palo verde)?`:
```sql
|
SELECT "100_yard_backstroke" FROM "swimming_and_diving" WHERE "100_yard_freestyle"='helen yee (sierra vista)'; |
## Task
Generate a SQL query to answer the following question:
`What 100 yard Backstroke has a 100 yard Freestyle of helen yee (sierra vista)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "swimming_and_diving" (
"combined" text,
"50_yard_freestyle" text,
"100_yard_freestyle" text,
"200_yard_freestyle" text,
"500_yard_freestyle" text,
"100_yard_backstroke" text,
"100_yard_butterfly" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 100 yard Backstroke has a 100 yard Freestyle of helen yee (sierra vista)?`:
```sql
|
SELECT "50_yard_freestyle" FROM "swimming_and_diving" WHERE "100_yard_butterfly"='diving'; |
## Task
Generate a SQL query to answer the following question:
`What 50 yard Freestyle has a 100 yard Butterfly of diving?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "swimming_and_diving" (
"combined" text,
"50_yard_freestyle" text,
"100_yard_freestyle" text,
"200_yard_freestyle" text,
"500_yard_freestyle" text,
"100_yard_backstroke" text,
"100_yard_butterfly" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 50 yard Freestyle has a 100 yard Butterfly of diving?`:
```sql
|
SELECT "100_yard_butterfly" FROM "swimming_and_diving" WHERE "100_yard_freestyle"='cody miller (palo verde)'; |
## Task
Generate a SQL query to answer the following question:
`What 100 yard Butterfly has a 100 yard Freestyle of cody miller (palo verde)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "swimming_and_diving" (
"combined" text,
"50_yard_freestyle" text,
"100_yard_freestyle" text,
"200_yard_freestyle" text,
"500_yard_freestyle" text,
"100_yard_backstroke" text,
"100_yard_butterfly" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 100 yard Butterfly has a 100 yard Freestyle of cody miller (palo verde)?`:
```sql
|
SELECT "500_yard_freestyle" FROM "swimming_and_diving" WHERE "combined"='palo verde' AND "100_yard_butterfly"='edward kollar (douglas)'; |
## Task
Generate a SQL query to answer the following question:
`What 500 yard Freestyle has a Combined of palo verde, and a 100 yard Butterfly of edward kollar (douglas)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "swimming_and_diving" (
"combined" text,
"50_yard_freestyle" text,
"100_yard_freestyle" text,
"200_yard_freestyle" text,
"500_yard_freestyle" text,
"100_yard_backstroke" text,
"100_yard_butterfly" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 500 yard Freestyle has a Combined of palo verde, and a 100 yard Butterfly of edward kollar (douglas)?`:
```sql
|
SELECT "100_yard_freestyle" FROM "swimming_and_diving" WHERE "100_yard_backstroke"='palo verde'; |
## Task
Generate a SQL query to answer the following question:
`What 100 yard Freestyle has a 100 yard Backstroke of palo verde?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "swimming_and_diving" (
"combined" text,
"50_yard_freestyle" text,
"100_yard_freestyle" text,
"200_yard_freestyle" text,
"500_yard_freestyle" text,
"100_yard_backstroke" text,
"100_yard_butterfly" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 100 yard Freestyle has a 100 yard Backstroke of palo verde?`:
```sql
|
SELECT "player" FROM "third_round" WHERE "score"='68-71-70=208'; |
## Task
Generate a SQL query to answer the following question:
`Who has a Score of 68-71-70=208?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has a Score of 68-71-70=208?`:
```sql
|
SELECT "country" FROM "third_round" WHERE "to_par"='-9' AND "score"='70-69-68=207'; |
## Task
Generate a SQL query to answer the following question:
`Which country has -9 to par with a Score of 70-69-68=207?`
### 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 `Which country has -9 to par with a Score of 70-69-68=207?`:
```sql
|
SELECT "to_par" FROM "third_round" WHERE "player"='tiger woods'; |
## Task
Generate a SQL query to answer the following question:
`What is Tiger Woods' 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 Tiger Woods' to par?`:
```sql
|
SELECT "away_team" FROM "first_round_proper" WHERE "tie_no"='replay' AND "home_team"='peterborough united'; |
## Task
Generate a SQL query to answer the following question:
`Which away team played against Peterborough United, with a tie no of replay?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which away team played against Peterborough United, with a tie no of replay?`:
```sql
|
SELECT MIN("matches") FROM "wickets" WHERE "wickets">16 AND "best"='3/15' AND "econ"<8; |
## Task
Generate a SQL query to answer the following question:
`What are the lowest matches that have wickets greater than 16, 3/15 as the best, and an econ less than 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wickets" (
"player" text,
"team" text,
"matches" real,
"overs" real,
"runs" real,
"wickets" real,
"best" text,
"econ" real,
"s_rate" real,
"4_inns" real,
"5_inns" real,
"average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the lowest matches that have wickets greater than 16, 3/15 as the best, and an econ less than 8?`:
```sql
|
SELECT COUNT("econ") FROM "wickets" WHERE "s_rate"=13.76 AND "runs"<325; |
## Task
Generate a SQL query to answer the following question:
`How many econs have 13.76 as the S/Rate, with runs less than 325?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wickets" (
"player" text,
"team" text,
"matches" real,
"overs" real,
"runs" real,
"wickets" real,
"best" text,
"econ" real,
"s_rate" real,
"4_inns" real,
"5_inns" real,
"average" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many econs have 13.76 as the S/Rate, with runs less than 325?`:
```sql
|
SELECT AVG("wickets") FROM "wickets" WHERE "overs">44 AND "player"='danish kaneria' AND "average">13.8; |
## Task
Generate a SQL query to answer the following question:
`What is the average wickets that have overs greater than 44, danish kaneria as the player, with an average greater than 13.8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wickets" (
"player" text,
"team" text,
"matches" real,
"overs" real,
"runs" real,
"wickets" real,
"best" text,
"econ" real,
"s_rate" real,
"4_inns" real,
"5_inns" real,
"average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average wickets that have overs greater than 44, danish kaneria as the player, with an average greater than 13.8?`:
```sql
|
SELECT COUNT("5_inns") FROM "wickets" WHERE "player"='tyron henderson' AND "wickets"<21; |
## Task
Generate a SQL query to answer the following question:
`How many 5+/inns have tyron henderson as the player, with wickets less than 21?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wickets" (
"player" text,
"team" text,
"matches" real,
"overs" real,
"runs" real,
"wickets" real,
"best" text,
"econ" real,
"s_rate" real,
"4_inns" real,
"5_inns" real,
"average" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many 5+/inns have tyron henderson as the player, with wickets less than 21?`:
```sql
|
SELECT "surface" FROM "doubles_titles_4" WHERE "partner"='robert haybittel'; |
## Task
Generate a SQL query to answer the following question:
`What is the surface when the partner was Robert Haybittel?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_titles_4" (
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the surface when the partner was Robert Haybittel?`:
```sql
|
SELECT "ratings_5_capital_cities" FROM "episode_ratings" WHERE "episode_no"='wonder drug'; |
## Task
Generate a SQL query to answer the following question:
`What was the rating of the episode Wonder Drug?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episode_ratings" (
"episode_no" text,
"airdate" text,
"time" text,
"ratings_5_capital_cities" real,
"timeslot_rank" text,
"overall_nightly_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the rating of the episode Wonder Drug?`:
```sql
|
SELECT "winning_team" FROM "race_results" WHERE "date"='may 12'; |
## Task
Generate a SQL query to answer the following question:
`Who was the winning team on May 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_results" (
"round" text,
"date" text,
"event" text,
"circuit" text,
"winning_driver" text,
"winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winning team on May 12?`:
```sql
|
SELECT "winning_team" FROM "race_results" WHERE "circuit"='circuit zolder'; |
## Task
Generate a SQL query to answer the following question:
`Who was the winning team for circuit zolder?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_results" (
"round" text,
"date" text,
"event" text,
"circuit" text,
"winning_driver" text,
"winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winning team for circuit zolder?`:
```sql
|
SELECT "winning_team" FROM "race_results" WHERE "round"='3'; |
## Task
Generate a SQL query to answer the following question:
`Who was the winning team for round 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_results" (
"round" text,
"date" text,
"event" text,
"circuit" text,
"winning_driver" text,
"winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winning team for round 3?`:
```sql
|
SELECT "winning_team" FROM "race_results" WHERE "date"='july 13'; |
## Task
Generate a SQL query to answer the following question:
`Who was the winning team on July 13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_results" (
"round" text,
"date" text,
"event" text,
"circuit" text,
"winning_driver" text,
"winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winning team on July 13?`:
```sql
|
SELECT MAX("year") FROM "achievements" WHERE "venue"='narbonne , france'; |
## Task
Generate a SQL query to answer the following question:
`Name the highest Year which has a Venue of narbonne , france?`
### 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 `Name the highest Year which has a Venue of narbonne , france?`:
```sql
|
SELECT "competition" FROM "achievements" WHERE "year">1990 AND "venue"='seville , spain'; |
## Task
Generate a SQL query to answer the following question:
`Which Competition has a Year larger than 1990 in seville , 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 `Which Competition has a Year larger than 1990 in seville , spain?`:
```sql
|
SELECT COUNT("year") FROM "achievements" WHERE "venue"='latakia , syria'; |
## Task
Generate a SQL query to answer the following question:
`COunt the Year which has a Venue of latakia , syria?`
### 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 `COunt the Year which has a Venue of latakia , syria?`:
```sql
|
SELECT "position" FROM "achievements" WHERE "event"='4x400 m relay' AND "venue"='stuttgart , germany'; |
## Task
Generate a SQL query to answer the following question:
`Which Position has an Event of 4x400 m relay, and a Venue of stuttgart , germany?`
### 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 `Which Position has an Event of 4x400 m relay, and a Venue of stuttgart , germany?`:
```sql
|
SELECT SUM("year") FROM "achievements" WHERE "competition"='european indoor championships' AND "venue"='budapest , hungary'; |
## Task
Generate a SQL query to answer the following question:
`Which Year has a Competition of european indoor championships, and a Venue of budapest , hungary?`
### 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 `Which Year has a Competition of european indoor championships, and a Venue of budapest , hungary?`:
```sql
|
SELECT "rounds" FROM "teams_and_drivers" WHERE "engine"='opc-challenge' AND "driver"='satrio hermanto'; |
## Task
Generate a SQL query to answer the following question:
`How many rounds did satrio hermanto go with an opc-challenge engine?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams_and_drivers" (
"team" text,
"driver" text,
"class" text,
"chassis" text,
"engine" text,
"rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rounds did satrio hermanto go with an opc-challenge engine?`:
```sql
|
SELECT "rounds" FROM "teams_and_drivers" WHERE "driver"='frédéric vervisch'; |
## Task
Generate a SQL query to answer the following question:
`How many rounds did frédéric vervisch go?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams_and_drivers" (
"team" text,
"driver" text,
"class" text,
"chassis" text,
"engine" text,
"rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rounds did frédéric vervisch go?`:
```sql
|
SELECT "rounds" FROM "teams_and_drivers" WHERE "driver"='shirley van der lof'; |
## Task
Generate a SQL query to answer the following question:
`How many rounds did shirley van der lof go?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams_and_drivers" (
"team" text,
"driver" text,
"class" text,
"chassis" text,
"engine" text,
"rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rounds did shirley van der lof go?`:
```sql
|
SELECT "engine" FROM "teams_and_drivers" WHERE "class"='c' AND "team"='hs technik motorsport' AND "driver"='philipp eng'; |
## Task
Generate a SQL query to answer the following question:
`What c class engine did philipp eng and team hs technik motorsport use?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams_and_drivers" (
"team" text,
"driver" text,
"class" text,
"chassis" text,
"engine" text,
"rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `What c class engine did philipp eng and team hs technik motorsport use?`:
```sql
|
SELECT "chassis" FROM "teams_and_drivers" WHERE "engine"='volkswagen' AND "driver"='rahel frey'; |
## Task
Generate a SQL query to answer the following question:
`What is the chassis of rahel frey's volkswagen engine?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams_and_drivers" (
"team" text,
"driver" text,
"class" text,
"chassis" text,
"engine" text,
"rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the chassis of rahel frey's volkswagen engine?`:
```sql
|
SELECT MAX("losses") FROM "2005_ladder" WHERE "against"=1465 AND "wins">7; |
## Task
Generate a SQL query to answer the following question:
`What is the greatest number of losses when the against is 1465 and there are more than 7 wins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2005_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 greatest number of losses when the against is 1465 and there are more than 7 wins?`:
```sql
|
SELECT SUM("against") FROM "2005_ladder" WHERE "wins"<12 AND "golden_rivers"='moulamein' AND "draws"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the total of against matches when there are less than 12 wins, less than 0 draws, and Moulamein is the golden river?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2005_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 of against matches when there are less than 12 wins, less than 0 draws, and Moulamein is the golden river?`:
```sql
|
SELECT COUNT("losses") FROM "2005_ladder" WHERE "golden_rivers"='hay' AND "byes">2; |
## Task
Generate a SQL query to answer the following question:
`What is the total losses when Hay is the golden river and there are more than 2 byes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2005_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 losses when Hay is the golden river and there are more than 2 byes?`:
```sql
|
SELECT COUNT("draws") FROM "2005_ladder" WHERE "against"=1465 AND "byes"<2; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of draws when there are 1465 against matches and less than 2 byes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2005_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 1465 against matches and less than 2 byes?`:
```sql
|
SELECT MAX("losses") FROM "2005_ladder" WHERE "draws">0 AND "against"=1390; |
## Task
Generate a SQL query to answer the following question:
`What is the greatest number of losses when there are more than 0 draws and 1390 against matches?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2005_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 greatest number of losses when there are more than 0 draws and 1390 against matches?`:
```sql
|
SELECT MAX("wins") FROM "2005_ladder" WHERE "byes">2; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number of wins when there are more than 2 byes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2005_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 when there are more than 2 byes?`:
```sql
|
SELECT SUM("pct") FROM "head_coaching_history" WHERE "wins">72 AND "name"='john yovicsin'; |
## Task
Generate a SQL query to answer the following question:
`Which percent has Wins larger than 72, and a Name of john yovicsin?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "head_coaching_history" (
"name" text,
"years" text,
"wins" real,
"losses" real,
"ties" real,
"pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which percent has Wins larger than 72, and a Name of john yovicsin?`:
```sql
|
SELECT SUM("ties") FROM "head_coaching_history" WHERE "years"='1919–1925' AND "pct">0.734; |
## Task
Generate a SQL query to answer the following question:
`How many Ties have Years of 1919–1925, and a Pct larger than 0.734?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "head_coaching_history" (
"name" text,
"years" text,
"wins" real,
"losses" real,
"ties" real,
"pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Ties have Years of 1919–1925, and a Pct larger than 0.734?`:
```sql
|
SELECT SUM("pct") FROM "head_coaching_history" WHERE "years"='1957–1970' AND "wins"<78; |
## Task
Generate a SQL query to answer the following question:
`Which Pct has Years of 1957–1970, and Wins smaller than 78?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "head_coaching_history" (
"name" text,
"years" text,
"wins" real,
"losses" real,
"ties" real,
"pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Pct has Years of 1957–1970, and Wins smaller than 78?`:
```sql
|
SELECT AVG("wins") FROM "head_coaching_history" WHERE "years"='1881' AND "pct">0.75; |
## Task
Generate a SQL query to answer the following question:
`Which Wins have Years of 1881, and a Pct larger than 0.75?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "head_coaching_history" (
"name" text,
"years" text,
"wins" real,
"losses" real,
"ties" real,
"pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Wins have Years of 1881, and a Pct larger than 0.75?`:
```sql
|
SELECT "genre" FROM "grammy_hall_of_fame" WHERE "year_recorded"='1929'; |
## Task
Generate a SQL query to answer the following question:
`What's the genre of the song recorded in 1929?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grammy_hall_of_fame" (
"year_recorded" text,
"title" text,
"genre" text,
"label" text,
"year_inducted" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the genre of the song recorded in 1929?`:
```sql
|
SELECT "label" FROM "grammy_hall_of_fame" WHERE "title"='\"weather bird\"'; |
## Task
Generate a SQL query to answer the following question:
`What label is "weather bird" under?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grammy_hall_of_fame" (
"year_recorded" text,
"title" text,
"genre" text,
"label" text,
"year_inducted" text
);
### SQL
Given the database schema, here is the SQL query that answers `What label is "weather bird" under?`:
```sql
|
SELECT "year_inducted" FROM "grammy_hall_of_fame" WHERE "label"='label'; |
## Task
Generate a SQL query to answer the following question:
`What's the year inducted for the label of label?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grammy_hall_of_fame" (
"year_recorded" text,
"title" text,
"genre" text,
"label" text,
"year_inducted" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the year inducted for the label of label?`:
```sql
|
SELECT "genre" FROM "grammy_hall_of_fame" WHERE "year_recorded"='1929'; |
## Task
Generate a SQL query to answer the following question:
`What genre is the song recorded in 1929?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grammy_hall_of_fame" (
"year_recorded" text,
"title" text,
"genre" text,
"label" text,
"year_inducted" text
);
### SQL
Given the database schema, here is the SQL query that answers `What genre is the song recorded in 1929?`:
```sql
|
SELECT "genre" FROM "grammy_hall_of_fame" WHERE "year_recorded"='1926'; |
## Task
Generate a SQL query to answer the following question:
`What genre is the song recorded in 1926?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grammy_hall_of_fame" (
"year_recorded" text,
"title" text,
"genre" text,
"label" text,
"year_inducted" text
);
### SQL
Given the database schema, here is the SQL query that answers `What genre is the song recorded in 1926?`:
```sql
|
SELECT "party" FROM "current_members" WHERE "residence"='san diego'; |
## Task
Generate a SQL query to answer the following question:
`Which Party has a Residence of san diego?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"name" text,
"residence" text,
"party" text,
"years_in_assembly" text,
"years_in_senate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Party has a Residence of san diego?`:
```sql
|
SELECT "years_in_senate" FROM "current_members" WHERE "years_in_assembly"='2010–present' AND "name"='toni atkins'; |
## Task
Generate a SQL query to answer the following question:
`Which Years in Senate has a Years in Assembly of 2010–present, and toni atkins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"name" text,
"residence" text,
"party" text,
"years_in_assembly" text,
"years_in_senate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Years in Senate has a Years in Assembly of 2010–present, and toni atkins?`:
```sql
|
SELECT "party" FROM "current_members" WHERE "years_in_senate"='—' AND "years_in_assembly"='2012–present'; |
## Task
Generate a SQL query to answer the following question:
`Which Party has Years in Senate of —, and Years in Assembly of 2012–present?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"name" text,
"residence" text,
"party" text,
"years_in_assembly" text,
"years_in_senate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Party has Years in Senate of —, and Years in Assembly of 2012–present?`:
```sql
|
SELECT "residence" FROM "current_members" WHERE "name"='rich gordon'; |
## Task
Generate a SQL query to answer the following question:
`Show the Residence whose Name is rich gordon?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"name" text,
"residence" text,
"party" text,
"years_in_assembly" text,
"years_in_senate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Show the Residence whose Name is rich gordon?`:
```sql
|
SELECT "years_in_assembly" FROM "current_members" WHERE "name"='toni atkins'; |
## Task
Generate a SQL query to answer the following question:
`Which Years in Assembly has a Name of toni atkins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"name" text,
"residence" text,
"party" text,
"years_in_assembly" text,
"years_in_senate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Years in Assembly has a Name of toni atkins?`:
```sql
|
SELECT "party" FROM "current_members" WHERE "years_in_assembly"='2008–present' AND "name"='tom ammiano'; |
## Task
Generate a SQL query to answer the following question:
`Which Party has Years in Assembly of 2008–present, and a Name of tom ammiano?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"name" text,
"residence" text,
"party" text,
"years_in_assembly" text,
"years_in_senate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Party has Years in Assembly of 2008–present, and a Name of tom ammiano?`:
```sql
|
SELECT "year_s_won" FROM "made_the_cut" WHERE "total"<291 AND "to_par"='+10' AND "player"='raymond floyd'; |
## Task
Generate a SQL query to answer the following question:
`In what year(s) did Raymond Floyd have a total of less than 291 and a To par of +10?`
### 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" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what year(s) did Raymond Floyd have a total of less than 291 and a To par of +10?`:
```sql
|
SELECT "to_par" FROM "made_the_cut" WHERE "total"<284 AND "player"='jeff sluman'; |
## Task
Generate a SQL query to answer the following question:
`What was Jeff Sluman's To par when his total was smaller than 284?`
### 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" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Jeff Sluman's To par when his total was smaller than 284?`:
```sql
|
SELECT "finish" FROM "made_the_cut" WHERE "country"='united states' AND "player"='lanny wadkins'; |
## Task
Generate a SQL query to answer the following question:
`What was the finish for Lanny Wadkins of the United States?`
### 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" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the finish for Lanny Wadkins of the United States?`:
```sql
|
SELECT "player" FROM "made_the_cut" WHERE "to_par"='+11'; |
## Task
Generate a SQL query to answer the following question:
`Which player had a To par of +11?`
### 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" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player had a To par of +11?`:
```sql
|
SELECT "country" FROM "made_the_cut" WHERE "year_s_won"='1983'; |
## Task
Generate a SQL query to answer the following question:
`From which country was the player whose year(s) won was 1983?`
### 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" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `From which country was the player whose year(s) won was 1983?`:
```sql
|
SELECT "total" FROM "made_the_cut" WHERE "finish"='t66'; |
## Task
Generate a SQL query to answer the following question:
`What is the total for the player whose finish was t66?`
### 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" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total for the player whose finish was t66?`:
```sql
|
SELECT "type" FROM "locomotives_and_wagons" WHERE "delivered"='1857-59'; |
## Task
Generate a SQL query to answer the following question:
`What is the type of the locomotive which was delivered in 1857-59?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "locomotives_and_wagons" (
"class" text,
"quantity" real,
"type" text,
"delivered" text,
"k_b_sts_b_class" text,
"retired" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the type of the locomotive which was delivered in 1857-59?`:
```sql
|
SELECT MAX("quantity") FROM "locomotives_and_wagons" WHERE "k_b_sts_b_class"='b ix'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest quantity of the b ix k.b.sts.b.?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "locomotives_and_wagons" (
"class" text,
"quantity" real,
"type" text,
"delivered" text,
"k_b_sts_b_class" text,
"retired" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest quantity of the b ix k.b.sts.b.?`:
```sql
|
SELECT MIN("quantity") FROM "locomotives_and_wagons" WHERE "type"='1b n2' AND "retired"='1907-12'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest quantity of the 1b n2 type, which was retired in 1907-12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "locomotives_and_wagons" (
"class" text,
"quantity" real,
"type" text,
"delivered" text,
"k_b_sts_b_class" text,
"retired" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest quantity of the 1b n2 type, which was retired in 1907-12?`:
```sql
|
SELECT "district" FROM "virginia" WHERE "incumbent"='jim moran'; |
## Task
Generate a SQL query to answer the following question:
`What district is Jim Moran the incumbent for.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "virginia" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What district is Jim Moran the incumbent for.`:
```sql
|
SELECT "results" FROM "virginia" WHERE "first_elected"<2004 AND "incumbent"='eric cantor'; |
## Task
Generate a SQL query to answer the following question:
`What was the election result before 2004 where Eric Cantor was the incumbent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "virginia" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the election result before 2004 where Eric Cantor was the incumbent?`:
```sql
|
SELECT "common_english" FROM "names_in_national_languages" WHERE "italian"='san gallo'; |
## Task
Generate a SQL query to answer the following question:
`What is the common English for the Italian word san gallo?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "names_in_national_languages" (
"abbr" text,
"common_english" text,
"french" text,
"italian" text,
"romansh" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the common English for the Italian word san gallo?`:
```sql
|
SELECT "italian" FROM "names_in_national_languages" WHERE "common_english"='glarus'; |
## Task
Generate a SQL query to answer the following question:
`What is the italian word for Glarus?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "names_in_national_languages" (
"abbr" text,
"common_english" text,
"french" text,
"italian" text,
"romansh" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the italian word for Glarus?`:
```sql
|
SELECT "common_english" FROM "names_in_national_languages" WHERE "abbr"='ai'; |
## Task
Generate a SQL query to answer the following question:
`What is the common english word with the abbr of ai?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "names_in_national_languages" (
"abbr" text,
"common_english" text,
"french" text,
"italian" text,
"romansh" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the common english word with the abbr of ai?`:
```sql
|
SELECT "abbr" FROM "names_in_national_languages" WHERE "italian"='argovia'; |
## Task
Generate a SQL query to answer the following question:
`What is the abbr of argovia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "names_in_national_languages" (
"abbr" text,
"common_english" text,
"french" text,
"italian" text,
"romansh" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the abbr of argovia?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.