output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT COUNT("pct_2001") FROM "community_council" WHERE "seats_2001"=7; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of % for 2001 if 2001 seats equals 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "community_council" (
"parties_and_voter_communities" text,
"pct_2006" real,
"sea... |
SELECT MAX("seats_2001") FROM "community_council" WHERE "pct_2006"=13 AND "pct_2001">12.1; |
## Task
Generate a SQL query to answer the following question:
`If 2006 is 13% and 2001 is greater than 12.1%, what is the greatest number of seats for 2001?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "community_council" (
"parties_and_voter_comm... |
SELECT "circumstances" FROM "2007" WHERE "nature_of_incident"='hostile' AND "location"='road to jalalabad'; |
## Task
Generate a SQL query to answer the following question:
`What were the circumstances of the Hostile incident on the road to Jalalabad?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007" (
"date" text,
"location" text,
"nature_of_inciden... |
SELECT "circumstances" FROM "2007" WHERE "location"='road to jalalabad'; |
## Task
Generate a SQL query to answer the following question:
`What was the circumstance that happened on the road to Jalalabad?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007" (
"date" text,
"location" text,
"nature_of_incident" text,
"... |
SELECT "circumstances" FROM "2007" WHERE "location"='mazar-i-sharif'; |
## Task
Generate a SQL query to answer the following question:
`What happened in Mazar-i-sharif?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007" (
"date" text,
"location" text,
"nature_of_incident" text,
"circumstances" text,
"casualtie... |
SELECT "index" FROM "contestant_information" WHERE "country"='singapore' AND "name"='chen bangjun andie'; |
## Task
Generate a SQL query to answer the following question:
`What is the Index number of Chen Bangjun Andie from Singapore?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "contestant_information" (
"index" text,
"name" text,
"chinese_name" tex... |
SELECT "chinese_name" FROM "contestant_information" WHERE "status"='eliminated' AND "country"='singapore' AND "index"='f9'; |
## Task
Generate a SQL query to answer the following question:
`What is the Chinese name of the Eliminated player from Singapore in Index f9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "contestant_information" (
"index" text,
"name" text,
"ch... |
SELECT "index" FROM "contestant_information" WHERE "chinese_name"='叶惠慈'; |
## Task
Generate a SQL query to answer the following question:
`What is the Index number for 叶惠慈?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "contestant_information" (
"index" text,
"name" text,
"chinese_name" text,
"country" text,
"statu... |
SELECT "chinese_name" FROM "contestant_information" WHERE "index"='f10'; |
## Task
Generate a SQL query to answer the following question:
`What is the Chinese name of the player in Index F10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "contestant_information" (
"index" text,
"name" text,
"chinese_name" text,
"coun... |
SELECT "name" FROM "contestant_information" WHERE "country"='malaysia, kuala lumpur' AND "index"='f8'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the player from Malaysia, Kuala Lumpur in Index f8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "contestant_information" (
"index" text,
"name" text,
"chinese_... |
SELECT "name" FROM "contestant_information" WHERE "country"='malaysia, kuala lumpur' AND "chinese_name"='李美玲'; |
## Task
Generate a SQL query to answer the following question:
`What is the English name of the player 李美玲 from Malaysia, Kuala Lumpur?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "contestant_information" (
"index" text,
"name" text,
"chinese_... |
SELECT "opponent" FROM "game_log" WHERE "date"='august 8'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent of the game on August 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" re... |
SELECT "winners" FROM "european_championship_1977_1987" WHERE "venue"='vojens'; |
## Task
Generate a SQL query to answer the following question:
`Who took the winning slot at the Vojens venue?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_championship_1977_1987" (
"year" text,
"venue" text,
"winners" text,
"runner... |
SELECT "runner_up" FROM "european_championship_1977_1987" WHERE "venue"='pocking' AND "year"='1980'; |
## Task
Generate a SQL query to answer the following question:
`Who was the runner-up in 1980 at the Pocking venue?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_championship_1977_1987" (
"year" text,
"venue" text,
"winners" text,
"r... |
SELECT COUNT("rank") FROM "youth_under_18_girls" WHERE "fastest_time_s"='11.26' AND "nation"='united states'; |
## Task
Generate a SQL query to answer the following question:
`What rank did the United States swimmer come in who posted 11.26 seconds in the 100-meter youth female division?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "youth_under_18_girls" (
"... |
SELECT MIN("overall") FROM "1976_raiders_draft_selections" WHERE "round">17; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest overall with more than 17 rounds?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1976_raiders_draft_selections" (
"round" real,
"overall" real,
"player" text,
"... |
SELECT "position" FROM "1976_raiders_draft_selections" WHERE "round"=14; |
## Task
Generate a SQL query to answer the following question:
`What position has 14 rounds?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1976_raiders_draft_selections" (
"round" real,
"overall" real,
"player" text,
"position" text,
"colle... |
SELECT "player" FROM "third_round" WHERE "score"='69-73-68=210' AND "country"='united states'; |
## Task
Generate a SQL query to answer the following question:
`What United States player has a score of 69-73-68=210?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"... |
SELECT "score" FROM "third_round" WHERE "place"='t10' AND "country"='argentina'; |
## Task
Generate a SQL query to answer the following question:
`What Argentina country is in t10 place?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);... |
SELECT "country" FROM "third_round" WHERE "score"='71-71-68=210'; |
## Task
Generate a SQL query to answer the following question:
`Which country has the score of 71-71-68=210?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" te... |
SELECT "to_par" FROM "third_round" WHERE "score"='72-71-68=211'; |
## Task
Generate a SQL query to answer the following question:
`What To par scored 72-71-68=211?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQ... |
SELECT "award" FROM "awards_and_nominations" WHERE "result"='won' AND "category"='choice tv villain' AND "year">2008; |
## Task
Generate a SQL query to answer the following question:
`Name the award won for category of choice tv villain in years after 2008`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"categor... |
SELECT "award" FROM "awards_and_nominations" WHERE "result"='nominated' AND "year">2011; |
## Task
Generate a SQL query to answer the following question:
`Name the award for nominated result and year after 2011`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"category" text,
"nomin... |
SELECT "perth" FROM "2013" WHERE "sydney"='yes' AND "gold_coast"='yes' AND "adelaide"='no'; |
## Task
Generate a SQL query to answer the following question:
`Which Perth also has Sydney yes, Gold Coast yes, and Adelaide no?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2013" (
"sydney" text,
"gold_coast" text,
"adelaide" text,
"melbou... |
SELECT "perth" FROM "2013" WHERE "gold_coast"='yes' AND "sydney"='yes' AND "melbourne"='yes' AND "adelaide"='yes'; |
## Task
Generate a SQL query to answer the following question:
`Which Perth has Gold Coast yes, Sydney yes, Melbourne yes, and Adelaide yes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2013" (
"sydney" text,
"gold_coast" text,
"adelaide" text... |
SELECT "adelaide" FROM "2013" WHERE "sydney"='yes' AND "melbourne"='yes' AND "perth"='no'; |
## Task
Generate a SQL query to answer the following question:
`Which Adelaide has Sydney yes, Melbourne yes, and Perth no?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2013" (
"sydney" text,
"gold_coast" text,
"adelaide" text,
"melbourne" t... |
SELECT "adelaide" FROM "2013" WHERE "perth"='no' AND "gold_coast"='yes' AND "sydney"='yes'; |
## Task
Generate a SQL query to answer the following question:
`Which Adelaide has Perth no, Gold Coast no, and Sydney yes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2013" (
"sydney" text,
"gold_coast" text,
"adelaide" text,
"melbourne" t... |
SELECT "melbourne" FROM "2013" WHERE "gold_coast"='yes' AND "perth"='cancelled' AND "adelaide"='cancelled'; |
## Task
Generate a SQL query to answer the following question:
`Which Melbourne has Gold Coast yes, Perth cancelled, and Adelaide cancelled?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2013" (
"sydney" text,
"gold_coast" text,
"adelaide" text... |
SELECT "melbourne" FROM "2013" WHERE "sydney"='yes' AND "gold_coast"='yes' AND "perth"='yes'; |
## Task
Generate a SQL query to answer the following question:
`Which Melbourne has Sydney yes, Gold Coast yes, and Perth yes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2013" (
"sydney" text,
"gold_coast" text,
"adelaide" text,
"melbourne... |
SELECT "3rd_place" FROM "previous_winners" WHERE "winners"='matej žagar'; |
## Task
Generate a SQL query to answer the following question:
`Who came in 3rd when Matej žagar won?`
### 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,
"2nd_place" text,
"3rd_place"... |
SELECT "year" FROM "previous_winners" WHERE "2nd_place"='rafał kurmański'; |
## Task
Generate a SQL query to answer the following question:
`In what year did Rafał Kurmański come in 2nd place?`
### 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,
"2nd_place" text,... |
SELECT "winners" FROM "previous_winners" WHERE "venue"='krško'; |
## Task
Generate a SQL query to answer the following question:
`Who won at Krško?`
### 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,
"2nd_place" text,
"3rd_place" text
);
### SQL
Giv... |
SELECT "3rd_place" FROM "previous_winners" WHERE "winners"='nicolai klindt'; |
## Task
Generate a SQL query to answer the following question:
`Who came in 3rd when Nicolai Klindt won?`
### 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,
"2nd_place" text,
"3rd_pla... |
SELECT "winners" FROM "previous_winners" WHERE "2nd_place"='karol ząbik'; |
## Task
Generate a SQL query to answer the following question:
`Who won when Karol Ząbik came in 2nd?`
### 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,
"2nd_place" text,
"3rd_place"... |
SELECT "3rd_place" FROM "previous_winners" WHERE "venue"='venue'; |
## Task
Generate a SQL query to answer the following question:
`Who came in 3rd at Venue?`
### 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,
"2nd_place" text,
"3rd_place" text
);
###... |
SELECT COUNT("week") FROM "schedule" WHERE "record"='1–0'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of weeks that the Steelers had a record of 1–0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"kickoff_et" text,
"o... |
SELECT "opponent" FROM "schedule" WHERE "result"='l 20–17'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent at the Steelers game that had a result of l 20–17?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"kickoff_et" text,
"op... |
SELECT "condition" FROM "laboratory_findings_in_various_platelet_" WHERE "partial_thromboplastin_time"='prolonged' AND "platelet_count"='unaffected' AND "bleeding_time"='prolonged'; |
## Task
Generate a SQL query to answer the following question:
`Name the condition for partial thromboplastin time of prolonged and platelet count of unaffected with bleeding time of prolonged`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "laboratory_... |
SELECT "condition" FROM "laboratory_findings_in_various_platelet_" WHERE "partial_thromboplastin_time"='prolonged or unaffected'; |
## Task
Generate a SQL query to answer the following question:
`Name the condition with partial thromboplastin time of prolonged or unaffected`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" tex... |
SELECT "condition" FROM "laboratory_findings_in_various_platelet_" WHERE "partial_thromboplastin_time"='unaffected' AND "prothrombin_time"='unaffected' AND "platelet_count"='decreased'; |
## Task
Generate a SQL query to answer the following question:
`Name the condition with partial thromboplastin time of unaffected and prothrombin time of unaffected with platelet count of decreased`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "labora... |
SELECT "condition" FROM "laboratory_findings_in_various_platelet_" WHERE "platelet_count"='unaffected' AND "bleeding_time"='unaffected' AND "prothrombin_time"='prolonged' AND "partial_thromboplastin_time"='prolonged'; |
## Task
Generate a SQL query to answer the following question:
`Name the condition with platelet count of unaffected and bleeding time of unaffected with prothrombin time of prolonged and partial thromboplastin time of prolonged`
### Database Schema
This query will run on a database whose schema is represented in thi... |
SELECT "bleeding_time" FROM "laboratory_findings_in_various_platelet_" WHERE "platelet_count"='unaffected' AND "condition"='factor xii deficiency'; |
## Task
Generate a SQL query to answer the following question:
`Name the bleeding time with platelet count of unaffected and condition of factor xii deficiency`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "laboratory_findings_in_various_platelet_" (
... |
SELECT AVG("losses") FROM "coaches" WHERE "efficiency_pct"='6.3%' AND "draws"<1; |
## Task
Generate a SQL query to answer the following question:
`what is the number of losses with draws less than 1 and 6.3% efficiency?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "coaches" (
"name" text,
"period" text,
"wins" real,
"draws"... |
SELECT COUNT("draws") FROM "coaches" WHERE "name"='ali said gouled'; |
## Task
Generate a SQL query to answer the following question:
`what is the number of draws for ali said gouled?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "coaches" (
"name" text,
"period" text,
"wins" real,
"draws" real,
"losses" real,
... |
SELECT COUNT("draws") FROM "coaches" WHERE "losses"=4 AND "efficiency_pct"='28.6%'; |
## Task
Generate a SQL query to answer the following question:
`what is the number of draws when there are 4 losses and 28.6% efficiency?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "coaches" (
"name" text,
"period" text,
"wins" real,
"draws... |
SELECT "females" FROM "language" WHERE "males"='1 548'; |
## Task
Generate a SQL query to answer the following question:
`Name the females when males are 1 548`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "language" (
"language" text,
"number" text,
"percentage_pct" text,
"males" text,
"females" t... |
SELECT "percentage_pct" FROM "language" WHERE "number"='1 343'; |
## Task
Generate a SQL query to answer the following question:
`Name the percentage with number of 1 343`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "language" (
"language" text,
"number" text,
"percentage_pct" text,
"males" text,
"females... |
SELECT "percentage_pct" FROM "language" WHERE "females"='2'; |
## Task
Generate a SQL query to answer the following question:
`Name the percentage which has females of 2`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "language" (
"language" text,
"number" text,
"percentage_pct" text,
"males" text,
"femal... |
SELECT "males" FROM "language" WHERE "language"='persons that didn''t name their native language'; |
## Task
Generate a SQL query to answer the following question:
`Name the males for language of persons that didn't name their native language`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "language" (
"language" text,
"number" text,
"percentage_... |
SELECT "school_colors" FROM "eastern_division" WHERE "main_campus_location"='overland park'; |
## Task
Generate a SQL query to answer the following question:
`What are the school colors for the college whose main campus is overland park?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "eastern_division" (
"institution" text,
"main_campus_loca... |
SELECT MIN("founded") FROM "eastern_division" WHERE "institution"='independence community college'; |
## Task
Generate a SQL query to answer the following question:
`What is independence community college's newest campus?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "eastern_division" (
"institution" text,
"main_campus_location" text,
"founded"... |
SELECT "main_campus_location" FROM "eastern_division" WHERE "founded"=1967; |
## Task
Generate a SQL query to answer the following question:
`What college was founded in 1967?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "eastern_division" (
"institution" text,
"main_campus_location" text,
"founded" real,
"mascot" text... |
SELECT "party" FROM "list_of_negotiation_leaders" WHERE "from"='june 13, 2007'; |
## Task
Generate a SQL query to answer the following question:
`Which party is associated with a leader who began his tenure on June 13, 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_negotiation_leaders" (
"from" text,
"until" text,... |
SELECT "from" FROM "list_of_negotiation_leaders" WHERE "until"='july 4, 2007'; |
## Task
Generate a SQL query to answer the following question:
`What is the beginning date associated with an ending date of July 4, 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_negotiation_leaders" (
"from" text,
"until" text,
"... |
SELECT "name" FROM "list_of_negotiation_leaders" WHERE "function"='explorator'; |
## Task
Generate a SQL query to answer the following question:
`Who had a function of explorator?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_negotiation_leaders" (
"from" text,
"until" text,
"name" text,
"party" text,
"function" ... |
SELECT "until" FROM "list_of_negotiation_leaders" WHERE "from"='july 5, 2007'; |
## Task
Generate a SQL query to answer the following question:
`What is the Until date associated with a beginning From date of July 5, 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_negotiation_leaders" (
"from" text,
"until" text,
... |
SELECT "until" FROM "list_of_negotiation_leaders" WHERE "party"='vld' AND "from"='december 17, 2007'; |
## Task
Generate a SQL query to answer the following question:
`What is the Until date that has a party of VLD and a beginning from date of December 17, 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_negotiation_leaders" (
"from" text,... |
SELECT "competing_entities" FROM "references" WHERE "first_held"<1970; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Competing entities that has the First held smaller than 1970?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"competing_entities" text,
"first_held" ... |
SELECT "surface" FROM "singles_10" WHERE "date"='october 3, 2010'; |
## Task
Generate a SQL query to answer the following question:
`What surface was played on on October 3, 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_10" (
"date" text,
"tournament" text,
"surface" text,
"tier" text,
"opponen... |
SELECT "tier" FROM "singles_10" WHERE "opponent_in_the_final"='manana shapakidze'; |
## Task
Generate a SQL query to answer the following question:
`What was the tier versus Manana Shapakidze?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_10" (
"date" text,
"tournament" text,
"surface" text,
"tier" text,
"opponent_i... |
SELECT "score" FROM "singles_10" WHERE "opponent_in_the_final"='michaela pochabová'; |
## Task
Generate a SQL query to answer the following question:
`What was the score versus Michaela Pochabová?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_10" (
"date" text,
"tournament" text,
"surface" text,
"tier" text,
"opponent... |
SELECT "opponent_in_the_final" FROM "singles_10" WHERE "date"='may 8, 2006'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on May 8, 2006?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_10" (
"date" text,
"tournament" text,
"surface" text,
"tier" text,
"opponent_in_the_f... |
SELECT "tier" FROM "singles_10" WHERE "opponent_in_the_final"='annalisa bona'; |
## Task
Generate a SQL query to answer the following question:
`What was the tier versus Annalisa bona?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_10" (
"date" text,
"tournament" text,
"surface" text,
"tier" text,
"opponent_in_th... |
SELECT AVG("place") FROM "eurolaul_26_january_2002" WHERE "song"='\"homme\"' AND "votes">1320; |
## Task
Generate a SQL query to answer the following question:
`What is the average place for the song called "homme" that has voes larger than 1320?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "eurolaul_26_january_2002" (
"draw" real,
"artist" ... |
SELECT SUM("draw") FROM "eurolaul_26_january_2002" WHERE "song"='\"beautiful inside\"' AND "place">2; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of the draw for the song "Beautiful Inside" which has a place larger than 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "eurolaul_26_january_2002" (
"draw" real,
"a... |
SELECT "song" FROM "eurolaul_26_january_2002" WHERE "votes">640 AND "draw"=1; |
## Task
Generate a SQL query to answer the following question:
`Which song has votes greater than 640 and a draw of 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "eurolaul_26_january_2002" (
"draw" real,
"artist" text,
"song" text,
"votes" ... |
SELECT AVG("place") FROM "eurolaul_26_january_2002" WHERE "votes"<8696 AND "song"='\"turn the tide\"' AND "draw">3; |
## Task
Generate a SQL query to answer the following question:
`What is the average place for a song with votes smaller than 8696, the song "turn the tide", and a draw larger than 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "eurolaul_26_january_2... |
SELECT "bushpct" FROM "by_county" WHERE "kerrypct"='58.1%'; |
## Task
Generate a SQL query to answer the following question:
`When Keey has 58.1% what % does Bush have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_county" (
"county" text,
"kerrypct" text,
"kerrynum" real,
"bushpct" text,
"bushnum"... |
SELECT "real_betis_career" FROM "notable_players" WHERE "appearances"<98 AND "nationality"='spain' AND "goals">15; |
## Task
Generate a SQL query to answer the following question:
`Which of Real Betis career had appearances smaller than 98, nationality of Spain, and goals greater than 15?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "notable_players" (
"nationali... |
SELECT "decile" FROM "kapiti_coast_district" WHERE "authority"='state' AND "area"='raumati south'; |
## Task
Generate a SQL query to answer the following question:
`What Decile has State Authority and Raumati South Area?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "kapiti_coast_district" (
"name" text,
"years" text,
"gender" text,
"area" te... |
SELECT SUM("decile") FROM "kapiti_coast_district" WHERE "area"='waikanae'; |
## Task
Generate a SQL query to answer the following question:
`What is the total Decile with Waikanae Area?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "kapiti_coast_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"auth... |
SELECT "player" FROM "final_leaderboard" WHERE "place"='t10' AND "score"='80-70-72-72=294'; |
## Task
Generate a SQL query to answer the following question:
`What Player with a Place of T10 had a Score of 80-70-72-72=294?`
### 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,
"s... |
SELECT "money" FROM "final_leaderboard" WHERE "player"='lloyd mangrum'; |
## Task
Generate a SQL query to answer the following question:
`What was the Money ($) amount for Lloyd Mangrum?`
### 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,
"... |
SELECT "money" FROM "final_leaderboard" WHERE "player"='cary middlecoff'; |
## Task
Generate a SQL query to answer the following question:
`What was the Money ($) amount for Cary Middlecoff?`
### 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,
... |
SELECT "date" FROM "game_log" WHERE "score"='5–2' AND "loss"='lilly (9–9)'; |
## Task
Generate a SQL query to answer the following question:
`What date was the game with a score of 5–2, and a Loss of lilly (9–9)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss... |
SELECT "opponent" FROM "game_log" WHERE "score"='5–4 (11)'; |
## Task
Generate a SQL query to answer the following question:
`What team was the opponent when there was a score of 5–4 (11)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
... |
SELECT "date" FROM "game_log" WHERE "record"='47–39'; |
## Task
Generate a SQL query to answer the following question:
`What date was the game with a record of 47–39?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" r... |
SELECT "year_s_won" FROM "missed_the_cut" WHERE "player"='tom watson'; |
## Task
Generate a SQL query to answer the following question:
`What year did Tom Watson win?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real
);
#... |
SELECT COUNT("total") FROM "missed_the_cut" WHERE "player"='tom watson' AND "to_par">10; |
## Task
Generate a SQL query to answer the following question:
`What is the total number that Tom Watson parred larger than 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
... |
SELECT "date" FROM "game_log" WHERE "record"='4-5'; |
## Task
Generate a SQL query to answer the following question:
`Which date has a Record of 4-5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
### SQL
Give... |
SELECT "score" FROM "game_log" WHERE "loss"='gubicza (0-1)'; |
## Task
Generate a SQL query to answer the following question:
`Which score has a Loss of gubicza (0-1)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
###... |
SELECT "loss" FROM "game_log" WHERE "date"='april 18'; |
## Task
Generate a SQL query to answer the following question:
`Which loss happened april 18?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
### SQL
Given ... |
SELECT "record" FROM "game_log" WHERE "opponent"='orioles' AND "date"='april 14'; |
## Task
Generate a SQL query to answer the following question:
`Which record has an Opponent of orioles and a Date of april 14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,... |
SELECT "record" FROM "game_log" WHERE "date"='april 25'; |
## Task
Generate a SQL query to answer the following question:
`Which record has a Date of april 25?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
### SQL... |
SELECT "opponent" FROM "game_log" WHERE "record"='4-5'; |
## Task
Generate a SQL query to answer the following question:
`Which opponent has a Record of 4-5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
### SQL
... |
SELECT "country" FROM "2004" WHERE "nominating_festival"='prix uip venezia'; |
## Task
Generate a SQL query to answer the following question:
`Name the country which has prix uip venezia`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2004" (
"category" text,
"film" text,
"director_s" text,
"country" text,
"nominating_f... |
SELECT "nominating_festival" FROM "2004" WHERE "director_s"='2004'; |
## Task
Generate a SQL query to answer the following question:
`Name the nominating festival for director of 2004`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2004" (
"category" text,
"film" text,
"director_s" text,
"country" text,
"nomina... |
SELECT "category" FROM "2004" WHERE "nominating_festival"='prix uip berlin'; |
## Task
Generate a SQL query to answer the following question:
`Name the category for prix uip berlin`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2004" (
"category" text,
"film" text,
"director_s" text,
"country" text,
"nominating_festiva... |
SELECT "nominating_festival" FROM "2004" WHERE "film"='un cartus de kent si un pachet de cafea'; |
## Task
Generate a SQL query to answer the following question:
`Name the nominating festival for un cartus de kent si un pachet de cafea`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2004" (
"category" text,
"film" text,
"director_s" text,
"c... |
SELECT "director_s" FROM "2004" WHERE "film"='alt i alt'; |
## Task
Generate a SQL query to answer the following question:
`Name the director of alt i alt`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2004" (
"category" text,
"film" text,
"director_s" text,
"country" text,
"nominating_festival" text... |
SELECT "score" FROM "game_log" WHERE "record"='81-54'; |
## Task
Generate a SQL query to answer the following question:
`What's the score of the game they played against a team with a record of 81-54?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text... |
SELECT "score" FROM "game_log" WHERE "record"='84-56'; |
## Task
Generate a SQL query to answer the following question:
`What game score was there for the team with a record of 84-56?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
... |
SELECT "winner" FROM "european_poker_tour" WHERE "city"='loutraki'; |
## Task
Generate a SQL query to answer the following question:
`Who is the Winner for the City of Loutraki?`
### 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 "event"='ept copenhagen'; |
## Task
Generate a SQL query to answer the following question:
`What is the Date for the Event ept 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,
"priz... |
SELECT "event" FROM "european_poker_tour" WHERE "winner"='john dibella'; |
## Task
Generate a SQL query to answer the following question:
`What Event did John dibella 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
);
###... |
SELECT "prize" FROM "european_poker_tour" WHERE "winner"='benny spindler'; |
## Task
Generate a SQL query to answer the following question:
`What was the prize for winner benny spindler?`
### 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 "event" FROM "european_poker_tour" WHERE "city"='copenhagen'; |
## Task
Generate a SQL query to answer the following question:
`What was the Event 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,
"prize... |
SELECT "event" FROM "european_poker_tour" WHERE "prize"='€850,000'; |
## Task
Generate a SQL query to answer the following question:
`What was the Event for the prize of €850,000?`
### 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 SUM("redcliffe") FROM "population" WHERE "pine_rivers">'164,254' AND "population_total"<'103,669'; |
## Task
Generate a SQL query to answer the following question:
`What is the Redcliffe population with a Pine Rivers population greater than 164,254 and a total population less than 103,669?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population" (
... |
SELECT COUNT("pine_rivers") FROM "population" WHERE "year">1947 AND "redcliffe"<'68,877' AND "population_total">'50,785' AND "caboolture">'12,207'; |
## Task
Generate a SQL query to answer the following question:
`What is the Pine Rivers total population after 1947 with a Redcliffe population smaller than 68,877, a total population greater than 50,785, and a Caboolture population greater than 12,207?`
### Database Schema
This query will run on a database whose sch... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.