output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "venue" FROM "international_goals" WHERE "result"='won' AND "competition"='friendly' AND "date"='28 may 2012'; |
## Task
Generate a SQL query to answer the following question:
`Where was the friendly competition that Andriy Yarmolenko won on 28 may 2012?`
### 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 `Where was the friendly competition that Andriy Yarmolenko won on 28 may 2012?`:
```sql
|
SELECT "result" FROM "international_goals" WHERE "venue"='kyiv, ukraine'; |
## Task
Generate a SQL query to answer the following question:
`What is the result of the game at kyiv, ukraine?`
### 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 is the result of the game at kyiv, ukraine?`:
```sql
|
SELECT "style" FROM "week_1_17_february_2008" WHERE "choreographer"='luda and oliver'; |
## Task
Generate a SQL query to answer the following question:
`What is the Style of the dance by Choreographer Luda and Oliver?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "week_1_17_february_2008" (
"couple" text,
"style" text,
"music" text,
"choreographer" text,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Style of the dance by Choreographer Luda and Oliver?`:
```sql
|
SELECT "results" FROM "week_1_17_february_2008" WHERE "choreographer"='kelly aykers'; |
## Task
Generate a SQL query to answer the following question:
`What is the Result of the dance Choreographed by Kelly Aykers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "week_1_17_february_2008" (
"couple" text,
"style" text,
"music" text,
"choreographer" text,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Result of the dance Choreographed by Kelly Aykers?`:
```sql
|
SELECT "style" FROM "week_1_17_february_2008" WHERE "results"='safe' AND "choreographer"='nacho pop'; |
## Task
Generate a SQL query to answer the following question:
`What is the Style of the dance Choreographed by Nacho Pop with result of safe?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "week_1_17_february_2008" (
"couple" text,
"style" text,
"music" text,
"choreographer" text,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Style of the dance Choreographed by Nacho Pop with result of safe?`:
```sql
|
SELECT AVG("rank") FROM "medal_table_by_country" WHERE "total">2 AND "gold"=21 AND "bronze">12; |
## Task
Generate a SQL query to answer the following question:
`What is the rank with a higher than 2 total, 21 gold and more than 12 bronze?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table_by_country" (
"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 rank with a higher than 2 total, 21 gold and more than 12 bronze?`:
```sql
|
SELECT SUM("gold") FROM "medal_table_by_country" WHERE "silver">1 AND "nation"='germany'; |
## Task
Generate a SQL query to answer the following question:
`How many golds does Germany have with more than 1 silver?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table_by_country" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many golds does Germany have with more than 1 silver?`:
```sql
|
SELECT COUNT("round") FROM "draft_picks" WHERE "pick"=20; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of rounds of the player with a pick of 20?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"draft" real,
"round" real,
"pick" real,
"player" text,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of rounds of the player with a pick of 20?`:
```sql
|
SELECT "player" FROM "draft_picks" WHERE "draft"=1971 AND "pick">7; |
## Task
Generate a SQL query to answer the following question:
`Who is the player from the 1971 draft with a pick greater than 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"draft" real,
"round" real,
"pick" real,
"player" text,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player from the 1971 draft with a pick greater than 7?`:
```sql
|
SELECT COUNT("premier") FROM "number_of_participants" WHERE "second"=55; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of Premier, when Second is "55"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "number_of_participants" (
"season" text,
"premier" real,
"first" real,
"second" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Premier, when Second is "55"?`:
```sql
|
SELECT COUNT("second") FROM "number_of_participants" WHERE "first">18 AND "season"='1992-93' AND "premier">16; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of Second, when First is greater than 18, when Season is 1992-93, and when Premier is greater than 16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "number_of_participants" (
"season" text,
"premier" real,
"first" real,
"second" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Second, when First is greater than 18, when Season is 1992-93, and when Premier is greater than 16?`:
```sql
|
SELECT MIN("total") FROM "number_of_participants" WHERE "second"=55; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest Total, when Second is "55"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "number_of_participants" (
"season" text,
"premier" real,
"first" real,
"second" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Total, when Second is "55"?`:
```sql
|
SELECT MAX("total") FROM "number_of_participants" WHERE "season"='1996-97' AND "second"<33; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Total, when Season is "1996-97", and when Second is less than 33?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "number_of_participants" (
"season" text,
"premier" real,
"first" real,
"second" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Total, when Season is "1996-97", and when Second is less than 33?`:
```sql
|
SELECT SUM("second") FROM "number_of_participants" WHERE "total"<70 AND "premier"<20 AND "first">18; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of Second, when Total is less than 70, when Premier is less than 20, and when First is greater than 18?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "number_of_participants" (
"season" text,
"premier" real,
"first" real,
"second" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Second, when Total is less than 70, when Premier is less than 20, and when First is greater than 18?`:
```sql
|
SELECT "season" FROM "club_statistics" WHERE "goals"='27' AND "points"='58'; |
## Task
Generate a SQL query to answer the following question:
`In what season were there 27 goals and 58 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "club_statistics" (
"name" text,
"season" text,
"games" text,
"goals" text,
"assists" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what season were there 27 goals and 58 points?`:
```sql
|
SELECT "points" FROM "club_statistics" WHERE "goals"='28' AND "games"='47'; |
## Task
Generate a SQL query to answer the following question:
`What are the points in the season with 47 games and 28 goals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "club_statistics" (
"name" text,
"season" text,
"games" text,
"goals" text,
"assists" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the points in the season with 47 games and 28 goals?`:
```sql
|
SELECT "goals" FROM "club_statistics" WHERE "games"='47'; |
## Task
Generate a SQL query to answer the following question:
`How many goals were there in game 47?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "club_statistics" (
"name" text,
"season" text,
"games" text,
"goals" text,
"assists" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many goals were there in game 47?`:
```sql
|
SELECT SUM("snatch") FROM "middleweight_77_kg" WHERE "total_kg"<257; |
## Task
Generate a SQL query to answer the following question:
`How much Snatch has a Total (kg) smaller than 257?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "middleweight_77_kg" (
"name" text,
"bodyweight" real,
"snatch" real,
"clean_jerk" real,
"total_kg" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Snatch has a Total (kg) smaller than 257?`:
```sql
|
SELECT MIN("snatch") FROM "middleweight_77_kg" WHERE "clean_jerk"=180 AND "bodyweight"<69.83; |
## Task
Generate a SQL query to answer the following question:
`Which Snatch has a Clean & Jerk of 180, and a Bodyweight smaller than 69.83?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "middleweight_77_kg" (
"name" text,
"bodyweight" real,
"snatch" real,
"clean_jerk" real,
"total_kg" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Snatch has a Clean & Jerk of 180, and a Bodyweight smaller than 69.83?`:
```sql
|
SELECT COUNT("military_deaths") FROM "terror_and_other_attacks_1968_1987" WHERE "military_and_or_civilian_wounded"='78' AND "total_deaths">27; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of military deaths when there are 78 military and/or civilian wounded and more than 27 total deaths?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "terror_and_other_attacks_1968_1987" (
"military_deaths" real,
"civilian_deaths_including_foreigners" real,
"total_deaths" real,
"military_and_or_civilian_wounded" text,
"total_casualties" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of military deaths when there are 78 military and/or civilian wounded and more than 27 total deaths?`:
```sql
|
SELECT AVG("military_deaths") FROM "terror_and_other_attacks_1968_1987" WHERE "civilian_deaths_including_foreigners"<38 AND "military_and_or_civilian_wounded"='33'; |
## Task
Generate a SQL query to answer the following question:
`What is the average number of military deaths when there are fewer than 38 civilian deaths (including foreigners) and 33 military and/or civilian wounded?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "terror_and_other_attacks_1968_1987" (
"military_deaths" real,
"civilian_deaths_including_foreigners" real,
"total_deaths" real,
"military_and_or_civilian_wounded" text,
"total_casualties" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of military deaths when there are fewer than 38 civilian deaths (including foreigners) and 33 military and/or civilian wounded?`:
```sql
|
SELECT "total_casualties" FROM "terror_and_other_attacks_1968_1987" WHERE "total_deaths"=12 AND "military_deaths">1; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of casualties when there are 12 total deaths and more than 1 military death?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "terror_and_other_attacks_1968_1987" (
"military_deaths" real,
"civilian_deaths_including_foreigners" real,
"total_deaths" real,
"military_and_or_civilian_wounded" text,
"total_casualties" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of casualties when there are 12 total deaths and more than 1 military death?`:
```sql
|
SELECT "total" FROM "qualification" WHERE "score_points"='11'; |
## Task
Generate a SQL query to answer the following question:
`which Total has a Score points of 11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "qualification" (
"shooter" text,
"event" text,
"rank_points" text,
"score_points" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `which Total has a Score points of 11?`:
```sql
|
SELECT "total" FROM "qualification" WHERE "rank_points"='olympic bronze medalist'; |
## Task
Generate a SQL query to answer the following question:
`Which Total has an olympic bronze medalist?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "qualification" (
"shooter" text,
"event" text,
"rank_points" text,
"score_points" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Total has an olympic bronze medalist?`:
```sql
|
SELECT "shooter" FROM "qualification" WHERE "score_points"='olympic silver medalist'; |
## Task
Generate a SQL query to answer the following question:
`Which Shooter has Score points of olympic silver medalist?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "qualification" (
"shooter" text,
"event" text,
"rank_points" text,
"score_points" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Shooter has Score points of olympic silver medalist?`:
```sql
|
SELECT "rank_points" FROM "qualification" WHERE "event"='wc beijing' AND "score_points"='13' AND "total"='18'; |
## Task
Generate a SQL query to answer the following question:
`Name the Rank points which have an Event of wc beijing, and Score points of 13, and a Total of 18?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "qualification" (
"shooter" text,
"event" text,
"rank_points" text,
"score_points" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Rank points which have an Event of wc beijing, and Score points of 13, and a Total of 18?`:
```sql
|
SELECT "film_title_used_in_nomination" FROM "list" WHERE "original_title"='cilvēka bērns'; |
## Task
Generate a SQL query to answer the following question:
`What is the Film title used in nomination of Cilvēka Bērns?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Film title used in nomination of Cilvēka Bērns?`:
```sql
|
SELECT "original_title" FROM "list" WHERE "year_ceremony"='1992 (65th)'; |
## Task
Generate a SQL query to answer the following question:
`What is the Original Title of the 1992 (65th) Film`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Original Title of the 1992 (65th) Film`:
```sql
|
SELECT "director" FROM "list" WHERE "film_title_used_in_nomination"='gulf stream under the iceberg'; |
## Task
Generate a SQL query to answer the following question:
`What is the Director of Gulf Stream Under the Iceberg?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Director of Gulf Stream Under the Iceberg?`:
```sql
|
SELECT "original_title" FROM "list" WHERE "director"='aigars grauba'; |
## Task
Generate a SQL query to answer the following question:
`What is the Original Title of the movie directed by Aigars Grauba?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Original Title of the movie directed by Aigars Grauba?`:
```sql
|
SELECT "british" FROM "vowel_alone" WHERE "letter"='o /oʊ/'; |
## Task
Generate a SQL query to answer the following question:
`What is the British letter with o /oʊ/?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "vowel_alone" (
"letter" text,
"american" text,
"british" text,
"australian" text,
"examples" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the British letter with o /oʊ/?`:
```sql
|
SELECT "letter" FROM "vowel_alone" WHERE "british"='aɪ'; |
## Task
Generate a SQL query to answer the following question:
`Which letter has the British aɪ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "vowel_alone" (
"letter" text,
"american" text,
"british" text,
"australian" text,
"examples" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which letter has the British aɪ?`:
```sql
|
SELECT "american" FROM "vowel_alone" WHERE "australian"='əʉ'; |
## Task
Generate a SQL query to answer the following question:
`What does American have if Australia has əʉ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "vowel_alone" (
"letter" text,
"american" text,
"british" text,
"australian" text,
"examples" text
);
### SQL
Given the database schema, here is the SQL query that answers `What does American have if Australia has əʉ?`:
```sql
|
SELECT "british" FROM "vowel_alone" WHERE "american"='ə'; |
## Task
Generate a SQL query to answer the following question:
`What is the British letter if American is ə?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "vowel_alone" (
"letter" text,
"american" text,
"british" text,
"australian" text,
"examples" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the British letter if American is ə?`:
```sql
|
SELECT "australian" FROM "vowel_alone" WHERE "british"='ɪ' AND "letter"='æ /i/'; |
## Task
Generate a SQL query to answer the following question:
`What is the Australian letter with a British of ɪ and a letter of æ /i/??`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "vowel_alone" (
"letter" text,
"american" text,
"british" text,
"australian" text,
"examples" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Australian letter with a British of ɪ and a letter of æ /i/??`:
```sql
|
SELECT "score" FROM "fifth_round_proper" WHERE "attendance">'16,851' AND "away_team"='sheffield united'; |
## Task
Generate a SQL query to answer the following question:
`Which Score has an Attendance larger than 16,851, and an Away team of sheffield united?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has an Attendance larger than 16,851, and an Away team of sheffield united?`:
```sql
|
SELECT "away_team" FROM "fifth_round_proper" WHERE "home_team"='sheffield united'; |
## Task
Generate a SQL query to answer the following question:
`What is sheffield united's away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is sheffield united's away team?`:
```sql
|
SELECT COUNT("attendance") FROM "fifth_round_proper" WHERE "away_team"='middlesbrough'; |
## Task
Generate a SQL query to answer the following question:
`How many people attended the Away team of middlesbrough?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many people attended the Away team of middlesbrough?`:
```sql
|
SELECT "score" FROM "fifth_round_proper" WHERE "away_team"='middlesbrough'; |
## Task
Generate a SQL query to answer the following question:
`Which Score has an Away team of middlesbrough?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has an Away team of middlesbrough?`:
```sql
|
SELECT "years_as_tallest" FROM "timeline_of_tallest_buildings" WHERE "street_address"='01.0 10 light street'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE YEARS AS TALLEST WITH 01.0 10 light street?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "timeline_of_tallest_buildings" (
"name" text,
"street_address" text,
"years_as_tallest" text,
"height_ft_m" text,
"floors" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE YEARS AS TALLEST WITH 01.0 10 light street?`:
```sql
|
SELECT SUM("floors") FROM "timeline_of_tallest_buildings" WHERE "street_address"='01.0 10 light street'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE FLOOR NUMBERS WITH 01.0 10 light street?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "timeline_of_tallest_buildings" (
"name" text,
"street_address" text,
"years_as_tallest" text,
"height_ft_m" text,
"floors" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE FLOOR NUMBERS WITH 01.0 10 light street?`:
```sql
|
SELECT "years_as_tallest" FROM "timeline_of_tallest_buildings" WHERE "floors"<24 AND "street_address"='05.0 210 north charles street'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE YEAR'S TALLEST VALUE WITH FLOORS LESS THAN 24, AND 05.0 210 north charles street?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "timeline_of_tallest_buildings" (
"name" text,
"street_address" text,
"years_as_tallest" text,
"height_ft_m" text,
"floors" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE YEAR'S TALLEST VALUE WITH FLOORS LESS THAN 24, AND 05.0 210 north charles street?`:
```sql
|
SELECT "name" FROM "timeline_of_tallest_buildings" WHERE "street_address"='01.0 10 light street'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE NAME WITH 01.0 10 light street?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "timeline_of_tallest_buildings" (
"name" text,
"street_address" text,
"years_as_tallest" text,
"height_ft_m" text,
"floors" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE NAME WITH 01.0 10 light street?`:
```sql
|
SELECT "name" FROM "kazakhstan" WHERE "height"='m (ft 1in)'; |
## Task
Generate a SQL query to answer the following question:
`What is the Name of the Player with a Height of m (ft 1in)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "kazakhstan" (
"name" text,
"pos" text,
"height" text,
"weight" text,
"date_of_birth" text,
"club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Name of the Player with a Height of m (ft 1in)?`:
```sql
|
SELECT "weight" FROM "kazakhstan" WHERE "name"='tatyana gubina'; |
## Task
Generate a SQL query to answer the following question:
`What is Tatyana Gubina's Weight?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "kazakhstan" (
"name" text,
"pos" text,
"height" text,
"weight" text,
"date_of_birth" text,
"club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Tatyana Gubina's Weight?`:
```sql
|
SELECT "pos" FROM "kazakhstan" WHERE "name"='alyona klimenko'; |
## Task
Generate a SQL query to answer the following question:
`What is Alyona Klimenko's Pos.?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "kazakhstan" (
"name" text,
"pos" text,
"height" text,
"weight" text,
"date_of_birth" text,
"club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Alyona Klimenko's Pos.?`:
```sql
|
SELECT "third_place" FROM "men" WHERE "total">2 AND "rank"<2; |
## Task
Generate a SQL query to answer the following question:
`How many third places has a total greater than 2 and a rank less than 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men" (
"rank" real,
"champion" text,
"runner_up" text,
"third_place" text,
"fourth_place" text,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many third places has a total greater than 2 and a rank less than 2?`:
```sql
|
SELECT "r_bacon" FROM "u_s_house_district_5" WHERE "county"='passaic'; |
## Task
Generate a SQL query to answer the following question:
`What is the number for R Bacon in Passaic County?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_house_district_5" (
"county" text,
"precincts" text,
"c_abate" text,
"r_bacon" text,
"d_shulman" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number for R Bacon in Passaic County?`:
```sql
|
SELECT "d_shulman" FROM "u_s_house_district_5" WHERE "c_abate"='728 (43%)'; |
## Task
Generate a SQL query to answer the following question:
`What is the number for D. Shulman if C. Abate has 728 (43%)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_house_district_5" (
"county" text,
"precincts" text,
"c_abate" text,
"r_bacon" text,
"d_shulman" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number for D. Shulman if C. Abate has 728 (43%)`:
```sql
|
SELECT "county" FROM "u_s_house_district_5" WHERE "c_abate"='728 (43%)'; |
## Task
Generate a SQL query to answer the following question:
`Which county has 728 (43%) listed under C. Abate?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_house_district_5" (
"county" text,
"precincts" text,
"c_abate" text,
"r_bacon" text,
"d_shulman" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which county has 728 (43%) listed under C. Abate?`:
```sql
|
SELECT "d_shulman" FROM "u_s_house_district_5" WHERE "county"='warren'; |
## Task
Generate a SQL query to answer the following question:
`What are the numbers for D. Shulman in Warren County?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_house_district_5" (
"county" text,
"precincts" text,
"c_abate" text,
"r_bacon" text,
"d_shulman" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the numbers for D. Shulman in Warren County?`:
```sql
|
SELECT "county" FROM "u_s_house_district_5" WHERE "precincts"='90/90'; |
## Task
Generate a SQL query to answer the following question:
`Which County has Precincts of 90/90?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_house_district_5" (
"county" text,
"precincts" text,
"c_abate" text,
"r_bacon" text,
"d_shulman" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which County has Precincts of 90/90?`:
```sql
|
SELECT "county" FROM "u_s_house_district_5" WHERE "r_bacon"='438 (4%)'; |
## Task
Generate a SQL query to answer the following question:
`Which county has 438 (4%) listed under R. Bacon?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_house_district_5" (
"county" text,
"precincts" text,
"c_abate" text,
"r_bacon" text,
"d_shulman" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which county has 438 (4%) listed under R. Bacon?`:
```sql
|
SELECT "format" FROM "albums" WHERE "album"='pacific ocean blue' AND "year"=1991; |
## Task
Generate a SQL query to answer the following question:
`What is the format of the album Pacific Ocean Blue in 1991?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "albums" (
"artist" text,
"album" text,
"country" text,
"year" real,
"catalog_num" text,
"format" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the format of the album Pacific Ocean Blue in 1991?`:
```sql
|
SELECT "artist" FROM "albums" WHERE "catalog_num"='zk 34354'; |
## Task
Generate a SQL query to answer the following question:
`Who is the artist with catalog number ZK 34354?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "albums" (
"artist" text,
"album" text,
"country" text,
"year" real,
"catalog_num" text,
"format" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the artist with catalog number ZK 34354?`:
```sql
|
SELECT "height" FROM "australia" WHERE "name"='james stanton'; |
## Task
Generate a SQL query to answer the following question:
`How tall is player James Stanton?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "australia" (
"name" text,
"pos" text,
"height" text,
"weight" text,
"date_of_birth" text,
"club" text
);
### SQL
Given the database schema, here is the SQL query that answers `How tall is player James Stanton?`:
```sql
|
SELECT "name" FROM "australia" WHERE "club"='sydney university lions'; |
## Task
Generate a SQL query to answer the following question:
`Which player is on the roster for the Sydney University Lions?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "australia" (
"name" text,
"pos" text,
"height" text,
"weight" text,
"date_of_birth" text,
"club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player is on the roster for the Sydney University Lions?`:
```sql
|
SELECT "height" FROM "australia" WHERE "name"='james stanton'; |
## Task
Generate a SQL query to answer the following question:
`What is the height of player James Stanton?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "australia" (
"name" text,
"pos" text,
"height" text,
"weight" text,
"date_of_birth" text,
"club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height of player James Stanton?`:
```sql
|
SELECT MAX("draft") FROM "draft_picks" WHERE "round">2 AND "nationality"='united states' AND "pick"<113; |
## Task
Generate a SQL query to answer the following question:
`What is the highest draft after round 2, is from the United States and has picked less than 113?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"draft" real,
"round" real,
"pick" real,
"player" text,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest draft after round 2, is from the United States and has picked less than 113?`:
```sql
|
SELECT AVG("draft") FROM "draft_picks" WHERE "pick">42 AND "player"='grant eakin' AND "round">8; |
## Task
Generate a SQL query to answer the following question:
`What is the average draft with a pick larger than 42, and player Grant Eakin after round 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"draft" real,
"round" real,
"pick" real,
"player" text,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average draft with a pick larger than 42, and player Grant Eakin after round 8?`:
```sql
|
SELECT "venue" FROM "international_goals" WHERE "competition"='2000 afc asian cup qualification'; |
## Task
Generate a SQL query to answer the following question:
`What venue was the 2000 AFC Asian Cup qualification held at?`
### 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 venue was the 2000 AFC Asian Cup qualification held at?`:
```sql
|
SELECT MIN("goals") FROM "top_goalkeepers" WHERE "matches"<29; |
## Task
Generate a SQL query to answer the following question:
`What were the lowest goals when the matches were smaller than 29?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_goalkeepers" (
"goalkeeper" text,
"goals" real,
"matches" real,
"average" real,
"team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the lowest goals when the matches were smaller than 29?`:
```sql
|
SELECT MIN("matches") FROM "top_goalkeepers" WHERE "goals">36; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest match for goals larger than 36?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_goalkeepers" (
"goalkeeper" text,
"goals" real,
"matches" real,
"average" real,
"team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest match for goals larger than 36?`:
```sql
|
SELECT SUM("s_no") FROM "hydro_power_stations_under_construction" WHERE "completion_schedule"='2013'; |
## Task
Generate a SQL query to answer the following question:
`For the 2013 completion schedule, what is the total S.no.?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "hydro_power_stations_under_construction" (
"s_no" real,
"power_plant" text,
"state" text,
"total_capacity_mw" real,
"completion_schedule" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the 2013 completion schedule, what is the total S.no.?`:
```sql
|
SELECT "completion_schedule" FROM "hydro_power_stations_under_construction" WHERE "state"='himachal pradesh' AND "total_capacity_mw"=800; |
## Task
Generate a SQL query to answer the following question:
`What is the completion schedule for himachal pradesh state with a total capacity (MW) of 800?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "hydro_power_stations_under_construction" (
"s_no" real,
"power_plant" text,
"state" text,
"total_capacity_mw" real,
"completion_schedule" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the completion schedule for himachal pradesh state with a total capacity (MW) of 800?`:
```sql
|
SELECT MIN("s_no") FROM "hydro_power_stations_under_construction" WHERE "state"='jammu & kashmir' AND "completion_schedule"='2016'; |
## Task
Generate a SQL query to answer the following question:
`When the completion schedule is 2016 for the state of jammu & kashmir, what is the smallest S.no.?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "hydro_power_stations_under_construction" (
"s_no" real,
"power_plant" text,
"state" text,
"total_capacity_mw" real,
"completion_schedule" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the completion schedule is 2016 for the state of jammu & kashmir, what is the smallest S.no.?`:
```sql
|
SELECT "2009" FROM "singles_performance_timeline" WHERE "2012"='a' AND "2011"='1r' AND "tournament"='shanghai masters'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2009 value of the shanghai masters, which was A in 2012 and 1r in 2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2009 value of the shanghai masters, which was A in 2012 and 1r in 2011?`:
```sql
|
SELECT "2011" FROM "singles_performance_timeline" WHERE "2008"='a' AND "2012"='a' AND "2009"='a' AND "tournament"='paris masters'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2011 value of the paris masters, which had A in 2008, A in 2012, A in 2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2011 value of the paris masters, which had A in 2008, A in 2012, A in 2009?`:
```sql
|
SELECT "2012" FROM "singles_performance_timeline" WHERE "tournament"='hamburg masters'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2012 of the hamburg masters?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2012 of the hamburg masters?`:
```sql
|
SELECT "2008" FROM "singles_performance_timeline" WHERE "tournament"='hamburg masters'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2008 value of the hamburg masters?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2008 value of the hamburg masters?`:
```sql
|
SELECT "2009" FROM "singles_performance_timeline" WHERE "2012"='lq' AND "2011"='2r' AND "2008"='lq'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2009 value with lq in 2012, 2r in 2011, and lq in 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2009 value with lq in 2012, 2r in 2011, and lq in 2008?`:
```sql
|
SELECT "2010" FROM "singles_performance_timeline" WHERE "2012"='a' AND "tournament"='monte carlo masters'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2010 value of the monte carlo masters, which had A in 2012?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2010 value of the monte carlo masters, which had A in 2012?`:
```sql
|
SELECT COUNT("quantity") FROM "electric_locomotives" WHERE "drg_number_s"='e 62 01–e 62 05'; |
## Task
Generate a SQL query to answer the following question:
`What is the quantity when the DRG was E 62 01–E 62 05?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "electric_locomotives" (
"class" text,
"drg_number_s" text,
"quantity" real,
"year_s_of_manufacture" text,
"type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the quantity when the DRG was E 62 01–E 62 05?`:
```sql
|
SELECT "opponent_in_the_final" FROM "runners_up_6" WHERE "partnering"='graydon oliver'; |
## Task
Generate a SQL query to answer the following question:
`Which Opponent in the final has a Partnering of graydon oliver?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "runners_up_6" (
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponent_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent in the final has a Partnering of graydon oliver?`:
```sql
|
SELECT "score" FROM "runners_up_6" WHERE "partnering"='dmitry tursunov'; |
## Task
Generate a SQL query to answer the following question:
`which Score has a Partnering of dmitry tursunov?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "runners_up_6" (
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponent_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `which Score has a Partnering of dmitry tursunov?`:
```sql
|
SELECT "score" FROM "runners_up_6" WHERE "opponent_in_the_final"='chris haggard robbie koenig'; |
## Task
Generate a SQL query to answer the following question:
`Which Score has an Opponent in the final of chris haggard robbie koenig?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "runners_up_6" (
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponent_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has an Opponent in the final of chris haggard robbie koenig?`:
```sql
|
SELECT "partnering" FROM "runners_up_6" WHERE "score"='7–6 7 , 6–1'; |
## Task
Generate a SQL query to answer the following question:
`Which Partnering has a Score of 7–6 7 , 6–1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "runners_up_6" (
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponent_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Partnering has a Score of 7–6 7 , 6–1?`:
```sql
|
SELECT "surface" FROM "runners_up_6" WHERE "tournament"='valencia , spain'; |
## Task
Generate a SQL query to answer the following question:
`Name the Surface that of Tournament of valencia , spain?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "runners_up_6" (
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponent_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Surface that of Tournament of valencia , spain?`:
```sql
|
SELECT "opponent_in_the_final" FROM "runners_up_6" WHERE "date"='july 4, 2005'; |
## Task
Generate a SQL query to answer the following question:
`Name the Opponent in the final on july 4, 2005?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "runners_up_6" (
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponent_in_the_final" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Opponent in the final on july 4, 2005?`:
```sql
|
SELECT "result_f_a" FROM "premier_league" WHERE "league_position"='1st' AND "date"='21 february 2009'; |
## Task
Generate a SQL query to answer the following question:
`What was the Result F–A on 21 February 2009, when the league position was 1st?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "premier_league" (
"date" text,
"opponents" text,
"h_a" text,
"result_f_a" text,
"attendance" real,
"league_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Result F–A on 21 February 2009, when the league position was 1st?`:
```sql
|
SELECT "college_junior_club_team_league" FROM "2010_draft_picks" WHERE "player"='john westin'; |
## Task
Generate a SQL query to answer the following question:
`What club does John Westin play for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What club does John Westin play for?`:
```sql
|
SELECT "round" FROM "2010_draft_picks" WHERE "position"='left wing'; |
## Task
Generate a SQL query to answer the following question:
`In what round was a left wing drafted?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what round was a left wing drafted?`:
```sql
|
SELECT "player" FROM "2010_draft_picks" WHERE "round"=5; |
## Task
Generate a SQL query to answer the following question:
`What player was drafted in Round 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2010_draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player was drafted in Round 5?`:
```sql
|
SELECT "finish" FROM "made_the_cut" WHERE "year_s_won"='1991'; |
## Task
Generate a SQL query to answer the following question:
`Where did the player who won in 1991 finish?`
### 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 `Where did the player who won in 1991 finish?`:
```sql
|
SELECT "player" FROM "made_the_cut" WHERE "country"='scotland'; |
## Task
Generate a SQL query to answer the following question:
`Which player is from scotland?`
### 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 is from scotland?`:
```sql
|
SELECT "lyrics_l_music_m" FROM "semi_final_3_7_february_2009" WHERE "draw"=5; |
## Task
Generate a SQL query to answer the following question:
`What are the Lyrics (l) / Music (m) when the draw was 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "semi_final_3_7_february_2009" (
"draw" real,
"artist" text,
"song" text,
"lyrics_l_music_m" text,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the Lyrics (l) / Music (m) when the draw was 5?`:
```sql
|
SELECT "lyrics_l_music_m" FROM "semi_final_3_7_february_2009" WHERE "draw">3 AND "results"='siste sjansen' AND "song"='\"shuffled\"'; |
## Task
Generate a SQL query to answer the following question:
`What is the Lyrics (l) / Music (m) when the draw was more than 3, and the results were Siste Sjansen, and song shows"shuffled"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "semi_final_3_7_february_2009" (
"draw" real,
"artist" text,
"song" text,
"lyrics_l_music_m" text,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Lyrics (l) / Music (m) when the draw was more than 3, and the results were Siste Sjansen, and song shows"shuffled"?`:
```sql
|
SELECT "lyrics_l_music_m" FROM "semi_final_3_7_february_2009" WHERE "results"='out' AND "song"='\"left/right\"'; |
## Task
Generate a SQL query to answer the following question:
`What is the Lyrics (l) / Music (m) when the results show out, and the song shows "left/right"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "semi_final_3_7_february_2009" (
"draw" real,
"artist" text,
"song" text,
"lyrics_l_music_m" text,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Lyrics (l) / Music (m) when the results show out, and the song shows "left/right"?`:
```sql
|
SELECT "score" FROM "international_goals" WHERE "competition"='friendly'; |
## Task
Generate a SQL query to answer the following question:
`What score has friendly as the 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 score has friendly as the competition?`:
```sql
|
SELECT "home_team" FROM "first_round_proper" WHERE "date"='15 november 1986' AND "away_team"='chelmsford city'; |
## Task
Generate a SQL query to answer the following question:
`Playing against Chelmsford City on 15 November 1986, who was the home team?`
### 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 `Playing against Chelmsford City on 15 November 1986, who was the home team?`:
```sql
|
SELECT "tie_no" FROM "first_round_proper" WHERE "away_team"='lincoln city'; |
## Task
Generate a SQL query to answer the following question:
`When Lincoln City was the away team what is the tie number?`
### 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 `When Lincoln City was the away team what is the tie number?`:
```sql
|
SELECT "date" FROM "first_round_proper" WHERE "away_team"='rochdale'; |
## Task
Generate a SQL query to answer the following question:
`When was the game played that had Rochdale as the away team?`
### 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 `When was the game played that had Rochdale as the away team?`:
```sql
|
SELECT "tie_no" FROM "first_round_proper" WHERE "home_team"='scunthorpe united'; |
## Task
Generate a SQL query to answer the following question:
`Scunthorpe United as the home team has what tie number?`
### 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 `Scunthorpe United as the home team has what tie number?`:
```sql
|
SELECT "score" FROM "first_round_proper" WHERE "date"='6 december 1986'; |
## Task
Generate a SQL query to answer the following question:
`The game played on 6 December 1986 had what score?`
### 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 `The game played on 6 December 1986 had what score?`:
```sql
|
SELECT "type" FROM "express_train_locomotives" WHERE "quantity"='124'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE TYPE WITH 124?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "express_train_locomotives" (
"class" text,
"number_range" text,
"quantity" text,
"year_s_built" text,
"type" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE TYPE WITH 124?`:
```sql
|
SELECT "score" FROM "round_of_32" WHERE "total"='28:42'; |
## Task
Generate a SQL query to answer the following question:
`What is Score, when Total is "28:42"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_of_32" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Total is "28:42"?`:
```sql
|
SELECT "date" FROM "round_of_32" WHERE "set_1"='20:22'; |
## Task
Generate a SQL query to answer the following question:
`What is Date, when Set 1 is "20:22"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_of_32" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Set 1 is "20:22"?`:
```sql
|
SELECT "set_1" FROM "round_of_32" WHERE "set_2"='21:18'; |
## Task
Generate a SQL query to answer the following question:
`What is Set 1, when Set 2 is "21:18"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_of_32" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Set 1, when Set 2 is "21:18"?`:
```sql
|
SELECT "set_2" FROM "round_of_32" WHERE "total"='52:44'; |
## Task
Generate a SQL query to answer the following question:
`What is Set 2, when Total is "52:44"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_of_32" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Set 2, when Total is "52:44"?`:
```sql
|
SELECT "away_team" FROM "fifth_round_proper" WHERE "tie_no"='4'; |
## Task
Generate a SQL query to answer the following question:
`What is the away team with a 4 tie no.?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the away team with a 4 tie no.?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.