output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "to_par" FROM "final_leaderboard" WHERE "score"='74-74-74-71=293'; |
## Task
Generate a SQL query to answer the following question:
`Name the to par for score of 74-74-74-71=293`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_p... |
SELECT "player" FROM "final_leaderboard" WHERE "score"='68-68-75-74=285'; |
## Task
Generate a SQL query to answer the following question:
`Name the player for 68-68-75-74=285`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,... |
SELECT "to_par" FROM "final_leaderboard" WHERE "player"='gene kunes'; |
## Task
Generate a SQL query to answer the following question:
`Name the to par for gene kunes`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"m... |
SELECT AVG("points") FROM "complete_formula_one_results" WHERE "year"<1955; |
## Task
Generate a SQL query to answer the following question:
`What is the average Points for a year before 1955?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_results" (
"year" real,
"team" text,
"chassis" text,
"engine... |
SELECT SUM("year") FROM "complete_formula_one_results" WHERE "team"='scuderia ferrari' AND "engine"='ferrari 106 2.5 l4' AND "points">12; |
## Task
Generate a SQL query to answer the following question:
`What is the total year with a Team of scuderia ferrari, an Engine of ferrari 106 2.5 l4, and more than 12 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_resul... |
SELECT COUNT("wins") FROM "career_summary" WHERE "podiums">1 AND "races"=9 AND "season">1984; |
## Task
Generate a SQL query to answer the following question:
`How many wins has a podiums greater than 1 and 9 as the races with a season after 1984?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
... |
SELECT MAX("podiums") FROM "career_summary" WHERE "wins"=0 AND "season">1985; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Podiums with 0 as wins, and a season later than 1985?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,... |
SELECT "budget" FROM "specials" WHERE "month_year"='march 2013'; |
## Task
Generate a SQL query to answer the following question:
`What was the Top Gear budget in March 2013?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "specials" (
"month_year" text,
"episode" text,
"title" text,
"hammond_s_vehicle" text,
... |
SELECT "episode" FROM "specials" WHERE "budget"='£7,000'; |
## Task
Generate a SQL query to answer the following question:
`Which episode of Top Gear had a budget of £7,000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "specials" (
"month_year" text,
"episode" text,
"title" text,
"hammond_s_vehicle" t... |
SELECT "month_year" FROM "specials" WHERE "title"='bolivia special'; |
## Task
Generate a SQL query to answer the following question:
`Which month and year held the Bolivia Special title?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "specials" (
"month_year" text,
"episode" text,
"title" text,
"hammond_s_vehicle... |
SELECT "may_s_vehicle" FROM "specials" WHERE "hammond_s_vehicle"='1974 toyota land cruiser'; |
## Task
Generate a SQL query to answer the following question:
`When Hammond had the 1974 Toyota Land Cruiser, what was May's vehicle?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "specials" (
"month_year" text,
"episode" text,
"title" text,
... |
SELECT "college_junior_club_team" FROM "round_five" WHERE "position"='right wing'; |
## Task
Generate a SQL query to answer the following question:
`Which team has a right wing position listed?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_five" (
"pick_num" text,
"player" text,
"position" text,
"nationality" text,
"n... |
SELECT "position" FROM "round_five" WHERE "nationality"='canada' AND "nhl_team"='boston bruins'; |
## Task
Generate a SQL query to answer the following question:
`What position is the player that is from Canada and on the Boston Bruins`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_five" (
"pick_num" text,
"player" text,
"position" text... |
SELECT "position" FROM "round_five" WHERE "nhl_team"='los angeles kings'; |
## Task
Generate a SQL query to answer the following question:
`What is the position of the player on the Los Angeles Kings?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_five" (
"pick_num" text,
"player" text,
"position" text,
"nationa... |
SELECT "college_junior_club_team" FROM "round_five" WHERE "pick_num"='64'; |
## Task
Generate a SQL query to answer the following question:
`Which team has the # 64 pick?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_five" (
"pick_num" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
... |
SELECT "nationality" FROM "round_five" WHERE "pick_num"='63'; |
## Task
Generate a SQL query to answer the following question:
`What nationality is the #63 pick?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_five" (
"pick_num" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" te... |
SELECT "player" FROM "round_five" WHERE "pick_num"='69'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the player that is pick #69?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_five" (
"pick_num" text,
"player" text,
"position" text,
"nationality" text,
... |
SELECT "tyres" FROM "complete_formula_one_results" WHERE "points"=8; |
## Task
Generate a SQL query to answer the following question:
`Which tyres received 8 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_results" (
"year" real,
"chassis" text,
"engine_s" text,
"tyres" text,
"points... |
SELECT SUM("points") FROM "complete_formula_one_results" WHERE "engine_s"='ford dfz 3.5 v8'; |
## Task
Generate a SQL query to answer the following question:
`How many points were awarded to the Ford DFZ 3.5 V8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_results" (
"year" real,
"chassis" text,
"engine_s" text,
"... |
SELECT "engine_s" FROM "complete_formula_one_results" WHERE "points"=0 AND "year"=1988; |
## Task
Generate a SQL query to answer the following question:
`Which engine received 0 points in 1988?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_results" (
"year" real,
"chassis" text,
"engine_s" text,
"tyres" text,
... |
SELECT "issue_date" FROM "singles_chart" WHERE "download"='no available' AND "artist"='eric prydz'; |
## Task
Generate a SQL query to answer the following question:
`What's the Issue Date for an Eric Prydz song with a no available Download information?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_chart" (
"week" real,
"issue_date" text,
... |
SELECT "download" FROM "singles_chart" WHERE "week"=44; |
## Task
Generate a SQL query to answer the following question:
`What's the Download information for the song from Week 44?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_chart" (
"week" real,
"issue_date" text,
"artist" text,
"single" ... |
SELECT "title" FROM "singles_chart" WHERE "download"='crazy frog' AND "issue_date"='july 2'; |
## Task
Generate a SQL query to answer the following question:
`What is the title of the July 2 song that is downloaded as Crazy Frog?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_chart" (
"week" real,
"issue_date" text,
"artist" text,... |
SELECT "division_record" FROM "2009_regular_season_football_standings" WHERE "school"='woodbridge'; |
## Task
Generate a SQL query to answer the following question:
`What is the division record for Woodbridge?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_regular_season_football_standings" (
"school" text,
"team" text,
"division_record" te... |
SELECT "runner_up" FROM "previous_winners" WHERE "winners"='polonia bydgoszcz' AND "3rd_place"='mega-lada togliatti'; |
## Task
Generate a SQL query to answer the following question:
`Who was the runner-up when Polonia Bydgoszcz won and Mega-Lada Togliatti finished 3rd?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "previous_winners" (
"year" text,
"venue" text,
... |
SELECT "runner_up" FROM "previous_winners" WHERE "year"='2004'; |
## Task
Generate a SQL query to answer the following question:
`Who was the runner-up in 2004?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "previous_winners" (
"year" text,
"venue" text,
"winners" text,
"runner_up" text,
"3rd_place" text
)... |
SELECT "3rd_place" FROM "previous_winners" WHERE "venue"='pardubice'; |
## Task
Generate a SQL query to answer the following question:
`Who was the 3rd place team at Pardubice?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "previous_winners" (
"year" text,
"venue" text,
"winners" text,
"runner_up" text,
"3rd_pla... |
SELECT "country" FROM "currency" WHERE "1_euro">1.46611 AND "1_usd"='1.76650'; |
## Task
Generate a SQL query to answer the following question:
`Which country has a Euro that equals larger than 1.46611, and an usd equal to 1.76650?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "currency" (
"country" text,
"currency" text,
"1... |
SELECT "central_bank" FROM "currency" WHERE "1_euro">297.547 AND "country"='chile'; |
## Task
Generate a SQL query to answer the following question:
`Which Chile central bank has a Euro larger than 297.547?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "currency" (
"country" text,
"currency" text,
"1_euro" real,
"1_usd" text,
... |
SELECT "to_par" FROM "third_round_saturday" WHERE "country"='denmark'; |
## Task
Generate a SQL query to answer the following question:
`Name the To par for denmark`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round_saturday" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
##... |
SELECT "place" FROM "third_round_saturday" WHERE "player"='pat perez'; |
## Task
Generate a SQL query to answer the following question:
`Nam ethe place for pat perez`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round_saturday" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
#... |
SELECT "country" FROM "third_round_saturday" WHERE "player"='vijay singh'; |
## Task
Generate a SQL query to answer the following question:
`Name the country vijay singh is from`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round_saturday" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" t... |
SELECT "city_of_license" FROM "translators" WHERE "frequency_m_hz"<106.5 AND "call_sign"='w218ck'; |
## Task
Generate a SQL query to answer the following question:
`Which city has frequency under 106.5MHz and a callsign of w218ck?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_lic... |
SELECT "class" FROM "translators" WHERE "city_of_license"='richmond, virginia'; |
## Task
Generate a SQL query to answer the following question:
`Which class has a city of Richmond, Virginia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w... |
SELECT "erp_w" FROM "translators" WHERE "frequency_m_hz"=91.3; |
## Task
Generate a SQL query to answer the following question:
`What is the ERP W for the frequency of 91.3MHz?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp... |
SELECT "call_sign" FROM "translators" WHERE "frequency_m_hz">98.5 AND "erp_w"<155; |
## Task
Generate a SQL query to answer the following question:
`Which call sign has a frequency greater than 98.5MHz and ERP W under 155?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"cit... |
SELECT MIN("tracks") FROM "disc_list" WHERE "length"='18:36'; |
## Task
Generate a SQL query to answer the following question:
`Which tracks have a length of 18:36?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "disc_list" (
"disc" text,
"title" text,
"type" text,
"length" text,
"tracks" real
);
### SQL
... |
SELECT "length" FROM "disc_list" WHERE "disc"='67'; |
## Task
Generate a SQL query to answer the following question:
`What is the length of disc 67?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "disc_list" (
"disc" text,
"title" text,
"type" text,
"length" text,
"tracks" real
);
### SQL
Given ... |
SELECT "points" FROM "complete_formula_one_world_championship_" WHERE "year">1950 AND "engine"='maserati straight-6'; |
## Task
Generate a SQL query to answer the following question:
`What points larger than 1950 has a maserati straight-6 engine?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
... |
SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "entrant"='officine alfieri maserati' AND "year"=1952; |
## Task
Generate a SQL query to answer the following question:
`What is the chassis for a 1952 officine alfieri maserati with an entrant?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entr... |
SELECT "engine" FROM "complete_formula_one_world_championship_" WHERE "year"=1951 AND "chassis"='alfa romeo 159m'; |
## Task
Generate a SQL query to answer the following question:
`What type of engine does a 1951 alfa romeo 159m chasis have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
... |
SELECT "entrant" FROM "complete_formula_one_world_championship_" WHERE "engine"='maserati straight-6' AND "year"=1952; |
## Task
Generate a SQL query to answer the following question:
`What Entrant has a 1952 maserati straight-6 engine?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis"... |
SELECT "entrant" FROM "complete_formula_one_world_championship_" WHERE "year">1950 AND "points"<7; |
## Task
Generate a SQL query to answer the following question:
`What Entrant older than 1950 has points smaller than 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chas... |
SELECT SUM("points") FROM "complete_formula_one_world_championship_" WHERE "entrant"='alfa romeo spa' AND "year"<1951; |
## Task
Generate a SQL query to answer the following question:
`What is the total points that an 1951 Entrant alfa romeo spa have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" te... |
SELECT "co_driver" FROM "bathurst_1000_results" WHERE "laps">32 AND "year"=1999; |
## Task
Generate a SQL query to answer the following question:
`Who is the co-driver in 1999 with more than 32 laps?`
### 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" t... |
SELECT "winning_constructor" FROM "drivers_standings" WHERE "fastest_lap"='mark webber' AND "grand_prix"='malaysian grand prix'; |
## Task
Generate a SQL query to answer the following question:
`Name the winning constructor for when the fastest lap was mark webber at the malaysian grand prix`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "drivers_standings" (
"grand_prix" text,
... |
SELECT "winning_constructor" FROM "drivers_standings" WHERE "grand_prix"='abu dhabi grand prix'; |
## Task
Generate a SQL query to answer the following question:
`Name the winning constructor for abu dhabi grand prix`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "drivers_standings" (
"grand_prix" text,
"pole_position" text,
"fastest_lap" text... |
SELECT "pole_position" FROM "drivers_standings" WHERE "grand_prix"='belgian grand prix'; |
## Task
Generate a SQL query to answer the following question:
`Name the pole position for belgian grand prix`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "drivers_standings" (
"grand_prix" text,
"pole_position" text,
"fastest_lap" text,
"win... |
SELECT "pole_position" FROM "drivers_standings" WHERE "grand_prix"='korean grand prix'; |
## Task
Generate a SQL query to answer the following question:
`Name the pole positon for korean grand prix`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "drivers_standings" (
"grand_prix" text,
"pole_position" text,
"fastest_lap" text,
"winni... |
SELECT "pole_position" FROM "drivers_standings" WHERE "grand_prix"='german grand prix'; |
## Task
Generate a SQL query to answer the following question:
`Name the pole position at the german grand prix`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "drivers_standings" (
"grand_prix" text,
"pole_position" text,
"fastest_lap" text,
"w... |
SELECT "code" FROM "erm_ii_members" WHERE "currency"='latvian lats'; |
## Task
Generate a SQL query to answer the following question:
`What is the code for Latvian Lats?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "erm_ii_members" (
"currency" text,
"code" text,
"entry_erm_ii" text,
"central_rate" text,
"offi... |
SELECT "currency" FROM "erm_ii_members" WHERE "central_rate"='3.45280'; |
## Task
Generate a SQL query to answer the following question:
`Which currency has a central rate of 3.45280?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "erm_ii_members" (
"currency" text,
"code" text,
"entry_erm_ii" text,
"central_rate" te... |
SELECT "currency" FROM "erm_ii_members" WHERE "central_rate"='0.702804'; |
## Task
Generate a SQL query to answer the following question:
`Which currency has a central rate of 0.702804?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "erm_ii_members" (
"currency" text,
"code" text,
"entry_erm_ii" text,
"central_rate" t... |
SELECT "entry_erm_ii" FROM "erm_ii_members" WHERE "currency"='hungarian forint'; |
## Task
Generate a SQL query to answer the following question:
`What is the entry ERM II for the Hungarian Forint?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "erm_ii_members" (
"currency" text,
"code" text,
"entry_erm_ii" text,
"central_rat... |
SELECT "official_target_date" FROM "erm_ii_members" WHERE "currency"='swedish krona'; |
## Task
Generate a SQL query to answer the following question:
`What is the official target date for the Swedish Krona?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "erm_ii_members" (
"currency" text,
"code" text,
"entry_erm_ii" text,
"centra... |
SELECT "winner" FROM "european_poker_tour" WHERE "event"='ept german open'; |
## Task
Generate a SQL query to answer the following question:
`The EPT German open was won by which listed winner?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_poker_tour" (
"date" text,
"city" text,
"event" text,
"winner" text,
... |
SELECT "event" FROM "european_poker_tour" WHERE "winner"='will fry'; |
## Task
Generate a SQL query to answer the following question:
`What event did Will Fry win?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_poker_tour" (
"date" text,
"city" text,
"event" text,
"winner" text,
"prize" text
);
### SQL... |
SELECT "city" FROM "european_poker_tour" WHERE "event"='ept german open'; |
## Task
Generate a SQL query to answer the following question:
`The EPT German Open took place in what city?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_poker_tour" (
"date" text,
"city" text,
"event" text,
"winner" text,
"prize"... |
SELECT "date" FROM "european_poker_tour" WHERE "city"='copenhagen'; |
## Task
Generate a SQL query to answer the following question:
`When did an event take place in the City of Copenhagen?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_poker_tour" (
"date" text,
"city" text,
"event" text,
"winner" text... |
SELECT "city" FROM "european_poker_tour" WHERE "prize"='£1,000,000'; |
## Task
Generate a SQL query to answer the following question:
`The prize of £1,000,000 was given by an event in what city?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_poker_tour" (
"date" text,
"city" text,
"event" text,
"winner" ... |
SELECT "event" FROM "european_poker_tour" WHERE "winner"='joão barbosa'; |
## Task
Generate a SQL query to answer the following question:
`João Barbosa was the winner of which event?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_poker_tour" (
"date" text,
"city" text,
"event" text,
"winner" text,
"prize" ... |
SELECT COUNT("attendance") FROM "scottish_premier_league" WHERE "opponent"='st. johnstone' AND "venue"='home'; |
## Task
Generate a SQL query to answer the following question:
`What was the Attendance during the Home game where St. Johnstone was the Opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scottish_premier_league" (
"date" text,
"opponent" te... |
SELECT "class" FROM "24_hours_of_le_mans_results" WHERE "class_pos"='6th'; |
## Task
Generate a SQL query to answer the following question:
`Which class has a Class Position of 6th?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
... |
SELECT "class" FROM "24_hours_of_le_mans_results" WHERE "year"=1968; |
## Task
Generate a SQL query to answer the following question:
`Which class has a Year of 1968?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"pos" te... |
SELECT "class" FROM "24_hours_of_le_mans_results" WHERE "team"='kouros racing team'; |
## Task
Generate a SQL query to answer the following question:
`Which class has a Team of kouros racing team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" te... |
SELECT "winner" FROM "1970s_colts_11_9" WHERE "loser"='baltimore colts' AND "location"='schaefer stadium' AND "result"='42-3'; |
## Task
Generate a SQL query to answer the following question:
`Who is the Winner, when the Loser is the Baltimore Colts, when the Location is Schaefer Stadium, and when the Result is 42-3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1970s_colts_11... |
SELECT "location" FROM "1970s_colts_11_9" WHERE "winner"='baltimore colts' AND "year"<1972 AND "result"='14-6'; |
## Task
Generate a SQL query to answer the following question:
`What is the Location, when the Winner is the Baltimore Colts, when the Year is before 1972, and when the Result is 14-6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1970s_colts_11_9" (... |
SELECT "date" FROM "1970s_colts_11_9" WHERE "year">1978 AND "location"='memorial stadium (baltimore)'; |
## Task
Generate a SQL query to answer the following question:
`What is the Date, when the Year is after 1978, and when the Location is Memorial Stadium (Baltimore)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1970s_colts_11_9" (
"year" real,
"... |
SELECT "engine" FROM "formula_one_world_championship_results" WHERE "chassis"='lotus 44 f2'; |
## Task
Generate a SQL query to answer the following question:
`Which engine has a Chassis of lotus 44 f2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "formula_one_world_championship_results" (
"year" real,
"entrant" text,
"chassis" text,
"e... |
SELECT "entrant" FROM "formula_one_world_championship_results" WHERE "year"=1969; |
## Task
Generate a SQL query to answer the following question:
`What entrant appeared in 1969?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "formula_one_world_championship_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,... |
SELECT "engine" FROM "formula_one_world_championship_results" WHERE "year">1969; |
## Task
Generate a SQL query to answer the following question:
`Which engine has a Year larger than 1969?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "formula_one_world_championship_results" (
"year" real,
"entrant" text,
"chassis" text,
"en... |
SELECT MAX("year") FROM "formula_one_world_championship_results" WHERE "entrant"='ron harris / team lotus'; |
## Task
Generate a SQL query to answer the following question:
`What is the largest year with an Entrant of ron harris / team lotus?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "formula_one_world_championship_results" (
"year" real,
"entrant" te... |
SELECT "intergiro_classification" FROM "classification_leadership_by_stage" WHERE "stage"='21'; |
## Task
Generate a SQL query to answer the following question:
`During stage 21, who held the Intergiro classification?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_cl... |
SELECT "stage" FROM "classification_leadership_by_stage" WHERE "trofeo_fast_team"='gatorade'; |
## Task
Generate a SQL query to answer the following question:
`During which stage was gatorade the Trofeo Fast Team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_clas... |
SELECT "intergiro_classification" FROM "classification_leadership_by_stage" WHERE "trofeo_fast_team"='gb-mg maglificio'; |
## Task
Generate a SQL query to answer the following question:
`Who held the Intergiro classificaiton when the Trofeo Fast Team is gb-mg maglificio?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
... |
SELECT "stage" FROM "classification_leadership_by_stage" WHERE "intergiro_classification"='miguel indurain' AND "points_classification"='mario cipollini' AND "young_rider_classification"='leonardo sierra'; |
## Task
Generate a SQL query to answer the following question:
`During which stage was the Intergiro classification held by Miguel Indurain, the Points classification held by Mario Cipollini, and the Young rider classification held by Leonardo Sierra?`
### Database Schema
This query will run on a database whose schem... |
SELECT "winner" FROM "classification_leadership_by_stage" WHERE "general_classification"='miguel indurain' AND "points_classification"='mario cipollini' AND "mountains_classification"='claudio chiappucci' AND "young_rider_classification"='pavel tonkov'; |
## Task
Generate a SQL query to answer the following question:
`Who was the winner when the General classification was held by Miguel Indurain, the Points classification held by Mario Cipollini, the Mountains classification held by Claudio Chiappucci, and the Young RIder classification held by Pavel Tonkov?`
### Data... |
SELECT "strong_s_num" FROM "table_of_theophoric_names_with_yah_and_y" WHERE "strong_s_words_compounded"='yasha [# 3467] & yahu'; |
## Task
Generate a SQL query to answer the following question:
`What is the rank of Strong's Words Compounded of yasha [# 3467] & yahu?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_of_theophoric_names_with_yah_and_y" (
"strong_s_num" text,
... |
SELECT "english_spelling" FROM "table_of_theophoric_names_with_yah_and_y" WHERE "strong_s_num"='5166'; |
## Task
Generate a SQL query to answer the following question:
`How to spell Strong's # of 5166 in English?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_of_theophoric_names_with_yah_and_y" (
"strong_s_num" text,
"hebrew_word" text,
"stro... |
SELECT "strong_s_words_compounded" FROM "table_of_theophoric_names_with_yah_and_y" WHERE "strong_s_num"='5418'; |
## Task
Generate a SQL query to answer the following question:
`What is the Words with a Strong's # of 5418?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_of_theophoric_names_with_yah_and_y" (
"strong_s_num" text,
"hebrew_word" text,
"str... |
SELECT "goals_against" FROM "goalkeeping_leaders" WHERE "minutes"=2520; |
## Task
Generate a SQL query to answer the following question:
`What is the goals against for the goalkeeper with 2520 minutes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "goalkeeping_leaders" (
"player" text,
"club" text,
"games_played" real... |
SELECT AVG("games_played") FROM "goalkeeping_leaders" WHERE "loses"=10 AND "player"='bo oshoniyi' AND "minutes">1170; |
## Task
Generate a SQL query to answer the following question:
`What is the average Games Played for Bo Oshoniyi, who had more than 1170 minutes and 10 loses?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "goalkeeping_leaders" (
"player" text,
"cl... |
SELECT MAX("goals_against") FROM "goalkeeping_leaders" WHERE "club"='dallas burn' AND "ga_average">1.46; |
## Task
Generate a SQL query to answer the following question:
`What is the highest goals against the goalkeeper of Dallas Burn, who had a GA average larger than 1.46, had?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "goalkeeping_leaders" (
"playe... |
SELECT MIN("loses") FROM "goalkeeping_leaders" WHERE "minutes">2776; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of losses a goalkeeper with more than 2776 minutes had?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "goalkeeping_leaders" (
"player" text,
"club" text,
"... |
SELECT MIN("minutes") FROM "goalkeeping_leaders" WHERE "games_played"=13; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest minutes a goalkeeper with 13 games played has?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "goalkeeping_leaders" (
"player" text,
"club" text,
"games_played" re... |
SELECT "round" FROM "biggest_losses" WHERE "score"='10-52'; |
## Task
Generate a SQL query to answer the following question:
`Which round resulted in 10-52?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "biggest_losses" (
"margin" real,
"score" text,
"opponent" text,
"venue" text,
"round" text
);
### S... |
SELECT "venue" FROM "biggest_losses" WHERE "opponent"='melbourne storm' AND "round"='rd 7, 2006'; |
## Task
Generate a SQL query to answer the following question:
`What venue did Melbourne Storm played in Rd 7, 2006?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "biggest_losses" (
"margin" real,
"score" text,
"opponent" text,
"venue" text,
... |
SELECT "venue" FROM "international_goals" WHERE "result"='draw'; |
## Task
Generate a SQL query to answer the following question:
`In which venue was the result a draw?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition"... |
SELECT "tansen_singers" FROM "comedy_circus_ke_taansen" WHERE "comedian_ii"='preeti amin'; |
## Task
Generate a SQL query to answer the following question:
`Who is the singer that has Comedian; II of Preeti Amin?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comedy_circus_ke_taansen" (
"pair_no" real,
"comedian_1" text,
"comedian_ii" t... |
SELECT "comedian_1" FROM "comedy_circus_ke_taansen" WHERE "pair_no">5 AND "comedian_ii"='jimmy moses'; |
## Task
Generate a SQL query to answer the following question:
`Who is the comedian that has a pair no larger than 5 with a comedian II: Jimmy Moses?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comedy_circus_ke_taansen" (
"pair_no" real,
"comed... |
SELECT "place_result" FROM "comedy_circus_ke_taansen" WHERE "comedian_ii"='ali asgar'; |
## Task
Generate a SQL query to answer the following question:
`What is the result of Comedian : II of Ali Asgar?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comedy_circus_ke_taansen" (
"pair_no" real,
"comedian_1" text,
"comedian_ii" text,
... |
SELECT "school_colors" FROM "western_division" WHERE "founded"=1969 AND "institution"='barton community college'; |
## Task
Generate a SQL query to answer the following question:
`Which School Colors were Founded of 1969, with an Institution of barton community college?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "western_division" (
"institution" text,
"main... |
SELECT "institution" FROM "western_division" WHERE "mascot"='broncbusters'; |
## Task
Generate a SQL query to answer the following question:
`Which Institution has a Mascot of broncbusters?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "western_division" (
"institution" text,
"main_campus_location" text,
"founded" real,
... |
SELECT MAX("founded") FROM "western_division" WHERE "institution"='cloud county community college'; |
## Task
Generate a SQL query to answer the following question:
`What is the largest Founded with an Institution of cloud county community college?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "western_division" (
"institution" text,
"main_campus_... |
SELECT COUNT("founded") FROM "western_division" WHERE "main_campus_location"='liberal'; |
## Task
Generate a SQL query to answer the following question:
`What is the total Founded with a Main Campus Location of liberal?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "western_division" (
"institution" text,
"main_campus_location" text,
... |
SELECT "3_person_dive" FROM "encounters" WHERE "2_person_dive"='none'; |
## Task
Generate a SQL query to answer the following question:
`What is the 3-person dive that has none as the 2-person dive?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "encounters" (
"1_person_dive" text,
"2_person_dive" text,
"3_person_dive... |
SELECT "2_person_dive" FROM "encounters" WHERE "surface"='2'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2-person dive that has 2 as the surface?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "encounters" (
"1_person_dive" text,
"2_person_dive" text,
"3_person_dive" text,
... |
SELECT "surface" FROM "encounters" WHERE "cage_dive"='2'; |
## Task
Generate a SQL query to answer the following question:
`What surface has 2 as a cage dive?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "encounters" (
"1_person_dive" text,
"2_person_dive" text,
"3_person_dive" text,
"surface" text,
... |
SELECT "cage_dive" FROM "encounters" WHERE "3_person_dive"='none'; |
## Task
Generate a SQL query to answer the following question:
`Which cage dive has none as a 3-person dive?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "encounters" (
"1_person_dive" text,
"2_person_dive" text,
"3_person_dive" text,
"surfac... |
SELECT "3_person_dive" FROM "encounters" WHERE "remote_camera"='0'; |
## Task
Generate a SQL query to answer the following question:
`Which 3-person dive has 0 as a remote camera?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "encounters" (
"1_person_dive" text,
"2_person_dive" text,
"3_person_dive" text,
"surfa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.