output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "to_par" FROM "final_leaderboard" WHERE "country"='united states' AND "player"='fred couples'; |
## Task
Generate a SQL query to answer the following question:
`What was the To par for United States golfer fred couples?`
### 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"... |
SELECT "fate" FROM "table" WHERE "nationality"='french' AND "ship"='pierre lott'; |
## Task
Generate a SQL query to answer the following question:
`what is the fate when the nationality is french and the ship is pierre lott?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table" (
"date" text,
"ship" text,
"type" text,
"nation... |
SELECT "ship" FROM "table" WHERE "date"='28.1.1915'; |
## Task
Generate a SQL query to answer the following question:
`what is the ship with the date of 28.1.1915?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table" (
"date" text,
"ship" text,
"type" text,
"nationality" text,
"tonnage_grt" rea... |
SELECT "nationality" FROM "table" WHERE "ship"='willerby'; |
## Task
Generate a SQL query to answer the following question:
`what is the nationality when the ship is willerby?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table" (
"date" text,
"ship" text,
"type" text,
"nationality" text,
"tonnage_gr... |
SELECT MIN("tonnage_grt") FROM "table" WHERE "nationality"='british' AND "ship"='kidalton'; |
## Task
Generate a SQL query to answer the following question:
`what is the least tonnage grt when the nationality is british and the ship is kidalton?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table" (
"date" text,
"ship" text,
"type" text... |
SELECT "season" FROM "results" WHERE "team_2"='hanoi acb'; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Season that has the Team 2 of hanoi acb?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"season" real,
"team_1" text,
"score" text,
"team_2" text,
... |
SELECT "team_2" FROM "results" WHERE "venue"='binh duong stadium, vietnam'; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Team 2 that has the Venue of binh duong stadium, vietnam?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"season" real,
"team_1" text,
"score" text,
... |
SELECT COUNT("season") FROM "results" WHERE "team_2"='chonburi' AND "score"='0:1'; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the total number of Season that has the Team 2 of chonburi, and the Score of 0:1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"season" real,
"team_1" tex... |
SELECT "score" FROM "final_round_leaderboard" WHERE "place"='t6' AND "player"='raymond floyd'; |
## Task
Generate a SQL query to answer the following question:
`Which Score has a Place of t6, and a Player of raymond floyd?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round_leaderboard" (
"place" text,
"player" text,
"country" text,
... |
SELECT COUNT("to_par") FROM "final_round_leaderboard" WHERE "place"='t1' AND "score"='70-70-71-71=282'; |
## Task
Generate a SQL query to answer the following question:
`How much To par has a Place of t1, and a Score of 70-70-71-71=282?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round_leaderboard" (
"place" text,
"player" text,
"country" t... |
SELECT SUM("to_par") FROM "final_round_leaderboard" WHERE "player"='tony lema'; |
## Task
Generate a SQL query to answer the following question:
`What is tony lema's to par?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
... |
SELECT "score" FROM "final_round_leaderboard" WHERE "player"='gary player'; |
## Task
Generate a SQL query to answer the following question:
`What was gary player's score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real,... |
SELECT COUNT("year") FROM "past_and_current_programs" WHERE "class"='piw' AND "program_title"='the adventures of...' AND "score">94.6; |
## Task
Generate a SQL query to answer the following question:
`What was the total number for the PIW Class' The Adventures Of... and had a score bigger than 94.6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_and_current_programs" (
"year" re... |
SELECT "class" FROM "past_and_current_programs" WHERE "score"=95.1; |
## Task
Generate a SQL query to answer the following question:
`What class had a score of 95.1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_and_current_programs" (
"year" real,
"program_title" text,
"placement" text,
"score" real,
"c... |
SELECT MIN("score") FROM "past_and_current_programs" WHERE "year"<2008 AND "placement"='3rd'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest score for a year before 2008 and had 3rd place?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_and_current_programs" (
"year" real,
"program_title" text,
"pl... |
SELECT MAX("year") FROM "past_and_current_programs" WHERE "program_title"='taboo' AND "score"<96.125; |
## Task
Generate a SQL query to answer the following question:
`What was the latest year placement for Taboo with a score smaller than 96.125?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_and_current_programs" (
"year" real,
"program_title"... |
SELECT "winning_score" FROM "wins_8" WHERE "year"<1959 AND "runner_s_up"='jackie pung'; |
## Task
Generate a SQL query to answer the following question:
`What is the winning score before 1959, with runner-up Jackie Pung?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wins_8" (
"year" real,
"championship" text,
"winning_score" text,
... |
SELECT "directed_by" FROM "season_4_1999_2000" WHERE "original_air_date"='april 29, 2000'; |
## Task
Generate a SQL query to answer the following question:
`Which Directed by has an Original air date of april 29, 2000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_4_1999_2000" (
"series_num" real,
"season_num" real,
"title" text... |
SELECT "result" FROM "schedule" WHERE "date"='september 10, 2000'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the game from September 10, 2000?`
### 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,
"at... |
SELECT "ceremony" FROM "awards_ceremonies" WHERE "date"='may 15, 1965'; |
## Task
Generate a SQL query to answer the following question:
`Which award ceremony took place on May 15, 1965?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_ceremonies" (
"ceremony" text,
"date" text,
"host_s" text,
"venue" text,
"... |
SELECT "film_of_the_year" FROM "awards_ceremonies" WHERE "date"='may 8, 1964'; |
## Task
Generate a SQL query to answer the following question:
`Which movie was awarded Film of the Year on May 8, 1964?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_ceremonies" (
"ceremony" text,
"date" text,
"host_s" text,
"venue" t... |
SELECT MAX("dcsf_number") FROM "central_watford_west_watford_and_oxhey" WHERE "name"='field' AND "ofsted_number">117160; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the highest DCSF number that has the Name of field, and the Ofsted number larger than 117160?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "central_watford_west_watford_a... |
SELECT SUM("intake") FROM "central_watford_west_watford_and_oxhey" WHERE "faith"='rc' AND "dcsf_number">2428; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the sum of Intake that has the Faith of rc, and the DCSF number larger than 2428?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "central_watford_west_watford_and_oxhey" (
... |
SELECT "name" FROM "central_watford_west_watford_and_oxhey" WHERE "dcsf_number"=2117; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Name that has the DCSF number of 2117?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "central_watford_west_watford_and_oxhey" (
"name" text,
"faith" text,
"type"... |
SELECT MAX("ofsted_number") FROM "central_watford_west_watford_and_oxhey" WHERE "type"='infants' AND "intake">60; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the highest Ofsted number that has the Type of infants, and the Intake larger than 60?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "central_watford_west_watford_and_oxhe... |
SELECT COUNT("week") FROM "schedule" WHERE "opponent"='at chicago bears' AND "attendance">'49,070'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of Week, when Opponent is At Chicago Bears, and when Attendance is greater than 49,070?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
... |
SELECT "date" FROM "schedule" WHERE "week"=11; |
## Task
Generate a SQL query to answer the following question:
`What is Date, when Week is 11?`
### 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
);
### SQL
... |
SELECT MIN("week") FROM "schedule" WHERE "attendance"='38,624'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest Week, when Attendance is 38,624?`
### 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,
"attenda... |
SELECT SUM("international_mail") FROM "loaded_unloaded_freight_and_mail_tons_tu" WHERE "change"='+35,7%' AND "year">2008; |
## Task
Generate a SQL query to answer the following question:
`How much international mail has a change of +35,7% later than 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "loaded_unloaded_freight_and_mail_tons_tu" (
"year" real,
"domestic_f... |
SELECT SUM("international_mail") FROM "loaded_unloaded_freight_and_mail_tons_tu" WHERE "international_freight"='4,650' AND "domestic_mail">0; |
## Task
Generate a SQL query to answer the following question:
`How much international mail has 4,650 international freight and more than 0 domestic mail?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "loaded_unloaded_freight_and_mail_tons_tu" (
"ye... |
SELECT MAX("domestic_freight") FROM "loaded_unloaded_freight_and_mail_tons_tu" WHERE "change"='+9,8%' AND "total_freight_and_mail">'3,278'; |
## Task
Generate a SQL query to answer the following question:
`What is the most domestic freight with a change of +9,8% and a total freight and mail of more than 3,278?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "loaded_unloaded_freight_and_mail_t... |
SELECT COUNT("international_freight") FROM "loaded_unloaded_freight_and_mail_tons_tu" WHERE "change"='+0,2%' AND "international_mail">0; |
## Task
Generate a SQL query to answer the following question:
`How much international freight has a change of +0,2% with more than 0 international mail?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "loaded_unloaded_freight_and_mail_tons_tu" (
"yea... |
SELECT MAX("international_mail") FROM "loaded_unloaded_freight_and_mail_tons_tu" WHERE "change"='+0,2%' AND "domestic_mail"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the international mail with the highest number that has a change of +0,2% and less than 0 domestic mail?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "loaded_unloaded_freight_and... |
SELECT MIN("international_mail") FROM "loaded_unloaded_freight_and_mail_tons_tu" WHERE "domestic_freight"<72 AND "domestic_mail"=0 AND "year"<2012 AND "total_freight_and_mail">'4,695'; |
## Task
Generate a SQL query to answer the following question:
`What is the international mail with the lowest number to have less than 72 domestic freight, 0 domestic mail later than 2012 with total freight and mail more than 4,695?`
### Database Schema
This query will run on a database whose schema is represented i... |
SELECT "venue" FROM "international_goals" WHERE "date"='16 january 1996'; |
## Task
Generate a SQL query to answer the following question:
`what is the venue when the date is 16 january 1996?`
### 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,
... |
SELECT "competition" FROM "international_goals" WHERE "date"='16 january 1996'; |
## Task
Generate a SQL query to answer the following question:
`what is the competition when the date is 16 january 1996?`
### 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" t... |
SELECT "record" FROM "game_log" WHERE "date"='february 11'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE RECORD FOR FEBRUARY 11?`
### 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,
"locati... |
SELECT "award" FROM "awards_and_nominations" WHERE "year"<2001; |
## Task
Generate a SQL query to answer the following question:
`What was the award before 2001?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_and_nominations" (
"year" real,
"nominated_work" text,
"award" text,
"category" text,
"resu... |
SELECT MAX("week") FROM "regular_season" WHERE "location"='molson stadium'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest week for a game that was located at the Molson Stadium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" tex... |
SELECT AVG("week") FROM "regular_season" WHERE "attendance"='28,800'; |
## Task
Generate a SQL query to answer the following question:
`What is the average week number for games that had 28,800 fans in attendance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" t... |
SELECT "opponent" FROM "regular_season" WHERE "attendance"='19,423'; |
## Task
Generate a SQL query to answer the following question:
`Who did the argonauts play against during the game that had 19,423 fans in attendance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"op... |
SELECT "margin_of_victory" FROM "lpga_tour_wins_31" WHERE "date"='aug 24, 1986'; |
## Task
Generate a SQL query to answer the following question:
`What was Juli's winning margin on Aug 24, 1986?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lpga_tour_wins_31" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_o... |
SELECT "margin_of_victory" FROM "lpga_tour_wins_31" WHERE "tournament"='lpga championship'; |
## Task
Generate a SQL query to answer the following question:
`What was the margin of victory at the LPGA Championship?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lpga_tour_wins_31" (
"date" text,
"tournament" text,
"winning_score" text,
... |
SELECT MAX("ties") FROM "coaching_record" WHERE "losses"<8; |
## Task
Generate a SQL query to answer the following question:
`What is the highest value for Ties, when Losses is less than 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "coaching_record" (
"season" text,
"wins" real,
"losses" real,
"ties"... |
SELECT COUNT("losses") FROM "coaching_record" WHERE "ties"=2 AND "wins">8; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of Losses, when Ties is 2, and when Wins is greater than 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "coaching_record" (
"season" text,
"wins" real,
"l... |
SELECT MAX("react") FROM "heats" WHERE "mark"='7.61' AND "heat">1; |
## Task
Generate a SQL query to answer the following question:
`What is the highest React that has a 7.61 Mark and a heat bigger than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"country" t... |
SELECT "cause_of_death" FROM "officers" WHERE "date_of_death"='1956-09-07'; |
## Task
Generate a SQL query to answer the following question:
`What is the Cause of death of the Officer with a Date of death of 1956-09-07?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "officers" (
"rank" text,
"badge_serial_number" text,
"te... |
SELECT "tenure" FROM "officers" WHERE "cause_of_death"='helicopter accident' AND "badge_serial_number"='16805'; |
## Task
Generate a SQL query to answer the following question:
`What is the Tenure of the Officer who died in a helicopter accident with Badge/Serial Number 16805?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "officers" (
"rank" text,
"badge_seri... |
SELECT "badge_serial_number" FROM "officers" WHERE "rank"='policeman' AND "cause_of_death"='gunfire' AND "date_of_death"='1919-02-18'; |
## Task
Generate a SQL query to answer the following question:
`What is the Badge/Serial Number of the Policeman who died in Gunfire on 1919-02-18?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "officers" (
"rank" text,
"badge_serial_number" text,... |
SELECT "rank" FROM "officers" WHERE "cause_of_death"='gunfire' AND "badge_serial_number"='11755'; |
## Task
Generate a SQL query to answer the following question:
`What is the Rank of the Officer with Badge/Serial Number 11755 who died in Gunfire?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "officers" (
"rank" text,
"badge_serial_number" text,... |
SELECT "team" FROM "pool_1" WHERE "tries_against"='8'; |
## Task
Generate a SQL query to answer the following question:
`What is Team, when Tries Against is 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_1" (
"team" text,
"tries_for" text,
"tries_against" text,
"try_diff" text,
"points_for... |
SELECT "tries_against" FROM "pool_1" WHERE "tries_for"='20'; |
## Task
Generate a SQL query to answer the following question:
`What is Tries Against, when Tries For is 20?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_1" (
"team" text,
"tries_for" text,
"tries_against" text,
"try_diff" text,
"poin... |
SELECT "tries_against" FROM "pool_1" WHERE "points_for"='98'; |
## Task
Generate a SQL query to answer the following question:
`What is Tries Against, when Points For is 98?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_1" (
"team" text,
"tries_for" text,
"tries_against" text,
"try_diff" text,
"poi... |
SELECT "points_against" FROM "pool_1" WHERE "try_diff"='+22'; |
## Task
Generate a SQL query to answer the following question:
`What is Points Against, when Try Diff is +22?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_1" (
"team" text,
"tries_for" text,
"tries_against" text,
"try_diff" text,
"poi... |
SELECT "record" FROM "mixed_martial_arts_record" WHERE "event"='independent event' AND "method"='submission (peruvian necktie)'; |
## Task
Generate a SQL query to answer the following question:
`What is Record, when Event is "Independent Event", and when Method is "Submission (Peruvian Necktie)"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" ... |
SELECT "event" FROM "mixed_martial_arts_record" WHERE "method"='submission (armbar)' AND "opponent"='jason st. louis'; |
## Task
Generate a SQL query to answer the following question:
`What is Event, when Method is "Submission (Armbar)", and when Opponent is "Jason St. Louis"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"r... |
SELECT "res" FROM "mixed_martial_arts_record" WHERE "event"='kotc 11 - domination'; |
## Task
Generate a SQL query to answer the following question:
`What is Res., when Event is "KOTC 11 - Domination"?`
### 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... |
SELECT "attendance" FROM "schedule" WHERE "result"='l 17–10'; |
## Task
Generate a SQL query to answer the following question:
`How many were in attendance with a Result of l 17–10?`
### 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,
"atten... |
SELECT "attendance" FROM "schedule" WHERE "week"<5 AND "result"='bye'; |
## Task
Generate a SQL query to answer the following question:
`How many were in attendance in a week lower than 5 with a Bye result?`
### 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... |
SELECT "date" FROM "schedule" WHERE "result"='w 26–20'; |
## Task
Generate a SQL query to answer the following question:
`On what date was the result w 26–20?`
### 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
);
##... |
SELECT "opponent" FROM "schedule" WHERE "week"<14 AND "date"='october 10, 1993'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent in a week below 14 on October 10, 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,
... |
SELECT AVG("top_5") FROM "nascar_nationwide_series" WHERE "position"='52nd' AND "year"<2000; |
## Task
Generate a SQL query to answer the following question:
`Name the average Top 5 which has a Position of 52nd with a Year smaller than 2000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" rea... |
SELECT AVG("wins") FROM "nascar_nationwide_series" WHERE "top_10"<0; |
## Task
Generate a SQL query to answer the following question:
`Name the average Wins which has a Top 10 smaller than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_... |
SELECT "points_classification" FROM "jersey_progress" WHERE "general_classification"='cyril dessel'; |
## Task
Generate a SQL query to answer the following question:
`Which Points Classification does the General Classification of Cyril Dessel have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jersey_progress" (
"stage" text,
"winner" text,
"gen... |
SELECT "team_classification" FROM "jersey_progress" WHERE "winner"='cyril dessel'; |
## Task
Generate a SQL query to answer the following question:
`What is the Team Classification if the Winner is Cyril Dessel?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jersey_progress" (
"stage" text,
"winner" text,
"general_classification... |
SELECT "team_classification" FROM "jersey_progress" WHERE "mountains_classification"='christophe moreau' AND "stage"='final'; |
## Task
Generate a SQL query to answer the following question:
`In the final Stage with a Mountains Classification of Christophe Moreau, what is the Team Classification?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jersey_progress" (
"stage" text,... |
SELECT "mountains_classification" FROM "jersey_progress" WHERE "winner"='thor hushovd' AND "sprints_classification"='no award'; |
## Task
Generate a SQL query to answer the following question:
`What is the Mountains Classification for Winner Thor hushovd with Sprints Classification of no award?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jersey_progress" (
"stage" text,
"... |
SELECT "mountains_classification" FROM "jersey_progress" WHERE "winner"='josé luis carrasco'; |
## Task
Generate a SQL query to answer the following question:
`What is the Mountains Classification for Winner josé luis carrasco?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jersey_progress" (
"stage" text,
"winner" text,
"general_classific... |
SELECT "channel" FROM "2000s" WHERE "play_by_play"='joel meyers'; |
## Task
Generate a SQL query to answer the following question:
`Which channel has Joel Meyers as the Play by play commentator?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000s" (
"channel" text,
"play_by_play" text,
"color_commentator_s" tex... |
SELECT "studio_host" FROM "2000s" WHERE "play_by_play"='paul sunderland' AND "studio_analysts"='jack haley'; |
## Task
Generate a SQL query to answer the following question:
`Who is the studio host for the game that has Paul Sunderland as play by play commentator and Jack Haley as the Studio Analyst?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000s" (
"c... |
SELECT "studio_host" FROM "2000s" WHERE "channel"='fox sports net west' AND "play_by_play"='chick hearn'; |
## Task
Generate a SQL query to answer the following question:
`Who is the studio host for the game broadcasted by Fox Sports Net west and has Chick Hearn as the play by play commentator ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000s" (
"cha... |
SELECT "play_by_play" FROM "2000s" WHERE "studio_host"='alan massengale'; |
## Task
Generate a SQL query to answer the following question:
`Who is the play by play commentator for the game that has Alan Massengale as Studio Host?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000s" (
"channel" text,
"play_by_play" text,
... |
SELECT "channel" FROM "2000s" WHERE "play_by_play"='paul sunderland' AND "studio_host"='bill macdonald' AND "studio_analysts"='jack haley'; |
## Task
Generate a SQL query to answer the following question:
`which channel will have play by play commentator Paul Sunderland, Studio Host Bill Macdonald and Studi Analysty Jack Haley?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000s" (
"chan... |
SELECT SUM("assists") FROM "regular_season" WHERE "club"='adler mannheim' AND "points">57; |
## Task
Generate a SQL query to answer the following question:
`How many Assists have a Club of adler mannheim, and Points larger than 57?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"player" text,
"club" text,
"games" real,... |
SELECT SUM("points") FROM "regular_season" WHERE "assists"=41; |
## Task
Generate a SQL query to answer the following question:
`How many points have 41 assists?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"player" text,
"club" text,
"games" real,
"goals" real,
"assists" real,
"poin... |
SELECT MAX("goals") FROM "regular_season" WHERE "player"='david mcllwain' AND "games">52; |
## Task
Generate a SQL query to answer the following question:
`Which Goals have a Player of david mcllwain, and Games larger than 52?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"player" text,
"club" text,
"games" real,
"... |
SELECT "platform" FROM "platforms" WHERE "stop_no"='99014'; |
## Task
Generate a SQL query to answer the following question:
`Which Platform is the one that has a Stop number of 99014?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "platforms" (
"stop_no" text,
"platform" text,
"line" text,
"stopping_patt... |
SELECT "line" FROM "platforms" WHERE "platform"='3'; |
## Task
Generate a SQL query to answer the following question:
`Which Line has a Platform of 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "platforms" (
"stop_no" text,
"platform" text,
"line" text,
"stopping_pattern" text,
"destination" ... |
SELECT "destination" FROM "platforms" WHERE "stopping_pattern"='[2777] mciver station platforms'; |
## Task
Generate a SQL query to answer the following question:
`Which Destination has a Stopping pattern of [2777] mciver station platforms?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "platforms" (
"stop_no" text,
"platform" text,
"line" text... |
SELECT "stop_no" FROM "platforms" WHERE "platform"='[2777] mciver station platforms'; |
## Task
Generate a SQL query to answer the following question:
`Which Stop # has a Platform of [2777] mciver station platforms?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "platforms" (
"stop_no" text,
"platform" text,
"line" text,
"stopping... |
SELECT "line" FROM "platforms" WHERE "stopping_pattern"='all stations, a, b, p'; |
## Task
Generate a SQL query to answer the following question:
`Which Line has a Stopping pattern of all stations, A, b, p?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "platforms" (
"stop_no" text,
"platform" text,
"line" text,
"stopping_pat... |
SELECT "stopping_pattern" FROM "platforms" WHERE "platform"='[2777] mciver station platforms'; |
## Task
Generate a SQL query to answer the following question:
`Which Stopping pattern has a Platform of [2777] mciver station platforms?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "platforms" (
"stop_no" text,
"platform" text,
"line" text,
... |
SELECT "runner_up" FROM "german_championship_finals_under_the_gau" WHERE "venue"='berlin' AND "result"='2-0' AND "attendance"='100,000'; |
## Task
Generate a SQL query to answer the following question:
`Who was runner-up at Berlin when the result was 2-0 with 100,000 fans in attendance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "german_championship_finals_under_the_gau" (
"year" re... |
SELECT "champion" FROM "german_championship_finals_under_the_gau" WHERE "venue"='berlin' AND "attendance"='100,000' AND "result"='2-0'; |
## Task
Generate a SQL query to answer the following question:
`Who was the champion at berlin when the result was 2-0 with 100,000 fans in attendance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "german_championship_finals_under_the_gau" (
"year"... |
SELECT "year" FROM "german_championship_finals_under_the_gau" WHERE "attendance"='90,000'; |
## Task
Generate a SQL query to answer the following question:
`What year had an attendance of 90,000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "german_championship_finals_under_the_gau" (
"year" real,
"champion" text,
"runner_up" text,
"... |
SELECT SUM("year") FROM "german_championship_finals_under_the_gau" WHERE "attendance"='95,000' AND "runner_up"='dresdner sc'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of the years where the attendance was 95,000 and the runner-up was dresdner sc?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "german_championship_finals_under_the_gau" (
... |
SELECT "champion" FROM "german_championship_finals_under_the_gau" WHERE "attendance"='70,000'; |
## Task
Generate a SQL query to answer the following question:
`Who was the champion when the attendance was 70,000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "german_championship_finals_under_the_gau" (
"year" real,
"champion" text,
"runner... |
SELECT COUNT("height_ft") FROM "tallest_completed_buildings_and_structur" WHERE "name"='churchill house' AND "height_m"<59; |
## Task
Generate a SQL query to answer the following question:
`What is the Height (ft) of the Churchill House with a Height (m) less than 59?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tallest_completed_buildings_and_structur" (
"rank" text,
... |
SELECT AVG("height_ft") FROM "tallest_completed_buildings_and_structur" WHERE "floors"='12' AND "rank"='75=' AND "name"='canterbury house'; |
## Task
Generate a SQL query to answer the following question:
`What is the Height of the Canterbury House with 12 Floors and a Rank of 75=?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tallest_completed_buildings_and_structur" (
"rank" text,
"n... |
SELECT AVG("height_m") FROM "tallest_completed_buildings_and_structur" WHERE "floors"='18' AND "height_ft">171 AND "rank"='32='; |
## Task
Generate a SQL query to answer the following question:
`What is the Height (m) of the 32= Rank Building with 18 Floors and Height (ft) greater than 171?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tallest_completed_buildings_and_structur" (... |
SELECT SUM("total") FROM "made_the_cut" WHERE "year_s_won"='1994, 1997'; |
## Task
Generate a SQL query to answer the following question:
`Total for 1994, 1997 years won?`
### 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,
"... |
SELECT "player" FROM "made_the_cut" WHERE "year_s_won"='2003'; |
## Task
Generate a SQL query to answer the following question:
`Player than won in 2003?`
### 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"... |
SELECT AVG("total") FROM "made_the_cut" WHERE "player"='jim furyk'; |
## Task
Generate a SQL query to answer the following question:
`Average total for jim furyk?`
### 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,
"fin... |
SELECT "record" FROM "new_jersey_devils_4_boston_bruins_1" WHERE "visitor"='new jersey devils' AND "date"='may 7'; |
## Task
Generate a SQL query to answer the following question:
`Which record had a visitor of New Jersey Devils on May 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "new_jersey_devils_4_boston_bruins_1" (
"date" text,
"visitor" text,
"score" ... |
SELECT "record" FROM "new_jersey_devils_4_boston_bruins_1" WHERE "date"='may 8'; |
## Task
Generate a SQL query to answer the following question:
`What was the record on May 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "new_jersey_devils_4_boston_bruins_1" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"reco... |
SELECT COUNT("population_2013") FROM "provinces" WHERE "largest_city"='nelspruit'; |
## Task
Generate a SQL query to answer the following question:
`What is Nelspruit's population?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "provinces" (
"province" text,
"provincial_capital" text,
"largest_city" text,
"area_km_2" real,
"p... |
SELECT "2nd_leg" FROM "play_off_round" WHERE "1st_leg"='1–2' AND "team_2"='hapoel tel aviv'; |
## Task
Generate a SQL query to answer the following question:
`When Hapoel tel aviv was team 2 and 1st leg was 1–2, what was the 2nd leg?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "play_off_round" (
"team_1" text,
"agg" text,
"team_2" text,... |
SELECT "time" FROM "mixed_martial_arts_record" WHERE "round"=3 AND "record"='2–0'; |
## Task
Generate a SQL query to answer the following question:
`Which Time has a Round of 3, and a Record of 2–0?`
### 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" ... |
SELECT AVG("laps") FROM "moto_gp_classification" WHERE "grid"=11; |
## Task
Generate a SQL query to answer the following question:
`What were the average laps on a grid of 11?`
### 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" text,
... |
SELECT "location" FROM "game_log" WHERE "record"='50-19'; |
## Task
Generate a SQL query to answer the following question:
`Where is the location with a record of 50-19?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.