output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "title" FROM "solo_songs" WHERE "transliteration"='fal''shivaya nota'; |
## Task
Generate a SQL query to answer the following question:
`What Title's Transliteration is Fal'shivaya Nota?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "solo_songs" (
"title" text,
"russian" text,
"transliteration" text,
"original_text... |
SELECT "title" FROM "solo_songs" WHERE "transliteration"='u lyudey-to v domu'; |
## Task
Generate a SQL query to answer the following question:
`What Title has a Transliteration of u lyudey-to v domu?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "solo_songs" (
"title" text,
"russian" text,
"transliteration" text,
"origina... |
SELECT AVG("frequency_m_hz") FROM "new_mexico" WHERE "city_of_license"='portales, new mexico'; |
## Task
Generate a SQL query to answer the following question:
`What is average frequency MHZ when is in portales, new mexico?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "new_mexico" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license... |
SELECT "fcc_info" FROM "new_mexico" WHERE "erp_w">92 AND "call_sign"='k264ba'; |
## Task
Generate a SQL query to answer the following question:
`What is FCC info when ERP W is larger than 92 and call sign has k264ba?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "new_mexico" (
"call_sign" text,
"frequency_m_hz" real,
"city_o... |
SELECT "call_sign" FROM "new_mexico" WHERE "erp_w">250 AND "frequency_m_hz"<99.3; |
## Task
Generate a SQL query to answer the following question:
`Which call sign has ERP Wlarger than 250, and Frequency MHZ smaller than 99.3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "new_mexico" (
"call_sign" text,
"frequency_m_hz" real,
... |
SELECT "venue" FROM "friendly_2004" WHERE "score"='1-4'; |
## Task
Generate a SQL query to answer the following question:
`Where was the game played when the score was 1-4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "friendly_2004" (
"date" text,
"venue" text,
"opponents" text,
"score" text,
"com... |
SELECT "opponents" FROM "friendly_2004" WHERE "venue"='skytteholms ip' AND "date"='2004-02-28'; |
## Task
Generate a SQL query to answer the following question:
`Who was the game played against on 2004-02-28 at Skytteholms IP?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "friendly_2004" (
"date" text,
"venue" text,
"opponents" text,
"scor... |
SELECT "opponents" FROM "friendly_2004" WHERE "venue"='domnarvsvallen'; |
## Task
Generate a SQL query to answer the following question:
`When the game was played at Domnarvsvallen who were the opponents?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "friendly_2004" (
"date" text,
"venue" text,
"opponents" text,
"sc... |
SELECT "opponents" FROM "friendly_2004" WHERE "venue"='portugal'; |
## Task
Generate a SQL query to answer the following question:
`Who were the opposing team when playing in the Portugal venue?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "friendly_2004" (
"date" text,
"venue" text,
"opponents" text,
"score"... |
SELECT "venue" FROM "friendly_2004" WHERE "date"='2004-06-23'; |
## Task
Generate a SQL query to answer the following question:
`Where was the game played on 2004-06-23?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "friendly_2004" (
"date" text,
"venue" text,
"opponents" text,
"score" text,
"comp" text
)... |
SELECT AVG("to_par") FROM "final_round" WHERE "player"='tom weiskopf'; |
## Task
Generate a SQL query to answer the following question:
`What is the to par for Tom Weiskopf?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"m... |
SELECT "race_title" FROM "race_calendar" WHERE "winner"='george fury' AND "circuit"='oran park raceway'; |
## Task
Generate a SQL query to answer the following question:
`What title did George Fury win when on the Oran Park Raceway?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_calendar" (
"race_title" text,
"circuit" text,
"city_state" text,
... |
SELECT "winner" FROM "race_calendar" WHERE "circuit"='amaroo park'; |
## Task
Generate a SQL query to answer the following question:
`Who was the winner on the Amaroo Park circuit?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_calendar" (
"race_title" text,
"circuit" text,
"city_state" text,
"date" text,
... |
SELECT MIN("points") FROM "promotion_playoff" WHERE "goals_for"<13; |
## Task
Generate a SQL query to answer the following question:
`What are the fewest points for goals fewer than 13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "promotion_playoff" (
"position" real,
"club" text,
"played" real,
"points" real,... |
SELECT AVG("goals_for") FROM "promotion_playoff" WHERE "played">10; |
## Task
Generate a SQL query to answer the following question:
`How many goals when more than 10 games played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "promotion_playoff" (
"position" real,
"club" text,
"played" real,
"points" real,
"w... |
SELECT AVG("losses") FROM "promotion_playoff" WHERE "goals_against">17 AND "goal_difference"<2 AND "points">5; |
## Task
Generate a SQL query to answer the following question:
`How many losses when goals against are more than 17, goal difference is more than 2 and points are more than 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "promotion_playoff" (
"posi... |
SELECT COUNT("draws") FROM "promotion_playoff" WHERE "wins"<6 AND "goal_difference"<-15; |
## Task
Generate a SQL query to answer the following question:
`How many draws when there are fewer than 6 wins and the goal difference is less than -15?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "promotion_playoff" (
"position" real,
"club" t... |
SELECT COUNT("draw") FROM "references" WHERE "rank"='3rd' AND "performer"='noelle' AND "points">79; |
## Task
Generate a SQL query to answer the following question:
`How much Draw has a Rank of 3rd, and a Performer of noelle, and Points larger than 79?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"draw" real,
"song" text,
"perfor... |
SELECT AVG("draw") FROM "references" WHERE "performer"='jenny newman' AND "points"<77; |
## Task
Generate a SQL query to answer the following question:
`Which Draw has a Performer of jenny newman, and Points smaller than 77?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"draw" real,
"song" text,
"performer" text,
"p... |
SELECT AVG("points") FROM "references" WHERE "draw"=2; |
## Task
Generate a SQL query to answer the following question:
`Which Points have a Draw of 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"draw" real,
"song" text,
"performer" text,
"points" real,
"rank" text
);
### SQL
Giv... |
SELECT COUNT("stage") FROM "stages" WHERE "arrival"='son bou'; |
## Task
Generate a SQL query to answer the following question:
`Which stage number did son bou arrive at?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stages" (
"stage" real,
"start" text,
"arrival" text,
"duration" text,
"difficulty" text... |
SELECT "duration" FROM "stages" WHERE "stage">13 AND "difficulty"='middle' AND "start"='son bou'; |
## Task
Generate a SQL query to answer the following question:
`How long does the one that stars with son bou of middle difficulty, and on a stage number larger than 13 last?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stages" (
"stage" real,
"... |
SELECT MIN("stage") FROM "stages" WHERE "difficulty"='middle' AND "start"='els alocs'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest stage number that starts with els alocs and has a middle difficulty?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stages" (
"stage" real,
"start" text,
"arrival... |
SELECT "price" FROM "saudi_arabia" WHERE "upstream"='256 kbit' AND "downstream"='512 kbit'; |
## Task
Generate a SQL query to answer the following question:
`What is the price of the internet provider that has an upstream rate of 256 kbit and a downstream rate of 512 kbit?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "saudi_arabia" (
"inter... |
SELECT "bandwidth_included" FROM "saudi_arabia" WHERE "price"='266 sar'; |
## Task
Generate a SQL query to answer the following question:
`For the provider that costs 266 sar, what is the Bandwidth Included?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "saudi_arabia" (
"internet_plan" text,
"downstream" text,
"upstrea... |
SELECT "internet_plan" FROM "saudi_arabia" WHERE "downstream"='4,096 kbit'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the plan that has a downstream rate of 4,096 kbit?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "saudi_arabia" (
"internet_plan" text,
"downstream" text,
"upstr... |
SELECT "record" FROM "game_log" WHERE "score"='l 121–127'; |
## Task
Generate a SQL query to answer the following question:
`Which record has a score of l 121–127?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"loc... |
SELECT "high_points" FROM "game_log" WHERE "game">69 AND "team"='san francisco'; |
## Task
Generate a SQL query to answer the following question:
`What high points did San Francisco have in a game later than 69?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
... |
SELECT "record" FROM "game_log" WHERE "date"='march 10'; |
## Task
Generate a SQL query to answer the following question:
`What is the record for March 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"location_... |
SELECT "high_points" FROM "game_log" WHERE "game"<80 AND "score"='l 123–142'; |
## Task
Generate a SQL query to answer the following question:
`What high points did a game earlier than 80 have with a score of l 123–142?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"scor... |
SELECT MIN("year") FROM "bathurst_1000_results" WHERE "co_driver"='warren luff' AND "position"='7th' AND "laps"<161; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest Year, when Co-Driver is Warren Luff, when Position is 7th, and when Laps is less than 161?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bathurst_1000_results" (
"ye... |
SELECT "position" FROM "bathurst_1000_results" WHERE "laps"=156; |
## Task
Generate a SQL query to answer the following question:
`What is Position, when Laps is 156?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bathurst_1000_results" (
"year" real,
"number" real,
"team" text,
"co_driver" text,
"position"... |
SELECT MAX("year") FROM "bathurst_1000_results" WHERE "laps">161; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Year, when Laps is greater than 161?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bathurst_1000_results" (
"year" real,
"number" real,
"team" text,
"co_drive... |
SELECT MAX("season") FROM "season_standings" WHERE "combined"='13' AND "giant_slalom">31; |
## Task
Generate a SQL query to answer the following question:
`What season had a combined of 13 and a Giant Slalom more than 31?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_standings" (
"season" real,
"overall" real,
"slalom" text,
... |
SELECT COUNT("season") FROM "season_standings" WHERE "downhill"='35' AND "overall">21; |
## Task
Generate a SQL query to answer the following question:
`What season had a downhill of 35 and overall greater than 21?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_standings" (
"season" real,
"overall" real,
"slalom" text,
"gia... |
SELECT "super_g" FROM "season_standings" WHERE "overall">7 AND "combined"='13'; |
## Task
Generate a SQL query to answer the following question:
`What's the Super G when the combined was 13 and the overall was more than 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_standings" (
"season" real,
"overall" real,
"slalo... |
SELECT "time" FROM "moto_gp_classification" WHERE "laps"=22 AND "grid"=15; |
## Task
Generate a SQL query to answer the following question:
`What is Time, when Laps is 22, and when Grid is 15?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time"... |
SELECT AVG("grid") FROM "moto_gp_classification" WHERE "time"='+45.855'; |
## Task
Generate a SQL query to answer the following question:
`What is the average Grid, when Time is +45.855?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time" tex... |
SELECT COUNT("grid") FROM "moto_gp_classification" WHERE "time"='+43.191' AND "laps"<22; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of Grid, when Time is +43.191, and when Laps is less than 22?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufact... |
SELECT "place" FROM "second_round" WHERE "player"='mark o''meara'; |
## Task
Generate a SQL query to answer the following question:
`What is the place of Mark O'Meara?`
### 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
);
###... |
SELECT "player" FROM "second_round" WHERE "score"='71-72=143'; |
## Task
Generate a SQL query to answer the following question:
`Which player has a score of 71-72=143?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);... |
SELECT "score" FROM "second_round" WHERE "country"='united states' AND "place"='t1' AND "player"='david duval'; |
## Task
Generate a SQL query to answer the following question:
`What is the score for the United States in place T1 for David Duval?`
### 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,
"s... |
SELECT "player" FROM "second_round" WHERE "country"='united states' AND "score"='71-72=143'; |
## Task
Generate a SQL query to answer the following question:
`Who is the player from the United States with a score of 71-72=143?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"sc... |
SELECT "country" FROM "second_round" WHERE "player"='scott mccarron'; |
## Task
Generate a SQL query to answer the following question:
`Which country is Scott McCarron from?`
### 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
);
... |
SELECT "country" FROM "second_round" WHERE "place"='t1' AND "score"='71-68=139'; |
## Task
Generate a SQL query to answer the following question:
`Which country is in T1 place with a score of 71-68=139?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
... |
SELECT "venue" FROM "international_goals" WHERE "competition"='friendly' AND "date"='26 may 1999'; |
## Task
Generate a SQL query to answer the following question:
`what is the venue when the competition is friendly on 26 may 1999?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"venue" text,
"r... |
SELECT "place" FROM "third_round" WHERE "country"='australia'; |
## Task
Generate a SQL query to answer the following question:
`What was Australia's place?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"hole" text... |
SELECT "score" FROM "third_round" WHERE "country"='united states' AND "to_par"='e' AND "player"='mike reid'; |
## Task
Generate a SQL query to answer the following question:
`What was the score for United States when the player was Mike Reid and the To par was e?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"... |
SELECT "hole" FROM "third_round" WHERE "country"='united states' AND "player"='mike reid'; |
## Task
Generate a SQL query to answer the following question:
`How many holes did Mike Reid from United States have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"t... |
SELECT "name" FROM "main_round" WHERE "position"<2; |
## Task
Generate a SQL query to answer the following question:
`Which Name has a Position smaller than 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "main_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
... |
SELECT COUNT("lost") FROM "main_round" WHERE "position">2 AND "name"='sg münchen (n)' AND "drawn">0; |
## Task
Generate a SQL query to answer the following question:
`Which Lost has a Position larger than 2, a Name of sg münchen (n), and a Drawn larger than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "main_round" (
"position" real,
"name" text... |
SELECT MIN("drawn") FROM "main_round" WHERE "position"=2 AND "lost">2; |
## Task
Generate a SQL query to answer the following question:
`Which Drawn has a Position of 2, and a Lost larger than 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "main_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
... |
SELECT COUNT("played") FROM "main_round" WHERE "position"=3 AND "points"<15; |
## Task
Generate a SQL query to answer the following question:
`Which Played has a Position of 3, and a Points smaller than 15?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "main_round" (
"position" real,
"name" text,
"played" real,
"drawn" r... |
SELECT MAX("played") FROM "main_round" WHERE "position">5 AND "points">0 AND "drawn"<0; |
## Task
Generate a SQL query to answer the following question:
`Which Played has a Position larger than 5, a Points larger than 0, and a Drawn smaller than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "main_round" (
"position" real,
"name" tex... |
SELECT "score" FROM "april" WHERE "visitor"='miami'; |
## Task
Generate a SQL query to answer the following question:
`What is the score when Miami is the visitor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "april" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" tex... |
SELECT "record" FROM "april" WHERE "score"='76-85'; |
## Task
Generate a SQL query to answer the following question:
`For the game that was 76-85, what was the record?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "april" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer... |
SELECT "visitor" FROM "april" WHERE "date"='april 18'; |
## Task
Generate a SQL query to answer the following question:
`On April 18, which team was the visitor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "april" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
... |
SELECT "leading_scorer" FROM "april" WHERE "date"='april 7'; |
## Task
Generate a SQL query to answer the following question:
`Who was the leading scorer on April 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "april" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"... |
SELECT "home" FROM "april" WHERE "date"='april 14'; |
## Task
Generate a SQL query to answer the following question:
`Where was the home court on April 14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "april" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"a... |
SELECT "record" FROM "season_schedule" WHERE "team"='boston celtics'; |
## Task
Generate a SQL query to answer the following question:
`What is the boston celtics' record?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"game" real,
"date" text,
"team" text,
"score" text,
"record" text,
"stre... |
SELECT "score" FROM "season_schedule" WHERE "record"='9–8'; |
## Task
Generate a SQL query to answer the following question:
`Which Score has a Record of 9–8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"game" real,
"date" text,
"team" text,
"score" text,
"record" text,
"streak"... |
SELECT "date" FROM "season_schedule" WHERE "streak"='loss 2' AND "team"='@ boston celtics'; |
## Task
Generate a SQL query to answer the following question:
`Which Date has a Streak of loss 2, and a Team of @ boston celtics?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"game" real,
"date" text,
"team" text,
"score"... |
SELECT "date" FROM "season_schedule" WHERE "streak"='win 1' AND "record"='8–4'; |
## Task
Generate a SQL query to answer the following question:
`Which Date has a Streak of win 1, and a Record of 8–4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"game" real,
"date" text,
"team" text,
"score" text,
"re... |
SELECT MAX("score") FROM "first_round" WHERE "player"='grier jones'; |
## Task
Generate a SQL query to answer the following question:
`What was the top score for grier jones?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);... |
SELECT "to_par" FROM "first_round" WHERE "score"=70; |
## Task
Generate a SQL query to answer the following question:
`Which To par is scored at 70?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
### SQL
G... |
SELECT "place" FROM "first_round" WHERE "score"<70 AND "country"='united states' AND "player"='hubert green'; |
## Task
Generate a SQL query to answer the following question:
`In what place did hubert green score below 70 in the united states?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"sco... |
SELECT "driver_passenger" FROM "riders" WHERE "bike_no"<4 AND "equipment"='zabel -vmc'; |
## Task
Generate a SQL query to answer the following question:
`Which Driver and passenger have a bike number of less than 4 with zabel -vmc equipment?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "riders" (
"position" real,
"driver_passenger" te... |
SELECT AVG("slalom") FROM "final_standings" WHERE "average">99.25; |
## Task
Generate a SQL query to answer the following question:
`What's the slalom when the average time was greater than 99.25?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_standings" (
"place" real,
"competitor" text,
"downhill" real,
... |
SELECT SUM("place") FROM "final_standings" WHERE "average"<90.06 AND "downhill"=71.6; |
## Task
Generate a SQL query to answer the following question:
`Where was the place that the downhill was 71.6 and the average was less than 90.06?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_standings" (
"place" real,
"competitor" text,
... |
SELECT "icao" FROM "references" WHERE "airport"='sibulan airport'; |
## Task
Generate a SQL query to answer the following question:
`What is ICAO, when Airport is "Sibulan Airport"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" te... |
SELECT "icao" FROM "references" WHERE "iata"='hkg'; |
## Task
Generate a SQL query to answer the following question:
`What is ICAO, when IATA is "HKG"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
G... |
SELECT "iata" FROM "references" WHERE "icao"='vhhh'; |
## Task
Generate a SQL query to answer the following question:
`What is IATA, when ICAO is "VHHH"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
... |
SELECT "city" FROM "references" WHERE "iata"='lao'; |
## Task
Generate a SQL query to answer the following question:
`What is City, when IATA is "LAO"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
G... |
SELECT "country" FROM "references" WHERE "city"='zamboanga'; |
## Task
Generate a SQL query to answer the following question:
`What is Country, when City is "Zamboanga"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
... |
SELECT MAX("drawn") FROM "final_table" WHERE "position"=12; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number drawn when the position was 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,... |
SELECT MAX("goals_against") FROM "final_table" WHERE "goals_for">55 AND "goal_difference"='+24'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number of goals against when the number of goals were 55 and the difference was +24?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_table" (
"position" real,
... |
SELECT AVG("lost") FROM "final_table" WHERE "goals_against">57 AND "position"<17 AND "drawn"=8 AND "team"='hyde united'; |
## Task
Generate a SQL query to answer the following question:
`What is the average number lost for hyde united when they had a smaller position than 17, 8 draws, and more than 57 goals against?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_tab... |
SELECT MAX("played") FROM "final_table" WHERE "points_1"='36 2' AND "goals_against"<74; |
## Task
Generate a SQL query to answer the following question:
`What is the highest played when there was less than 74 goals against and points 1 of 36 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_table" (
"position" real,
"team" text,
... |
SELECT "diameter_km" FROM "farra" WHERE "longitude"='8.0e'; |
## Task
Generate a SQL query to answer the following question:
`How long is the diameter that has a longitude of 8.0e?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "farra" (
"name" text,
"latitude" text,
"longitude" text,
"diameter_km" real,
... |
SELECT "name" FROM "farra" WHERE "year_named"=1994 AND "diameter_km">125 AND "latitude"='30.0s'; |
## Task
Generate a SQL query to answer the following question:
`What name was given in 1994 when the diameter (km) was larger than 125 and the latitude was 30.0s?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "farra" (
"name" text,
"latitude" text... |
SELECT "longitude" FROM "farra" WHERE "year_named"=1994 AND "name"='carmenta farra'; |
## Task
Generate a SQL query to answer the following question:
`What is the longitude of Carmenta Farra in 1994?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "farra" (
"name" text,
"latitude" text,
"longitude" text,
"diameter_km" real,
"yea... |
SELECT "no_5" FROM "male_names" WHERE "no_6"='ethan' AND "no_4"='william' AND "no_9"='john'; |
## Task
Generate a SQL query to answer the following question:
`Name the No. 5 which has a No. 6 of ethan, and a No. 4 of william, and a No. 9 of john?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "male_names" (
"region_year" text,
"no_1" text,
... |
SELECT "no_2" FROM "male_names" WHERE "no_3"='jacob' AND "no_10"='wyatt' AND "no_6"='ethan'; |
## Task
Generate a SQL query to answer the following question:
`Name the No. 2 which has a No. 3 of jacob, and a No. 10 of wyatt, and a No. 6 of ethan?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "male_names" (
"region_year" text,
"no_1" text,
... |
SELECT "no_3" FROM "male_names" WHERE "no_7"='logan' AND "no_5"='jackson'; |
## Task
Generate a SQL query to answer the following question:
`Name the No. 3 which has a No. 7 of logan, and a No. 5 of jackson?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "male_names" (
"region_year" text,
"no_1" text,
"no_2" text,
"no_3... |
SELECT "no_5" FROM "male_names" WHERE "no_8"='logan' AND "no_10"='ethan' AND "no_4"='jacob'; |
## Task
Generate a SQL query to answer the following question:
`Name the No. 5 which has a No. 8 of logan, and a No. 10 of ethan, and a No. 4 of jacob?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "male_names" (
"region_year" text,
"no_1" text,
... |
SELECT "no_8" FROM "male_names" WHERE "no_4"='benjamin' AND "no_3"='liam'; |
## Task
Generate a SQL query to answer the following question:
`Name the No. 8 which has a No. 4 of benjamin, and a No. 3 of liam?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "male_names" (
"region_year" text,
"no_1" text,
"no_2" text,
"no_3... |
SELECT "no_10" FROM "male_names" WHERE "no_8"='jackson' AND "no_9"='jayden'; |
## Task
Generate a SQL query to answer the following question:
`Name the No. 10 which has a No. 8 of jackson, and a No. 9 of jayden?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "male_names" (
"region_year" text,
"no_1" text,
"no_2" text,
"no... |
SELECT "date" FROM "new_mexico" WHERE "sample_size"<472 AND "republican"='ron paul'; |
## Task
Generate a SQL query to answer the following question:
`What was the date for Ron Paul as republican and a sample sized less than 472?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "new_mexico" (
"poll_source" text,
"sample_size" real,
"... |
SELECT "democrat" FROM "new_mexico" WHERE "sample_size"<495 AND "republican"='mike huckabee'; |
## Task
Generate a SQL query to answer the following question:
`Who was the Democrat when the Republican was Mike Huckabee, and the sample size was less than 495?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "new_mexico" (
"poll_source" text,
"sa... |
SELECT AVG("attendance") FROM "schedule" WHERE "week"=9; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance in week 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
### ... |
SELECT MAX("week") FROM "schedule" WHERE "attendance"='52,714'; |
## Task
Generate a SQL query to answer the following question:
`What week had attendance of 52,714?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
###... |
SELECT AVG("gold") FROM "summer_paralympics" WHERE "silver"=1 AND "event"='2000 summer paralympics' AND "bronze">3; |
## Task
Generate a SQL query to answer the following question:
`what is the gold when silver is 1, event is 2000 summer paralympics and bronze is more than 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summer_paralympics" (
"event" text,
"gold... |
SELECT COUNT("total") FROM "summer_paralympics" WHERE "bronze"=2 AND "gold">3; |
## Task
Generate a SQL query to answer the following question:
`how many times is bronze 2 and gold more than 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summer_paralympics" (
"event" text,
"gold" real,
"silver" real,
"bronze" real,
"t... |
SELECT MAX("gold") FROM "summer_paralympics" WHERE "silver"=1 AND "bronze"<0; |
## Task
Generate a SQL query to answer the following question:
`what is the highest gold when silver is 1 and bronze is less than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summer_paralympics" (
"event" text,
"gold" real,
"silver" real,
... |
SELECT MAX("bronze") FROM "summer_paralympics" WHERE "silver"<1 AND "gold">0; |
## Task
Generate a SQL query to answer the following question:
`what is the highest bronze when silver is less than 1 and gold is more than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summer_paralympics" (
"event" text,
"gold" real,
"silve... |
SELECT MAX("silver") FROM "summer_paralympics" WHERE "event"='2008 summer paralympics' AND "bronze"<1; |
## Task
Generate a SQL query to answer the following question:
`what is the most silver when the event is 2008 summer paralympics and bronze is less than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summer_paralympics" (
"event" text,
"gold" ... |
SELECT "album_title" FROM "discography" WHERE "title"='滑板'; |
## Task
Generate a SQL query to answer the following question:
`Which Album title has a Title of 滑板?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "discography" (
"release_date" text,
"album_title" text,
"record_label" text,
"disc_number" text... |
SELECT "record_label" FROM "discography" WHERE "title"='诀别诗'; |
## Task
Generate a SQL query to answer the following question:
`Which Record label has a Title of 诀别诗?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "discography" (
"release_date" text,
"album_title" text,
"record_label" text,
"disc_number" te... |
SELECT "track_number" FROM "discography" WHERE "album_title"='文武双全升级版' AND "title"='老爸你别装酷'; |
## Task
Generate a SQL query to answer the following question:
`Which Track number has a Album title of 文武双全升级版, and a Title of 老爸你别装酷?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "discography" (
"release_date" text,
"album_title" text,
"recor... |
SELECT "disc_number" FROM "discography" WHERE "track_number"='02' AND "release_date"='7 september 2004'; |
## Task
Generate a SQL query to answer the following question:
`What kind of Disc number has a Track number of 02 on 7 september 2004?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "discography" (
"release_date" text,
"album_title" text,
"record... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.