question
stringlengths 12
244
| create_table_statement
stringlengths 97
895
| sql_query
stringlengths 27
479
| wiki_sql_table_id
stringlengths 8
14
|
|---|---|---|---|
What is the score for Ky Laffoon?
|
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
|
SELECT "score" FROM "final_leaderboard" WHERE "player"='ky laffoon';
|
2-12586672-1
|
What is the score of Ralph Guldahl, who has more than $100?
|
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
|
SELECT "score" FROM "final_leaderboard" WHERE "money">100 AND "player"='ralph guldahl';
|
2-12586672-1
|
What is the highest amount of money a play from Scotland United States has?
|
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
|
SELECT MAX("money") FROM "final_leaderboard" WHERE "country"='scotland united states';
|
2-12586672-1
|
How many Goals have a Pct % larger than 0.557, a points value smaller than 90, and a games value larger than 68?
|
CREATE TABLE "yearly_results" (
"season" text,
"games" real,
"lost" real,
"points" real,
"pct_pct" real,
"goals_for" real,
"goals_against" real,
"standing" text
);
|
SELECT COUNT("goals_for") FROM "yearly_results" WHERE "pct_pct">0.557 AND "points"<90 AND "games">68;
|
2-1243547-2
|
What is the draw record (%) total for clubs with more than 3 wins with 10 matches and more than 1 draw?
|
CREATE TABLE "tally" (
"club" text,
"matches" real,
"wins" real,
"draws" real,
"losses" real,
"record_pct_draw_0_5_wins" real
);
|
SELECT COUNT("record_pct_draw_0_5_wins") FROM "tally" WHERE "wins">3 AND "matches"=10 AND "draws">1;
|
2-12709578-2
|
How many draws, more than 6, does Newcastle Knights have with a record (%) larger than 25?
|
CREATE TABLE "tally" (
"club" text,
"matches" real,
"wins" real,
"draws" real,
"losses" real,
"record_pct_draw_0_5_wins" real
);
|
SELECT MAX("draws") FROM "tally" WHERE "matches">6 AND "club"='newcastle knights' AND "record_pct_draw_0_5_wins">25;
|
2-12709578-2
|
Which club has the most losses with 10 matches played and more than 1 draw?
|
CREATE TABLE "tally" (
"club" text,
"matches" real,
"wins" real,
"draws" real,
"losses" real,
"record_pct_draw_0_5_wins" real
);
|
SELECT MAX("losses") FROM "tally" WHERE "matches"=10 AND "draws">1;
|
2-12709578-2
|
The year of 1985 which has a BB +HBP of 39 has what Number listed?
|
CREATE TABLE "career_statistics" (
"year" text,
"team" text,
"number" text,
"bb_hbp" real,
"ba_place" text
);
|
SELECT "number" FROM "career_statistics" WHERE "bb_hbp"=39 AND "year"='1985';
|
2-12955031-1
|
The year that has a BB + HBP of 51 is listed as?
|
CREATE TABLE "career_statistics" (
"year" text,
"team" text,
"number" text,
"bb_hbp" real,
"ba_place" text
);
|
SELECT "year" FROM "career_statistics" WHERE "bb_hbp"=51;
|
2-12955031-1
|
In the year 1992 for the Seibu Lions, the BB + HBP which is larger than 49 was this as a BA (Place)?
|
CREATE TABLE "career_statistics" (
"year" text,
"team" text,
"number" text,
"bb_hbp" real,
"ba_place" text
);
|
SELECT "ba_place" FROM "career_statistics" WHERE "bb_hbp">49 AND "team"='seibu lions' AND "year"='1992';
|
2-12955031-1
|
What team lost on May 1?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
|
SELECT "loss" FROM "game_log" WHERE "date"='may 1';
|
2-12207717-3
|
What was the final score for the game on May 1?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
|
SELECT "score" FROM "game_log" WHERE "date"='may 1';
|
2-12207717-3
|
What was the final score for the game on May 4?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
|
SELECT "score" FROM "game_log" WHERE "date"='may 4';
|
2-12207717-3
|
In 1994 what tournament held a ATP masters series
|
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"career_sr" text
);
|
SELECT "1994" FROM "doubles_performance_timeline" WHERE "tournament"='atp masters series';
|
2-12213761-6
|
What is the Career SR of the year that held the masters series Sr tournament
|
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"career_sr" text
);
|
SELECT "career_sr" FROM "doubles_performance_timeline" WHERE "tournament"='masters series sr';
|
2-12213761-6
|
WHich competition was held on Alvor with a score 1-0?
|
CREATE TABLE "international_goals" (
"date" text,
"location" text,
"lineup" text,
"assist_pass" text,
"score" text,
"result" text,
"competition" text
);
|
SELECT "competition" FROM "international_goals" WHERE "score"='1-0' AND "location"='alvor';
|
2-12256189-2
|
Which name has a Lane of 7?
|
CREATE TABLE "semifinal_1" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
|
SELECT "name" FROM "semifinal_1" WHERE "lane"=7;
|
2-12386507-4
|
How many lanes have a Nationality of iceland?
|
CREATE TABLE "semifinal_1" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
|
SELECT SUM("lane") FROM "semifinal_1" WHERE "nationality"='iceland';
|
2-12386507-4
|
What is the smallest rank with a Lane of 1?
|
CREATE TABLE "semifinal_1" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
|
SELECT MIN("rank") FROM "semifinal_1" WHERE "lane"=1;
|
2-12386507-4
|
What was the final score of Game 1?
|
CREATE TABLE "summary" (
"game" real,
"date" text,
"score" text,
"location" text,
"time" text,
"attendance" real
);
|
SELECT "score" FROM "summary" WHERE "game"=1;
|
2-1332371-1
|
What date has 2:48 as the time?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"time" text,
"att" real,
"record" text
);
|
SELECT "date" FROM "game_log" WHERE "time"='2:48';
|
2-12278845-7
|
Which record has 2:57 as the time?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"time" text,
"att" real,
"record" text
);
|
SELECT "record" FROM "game_log" WHERE "time"='2:57';
|
2-12278845-7
|
Can you tell me the Losing BP that has Played of 22, and the Lost of 5?
|
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"try_bp" text,
"losing_bp" text
);
|
SELECT "losing_bp" FROM "2009_2010_table" WHERE "played"='22' AND "lost"='5';
|
2-12784856-3
|
Can you tell the Lost that has the Try BP of 10, and the Club of uwic rfc?
|
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"try_bp" text,
"losing_bp" text
);
|
SELECT "lost" FROM "2009_2010_table" WHERE "try_bp"='10' AND "club"='uwic rfc';
|
2-12784856-3
|
Can you tell me the Club that has the Lost of 19?
|
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"try_bp" text,
"losing_bp" text
);
|
SELECT "club" FROM "2009_2010_table" WHERE "lost"='19';
|
2-12784856-3
|
Can you tell me the Lost that has Losing BP of 5, and the Try BP of 0?
|
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"try_bp" text,
"losing_bp" text
);
|
SELECT "lost" FROM "2009_2010_table" WHERE "losing_bp"='5' AND "try_bp"='0';
|
2-12784856-3
|
Can you tell me the Played that has the Club of club?
|
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"try_bp" text,
"losing_bp" text
);
|
SELECT "played" FROM "2009_2010_table" WHERE "club"='club';
|
2-12784856-3
|
Can you tell me the Club thay has the Try BP of 0?
|
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"try_bp" text,
"losing_bp" text
);
|
SELECT "club" FROM "2009_2010_table" WHERE "try_bp"='0';
|
2-12784856-3
|
What date did the Mountaineers score 27 points and their opponent scored more that 7?
|
CREATE TABLE "bowl_games" (
"date" text,
"bowl" text,
"result" text,
"points_for" real,
"points_against" real
);
|
SELECT "date" FROM "bowl_games" WHERE "points_against">7 AND "points_for"=27;
|
2-13093018-3
|
What was the final result when the Mountaineers scored less than 13 and their opponents scored 26?
|
CREATE TABLE "bowl_games" (
"date" text,
"bowl" text,
"result" text,
"points_for" real,
"points_against" real
);
|
SELECT "result" FROM "bowl_games" WHERE "points_for"<13 AND "points_against"=26;
|
2-13093018-3
|
With a Tally of 0-14, what is the Rank in Kilkenny County?
|
CREATE TABLE "single_game" (
"rank" real,
"player" text,
"county" text,
"tally" text,
"total" real,
"opposition" text
);
|
SELECT COUNT("rank") FROM "single_game" WHERE "county"='kilkenny' AND "tally"='0-14';
|
2-13052263-3
|
What County has Dublin as the Opposition?
|
CREATE TABLE "single_game" (
"rank" real,
"player" text,
"county" text,
"tally" text,
"total" real,
"opposition" text
);
|
SELECT "county" FROM "single_game" WHERE "opposition"='dublin';
|
2-13052263-3
|
In Limerick County, what is the Rank with a Total larger than 12 and Tipperary as the Opposition?
|
CREATE TABLE "single_game" (
"rank" real,
"player" text,
"county" text,
"tally" text,
"total" real,
"opposition" text
);
|
SELECT AVG("rank") FROM "single_game" WHERE "opposition"='tipperary' AND "county"='limerick' AND "total">12;
|
2-13052263-3
|
What Player in Opposition of Kilkenny has a Total of 10?
|
CREATE TABLE "single_game" (
"rank" real,
"player" text,
"county" text,
"tally" text,
"total" real,
"opposition" text
);
|
SELECT "player" FROM "single_game" WHERE "total"=10 AND "opposition"='kilkenny';
|
2-13052263-3
|
What is the time in Romania that has a lane larger than 4?
|
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
|
SELECT "time" FROM "heats" WHERE "lane">4 AND "nationality"='romania';
|
2-12384714-2
|
Jin Hao had what amount of heat?
|
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
|
SELECT "heat" FROM "heats" WHERE "name"='jin hao';
|
2-12384714-2
|
At time 15:29.69 what was the heat?
|
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
|
SELECT "heat" FROM "heats" WHERE "time"='15:29.69';
|
2-12384714-2
|
What is the class of the team when less than 6 laps were completed?
|
CREATE TABLE "complete_24_hours_of_le_mans_results" (
"year" real,
"team" text,
"class" text,
"laps" real,
"pos" text
);
|
SELECT "class" FROM "complete_24_hours_of_le_mans_results" WHERE "laps"<6;
|
2-1233829-1
|
What is the year when Scuderia Lancia Corse competed?
|
CREATE TABLE "complete_24_hours_of_le_mans_results" (
"year" real,
"team" text,
"class" text,
"laps" real,
"pos" text
);
|
SELECT COUNT("year") FROM "complete_24_hours_of_le_mans_results" WHERE "team"='scuderia lancia corse';
|
2-1233829-1
|
What was the position of the teams before 1973?
|
CREATE TABLE "complete_24_hours_of_le_mans_results" (
"year" real,
"team" text,
"class" text,
"laps" real,
"pos" text
);
|
SELECT "pos" FROM "complete_24_hours_of_le_mans_results" WHERE "year"<1973;
|
2-1233829-1
|
What is the laid down date of Kaki?
|
CREATE TABLE "list_of_ships" (
"kanji" text,
"name" text,
"builder" text,
"laid_down" text,
"launched" text,
"completed" text
);
|
SELECT "laid_down" FROM "list_of_ships" WHERE "name"='kaki';
|
2-12776136-2
|
What is the launch date of 栗?
|
CREATE TABLE "list_of_ships" (
"kanji" text,
"name" text,
"builder" text,
"laid_down" text,
"launched" text,
"completed" text
);
|
SELECT "launched" FROM "list_of_ships" WHERE "kanji"='栗';
|
2-12776136-2
|
What is the completed date of 蓬?
|
CREATE TABLE "list_of_ships" (
"kanji" text,
"name" text,
"builder" text,
"laid_down" text,
"launched" text,
"completed" text
);
|
SELECT "completed" FROM "list_of_ships" WHERE "kanji"='蓬';
|
2-12776136-2
|
Which catalog was published on December 19, 2001?
|
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
|
SELECT "catalog" FROM "release_history" WHERE "date"='december 19, 2001';
|
2-12703182-2
|
What is the label for October 21, 1981?
|
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
|
SELECT "label" FROM "release_history" WHERE "date"='october 21, 1981';
|
2-12703182-2
|
What is the date for Catalog Alca-9201?
|
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
|
SELECT "date" FROM "release_history" WHERE "catalog"='alca-9201';
|
2-12703182-2
|
What is the format for July 27, 1994?
|
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
|
SELECT "format" FROM "release_history" WHERE "date"='july 27, 1994';
|
2-12703182-2
|
What is the date of the label Alfa records, a CD format, and an alca-9201 catalog?
|
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
|
SELECT "date" FROM "release_history" WHERE "label"='alfa records' AND "format"='cd' AND "catalog"='alca-9201';
|
2-12703182-2
|
What catalog has the CD format?
|
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
|
SELECT "catalog" FROM "release_history" WHERE "format"='cd';
|
2-12703182-2
|
Which nationaly is ranked greater than 1, with a time of 59.75?
|
CREATE TABLE "semifinal_1" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
|
SELECT "nationality" FROM "semifinal_1" WHERE "rank">1 AND "time"='59.75';
|
2-12446715-4
|
Which france nationality has a lane larger than 3?
|
CREATE TABLE "semifinal_1" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
|
SELECT "name" FROM "semifinal_1" WHERE "lane">3 AND "nationality"='france';
|
2-12446715-4
|
What's the total rank of the lane smaller than 8 with a time of 59.80?
|
CREATE TABLE "semifinal_1" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
|
SELECT SUM("rank") FROM "semifinal_1" WHERE "time"='59.80' AND "lane"<8;
|
2-12446715-4
|
What's the top rank that's lane is smaller than 1?
|
CREATE TABLE "semifinal_1" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
|
SELECT MAX("rank") FROM "semifinal_1" WHERE "lane"<1;
|
2-12446715-4
|
What year did deputy prime minister Mariano Rajoy Brey take office?
|
CREATE TABLE "list_of_deputy_prime_ministers_of_spain" (
"deputy_prime_minister" text,
"took_office" real,
"left_office" text,
"prime_minister" text,
"term" text,
"party" text
);
|
SELECT SUM("took_office") FROM "list_of_deputy_prime_ministers_of_spain" WHERE "deputy_prime_minister"='mariano rajoy brey';
|
2-1289651-1
|
Which deputy prime minister left office in 2004 and was in the 7th legislature?
|
CREATE TABLE "list_of_deputy_prime_ministers_of_spain" (
"deputy_prime_minister" text,
"took_office" real,
"left_office" text,
"prime_minister" text,
"term" text,
"party" text
);
|
SELECT "deputy_prime_minister" FROM "list_of_deputy_prime_ministers_of_spain" WHERE "term"='7th legislature' AND "left_office"='2004';
|
2-1289651-1
|
Which deputy prime minister left office in 1981?
|
CREATE TABLE "list_of_deputy_prime_ministers_of_spain" (
"deputy_prime_minister" text,
"took_office" real,
"left_office" text,
"prime_minister" text,
"term" text,
"party" text
);
|
SELECT "deputy_prime_minister" FROM "list_of_deputy_prime_ministers_of_spain" WHERE "left_office"='1981';
|
2-1289651-1
|
How many points did Connaught Type A chassis earn on average before 1955?
|
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
|
SELECT AVG("points") FROM "complete_formula_one_world_championship_" WHERE "year"<1955 AND "chassis"='connaught type a';
|
2-1235888-1
|
What is the lowest points with 6 draws and lower than rank 10?
|
CREATE TABLE "participating_countries" (
"draw" real,
"competing_dancers" text,
"dance_styles" text,
"rank" real,
"points" real
);
|
SELECT MIN("points") FROM "participating_countries" WHERE "draw"=6 AND "rank">10;
|
2-13053979-1
|
What is the lowest draw with rank 4?
|
CREATE TABLE "participating_countries" (
"draw" real,
"competing_dancers" text,
"dance_styles" text,
"rank" real,
"points" real
);
|
SELECT MIN("draw") FROM "participating_countries" WHERE "rank"=4;
|
2-13053979-1
|
How many draws has lower than rank 10 in rumba/cha-cha/jazz dance?
|
CREATE TABLE "participating_countries" (
"draw" real,
"competing_dancers" text,
"dance_styles" text,
"rank" real,
"points" real
);
|
SELECT COUNT("draw") FROM "participating_countries" WHERE "rank"<10 AND "dance_styles"='rumba/cha-cha/jazz dance';
|
2-13053979-1
|
How many draws have rumba/tango dance styles?
|
CREATE TABLE "participating_countries" (
"draw" real,
"competing_dancers" text,
"dance_styles" text,
"rank" real,
"points" real
);
|
SELECT COUNT("draw") FROM "participating_countries" WHERE "dance_styles"='rumba/tango';
|
2-13053979-1
|
What's the sum of the totals for Russia with more than 1 gold and less than 10 bronze?
|
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
|
SELECT SUM("total") FROM "medal_table" WHERE "gold">1 AND "nation"='russia' AND "bronze"<10;
|
2-12392827-5
|
what tournament happened on march 27, 2006?
|
CREATE TABLE "singles_wins_14" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
|
SELECT "tournament" FROM "singles_wins_14" WHERE "date"='march 27, 2006';
|
2-12702420-2
|
what was the score when scoville jenkins was the opponent?
|
CREATE TABLE "singles_wins_14" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
|
SELECT "score" FROM "singles_wins_14" WHERE "opponent"='scoville jenkins';
|
2-12702420-2
|
what was the opponent on november 14, 2005?
|
CREATE TABLE "singles_wins_14" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
|
SELECT "opponent" FROM "singles_wins_14" WHERE "date"='november 14, 2005';
|
2-12702420-2
|
what tournament happened on may 2, 2011?
|
CREATE TABLE "singles_wins_14" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
|
SELECT "tournament" FROM "singles_wins_14" WHERE "date"='may 2, 2011';
|
2-12702420-2
|
what tournament had sam querrey as the opponent?
|
CREATE TABLE "singles_wins_14" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
|
SELECT "tournament" FROM "singles_wins_14" WHERE "opponent"='sam querrey';
|
2-12702420-2
|
what tournament was on a hard surface and saw jacob adaktusson as the opponent?
|
CREATE TABLE "singles_wins_14" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
|
SELECT "tournament" FROM "singles_wins_14" WHERE "surface"='hard' AND "opponent"='jacob adaktusson';
|
2-12702420-2
|
Who was the opponent on September 17, 1995?
|
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
|
SELECT "opponent" FROM "schedule" WHERE "date"='september 17, 1995';
|
2-12488601-1
|
Which week had an attendance of 51,265?
|
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
|
SELECT "week" FROM "schedule" WHERE "attendance"='51,265';
|
2-12488601-1
|
Who was the opponent on December 17, 1995?
|
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
|
SELECT "opponent" FROM "schedule" WHERE "date"='december 17, 1995';
|
2-12488601-1
|
Which record has 4:14 as the time?
|
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"time" text,
"location" text
);
|
SELECT "record" FROM "mixed_martial_arts_record" WHERE "time"='4:14';
|
2-12574594-2
|
Which record has tko (strikes) as the method, and daan kooiman as the opponent?
|
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"time" text,
"location" text
);
|
SELECT "record" FROM "mixed_martial_arts_record" WHERE "method"='tko (strikes)' AND "opponent"='daan kooiman';
|
2-12574594-2
|
Which round has pain and glory 2006 as the event?
|
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"time" text,
"location" text
);
|
SELECT "round" FROM "mixed_martial_arts_record" WHERE "event"='pain and glory 2006';
|
2-12574594-2
|
Which record has john flemming as the opponent?
|
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"time" text,
"location" text
);
|
SELECT "record" FROM "mixed_martial_arts_record" WHERE "opponent"='john flemming';
|
2-12574594-2
|
Which record has 5:00 as the time, jess liaudin as the opponent for the location of england?
|
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"time" text,
"location" text
);
|
SELECT "record" FROM "mixed_martial_arts_record" WHERE "time"='5:00' AND "opponent"='jess liaudin' AND "location"='england';
|
2-12574594-2
|
Name the date with attendance more than 19,204 and result of l and visitor of san francisco 49ers and record of 2-8-0
|
CREATE TABLE "schedule" (
"date" text,
"visitor" text,
"result" text,
"score" text,
"home" text,
"record" text,
"attendance" real
);
|
SELECT "date" FROM "schedule" WHERE "attendance">'19,204' AND "result"='l' AND "visitor"='san francisco 49ers' AND "record"='2-8-0';
|
2-12149193-1
|
Name the score for home of green bay packers
|
CREATE TABLE "schedule" (
"date" text,
"visitor" text,
"result" text,
"score" text,
"home" text,
"record" text,
"attendance" real
);
|
SELECT "score" FROM "schedule" WHERE "home"='green bay packers';
|
2-12149193-1
|
Name the home for 21-17
|
CREATE TABLE "schedule" (
"date" text,
"visitor" text,
"result" text,
"score" text,
"home" text,
"record" text,
"attendance" real
);
|
SELECT "home" FROM "schedule" WHERE "score"='21-17';
|
2-12149193-1
|
What engine did Scuderia Ambrosiana with fewer than 4 points have?
|
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
|
SELECT "engine" FROM "complete_formula_one_world_championship_" WHERE "entrant"='scuderia ambrosiana' AND "points"<4;
|
2-1235870-1
|
What chassis had fewer than 0 points in a year before 1954?
|
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
|
SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "year"<1954 AND "points"=0;
|
2-1235870-1
|
What chassis had an entrant of G.A. Vandervell?
|
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
|
SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "entrant"='g.a. vandervell';
|
2-1235870-1
|
How many people were in attendance on may 2?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
|
SELECT MIN("attendance") FROM "game_log" WHERE "date"='may 2';
|
2-12206344-3
|
How many people were in attendance on may 17?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
|
SELECT MIN("attendance") FROM "game_log" WHERE "date"='may 17';
|
2-12206344-3
|
How many weeks did the single that entered the charts 14 september 2002 stay on the charts ?
|
CREATE TABLE "singles" (
"title" text,
"entered_chart_uk" text,
"peak_position_uk" real,
"weeks_on_chart_uk" real,
"sent_to_c_beebies_album" text
);
|
SELECT COUNT("weeks_on_chart_uk") FROM "singles" WHERE "entered_chart_uk"='14 september 2002';
|
2-1255729-3
|
Which single was on the Charts for 23 weeks ?
|
CREATE TABLE "singles" (
"title" text,
"entered_chart_uk" text,
"peak_position_uk" real,
"weeks_on_chart_uk" real,
"sent_to_c_beebies_album" text
);
|
SELECT "title" FROM "singles" WHERE "weeks_on_chart_uk"=23;
|
2-1255729-3
|
How many ECTS credit points occur with Master in Management?
|
CREATE TABLE "postgraduate" (
"program" text,
"degree" text,
"teaching_language" text,
"duration_years" real,
"full_time_part_time" text,
"ects_credit_points" real
);
|
SELECT COUNT("ects_credit_points") FROM "postgraduate" WHERE "program"='master in management';
|
2-12591022-2
|
What is the teaching language for Master of Quantitative Finance?
|
CREATE TABLE "postgraduate" (
"program" text,
"degree" text,
"teaching_language" text,
"duration_years" real,
"full_time_part_time" text,
"ects_credit_points" real
);
|
SELECT "teaching_language" FROM "postgraduate" WHERE "program"='master of quantitative finance';
|
2-12591022-2
|
Which program has 3.5 years?
|
CREATE TABLE "postgraduate" (
"program" text,
"degree" text,
"teaching_language" text,
"duration_years" real,
"full_time_part_time" text,
"ects_credit_points" real
);
|
SELECT "program" FROM "postgraduate" WHERE "duration_years"=3.5;
|
2-12591022-2
|
What is the teaching language for a less than 2 year duration and less than 65 ECTS credit points?
|
CREATE TABLE "postgraduate" (
"program" text,
"degree" text,
"teaching_language" text,
"duration_years" real,
"full_time_part_time" text,
"ects_credit_points" real
);
|
SELECT "teaching_language" FROM "postgraduate" WHERE "duration_years"<2 AND "ects_credit_points"<65;
|
2-12591022-2
|
What engine has more than 0 pts?
|
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"pts" real
);
|
SELECT "engine" FROM "complete_formula_one_results" WHERE "pts">0;
|
2-1226331-1
|
What is the average pots of Alfa Romeo v12 after 1983?
|
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"pts" real
);
|
SELECT AVG("pts") FROM "complete_formula_one_results" WHERE "engine"='alfa romeo v12' AND "year">1983;
|
2-1226331-1
|
What year did dave f. mctaggart win the men's singles and robert b. williams ethel marshall win the mixed doubles?
|
CREATE TABLE "canadian_national_championships_and_cana" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
|
SELECT MAX("year") FROM "canadian_national_championships_and_cana" WHERE "men_s_singles"='dave f. mctaggart' AND "mixed_doubles"='robert b. williams ethel marshall';
|
2-12552861-1
|
Who won the women's singles before 1958 when dave f. mctaggart won the men's singles?
|
CREATE TABLE "canadian_national_championships_and_cana" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
|
SELECT "women_s_singles" FROM "canadian_national_championships_and_cana" WHERE "men_s_singles"='dave f. mctaggart' AND "year"<1958;
|
2-12552861-1
|
Who won the men's singles in 1958?
|
CREATE TABLE "canadian_national_championships_and_cana" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
|
SELECT "men_s_singles" FROM "canadian_national_championships_and_cana" WHERE "year"=1958;
|
2-12552861-1
|
Who won the mixed doubles in 1957 when judy devlin won the women's singles?
|
CREATE TABLE "canadian_national_championships_and_cana" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
|
SELECT "mixed_doubles" FROM "canadian_national_championships_and_cana" WHERE "women_s_singles"='judy devlin' AND "year"=1957;
|
2-12552861-1
|
What was the total against in uefa champions league/european cup with more than 1 draw?
|
CREATE TABLE "european_record" (
"competition" text,
"played" real,
"draw" real,
"lost" real,
"against" real
);
|
SELECT SUM("against") FROM "european_record" WHERE "competition"='uefa champions league/european cup' AND "draw">1;
|
2-1232782-5
|
What is the total against with 1 draw and less than 8 played?
|
CREATE TABLE "european_record" (
"competition" text,
"played" real,
"draw" real,
"lost" real,
"against" real
);
|
SELECT SUM("against") FROM "european_record" WHERE "draw"=1 AND "played"<8;
|
2-1232782-5
|
How many times did Super Nova Racing win with a zytek engine?
|
CREATE TABLE "champions" (
"season" text,
"team" text,
"racing_team" text,
"chassis" text,
"engine" text,
"tyres" text,
"drivers" text,
"wins" text,
"sprints_wins" text,
"main_wins" text,
"poles" text,
"fastest_laps" text,
"points" text
);
|
SELECT "wins" FROM "champions" WHERE "engine"='zytek' AND "racing_team"='super nova racing';
|
2-12868148-2
|
How many main wins for France?
|
CREATE TABLE "champions" (
"season" text,
"team" text,
"racing_team" text,
"chassis" text,
"engine" text,
"tyres" text,
"drivers" text,
"wins" text,
"sprints_wins" text,
"main_wins" text,
"poles" text,
"fastest_laps" text,
"points" text
);
|
SELECT "main_wins" FROM "champions" WHERE "team"='france';
|
2-12868148-2
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.