output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "music" FROM "po_prostu_taniec_just_dance" WHERE "team"='anna guzik & rafał kamiński' AND "points_jury"='24 (7,5,6,6)'; |
## Task
Generate a SQL query to answer the following question:
`What is the Music for Team anna guzik & rafał kamiński that has a Points Jury of 24 (7,5,6,6)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "po_prostu_taniec_just_dance" (
"team" text,... |
SELECT "music" FROM "po_prostu_taniec_just_dance" WHERE "dance"='modern'; |
## Task
Generate a SQL query to answer the following question:
`Which Music has a Dance of Modern?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "po_prostu_taniec_just_dance" (
"team" text,
"dance" text,
"music" text,
"points_jury" text,
"pl... |
SELECT "points_jury" FROM "po_prostu_taniec_just_dance" WHERE "dance"='pop'; |
## Task
Generate a SQL query to answer the following question:
`What is the Points Jury for Dance pop?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "po_prostu_taniec_just_dance" (
"team" text,
"dance" text,
"music" text,
"points_jury" text,
... |
SELECT "place" FROM "po_prostu_taniec_just_dance" WHERE "points_jury"='34 (7,8,9,10)'; |
## Task
Generate a SQL query to answer the following question:
`Which Place has a Points Jury of 34 (7,8,9,10)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "po_prostu_taniec_just_dance" (
"team" text,
"dance" text,
"music" text,
"points_jury... |
SELECT "2013_press_freedom_index" FROM "list_by_country" WHERE "country"='egypt'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2013 press freedom index of the country Egypt?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_by_country" (
"country" text,
"freedom_in_the_world_2013" text,
"2013_... |
SELECT "2013_index_of_economic_freedom" FROM "list_by_country" WHERE "country"='slovenia'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2013 index of economic freedom of Slovenia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_by_country" (
"country" text,
"freedom_in_the_world_2013" text,
"2013_ind... |
SELECT COUNT("fa_trophy") FROM "topscorers_in_order_of_league_goals" WHERE "total">17 AND "player"='david gamble' AND "league_cup">0; |
## Task
Generate a SQL query to answer the following question:
`How many FA Trophy has a Total larger than 17 and a Player of david gamble and a League Cup larger than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "topscorers_in_order_of_league_goa... |
SELECT AVG("league_cup") FROM "topscorers_in_order_of_league_goals" WHERE "total"=19 AND "league"<15; |
## Task
Generate a SQL query to answer the following question:
`Which League Cup that has a Total of 19 and a League smaller than 15?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "topscorers_in_order_of_league_goals" (
"player" text,
"club" text,... |
SELECT COUNT("fa_trophy") FROM "topscorers_in_order_of_league_goals" WHERE "player"='paul dobson' AND "league_cup"<2; |
## Task
Generate a SQL query to answer the following question:
`How many FA Trophy that have a Player of paul dobson, and a League Cup smaller than 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "topscorers_in_order_of_league_goals" (
"player" tex... |
SELECT "country" FROM "teams" WHERE "skip"='andy kapp'; |
## Task
Generate a SQL query to answer the following question:
`For what country is the skip Andy Kapp?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"team" text,
"country" text,
"home" text,
"skip" text,
"third" text,
"second" t... |
SELECT "second" FROM "teams" WHERE "team"='north america' AND "third"='cathy overton-clapham'; |
## Task
Generate a SQL query to answer the following question:
`Who is the second on the North America team for which Cathy Overton-Clapham the third?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"team" text,
"country" text,
"home" te... |
SELECT "lead" FROM "teams" WHERE "home"='lockerbie'; |
## Task
Generate a SQL query to answer the following question:
`Who is the lead of the team from Lockerbie?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"team" text,
"country" text,
"home" text,
"skip" text,
"third" text,
"secon... |
SELECT "team" FROM "teams" WHERE "home"='stirling'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the team from Stirling?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"team" text,
"country" text,
"home" text,
"skip" text,
"third" text,
"secon... |
SELECT "lead" FROM "teams" WHERE "team"='europe' AND "skip"='liudmila privivkova'; |
## Task
Generate a SQL query to answer the following question:
`Who is the lead on the Europe team that has a Liudmila Privivkova as the skip?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"team" text,
"country" text,
"home" text,
"s... |
SELECT "second" FROM "teams" WHERE "team"='north america' AND "country"='canada' AND "home"='edmonton'; |
## Task
Generate a SQL query to answer the following question:
`Who is the second of the North America team from Edmonton, Canada?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"team" text,
"country" text,
"home" text,
"skip" text,
... |
SELECT "livery" FROM "locomotives" WHERE "locomotive_type"='steam' AND "year_built">1950 AND "wheel_arrangement"='2-6-2'; |
## Task
Generate a SQL query to answer the following question:
`What is the livery of the steam locomotive built after 1950 with a wheel arrangement of 2-6-2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "locomotives" (
"livery" text,
"locomotive... |
SELECT "livery" FROM "locomotives" WHERE "year_built"<1989 AND "locomotive_type"='steam'; |
## Task
Generate a SQL query to answer the following question:
`What livery belongs to the steam Locomotive type builder that was building before 1989?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "locomotives" (
"livery" text,
"locomotive_type" ... |
SELECT COUNT("total") FROM "medal_count" WHERE "gold">2 AND "silver">2; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of medals when the gold is more than 2 and silver more than 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_count" (
"rank" text,
"nation" text,
"go... |
SELECT MAX("silver") FROM "medal_count" WHERE "total"<4 AND "rank"='12'; |
## Task
Generate a SQL query to answer the following question:
`What is the most silver medals when the total is less than 4 and the rank is 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_count" (
"rank" text,
"nation" text,
"gold" rea... |
SELECT SUM("bronze") FROM "medal_count" WHERE "silver">0 AND "total"=5; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of bronze medals when the silver is greater than 0, and the total medals 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_count" (
"rank" text,
"nation... |
SELECT COUNT("total") FROM "medal_count" WHERE "bronze">1 AND "nation"='germany' AND "gold"<1; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of medals when the bronze is more than 1, and Germany is the nation, and gold medals less than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_count" (
... |
SELECT MIN("rank") FROM "list_of_top_association_football_goal_sc" WHERE "name"='oscar míguez' AND "goals">107; |
## Task
Generate a SQL query to answer the following question:
`When Oscar Míguez had over 107 goals, what was the lowest he ranked?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_top_association_football_goal_sc" (
"rank" real,
"name" tex... |
SELECT MAX("goals") FROM "list_of_top_association_football_goal_sc" WHERE "years"='1922–1935'; |
## Task
Generate a SQL query to answer the following question:
`What was the highest number of goals for 1922–1935?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_top_association_football_goal_sc" (
"rank" real,
"name" text,
"years" text... |
SELECT "pick_num" FROM "round_two" WHERE "player"='jason french'; |
## Task
Generate a SQL query to answer the following question:
`Which pick number was there for Jason French?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_two" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"coll... |
SELECT "cfl_team" FROM "round_two" WHERE "college"='manitoba'; |
## Task
Generate a SQL query to answer the following question:
`Which cfl team was associated with the college of manitoba?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_two" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position"... |
SELECT "college" FROM "round_two" WHERE "cfl_team"='hamilton tiger-cats'; |
## Task
Generate a SQL query to answer the following question:
`Which college's cfl team is the hamilton tiger-cats?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_two" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
... |
SELECT "position" FROM "round_two" WHERE "cfl_team"='montreal alouettes' AND "pick_num"<15; |
## Task
Generate a SQL query to answer the following question:
`Which position's cfl team was the Montreal Alouettes when the pick number was less than 15?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_two" (
"pick_num" real,
"cfl_team" tex... |
SELECT "player" FROM "round_three" WHERE "cfl_team"='saskatchewan roughriders'; |
## Task
Generate a SQL query to answer the following question:
`Which player was drafted by the Saskatchewan Roughriders?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_three" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position"... |
SELECT "college" FROM "round_three" WHERE "player"='ben wearing'; |
## Task
Generate a SQL query to answer the following question:
`What college did Ben Wearing play for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_three" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" ... |
SELECT AVG("fa_cup_goals") FROM "goals" WHERE "other_goals"=0 AND "fl_cup_goals"=0 AND "league_goals"<39; |
## Task
Generate a SQL query to answer the following question:
`What is the average FA Cup Goal value for players that have 0 Other goals, 0 FL Cup goals, and fewer than 39 League goals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "goals" (
"name"... |
SELECT "date" FROM "round_thirteen" WHERE "away"='ottawa swans'; |
## Task
Generate a SQL query to answer the following question:
`On what date were the Ottawa Swans the away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_thirteen" (
"date" text,
"time" text,
"home" text,
"away" text,
"score" te... |
SELECT "score" FROM "round_thirteen" WHERE "home"='etobicoke kangaroos'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the game with the Etobicoke Kangaroos as the home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_thirteen" (
"date" text,
"time" text,
"home" text,... |
SELECT "score" FROM "round_thirteen" WHERE "home"='broadview hawks'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the game with the Broadview Hawks as the home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_thirteen" (
"date" text,
"time" text,
"home" text,
"... |
SELECT "score" FROM "round_thirteen" WHERE "home"='broadview hawks'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the Broadview Hawks home game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_thirteen" (
"date" text,
"time" text,
"home" text,
"away" text,
"score"... |
SELECT "away" FROM "round_thirteen" WHERE "home"='etobicoke kangaroos'; |
## Task
Generate a SQL query to answer the following question:
`Who was the away team for the Etobicoke Kangaroos home game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_thirteen" (
"date" text,
"time" text,
"home" text,
"away" text,
... |
SELECT "date" FROM "round_thirteen" WHERE "score"='130-56'; |
## Task
Generate a SQL query to answer the following question:
`What was the date for the 130-56 game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_thirteen" (
"date" text,
"time" text,
"home" text,
"away" text,
"score" text,
"grou... |
SELECT "men_s_singles" FROM "junior_champions" WHERE "women_s_singles"='marketa koudelková' AND "men_s_doubles"='jan lanik / pavel weigner'; |
## Task
Generate a SQL query to answer the following question:
`Which men's singles has a women's singles of marketa koudelková as well as a Men's doubles of jan lanik / pavel weigner??`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "junior_champions" ... |
SELECT "men_s_singles" FROM "junior_champions" WHERE "women_s_doubles"='irena ferencová / yweta trminková'; |
## Task
Generate a SQL query to answer the following question:
`Which men's singles had a women's doubles team of irena ferencová / yweta trminková?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "junior_champions" (
"year" real,
"men_s_singles" te... |
SELECT AVG("year") FROM "junior_champions" WHERE "women_s_doubles"='helena turcinková / buresová'; |
## Task
Generate a SQL query to answer the following question:
`What is the mean year when the women's doubles team was helena turcinková / buresová?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "junior_champions" (
"year" real,
"men_s_singles" t... |
SELECT "date" FROM "2013_fixtures_and_results" WHERE "home_team"='cuba'; |
## Task
Generate a SQL query to answer the following question:
`What is the date with Cuba is Home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2013_fixtures_and_results" (
"date" text,
"tournament" text,
"location" text,
"home_team" t... |
SELECT "location" FROM "2013_fixtures_and_results" WHERE "home_team"='honduras'; |
## Task
Generate a SQL query to answer the following question:
`What is the location with Honduras is Home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2013_fixtures_and_results" (
"date" text,
"tournament" text,
"location" text,
"home... |
SELECT "location" FROM "2013_fixtures_and_results" WHERE "home_team"='mexico' AND "date"='11 april 2013'; |
## Task
Generate a SQL query to answer the following question:
`What is the location of 11 April 2013 and Mexico Home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2013_fixtures_and_results" (
"date" text,
"tournament" text,
"location" te... |
SELECT "date" FROM "2013_fixtures_and_results" WHERE "away_team"='honduras'; |
## Task
Generate a SQL query to answer the following question:
`What is the date that is Away team is Honduras?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2013_fixtures_and_results" (
"date" text,
"tournament" text,
"location" text,
"home_... |
SELECT "date" FROM "2013_fixtures_and_results" WHERE "away_team"='guatemala'; |
## Task
Generate a SQL query to answer the following question:
`What is the date where Guatemala is the Away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2013_fixtures_and_results" (
"date" text,
"tournament" text,
"location" text,
"ho... |
SELECT "score" FROM "2013_fixtures_and_results" WHERE "date"='17 april 2013'; |
## Task
Generate a SQL query to answer the following question:
`What is the score for 17 April 2013?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2013_fixtures_and_results" (
"date" text,
"tournament" text,
"location" text,
"home_team" text,... |
SELECT SUM("week") FROM "regular_season" WHERE "date"='september 14, 2008'; |
## Task
Generate a SQL query to answer the following question:
`How many weeks have September 14, 2008 as the date?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"time_pt" text,
"opponent" text,
"... |
SELECT "opponent" FROM "regular_season" WHERE "week"<16 AND "date"='september 7, 2008'; |
## Task
Generate a SQL query to answer the following question:
`What opponent has a week less than 16, with September 7, 2008 as the date?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"time_pt" text,... |
SELECT "record" FROM "regular_season" WHERE "game_site"='candlestick park' AND "date"='october 12, 2008'; |
## Task
Generate a SQL query to answer the following question:
`What record has candlestick park as the game site, and october 12, 2008 as the date?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"time... |
SELECT "date" FROM "regular_season" WHERE "opponent"='new england patriots'; |
## Task
Generate a SQL query to answer the following question:
`What date has new england patriots as the opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"time_pt" text,
"opponent" text,
"... |
SELECT "date" FROM "regular_season" WHERE "week"=10; |
## Task
Generate a SQL query to answer the following question:
`What date has 10 for the week?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"time_pt" text,
"opponent" text,
"result" text,
"reco... |
SELECT "game_site" FROM "regular_season" WHERE "result"='w 10-3'; |
## Task
Generate a SQL query to answer the following question:
`What game site has w 10-3 as the result?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"time_pt" text,
"opponent" text,
"result" tex... |
SELECT "margin_of_victory" FROM "winners" WHERE "winner_s_share"='1,440,000' AND "year"='2013'; |
## Task
Generate a SQL query to answer the following question:
`what is the victory margin in 2013 with a Winner's share of 1,440,000`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" text,
"champion" text,
"country" text,
"to_p... |
SELECT "margin_of_victory" FROM "winners" WHERE "winner_s_share"='45,000'; |
## Task
Generate a SQL query to answer the following question:
`what is the victory margin with a 45,000 Winner's share`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" text,
"champion" text,
"country" text,
"to_par" text,
"m... |
SELECT "margin_of_victory" FROM "winners" WHERE "winner_s_share"='183,800'; |
## Task
Generate a SQL query to answer the following question:
`what is the margin of victory with a 183,800 Winner's share`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" text,
"champion" text,
"country" text,
"to_par" text,
... |
SELECT "to_par" FROM "winners" WHERE "winner_s_share"='450,000'; |
## Task
Generate a SQL query to answer the following question:
`what is to par for the Winner's share 450,000`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" text,
"champion" text,
"country" text,
"to_par" text,
"margin_of_v... |
SELECT SUM("rank") FROM "goalscorers" WHERE "singapore_cup"='0 (1)' AND "name"='masrezwan masturi'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of Rank that when the Singapore Cup is 0 (1), and the Name is masrezwan masturi?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "goalscorers" (
"rank" real,
"name" text... |
SELECT "name" FROM "goalscorers" WHERE "total"='3 (15)' AND "rank">3; |
## Task
Generate a SQL query to answer the following question:
`What is the Name of the person with a Total of 3 (15), and Rank of more than 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "goalscorers" (
"rank" real,
"name" text,
"s_league" te... |
SELECT "singapore_cup" FROM "goalscorers" WHERE "s_league"='5 (14)'; |
## Task
Generate a SQL query to answer the following question:
`What is the Singapore Cup when the S-League is 5 (14)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "goalscorers" (
"rank" real,
"name" text,
"s_league" text,
"singapore_cup" tex... |
SELECT "singapore_league_cup" FROM "goalscorers" WHERE "rank">4 AND "s_league"='2 (12)'; |
## Task
Generate a SQL query to answer the following question:
`What is the Singapore League Cup when rank is more than 4, and the S-League is 2 (12)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "goalscorers" (
"rank" real,
"name" text,
"s_lea... |
SELECT "tournament" FROM "champions_tour_wins_14" WHERE "runner_s_up"='al geiberger'; |
## Task
Generate a SQL query to answer the following question:
`In which tournament did Al Geiberger finish runner-up?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "champions_tour_wins_14" (
"date" text,
"tournament" text,
"winning_score" text,... |
SELECT "season" FROM "m" WHERE "acquisition_via"='rookie draft' AND "number"='15'; |
## Task
Generate a SQL query to answer the following question:
`What is the Season with an Acquisition via of rookie draft, and the number is 15?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "m" (
"name" text,
"position" text,
"number" text,
... |
SELECT "acquisition_via" FROM "m" WHERE "name"='dennis miranda'; |
## Task
Generate a SQL query to answer the following question:
`What is the Acquisition via for Dennis Miranda?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "m" (
"name" text,
"position" text,
"number" text,
"school_club_team" text,
"season... |
SELECT "school_club_team" FROM "m" WHERE "acquisition_via"='rookie draft' AND "position"='guard' AND "name"='dennis miranda'; |
## Task
Generate a SQL query to answer the following question:
`What team acquired as a rookie draft in the position of guard Dennis Miranda?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "m" (
"name" text,
"position" text,
"number" text,
"sch... |
SELECT "season" FROM "m" WHERE "position"='guard' AND "school_club_team"='perpetual help'; |
## Task
Generate a SQL query to answer the following question:
`What season was School/Club Team perpetual help in the guard position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "m" (
"name" text,
"position" text,
"number" text,
"school_clu... |
SELECT "number" FROM "m" WHERE "name"='rashad mccants'; |
## Task
Generate a SQL query to answer the following question:
`What number was Rashad McCants?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "m" (
"name" text,
"position" text,
"number" text,
"school_club_team" text,
"season" text,
"acqui... |
SELECT "season" FROM "m" WHERE "acquisition_via"='trade' AND "school_club_team"='east'; |
## Task
Generate a SQL query to answer the following question:
`What season did School/Club Team, East have an Acquisition via of trade?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "m" (
"name" text,
"position" text,
"number" text,
"school_c... |
SELECT "date" FROM "race_calendar" WHERE "city_state"='sydney, new south wales'; |
## Task
Generate a SQL query to answer the following question:
`What is the Date for the City/State of Sydney, New South Wales?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_calendar" (
"rd_race" text,
"race_title" text,
"circuit" text,
... |
SELECT "revenues" FROM "list_of_daimy" WHERE "tenure"='1854-1855'; |
## Task
Generate a SQL query to answer the following question:
`What is the Revenues during Tenure 1854-1855?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_daimy" (
"name" text,
"tenure" text,
"courtesy_title" text,
"court_rank" text,... |
SELECT "revenues" FROM "list_of_daimy" WHERE "courtesy_title"='ukyo-daiyu'; |
## Task
Generate a SQL query to answer the following question:
`What is the Revenues of Ukyo-Daiyu?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_daimy" (
"name" text,
"tenure" text,
"courtesy_title" text,
"court_rank" text,
"revenu... |
SELECT "country" FROM "third_round_conclusion_sunday" WHERE "place"='t10' AND "player"='rod pampling'; |
## Task
Generate a SQL query to answer the following question:
`What country was the player, rod pampling, from who placed t10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round_conclusion_sunday" (
"place" text,
"player" text,
"country... |
SELECT "score" FROM "third_round_conclusion_sunday" WHERE "place"='t10' AND "player"='thomas levet'; |
## Task
Generate a SQL query to answer the following question:
`What was the score that thomas levet got when he placed t10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round_conclusion_sunday" (
"place" text,
"player" text,
"country" t... |
SELECT "country" FROM "third_round_conclusion_sunday" WHERE "score"='73-73-65=211'; |
## Task
Generate a SQL query to answer the following question:
`What country did the player who scored 73-73-65=211 come from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round_conclusion_sunday" (
"place" text,
"player" text,
"country"... |
SELECT "score" FROM "third_round_conclusion_sunday" WHERE "country"='united states' AND "place"='t4'; |
## Task
Generate a SQL query to answer the following question:
`What is the score that the player who placed t4 from the united states get?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round_conclusion_sunday" (
"place" text,
"player" text... |
SELECT "country" FROM "third_round_conclusion_sunday" WHERE "player"='phil mickelson'; |
## Task
Generate a SQL query to answer the following question:
`What country is phil mickelson from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round_conclusion_sunday" (
"place" text,
"player" text,
"country" text,
"score" text,
"... |
SELECT "team" FROM "grand_prix_career_statistics" WHERE "machine"='nsr250' AND "points"=8; |
## Task
Generate a SQL query to answer the following question:
`What is the Team with a Machine that is nsr250 and has Points of 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_prix_career_statistics" (
"year" real,
"class" text,
"team" ... |
SELECT SUM("lost") FROM "apea_s_campeonato_paulista" WHERE "points">8 AND "difference"='- 8' AND "position">5; |
## Task
Generate a SQL query to answer the following question:
`What is the total lost that has points greater than 8 and a difference of - 8 and a position of greater than 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "apea_s_campeonato_paulista" ... |
SELECT MAX("points") FROM "apea_s_campeonato_paulista" WHERE "lost">5 AND "difference"='- 10' AND "played">12; |
## Task
Generate a SQL query to answer the following question:
`What is the greatest number of points that has a lost bigger than 5, a difference of - 10 and a played bigger than 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "apea_s_campeonato_pau... |
SELECT "name" FROM "india" WHERE "average"=16.4; |
## Task
Generate a SQL query to answer the following question:
`What is the Name with an Average that is 16.4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "india" (
"name" text,
"innings" real,
"runs_scored" real,
"balls_faced" real,
"aver... |
SELECT "match" FROM "north_group" WHERE "team"='start gniezno'; |
## Task
Generate a SQL query to answer the following question:
`What was the match number for Start Gniezno?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "north_group" (
"team" text,
"match" text,
"points" text,
"draw" text,
"lost" text
);
... |
SELECT "lost" FROM "north_group" WHERE "points"='10'; |
## Task
Generate a SQL query to answer the following question:
`Who was the team that lost but had 10 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "north_group" (
"team" text,
"match" text,
"points" text,
"draw" text,
"lost" text
);... |
SELECT "draw" FROM "north_group" WHERE "match"='8' AND "team"='lpż gdańsk'; |
## Task
Generate a SQL query to answer the following question:
`What was the draw for Lpż Gdańsk with a match of 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "north_group" (
"team" text,
"match" text,
"points" text,
"draw" text,
"lost" t... |
SELECT "team" FROM "north_group" WHERE "draw"='0'; |
## Task
Generate a SQL query to answer the following question:
`What team had a draw of 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "north_group" (
"team" text,
"match" text,
"points" text,
"draw" text,
"lost" text
);
### SQL
Given the ... |
SELECT "match" FROM "north_group" WHERE "points"='8'; |
## Task
Generate a SQL query to answer the following question:
`What match had 8 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "north_group" (
"team" text,
"match" text,
"points" text,
"draw" text,
"lost" text
);
### SQL
Given the da... |
SELECT "draw" FROM "north_group" WHERE "points"='10'; |
## Task
Generate a SQL query to answer the following question:
`What is the draw for a match that had 10 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "north_group" (
"team" text,
"match" text,
"points" text,
"draw" text,
"lost" text... |
SELECT "1980_1981_team" FROM "list_of_united_states_national_ice_hocke" WHERE "birthplace"='warroad, minnesota'; |
## Task
Generate a SQL query to answer the following question:
`What was the 1980-1981 team of the player born in Warroad, Minnesota?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jers... |
SELECT SUM("lost") FROM "south_group" WHERE "draw">0; |
## Task
Generate a SQL query to answer the following question:
`How many losses have a draw greater than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "south_group" (
"team" text,
"match" real,
"points" real,
"draw" real,
"lost" real
);
#... |
SELECT AVG("match") FROM "south_group" WHERE "points"<6; |
## Task
Generate a SQL query to answer the following question:
`Which average match has points less than 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "south_group" (
"team" text,
"match" real,
"points" real,
"draw" real,
"lost" real
);
#... |
SELECT AVG("draw") FROM "south_group" WHERE "points">12; |
## Task
Generate a SQL query to answer the following question:
`Which average draw has points greater than 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "south_group" (
"team" text,
"match" real,
"points" real,
"draw" real,
"lost" real
)... |
SELECT "trainer" FROM "winners_of_the_federico_tesio_stakes" WHERE "time"='1:44.80' AND "jockey"='william jenkins'; |
## Task
Generate a SQL query to answer the following question:
`What Trainer had Jockey William Jenkins in a race with Time of 1:44.80?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners_of_the_federico_tesio_stakes" (
"year" real,
"winner" te... |
SELECT MIN("year") FROM "winners_of_the_federico_tesio_stakes" WHERE "purse"='$150,000' AND "time"='1:49.00'; |
## Task
Generate a SQL query to answer the following question:
`In what Year was the Purse $150,000 with a Time of 1:49.00?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners_of_the_federico_tesio_stakes" (
"year" real,
"winner" text,
"jocke... |
SELECT "owner" FROM "winners_of_the_federico_tesio_stakes" WHERE "trainer"='todd a. pletcher'; |
## Task
Generate a SQL query to answer the following question:
`What Owner's Trainer is Todd A. Pletcher?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners_of_the_federico_tesio_stakes" (
"year" real,
"winner" text,
"jockey" text,
"traine... |
SELECT "purse" FROM "winners_of_the_federico_tesio_stakes" WHERE "year"<2009 AND "owner"='harold a. allen'; |
## Task
Generate a SQL query to answer the following question:
`What was the Purse for Owner Harold A. Allen prior to 2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners_of_the_federico_tesio_stakes" (
"year" real,
"winner" text,
"jocke... |
SELECT "gdp_ppp_per_capita_2012_euro" FROM "economic_variation" WHERE "population_in_millions">10.8 AND "gdp_nominal_per_capita_2012_euro"='25,600'; |
## Task
Generate a SQL query to answer the following question:
`What is GDP (PPP) Per Capita 2012 Euro, when Population In Millions is greater than 10.8, and when GDP (Nominal) Per Capita 2012 Euro is 25,600?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TA... |
SELECT "gdp_2012_millions_of_euro" FROM "economic_variation" WHERE "population_in_millions"<1.3 AND "gdp_nominal_per_capita_2012_euro"='20,700(p)'; |
## Task
Generate a SQL query to answer the following question:
`What is GDP 2012 Millions of Euro, when Population in Millions is less than 1.3, and when GDP (Nominal) Per Capita 2012 Euro is 20,700(p)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "e... |
SELECT "gdp_ppp_per_capita_2012_eu27_100" FROM "economic_variation" WHERE "gdp_2012_millions_of_euro"='309,900'; |
## Task
Generate a SQL query to answer the following question:
`What is GDP (PPP) Per Capita 2012 EU27 = 100, when GDP 2012 Millions Of Euro is 309,900?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "economic_variation" (
"s_member_state" text,
"g... |
SELECT "population_in_millions" FROM "economic_variation" WHERE "gdp_2012_millions_of_euro"='600,638'; |
## Task
Generate a SQL query to answer the following question:
`What is Population in Millions, when GDP 2012 Millions of Euro is 600,638?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "economic_variation" (
"s_member_state" text,
"gdp_2012_millio... |
SELECT "money" FROM "final_round_sunday" WHERE "player"='ernie els'; |
## Task
Generate a SQL query to answer the following question:
`What was the Money for Player Ernie Els?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round_sunday" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par"... |
SELECT "player" FROM "final_round_sunday" WHERE "place"='t9' AND "score"='70-74-69-70=283'; |
## Task
Generate a SQL query to answer the following question:
`What T9 Player had a Score of 70-74-69-70=283?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round_sunday" (
"place" text,
"player" text,
"country" text,
"score" text,
"t... |
SELECT "money" FROM "final_round_sunday" WHERE "place"='t1' AND "score"='66-69-70-75=280'; |
## Task
Generate a SQL query to answer the following question:
`What is the Money for the T1 Player with a Score of 66-69-70-75=280?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round_sunday" (
"place" text,
"player" text,
"country" text... |
SELECT "money" FROM "final_round_sunday" WHERE "player"='chris riley'; |
## Task
Generate a SQL query to answer the following question:
`What is Chris Riley's Money?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round_sunday" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"mo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.