output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "country" FROM "second_round" WHERE "score"='69-69=138' AND "player"='ian poulter'; |
## Task
Generate a SQL query to answer the following question:
`What is Country, when Score is "69-69=138", and when Player is "Ian Poulter"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Country, when Score is "69-69=138", and when Player is "Ian Poulter"?`:
```sql
|
SELECT "score" FROM "second_round" WHERE "country"='scotland'; |
## Task
Generate a SQL query to answer the following question:
`What is Score, when Country is "Scotland"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Country is "Scotland"?`:
```sql
|
SELECT "score" FROM "second_round" WHERE "country"='united states' AND "player"='bob tway'; |
## Task
Generate a SQL query to answer the following question:
`What is Score, when Country is "United States", and when Player is "Bob Tway"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Country is "United States", and when Player is "Bob Tway"?`:
```sql
|
SELECT "score" FROM "second_round" WHERE "player"='ernie els'; |
## Task
Generate a SQL query to answer the following question:
`What is Score, when Player is "Ernie Els"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Player is "Ernie Els"?`:
```sql
|
SELECT MIN("pick") FROM "american_football_league" WHERE "overall"=244; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest Pick with Overall of 244?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "american_football_league" (
"year" real,
"round" real,
"pick" real,
"overall" real,
"player_name" text,
"position" text,
"afl_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest Pick with Overall of 244?`:
```sql
|
SELECT MIN("pick") FROM "american_football_league" WHERE "overall">17 AND "player_name"='dave adams category:articles with hcards' AND "year">1963; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest Pick with Overall larger than 17, a Player name of dave adams category:articles with hcards, and a Year larger than 1963?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "american_football_league" (
"year" real,
"round" real,
"pick" real,
"overall" real,
"player_name" text,
"position" text,
"afl_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest Pick with Overall larger than 17, a Player name of dave adams category:articles with hcards, and a Year larger than 1963?`:
```sql
|
SELECT MAX("year") FROM "american_football_league" WHERE "player_name"='dave adams category:articles with hcards' AND "round"<23; |
## Task
Generate a SQL query to answer the following question:
`What is the greatest Year with a Player name of dave adams category:articles with hcards, and a Round smaller than 23?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "american_football_league" (
"year" real,
"round" real,
"pick" real,
"overall" real,
"player_name" text,
"position" text,
"afl_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the greatest Year with a Player name of dave adams category:articles with hcards, and a Round smaller than 23?`:
```sql
|
SELECT SUM("round") FROM "mixed_martial_arts_record" WHERE "res"='win' AND "opponent"='demian maia'; |
## Task
Generate a SQL query to answer the following question:
`Name the Round that has Res of win and an Opponent of demian maia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Round that has Res of win and an Opponent of demian maia?`:
```sql
|
SELECT "event" FROM "mixed_martial_arts_record" WHERE "opponent"='kendall grove'; |
## Task
Generate a SQL query to answer the following question:
`which Event that has an Opponent of kendall grove?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `which Event that has an Opponent of kendall grove?`:
```sql
|
SELECT "time" FROM "mixed_martial_arts_record" WHERE "event"='ufc 123'; |
## Task
Generate a SQL query to answer the following question:
`When has an Event of ufc 123?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `When has an Event of ufc 123?`:
```sql
|
SELECT "region" FROM "censorship_by_country" WHERE "country"='laos'; |
## Task
Generate a SQL query to answer the following question:
`The country of Laos is in what region?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "censorship_by_country" (
"country" text,
"region" text,
"fh_freepressreport" text,
"rwb_pressfreedomindex" text,
"internetlists" text,
"on_ipoliticalfiltering" text,
"on_isocialfiltering" text,
"on_isecurityfiltering" text,
"on_itoolsfiltering" text
);
### SQL
Given the database schema, here is the SQL query that answers `The country of Laos is in what region?`:
```sql
|
SELECT "country" FROM "censorship_by_country" WHERE "internetlists"='—' AND "on_isecurityfiltering"='—'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the country that has internetlists of —, and ONIsecurityfiltering of —?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "censorship_by_country" (
"country" text,
"region" text,
"fh_freepressreport" text,
"rwb_pressfreedomindex" text,
"internetlists" text,
"on_ipoliticalfiltering" text,
"on_isocialfiltering" text,
"on_isecurityfiltering" text,
"on_itoolsfiltering" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the country that has internetlists of —, and ONIsecurityfiltering of —?`:
```sql
|
SELECT "on_itoolsfiltering" FROM "censorship_by_country" WHERE "fh_freepressreport"='54' AND "on_isocialfiltering"='ne'; |
## Task
Generate a SQL query to answer the following question:
`With a FHFreepressreport of 54, and ne as ONIsocialfiltering, what is the ONItoolsfiltering?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "censorship_by_country" (
"country" text,
"region" text,
"fh_freepressreport" text,
"rwb_pressfreedomindex" text,
"internetlists" text,
"on_ipoliticalfiltering" text,
"on_isocialfiltering" text,
"on_isecurityfiltering" text,
"on_itoolsfiltering" text
);
### SQL
Given the database schema, here is the SQL query that answers `With a FHFreepressreport of 54, and ne as ONIsocialfiltering, what is the ONItoolsfiltering?`:
```sql
|
SELECT "results" FROM "arizona" WHERE "district"='arizona 1'; |
## Task
Generate a SQL query to answer the following question:
`What were the Results in Arizona 1 District?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "arizona" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the Results in Arizona 1 District?`:
```sql
|
SELECT "district" FROM "arizona" WHERE "party"='republican' AND "results"='re-elected' AND "first_elected"=2000; |
## Task
Generate a SQL query to answer the following question:
`What Republican District had Incumbent First Elected in 2000 then Re-elected?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "arizona" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Republican District had Incumbent First Elected in 2000 then Re-elected?`:
```sql
|
SELECT AVG("first_elected") FROM "arizona" WHERE "incumbent"='john shadegg'; |
## Task
Generate a SQL query to answer the following question:
`What is John Shadegg's First Elected date?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "arizona" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is John Shadegg's First Elected date?`:
```sql
|
SELECT "date" FROM "singles_28" WHERE "opponent"='lamine ouahab'; |
## Task
Generate a SQL query to answer the following question:
`On which date was the opponent lamine ouahab?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_28" (
"edition" text,
"round" text,
"date" text,
"against" text,
"surface" text,
"opponent" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `On which date was the opponent lamine ouahab?`:
```sql
|
SELECT "date" FROM "singles_28" WHERE "round"='1r' AND "result"='2–6, 5–7, 2–6'; |
## Task
Generate a SQL query to answer the following question:
`On what date did the match take place in a round of 1r and have a result 2–6, 5–7, 2–6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_28" (
"edition" text,
"round" text,
"date" text,
"against" text,
"surface" text,
"opponent" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date did the match take place in a round of 1r and have a result 2–6, 5–7, 2–6?`:
```sql
|
SELECT "result" FROM "singles_28" WHERE "round"='1r' AND "surface"='hard' AND "against"='tunisia'; |
## Task
Generate a SQL query to answer the following question:
`What is the result of the match in round 1r against tunisia and on a hard surface?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_28" (
"edition" text,
"round" text,
"date" text,
"against" text,
"surface" text,
"opponent" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result of the match in round 1r against tunisia and on a hard surface?`:
```sql
|
SELECT "against" FROM "singles_28" WHERE "round"='2r' AND "surface"='clay'; |
## Task
Generate a SQL query to answer the following question:
`Who was the match against when on a clay surface during round 2r?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_28" (
"edition" text,
"round" text,
"date" text,
"against" text,
"surface" text,
"opponent" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the match against when on a clay surface during round 2r?`:
```sql
|
SELECT "round" FROM "singles_28" WHERE "edition"='2010 davis cup europe/africa group ii' AND "against"='cyprus'; |
## Task
Generate a SQL query to answer the following question:
`What round had a amtch against cyprus and an edition of 2010 davis cup europe/africa group ii?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_28" (
"edition" text,
"round" text,
"date" text,
"against" text,
"surface" text,
"opponent" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round had a amtch against cyprus and an edition of 2010 davis cup europe/africa group ii?`:
```sql
|
SELECT MAX("year") FROM "time_progression_in_the_100_m" WHERE "time"=10.56; |
## Task
Generate a SQL query to answer the following question:
`What is the most recent year with a time of 10.56?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "time_progression_in_the_100_m" (
"year" real,
"time" real,
"windspeed" text,
"city" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most recent year with a time of 10.56?`:
```sql
|
SELECT "date" FROM "friendlies" WHERE "opponents"='astley bridge ''a'''; |
## Task
Generate a SQL query to answer the following question:
`When was the game played against Astley Bridge 'a'?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "friendlies" (
"date" text,
"opponents" text,
"h_a" text,
"result_f_a" text,
"scorers" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the game played against Astley Bridge 'a'?`:
```sql
|
SELECT "week_5" FROM "2003" WHERE "week_4"='nicole woodruff'; |
## Task
Generate a SQL query to answer the following question:
`Who was the girl of the week after nicole woodruff in the same month?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2003" (
"week_1" text,
"week_2" text,
"week_3" text,
"week_4" text,
"week_5" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the girl of the week after nicole woodruff in the same month?`:
```sql
|
SELECT "week_5" FROM "2003" WHERE "week_2"='brianne bailey'; |
## Task
Generate a SQL query to answer the following question:
`Who was the girl of the week 3 weeks after brianne bailey in the same month?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2003" (
"week_1" text,
"week_2" text,
"week_3" text,
"week_4" text,
"week_5" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the girl of the week 3 weeks after brianne bailey in the same month?`:
```sql
|
SELECT "week_2" FROM "2003" WHERE "week_4"='terri lynn farrow'; |
## Task
Generate a SQL query to answer the following question:
`Who was the girl of the week 2 weeks before terri lynn farrow in the same month?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2003" (
"week_1" text,
"week_2" text,
"week_3" text,
"week_4" text,
"week_5" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the girl of the week 2 weeks before terri lynn farrow in the same month?`:
```sql
|
SELECT "tries" FROM "scorers" WHERE "points"=20; |
## Task
Generate a SQL query to answer the following question:
`How many tries did the player have which ended with 20 Points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scorers" (
"player" text,
"tries" real,
"goals" text,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many tries did the player have which ended with 20 Points?`:
```sql
|
SELECT MAX("points") FROM "scorers" WHERE "field_goals"=0 AND "goals"='0' AND "player"='justin hodges'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number of points that Justin Hodges earned with 0 field goals and 0 regular goals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scorers" (
"player" text,
"tries" real,
"goals" text,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of points that Justin Hodges earned with 0 field goals and 0 regular goals?`:
```sql
|
SELECT AVG("points") FROM "regular_season" WHERE "date"='february 2' AND "attendance"<'16,874'; |
## Task
Generate a SQL query to answer the following question:
`What is the average Points, when Date is "February 2", and when Attendance is less than 16,874?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text,
"arena" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Points, when Date is "February 2", and when Attendance is less than 16,874?`:
```sql
|
SELECT MIN("attendance") FROM "regular_season" WHERE "date"='february 4' AND "points"<57; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest Attendance, when Date is "February 4", and when Points is less than 57?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text,
"arena" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Attendance, when Date is "February 4", and when Points is less than 57?`:
```sql
|
SELECT "years" FROM "state_titles" WHERE "total"='1' AND "sport"='softball'; |
## Task
Generate a SQL query to answer the following question:
`For a total of 1 and the sport of softball what were the years?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "state_titles" (
"school" text,
"sport" text,
"titles" text,
"years" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `For a total of 1 and the sport of softball what were the years?`:
```sql
|
SELECT "total" FROM "state_titles" WHERE "years"='1925'; |
## Task
Generate a SQL query to answer the following question:
`What was the total for the year of 1925?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "state_titles" (
"school" text,
"sport" text,
"titles" text,
"years" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total for the year of 1925?`:
```sql
|
SELECT "label" FROM "release_history" WHERE "format"='limited edition cd/dvd'; |
## Task
Generate a SQL query to answer the following question:
`Which label is in a limited edition cd/dvd format?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"country" text,
"date" text,
"label" text,
"format" text,
"catalogue_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which label is in a limited edition cd/dvd format?`:
```sql
|
SELECT "date" FROM "release_history" WHERE "country"='united kingdom' AND "format"='lp'; |
## Task
Generate a SQL query to answer the following question:
`What is the date for the United Kingdom with an LP format?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"country" text,
"date" text,
"label" text,
"format" text,
"catalogue_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date for the United Kingdom with an LP format?`:
```sql
|
SELECT "format" FROM "release_history" WHERE "country"='japan'; |
## Task
Generate a SQL query to answer the following question:
`Which format is in Japan?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"country" text,
"date" text,
"label" text,
"format" text,
"catalogue_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which format is in Japan?`:
```sql
|
SELECT "format" FROM "release_history" WHERE "country"='united kingdom' AND "catalogue_num"='886973273913 (gowow012)'; |
## Task
Generate a SQL query to answer the following question:
`What is the format of catalog number 886973273913 (gowow012) in the United Kingdom?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"country" text,
"date" text,
"label" text,
"format" text,
"catalogue_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the format of catalog number 886973273913 (gowow012) in the United Kingdom?`:
```sql
|
SELECT MIN("apps") FROM "most_goals_in_a_la_liga_season_at_least_" WHERE "club"='barcelona' AND "season"='1996/97' AND "rank"<7; |
## Task
Generate a SQL query to answer the following question:
`Which Apps have a Club of barcelona, and a Season of 1996/97, and a Rank smaller than 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_goals_in_a_la_liga_season_at_least_" (
"rank" real,
"club" text,
"season" text,
"goals" real,
"apps" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Apps have a Club of barcelona, and a Season of 1996/97, and a Rank smaller than 7?`:
```sql
|
SELECT "season" FROM "most_goals_in_a_la_liga_season_at_least_" WHERE "club"='real madrid' AND "rank"<6 AND "goals"<121; |
## Task
Generate a SQL query to answer the following question:
`Which Season has a Club of real madrid, and a Rank smaller than 6, and less than 121 goals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_goals_in_a_la_liga_season_at_least_" (
"rank" real,
"club" text,
"season" text,
"goals" real,
"apps" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Season has a Club of real madrid, and a Rank smaller than 6, and less than 121 goals?`:
```sql
|
SELECT SUM("apps") FROM "most_goals_in_a_la_liga_season_at_least_" WHERE "rank">2 AND "goals"<102; |
## Task
Generate a SQL query to answer the following question:
`How many Apps have a Rank larger than 2, and Goals smaller than 102?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_goals_in_a_la_liga_season_at_least_" (
"rank" real,
"club" text,
"season" text,
"goals" real,
"apps" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Apps have a Rank larger than 2, and Goals smaller than 102?`:
```sql
|
SELECT "season" FROM "most_goals_in_a_la_liga_season_at_least_" WHERE "rank"<4 AND "club"='barcelona' AND "goals"<115; |
## Task
Generate a SQL query to answer the following question:
`Which Season has a Rank smaller than 4, and a Club of barcelona, and less than 115 goals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_goals_in_a_la_liga_season_at_least_" (
"rank" real,
"club" text,
"season" text,
"goals" real,
"apps" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Season has a Rank smaller than 4, and a Club of barcelona, and less than 115 goals?`:
```sql
|
SELECT "player" FROM "missed_the_cut" WHERE "total"=147 AND "country"='spain'; |
## Task
Generate a SQL query to answer the following question:
`What player has a 147 total from Spain?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What player has a 147 total from Spain?`:
```sql
|
SELECT "year_s_won" FROM "missed_the_cut" WHERE "total"=146; |
## Task
Generate a SQL query to answer the following question:
`What year was the 146 total?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the 146 total?`:
```sql
|
SELECT "country" FROM "missed_the_cut" WHERE "player"='paul lawrie'; |
## Task
Generate a SQL query to answer the following question:
`What country is Paul Lawrie from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What country is Paul Lawrie from?`:
```sql
|
SELECT "fuel" FROM "engines" WHERE "engine"='4cyl' AND "0_100km_h_s"=11.3; |
## Task
Generate a SQL query to answer the following question:
`Which Fuel has an Engine of 4cyl, and a 0–100km/h, s of 11.3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines" (
"name" text,
"volume" text,
"engine" text,
"fuel" text,
"output" text,
"torque" text,
"engine_id_code_s" text,
"0_100km_h_s" real,
"top_speed" text,
"co_2" text,
"years" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Fuel has an Engine of 4cyl, and a 0–100km/h, s of 11.3?`:
```sql
|
SELECT "fuel" FROM "engines" WHERE "output"='ps (kw; hp) @6000 rpm'; |
## Task
Generate a SQL query to answer the following question:
`Which Fuel has an Output of ps (kw; hp) @6000 rpm?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines" (
"name" text,
"volume" text,
"engine" text,
"fuel" text,
"output" text,
"torque" text,
"engine_id_code_s" text,
"0_100km_h_s" real,
"top_speed" text,
"co_2" text,
"years" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Fuel has an Output of ps (kw; hp) @6000 rpm?`:
```sql
|
SELECT "torque" FROM "engines" WHERE "volume"='1896 cc' AND "co_2"='140 g/km'; |
## Task
Generate a SQL query to answer the following question:
`Which Torque has a Volume of 1896 cc, and a CO 2 of 140 g/km?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines" (
"name" text,
"volume" text,
"engine" text,
"fuel" text,
"output" text,
"torque" text,
"engine_id_code_s" text,
"0_100km_h_s" real,
"top_speed" text,
"co_2" text,
"years" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Torque has a Volume of 1896 cc, and a CO 2 of 140 g/km?`:
```sql
|
SELECT COUNT("0_100km_h_s") FROM "engines" WHERE "fuel"='diesel' AND "torque"='n·m (lb·ft) @1900 rpm' AND "engine_id_code_s"='agr/alh'; |
## Task
Generate a SQL query to answer the following question:
`How much 0–100km/h, s has a Fuel of diesel, and a Torque of n·m (lb·ft) @1900 rpm, and an Engine ID code(s) of agr/alh?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines" (
"name" text,
"volume" text,
"engine" text,
"fuel" text,
"output" text,
"torque" text,
"engine_id_code_s" text,
"0_100km_h_s" real,
"top_speed" text,
"co_2" text,
"years" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much 0–100km/h, s has a Fuel of diesel, and a Torque of n·m (lb·ft) @1900 rpm, and an Engine ID code(s) of agr/alh?`:
```sql
|
SELECT "co_2" FROM "engines" WHERE "output"='ps (kw; hp) @4000 rpm' AND "0_100km_h_s"<11.1; |
## Task
Generate a SQL query to answer the following question:
`Which CO 2 has an Output of ps (kw; hp) @4000 rpm, and a 0–100km/h, s smaller than 11.1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines" (
"name" text,
"volume" text,
"engine" text,
"fuel" text,
"output" text,
"torque" text,
"engine_id_code_s" text,
"0_100km_h_s" real,
"top_speed" text,
"co_2" text,
"years" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which CO 2 has an Output of ps (kw; hp) @4000 rpm, and a 0–100km/h, s smaller than 11.1?`:
```sql
|
SELECT "venue" FROM "achievements" WHERE "year"<1986 AND "position"='6th'; |
## Task
Generate a SQL query to answer the following question:
`What Venue has a Year smaller than 1986, and a Position of 6th?`
### 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,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Venue has a Year smaller than 1986, and a Position of 6th?`:
```sql
|
SELECT "position" FROM "achievements" WHERE "time"='3:01.78'; |
## Task
Generate a SQL query to answer the following question:
`What Position has a Time of 3:01.78?`
### 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,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Position has a Time of 3:01.78?`:
```sql
|
SELECT "event" FROM "achievements" WHERE "competition"='world championships'; |
## Task
Generate a SQL query to answer the following question:
`What Event has a Competition of world championships?`
### 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,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Event has a Competition of world championships?`:
```sql
|
SELECT "time" FROM "achievements" WHERE "year"=1984; |
## Task
Generate a SQL query to answer the following question:
`What Time has a Year of 1984?`
### 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,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Time has a Year of 1984?`:
```sql
|
SELECT "competition" FROM "achievements" WHERE "year"<1983; |
## Task
Generate a SQL query to answer the following question:
`What Competition has a Year smaller than 1983?`
### 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,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Competition has a Year smaller than 1983?`:
```sql
|
SELECT SUM("weight") FROM "roster" WHERE "year"='senior' AND "height"='6–10'; |
## Task
Generate a SQL query to answer the following question:
`What is the Weight of the Senior Player with a Height of 6–10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "roster" (
"name" text,
"position" text,
"height" text,
"weight" real,
"year" text,
"home_town" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Weight of the Senior Player with a Height of 6–10?`:
```sql
|
SELECT "year" FROM "roster" WHERE "weight"<230 AND "home_town"='san antonio, texas'; |
## Task
Generate a SQL query to answer the following question:
`What is the Year of the Player with a Weight of 230 or less from San Antonio, Texas?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "roster" (
"name" text,
"position" text,
"height" text,
"weight" real,
"year" text,
"home_town" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Year of the Player with a Weight of 230 or less from San Antonio, Texas?`:
```sql
|
SELECT "height" FROM "roster" WHERE "year"='sophomore' AND "position"='guard' AND "weight"=185; |
## Task
Generate a SQL query to answer the following question:
`What is the Height of the Sophomore Guard weighing 185?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "roster" (
"name" text,
"position" text,
"height" text,
"weight" real,
"year" text,
"home_town" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Height of the Sophomore Guard weighing 185?`:
```sql
|
SELECT "year" FROM "roster" WHERE "weight"=185; |
## Task
Generate a SQL query to answer the following question:
`What is the Year of the Player weighing 185?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "roster" (
"name" text,
"position" text,
"height" text,
"weight" real,
"year" text,
"home_town" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Year of the Player weighing 185?`:
```sql
|
SELECT "club" FROM "former" WHERE "location"='thomson, victoria'; |
## Task
Generate a SQL query to answer the following question:
`Which club is located in Thomson, Victoria?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former" (
"club" text,
"nickname" text,
"location" text,
"gfl_premierships" text,
"years_in_gfl" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which club is located in Thomson, Victoria?`:
```sql
|
SELECT "nickname" FROM "former" WHERE "years_in_gfl"='1986-1988'; |
## Task
Generate a SQL query to answer the following question:
`What is the nickname of the team who was in the GFL from 1986-1988?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former" (
"club" text,
"nickname" text,
"location" text,
"gfl_premierships" text,
"years_in_gfl" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nickname of the team who was in the GFL from 1986-1988?`:
```sql
|
SELECT "location" FROM "former" WHERE "nickname"='tigers'; |
## Task
Generate a SQL query to answer the following question:
`Which location did the Tigers have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former" (
"club" text,
"nickname" text,
"location" text,
"gfl_premierships" text,
"years_in_gfl" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which location did the Tigers have?`:
```sql
|
SELECT "nickname" FROM "former" WHERE "club"='geelong west cricket & football club'; |
## Task
Generate a SQL query to answer the following question:
`What was the nickname of the team in the Geelong West Cricket & Football Club?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former" (
"club" text,
"nickname" text,
"location" text,
"gfl_premierships" text,
"years_in_gfl" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the nickname of the team in the Geelong West Cricket & Football Club?`:
```sql
|
SELECT "gfl_premierships" FROM "former" WHERE "nickname"='magpies'; |
## Task
Generate a SQL query to answer the following question:
`What GLF Premiership did the Magpies have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former" (
"club" text,
"nickname" text,
"location" text,
"gfl_premierships" text,
"years_in_gfl" text
);
### SQL
Given the database schema, here is the SQL query that answers `What GLF Premiership did the Magpies have?`:
```sql
|
SELECT "nickname" FROM "former" WHERE "club"='east geelong'; |
## Task
Generate a SQL query to answer the following question:
`What was the nickname of the team in the East Geelong club?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former" (
"club" text,
"nickname" text,
"location" text,
"gfl_premierships" text,
"years_in_gfl" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the nickname of the team in the East Geelong club?`:
```sql
|
SELECT "year_s_won" FROM "made_the_cut" WHERE "finish"='t27'; |
## Task
Generate a SQL query to answer the following question:
`What year has a winning finish of T27?`
### 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 year has a winning finish of T27?`:
```sql
|
SELECT "finish" FROM "made_the_cut" WHERE "country"='england'; |
## Task
Generate a SQL query to answer the following question:
`What was the finish for England?`
### 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 England?`:
```sql
|
SELECT "country" FROM "made_the_cut" WHERE "year_s_won"='1991'; |
## Task
Generate a SQL query to answer the following question:
`What county won in 1991?`
### 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 county won in 1991?`:
```sql
|
SELECT MAX("total") FROM "made_the_cut" WHERE "to_par"='+9'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest total to par of +9?`
### 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 highest total to par of +9?`:
```sql
|
SELECT "status" FROM "1990" WHERE "against"=12; |
## Task
Generate a SQL query to answer the following question:
`What Status has Against of 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1990" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Status has Against of 12?`:
```sql
|
SELECT "venue" FROM "1990" WHERE "date"='17/03/1990'; |
## Task
Generate a SQL query to answer the following question:
`What Venue has a Date of 17/03/1990?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1990" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Venue has a Date of 17/03/1990?`:
```sql
|
SELECT COUNT("week") FROM "schedule" WHERE "attendance"='43,272'; |
## Task
Generate a SQL query to answer the following question:
`How many weeks had an Attendance of 43,272?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many weeks had an Attendance of 43,272?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "date"='december 12, 1993'; |
## Task
Generate a SQL query to answer the following question:
`Who played on december 12, 1993?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played on december 12, 1993?`:
```sql
|
SELECT "date" FROM "matches" WHERE "opposing_team"='united states'; |
## Task
Generate a SQL query to answer the following question:
`What day was United States the opposing team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "matches" (
"opposing_team" text,
"against" real,
"date" text,
"venue" text,
"status" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day was United States the opposing team?`:
```sql
|
SELECT "opposing_team" FROM "matches" WHERE "status"='second test'; |
## Task
Generate a SQL query to answer the following question:
`What was the opposing team for the second test?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "matches" (
"opposing_team" text,
"against" real,
"date" text,
"venue" text,
"status" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the opposing team for the second test?`:
```sql
|
SELECT "opposing_team" FROM "matches" WHERE "status"='second test'; |
## Task
Generate a SQL query to answer the following question:
`What was the opposing team for the second test?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "matches" (
"opposing_team" text,
"against" real,
"date" text,
"venue" text,
"status" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the opposing team for the second test?`:
```sql
|
SELECT "round" FROM "club_and_player_records" WHERE "venue"='canberra stadium'; |
## Task
Generate a SQL query to answer the following question:
`What round was in canberra stadium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "club_and_player_records" (
"team" text,
"opponent" text,
"score" text,
"venue" text,
"round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round was in canberra stadium?`:
```sql
|
SELECT "venue" FROM "club_and_player_records" WHERE "opponent"='cronulla sharks'; |
## Task
Generate a SQL query to answer the following question:
`What is the venue of the match with cronulla sharks as the opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "club_and_player_records" (
"team" text,
"opponent" text,
"score" text,
"venue" text,
"round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue of the match with cronulla sharks as the opponent?`:
```sql
|
SELECT "opponent" FROM "club_and_player_records" WHERE "venue"='toyota stadium'; |
## Task
Generate a SQL query to answer the following question:
`Who is the opponent at toyota stadium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "club_and_player_records" (
"team" text,
"opponent" text,
"score" text,
"venue" text,
"round" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the opponent at toyota stadium?`:
```sql
|
SELECT "score" FROM "club_and_player_records" WHERE "opponent"='sydney roosters'; |
## Task
Generate a SQL query to answer the following question:
`What is the score of the match with the sydney roosters as the opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "club_and_player_records" (
"team" text,
"opponent" text,
"score" text,
"venue" text,
"round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the match with the sydney roosters as the opponent?`:
```sql
|
SELECT "venue" FROM "club_and_player_records" WHERE "opponent"='cronulla sharks'; |
## Task
Generate a SQL query to answer the following question:
`What is the venue of the match with the cronulla sharks as the opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "club_and_player_records" (
"team" text,
"opponent" text,
"score" text,
"venue" text,
"round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue of the match with the cronulla sharks as the opponent?`:
```sql
|
SELECT "location_attendance" FROM "game_log" WHERE "game"='4'; |
## Task
Generate a SQL query to answer the following question:
`What Location Attendance has a Game of 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Location Attendance has a Game of 4?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "location_attendance"='reunion arena'; |
## Task
Generate a SQL query to answer the following question:
`What Date has a Location Attendance of reunion arena?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Date has a Location Attendance of reunion arena?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "location_attendance"='delta center' AND "opponent"='vs vancouver grizzlies'; |
## Task
Generate a SQL query to answer the following question:
`What Record has a Location Attendance of delta center, and an Opponent of vs vancouver grizzlies?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Record has a Location Attendance of delta center, and an Opponent of vs vancouver grizzlies?`:
```sql
|
SELECT "location_attendance" FROM "game_log" WHERE "opponent"='at denver nuggets'; |
## Task
Generate a SQL query to answer the following question:
`What Location Attendance has an Opponent of at denver nuggets?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Location Attendance has an Opponent of at denver nuggets?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "opponent"='vs washington wizards'; |
## Task
Generate a SQL query to answer the following question:
`What Record has an Opponent of vs washington wizards?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Record has an Opponent of vs washington wizards?`:
```sql
|
SELECT "location_attendance" FROM "game_log" WHERE "game"='14'; |
## Task
Generate a SQL query to answer the following question:
`What Location Attendance has a Game of 14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Location Attendance has a Game of 14?`:
```sql
|
SELECT "score_in_final" FROM "runner_ups_5" WHERE "partnering"='robin ammerlaan' AND "opponents_in_final"='shingo kunieda maikel scheffers'; |
## Task
Generate a SQL query to answer the following question:
`What was the final score of the game against shingo kunieda maikel scheffers when robin ammerlaan was Ronald Vink's partner?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "runner_ups_5" (
"year" real,
"championship" text,
"partnering" text,
"opponents_in_final" text,
"score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score of the game against shingo kunieda maikel scheffers when robin ammerlaan was Ronald Vink's partner?`:
```sql
|
SELECT "championship" FROM "runner_ups_5" WHERE "partnering"='maikel scheffers' AND "year">2007 AND "opponents_in_final"='stephane houdet nicolas peiffer'; |
## Task
Generate a SQL query to answer the following question:
`What championship tournament did Ronald Vink play in with maikel scheffers as his partner in 2007 against stephane houdet nicolas peiffer?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "runner_ups_5" (
"year" real,
"championship" text,
"partnering" text,
"opponents_in_final" text,
"score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What championship tournament did Ronald Vink play in with maikel scheffers as his partner in 2007 against stephane houdet nicolas peiffer?`:
```sql
|
SELECT "screen_size" FROM "previous_models" WHERE "bluetooth"='no' AND "model"='s45 (australia only)'; |
## Task
Generate a SQL query to answer the following question:
`What is the screen size of the s45 (Australia only) Model with no bluetooth?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "previous_models" (
"model" text,
"screen_size" text,
"bluetooth" text,
"fm_transmitter" text,
"flash" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the screen size of the s45 (Australia only) Model with no bluetooth?`:
```sql
|
SELECT "bluetooth" FROM "previous_models" WHERE "model"='s90i'; |
## Task
Generate a SQL query to answer the following question:
`Does the S90i model have bluetooth?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "previous_models" (
"model" text,
"screen_size" text,
"bluetooth" text,
"fm_transmitter" text,
"flash" text
);
### SQL
Given the database schema, here is the SQL query that answers `Does the S90i model have bluetooth?`:
```sql
|
SELECT "bluetooth" FROM "previous_models" WHERE "model"='s35'; |
## Task
Generate a SQL query to answer the following question:
`Does the s35 model have bluetooth?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "previous_models" (
"model" text,
"screen_size" text,
"bluetooth" text,
"fm_transmitter" text,
"flash" text
);
### SQL
Given the database schema, here is the SQL query that answers `Does the s35 model have bluetooth?`:
```sql
|
SELECT "height" FROM "croatia" WHERE "club"='havk mladost'; |
## Task
Generate a SQL query to answer the following question:
`What is the height for club Havk Mladost?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "croatia" (
"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 for club Havk Mladost?`:
```sql
|
SELECT "height" FROM "croatia" WHERE "name"='nikola franković'; |
## Task
Generate a SQL query to answer the following question:
`What is the height for Nikola Franković?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "croatia" (
"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 for Nikola Franković?`:
```sql
|
SELECT "weight" FROM "croatia" WHERE "name"='damir burić'; |
## Task
Generate a SQL query to answer the following question:
`What is the weight of Damir Burić?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "croatia" (
"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 weight of Damir Burić?`:
```sql
|
SELECT "total" FROM "qualification" WHERE "rank_points"='15' AND "event"='wc beijing'; |
## Task
Generate a SQL query to answer the following question:
`What is Total, when Rank Points is "15", and when Event is "WC Beijing"?`
### 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 `What is Total, when Rank Points is "15", and when Event is "WC Beijing"?`:
```sql
|
SELECT "score_points" FROM "qualification" WHERE "event"='wc rio de janeiro' AND "rank_points"='10'; |
## Task
Generate a SQL query to answer the following question:
`What is Score Points, when Event is "WC Rio De Janeiro", and when Rank Points is "10"?`
### 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 `What is Score Points, when Event is "WC Rio De Janeiro", and when Rank Points is "10"?`:
```sql
|
SELECT "shooter" FROM "qualification" WHERE "total"='21'; |
## Task
Generate a SQL query to answer the following question:
`What is Shooter, when Total is "21"?`
### 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 `What is Shooter, when Total is "21"?`:
```sql
|
SELECT "score_points" FROM "qualification" WHERE "shooter"='sandra kolly ( sui )'; |
## Task
Generate a SQL query to answer the following question:
`What is Score Points, when Shooter is "Sandra Kolly ( SUI )"?`
### 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 `What is Score Points, when Shooter is "Sandra Kolly ( SUI )"?`:
```sql
|
SELECT "rank_points" FROM "qualification" WHERE "event"='wc milan' AND "shooter"='lalita yauhleuskaya ( aus )'; |
## Task
Generate a SQL query to answer the following question:
`What is Rank Points, when Event is "WC Milan", and when Shooter is "Lalita Yauhleuskaya ( AUS )"?`
### 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 `What is Rank Points, when Event is "WC Milan", and when Shooter is "Lalita Yauhleuskaya ( AUS )"?`:
```sql
|
SELECT "rank_points" FROM "qualification" WHERE "total"='17' AND "shooter"='lalita yauhleuskaya ( aus )'; |
## Task
Generate a SQL query to answer the following question:
`What is Rank Points, when Total is "17", and when Shooter is "Lalita Yauhleuskaya ( AUS )"?`
### 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 `What is Rank Points, when Total is "17", and when Shooter is "Lalita Yauhleuskaya ( AUS )"?`:
```sql
|
SELECT "artist" FROM "list_of_performances_on" WHERE "week"='top 6'; |
## Task
Generate a SQL query to answer the following question:
`Which Artist is listed as having Top 6 in Week`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_performances_on" (
"week" text,
"theme" text,
"song_sung" text,
"artist" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Artist is listed as having Top 6 in Week`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.