question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
Which Year is the highest one that has a Venue of edmonton, canada? | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
); | SELECT MAX("year") FROM "achievements" WHERE "venue"='edmonton, canada'; | 2-15307428-1 |
Which Position has a Competition of world championships, and a Year larger than 1997? | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
); | SELECT "position" FROM "achievements" WHERE "competition"='world championships' AND "year">1997; | 2-15307428-1 |
Which Venue has a Notes of heptathlon, and a Year of 1991? | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
); | SELECT "venue" FROM "achievements" WHERE "notes"='heptathlon' AND "year"=1991; | 2-15307428-1 |
What days held has noiz as the wrestler? | CREATE TABLE "pro_wrestling_zero1_version_disputed_bra" (
"wrestler" text,
"reign" text,
"days_held" text,
"location" text,
"event" text
); | SELECT "days_held" FROM "pro_wrestling_zero1_version_disputed_bra" WHERE "wrestler"='noiz'; | 2-14227676-3 |
What location has tatsuhito takaiwa as the wrestler? | CREATE TABLE "pro_wrestling_zero1_version_disputed_bra" (
"wrestler" text,
"reign" text,
"days_held" text,
"location" text,
"event" text
); | SELECT "location" FROM "pro_wrestling_zero1_version_disputed_bra" WHERE "wrestler"='tatsuhito takaiwa'; | 2-14227676-3 |
What event has 8 as the days held? | CREATE TABLE "pro_wrestling_zero1_version_disputed_bra" (
"wrestler" text,
"reign" text,
"days_held" text,
"location" text,
"event" text
); | SELECT "event" FROM "pro_wrestling_zero1_version_disputed_bra" WHERE "days_held"='8'; | 2-14227676-3 |
What event has unknown as the days held.? | CREATE TABLE "pro_wrestling_zero1_version_disputed_bra" (
"wrestler" text,
"reign" text,
"days_held" text,
"location" text,
"event" text
); | SELECT "event" FROM "pro_wrestling_zero1_version_disputed_bra" WHERE "days_held"='unknown'; | 2-14227676-3 |
What is the Displacement of the Iveco F1CE3481E Engine? | CREATE TABLE "2011" (
"model" text,
"engine" text,
"displacement" text,
"valvetrain" text,
"fuel_system" text,
"max_power_at_rpm" text,
"max_torque_at_rpm" text
); | SELECT "displacement" FROM "2011" WHERE "engine"='iveco f1ce3481e'; | 2-1415821-6 |
What is the Displacement of the 180 Multijet Power/3.0 HDI Model? | CREATE TABLE "2011" (
"model" text,
"engine" text,
"displacement" text,
"valvetrain" text,
"fuel_system" text,
"max_power_at_rpm" text,
"max_torque_at_rpm" text
); | SELECT "displacement" FROM "2011" WHERE "model"='180 multijet power/3.0 hdi'; | 2-1415821-6 |
What is the Valvetrain of the Diesel Engines Model? | CREATE TABLE "2011" (
"model" text,
"engine" text,
"displacement" text,
"valvetrain" text,
"fuel_system" text,
"max_power_at_rpm" text,
"max_torque_at_rpm" text
); | SELECT "valvetrain" FROM "2011" WHERE "model"='diesel engines'; | 2-1415821-6 |
Year(s) won of 1994 , 1997 has what average total? | CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real,
"finish" text
); | SELECT AVG("total") FROM "made_the_cut" WHERE "year_s_won"='1994 , 1997'; | 2-13990408-1 |
Player of corey pavin, and a To par larger than 5 has what average total? | CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real,
"finish" text
); | SELECT AVG("total") FROM "made_the_cut" WHERE "player"='corey pavin' AND "to_par">5; | 2-13990408-1 |
Total smaller than 285, and a To par larger than 1 belongs to what player? | CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real,
"finish" text
); | SELECT "player" FROM "made_the_cut" WHERE "total"<285 AND "to_par">1; | 2-13990408-1 |
Total larger than 285, and a Finish of t30 belongs to what player? | CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real,
"finish" text
); | SELECT "player" FROM "made_the_cut" WHERE "total">285 AND "finish"='t30'; | 2-13990408-1 |
Which player for a team with an 18-20 record had the most rebounds in a game? | CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
); | SELECT "high_rebounds" FROM "game_log" WHERE "record"='18-20'; | 2-13619105-5 |
What is the total area of Kruzof island? | CREATE TABLE "islands_km" (
"rank" real,
"island_s_name" text,
"area_sqmi" real,
"area_km_2" real,
"location" text,
"population_2000" text
); | SELECT COUNT("area_km_2") FROM "islands_km" WHERE "island_s_name"='kruzof island'; | 2-13897690-2 |
Name the total number of frequency Mhz with class of d and call sign of k201bm and ERP W less than 74 | CREATE TABLE "external_links" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
); | SELECT COUNT("frequency_m_hz") FROM "external_links" WHERE "class"='d' AND "call_sign"='k201bm' AND "erp_w"<74; | 2-14035388-2 |
Name the least frequency Mhz with call sign of k202ag | CREATE TABLE "external_links" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
); | SELECT MIN("frequency_m_hz") FROM "external_links" WHERE "call_sign"='k202ag'; | 2-14035388-2 |
Name the class with call sign of k220cp | CREATE TABLE "external_links" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
); | SELECT "class" FROM "external_links" WHERE "call_sign"='k220cp'; | 2-14035388-2 |
What is the Winnipeg Jets record? | CREATE TABLE "schedule_and_results" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text
); | SELECT "record" FROM "schedule_and_results" WHERE "opponent"='winnipeg jets'; | 2-14056076-4 |
What's the stadium on November 8? | CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "home" FROM "regular_season" WHERE "date"='november 8'; | 2-13605874-2 |
Who was the visitor on March 17? | CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "visitor" FROM "regular_season" WHERE "date"='march 17'; | 2-13605874-2 |
What's the score for Toronto Maple Leafs on November 10? | CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "score" FROM "regular_season" WHERE "home"='toronto maple leafs' AND "date"='november 10'; | 2-13605874-2 |
Who was the visitor on October 31? | CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "visitor" FROM "regular_season" WHERE "date"='october 31'; | 2-13605874-2 |
What is the rank associated with 0 wins and a 350cc class? | CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
); | SELECT "rank" FROM "motorcycle_grand_prix_results" WHERE "wins"=0 AND "class"='350cc'; | 2-15128455-2 |
What is the run 2 of the athlete from Australia with a run 1 less than 53.75? | CREATE TABLE "women" (
"athlete" text,
"country" text,
"run_1" real,
"run_2" real,
"run_3" real
); | SELECT "run_2" FROM "women" WHERE "country"='australia' AND "run_1"<53.75; | 2-13581979-5 |
What is the run 2 of athlete Maria Orlova from Russia? | CREATE TABLE "women" (
"athlete" text,
"country" text,
"run_1" real,
"run_2" real,
"run_3" real
); | SELECT SUM("run_2") FROM "women" WHERE "country"='russia' AND "athlete"='maria orlova'; | 2-13581979-5 |
What is the run 3 of the athlete with a run 1 more than 53.75 and a run 2 less than 52.91? | CREATE TABLE "women" (
"athlete" text,
"country" text,
"run_1" real,
"run_2" real,
"run_3" real
); | SELECT SUM("run_3") FROM "women" WHERE "run_1">53.75 AND "run_2"<52.91; | 2-13581979-5 |
What is the lowest run 3 an athlete with a run 2 less than 53.72 and a run 1 of 53.1 has? | CREATE TABLE "women" (
"athlete" text,
"country" text,
"run_1" real,
"run_2" real,
"run_3" real
); | SELECT MIN("run_3") FROM "women" WHERE "run_2"<53.72 AND "run_1"=53.1; | 2-13581979-5 |
What is the lowest run 2 of the athlete with a run 1 of 52.44 and a run 3 less than 52.35? | CREATE TABLE "women" (
"athlete" text,
"country" text,
"run_1" real,
"run_2" real,
"run_3" real
); | SELECT MIN("run_2") FROM "women" WHERE "run_1"=52.44 AND "run_3"<52.35; | 2-13581979-5 |
How many points are associated with over 1 top 5, 1 win, over 0 poles, and andrew ranger as the driver? | CREATE TABLE "standings" (
"position" real,
"driver" text,
"wins" real,
"poles" real,
"top_5_s" real,
"points" real
); | SELECT MAX("points") FROM "standings" WHERE "top_5_s">1 AND "wins"=1 AND "poles">0 AND "driver"='andrew ranger'; | 2-14860588-3 |
How many points are associated with 0 poles? | CREATE TABLE "standings" (
"position" real,
"driver" text,
"wins" real,
"poles" real,
"top_5_s" real,
"points" real
); | SELECT COUNT("points") FROM "standings" WHERE "poles"<0; | 2-14860588-3 |
How many wins are associated with a position of under 6, over 8 top 5s, and 1793 points? | CREATE TABLE "standings" (
"position" real,
"driver" text,
"wins" real,
"poles" real,
"top_5_s" real,
"points" real
); | SELECT SUM("wins") FROM "standings" WHERE "position"<6 AND "top_5_s"=8 AND "points"=1793; | 2-14860588-3 |
What is the first game that has a home team of Detroit? | CREATE TABLE "march" (
"game_num" real,
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text,
"points" real
); | SELECT MIN("game_num") FROM "march" WHERE "home"='detroit'; | 2-13913477-8 |
Which home team has higher than 92 points? | CREATE TABLE "march" (
"game_num" real,
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text,
"points" real
); | SELECT "home" FROM "march" WHERE "points">92; | 2-13913477-8 |
what team's score is 101? | CREATE TABLE "test_centuries_by_nightwatchmen" (
"player" text,
"team" text,
"score" text,
"versus" text,
"year" real
); | SELECT "team" FROM "test_centuries_by_nightwatchmen" WHERE "score"='101'; | 2-1377586-1 |
what team played against zimbabwe in 1999? | CREATE TABLE "test_centuries_by_nightwatchmen" (
"player" text,
"team" text,
"score" text,
"versus" text,
"year" real
); | SELECT "team" FROM "test_centuries_by_nightwatchmen" WHERE "year"=1999 AND "versus"='zimbabwe'; | 2-1377586-1 |
what is the team that played in 2006? | CREATE TABLE "test_centuries_by_nightwatchmen" (
"player" text,
"team" text,
"score" text,
"versus" text,
"year" real
); | SELECT "team" FROM "test_centuries_by_nightwatchmen" WHERE "year"=2006; | 2-1377586-1 |
What is the lowest amount of points driver Romain Grosjean, who has an average pre-2010 less than 0, has? | CREATE TABLE "highest_average_points_per_race_entered" (
"driver" text,
"entries" real,
"points" real,
"average_points_per_race_entered" real,
"average_pre_2010" real
); | SELECT MIN("points") FROM "highest_average_points_per_race_entered" WHERE "driver"='romain grosjean' AND "average_pre_2010"<0; | 2-13599687-57 |
What is the average number of entries driver Mark Webber, who has more than 1014.5 points, has? | CREATE TABLE "highest_average_points_per_race_entered" (
"driver" text,
"entries" real,
"points" real,
"average_points_per_race_entered" real,
"average_pre_2010" real
); | SELECT AVG("entries") FROM "highest_average_points_per_race_entered" WHERE "driver"='mark webber' AND "points">1014.5; | 2-13599687-57 |
What is the highest average points per race of the driver with less than 969 points and an average pre-2010 less than 0? | CREATE TABLE "highest_average_points_per_race_entered" (
"driver" text,
"entries" real,
"points" real,
"average_points_per_race_entered" real,
"average_pre_2010" real
); | SELECT MAX("average_points_per_race_entered") FROM "highest_average_points_per_race_entered" WHERE "points"<969 AND "average_pre_2010"<0; | 2-13599687-57 |
What is the lowest average points per race entered of driver kimi räikkönen, who has more than 194 entries? | CREATE TABLE "highest_average_points_per_race_entered" (
"driver" text,
"entries" real,
"points" real,
"average_points_per_race_entered" real,
"average_pre_2010" real
); | SELECT MIN("average_points_per_race_entered") FROM "highest_average_points_per_race_entered" WHERE "driver"='kimi räikkönen' AND "entries">194; | 2-13599687-57 |
What is the first game played against the Chicago Black Hawks? | CREATE TABLE "schedule_and_results" (
"game" real,
"january" real,
"opponent" text,
"score" text,
"record" text
); | SELECT MIN("game") FROM "schedule_and_results" WHERE "opponent"='chicago black hawks'; | 2-13991411-5 |
Name the opponent for 9 november 1991 | CREATE TABLE "premier_division" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
); | SELECT "opponent" FROM "premier_division" WHERE "date"='9 november 1991'; | 2-15131981-2 |
Which Losses is the lowest one that has Wins smaller than 0? | CREATE TABLE "cfl_teams_with_one_or_no_wins_in_a_seaso" (
"season" real,
"team" text,
"games" real,
"wins" real,
"losses" real,
"ties" real
); | SELECT MIN("losses") FROM "cfl_teams_with_one_or_no_wins_in_a_seaso" WHERE "wins"<0; | 2-14417906-3 |
Which Losses have a Season larger than 1941, and a Team of hamilton wildcats, and Ties of 0? | CREATE TABLE "cfl_teams_with_one_or_no_wins_in_a_seaso" (
"season" real,
"team" text,
"games" real,
"wins" real,
"losses" real,
"ties" real
); | SELECT "losses" FROM "cfl_teams_with_one_or_no_wins_in_a_seaso" WHERE "season">1941 AND "team"='hamilton wildcats' AND "ties"=0; | 2-14417906-3 |
Which Season has Ties smaller than 1, and a Team of vancouver grizzlies, and Wins smaller than 1? | CREATE TABLE "cfl_teams_with_one_or_no_wins_in_a_seaso" (
"season" real,
"team" text,
"games" real,
"wins" real,
"losses" real,
"ties" real
); | SELECT SUM("season") FROM "cfl_teams_with_one_or_no_wins_in_a_seaso" WHERE "ties"<1 AND "team"='vancouver grizzlies' AND "wins"<1; | 2-14417906-3 |
How many Ties have Wins smaller than 1, and Games of 6, and Losses of 6, and a Season larger than 1941? | CREATE TABLE "cfl_teams_with_one_or_no_wins_in_a_seaso" (
"season" real,
"team" text,
"games" real,
"wins" real,
"losses" real,
"ties" real
); | SELECT COUNT("ties") FROM "cfl_teams_with_one_or_no_wins_in_a_seaso" WHERE "wins"<1 AND "games"=6 AND "losses"=6 AND "season">1941; | 2-14417906-3 |
Which Wins have a Team of winnipeg blue bombers, and a Season larger than 1964? | CREATE TABLE "cfl_teams_with_one_or_no_wins_in_a_seaso" (
"season" real,
"team" text,
"games" real,
"wins" real,
"losses" real,
"ties" real
); | SELECT AVG("wins") FROM "cfl_teams_with_one_or_no_wins_in_a_seaso" WHERE "team"='winnipeg blue bombers' AND "season">1964; | 2-14417906-3 |
What engine class is associated with a year after 1985 and over 0 wins? | CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"wins" real
); | SELECT "class" FROM "motorcycle_grand_prix_results" WHERE "year">1985 AND "wins">0; | 2-14860855-3 |
Which opponent has a loss of trout (7-4)? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"save" text
); | SELECT "opponent" FROM "game_log" WHERE "loss"='trout (7-4)'; | 2-13551983-5 |
Which opponent has a save of smith (22)? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"save" text
); | SELECT "opponent" FROM "game_log" WHERE "save"='smith (22)'; | 2-13551983-5 |
How much Gold has a Bronze larger than 1, and a Silver larger than 2? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT COUNT("gold") FROM "medal_table" WHERE "bronze">1 AND "silver">2; | 2-14335046-1 |
Which Total has a Nation of japan (jpn), and a Silver smaller than 1? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("total") FROM "medal_table" WHERE "nation"='japan (jpn)' AND "silver"<1; | 2-14335046-1 |
What is the margin of victory in WGC-Accenture Match Play Championship? | CREATE TABLE "pga_tour_wins_13" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
); | SELECT "margin_of_victory" FROM "pga_tour_wins_13" WHERE "tournament"='wgc-accenture match play championship'; | 2-1512659-2 |
On what date was Nick Price the runner-up? | CREATE TABLE "pga_tour_wins_13" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
); | SELECT "date" FROM "pga_tour_wins_13" WHERE "runner_s_up"='nick price'; | 2-1512659-2 |
What is the margin of victory for Nick Price as a runner-up? | CREATE TABLE "pga_tour_wins_13" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
); | SELECT "margin_of_victory" FROM "pga_tour_wins_13" WHERE "runner_s_up"='nick price'; | 2-1512659-2 |
What is the margin of victory for PGA Championship? | CREATE TABLE "pga_tour_wins_13" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
); | SELECT "margin_of_victory" FROM "pga_tour_wins_13" WHERE "tournament"='pga championship'; | 2-1512659-2 |
On what date was the winning score –20 (68-67-65-64=264)? | CREATE TABLE "pga_tour_wins_13" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
); | SELECT "date" FROM "pga_tour_wins_13" WHERE "winning_score"='–20 (68-67-65-64=264)'; | 2-1512659-2 |
Which player was D past Round 3? | CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
); | SELECT "player" FROM "draft_picks" WHERE "position"='d' AND "round">3; | 2-14383093-16 |
Which Round was F picked? | CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
); | SELECT "round" FROM "draft_picks" WHERE "position"='f'; | 2-14383093-16 |
What Position is Ryan Russell? | CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
); | SELECT "position" FROM "draft_picks" WHERE "player"='ryan russell'; | 2-14383093-16 |
What country does Round 4 come from? | CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
); | SELECT "nationality" FROM "draft_picks" WHERE "round"=4; | 2-14383093-16 |
Which opponent was present on April 14? | CREATE TABLE "playoffs" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"series" text
); | SELECT "opponent" FROM "playoffs" WHERE "date"='april 14'; | 2-14347797-10 |
what team lost on april 15 | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"save" text
); | SELECT "loss" FROM "game_log" WHERE "date"='april 15'; | 2-14337005-2 |
what team played on april 21 | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"save" text
); | SELECT "opponent" FROM "game_log" WHERE "date"='april 21'; | 2-14337005-2 |
what team scored on april 10 | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"save" text
); | SELECT "score" FROM "game_log" WHERE "date"='april 10'; | 2-14337005-2 |
Who lost with a time of 0:58? | CREATE TABLE "preliminary_card" (
"weight_division" text,
"winner" text,
"loser" text,
"method" text,
"round" real,
"time" text
); | SELECT "loser" FROM "preliminary_card" WHERE "time"='0:58'; | 2-15157472-2 |
What is the average number of rounds for winner Rafael Cavalcante? | CREATE TABLE "preliminary_card" (
"weight_division" text,
"winner" text,
"loser" text,
"method" text,
"round" real,
"time" text
); | SELECT AVG("round") FROM "preliminary_card" WHERE "winner"='rafael cavalcante'; | 2-15157472-2 |
What win method has a time of 2:32? | CREATE TABLE "preliminary_card" (
"weight_division" text,
"winner" text,
"loser" text,
"method" text,
"round" real,
"time" text
); | SELECT "method" FROM "preliminary_card" WHERE "time"='2:32'; | 2-15157472-2 |
If Four aces yields 800 for 5 credits, what would the result be for 1 Credit? | CREATE TABLE "double_double_bonus" (
"hand" text,
"1_credit" text,
"2_credits" text,
"3_credits" text,
"4_credits" text,
"5_credits" text
); | SELECT "1_credit" FROM "double_double_bonus" WHERE "5_credits"='800' AND "hand"='four aces'; | 2-148535-4 |
What is the sum of points values that are associated with 0 losses and more than 8 games? | CREATE TABLE "world_championship_group_c_denmark" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
); | SELECT SUM("points") FROM "world_championship_group_c_denmark" WHERE "lost"=0 AND "games">8; | 2-14077513-5 |
What is the fewest losses associated with more than 13 points and fewer than 8 games? | CREATE TABLE "world_championship_group_c_denmark" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
); | SELECT MIN("lost") FROM "world_championship_group_c_denmark" WHERE "points">13 AND "games"<8; | 2-14077513-5 |
What is the difference associated with more than 2 points, fewer than 3 losses, and fewer than 1 draw? | CREATE TABLE "world_championship_group_c_denmark" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
); | SELECT "points_difference" FROM "world_championship_group_c_denmark" WHERE "points">2 AND "lost"<3 AND "drawn"<1; | 2-14077513-5 |
What is the fewest number of points associated with more than 8 games? | CREATE TABLE "world_championship_group_c_denmark" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
); | SELECT MIN("points") FROM "world_championship_group_c_denmark" WHERE "games">8; | 2-14077513-5 |
Which title did richard kolner play? | CREATE TABLE "1921_1930" (
"title" text,
"date" text,
"theatre" text,
"role" text,
"dance_partner" text,
"director" text,
"lyrics" text,
"music" text
); | SELECT "title" FROM "1921_1930" WHERE "role"='richard kolner'; | 2-15186990-3 |
Which Title has a Dance Partner of adele astaire, and Lyrics of ira gershwin, and a Director of felix edwardes? | CREATE TABLE "1921_1930" (
"title" text,
"date" text,
"theatre" text,
"role" text,
"dance_partner" text,
"director" text,
"lyrics" text,
"music" text
); | SELECT "title" FROM "1921_1930" WHERE "dance_partner"='adele astaire' AND "lyrics"='ira gershwin' AND "director"='felix edwardes'; | 2-15186990-3 |
Which Role has a Theatre of globe, and a Music of jerome kern? | CREATE TABLE "1921_1930" (
"title" text,
"date" text,
"theatre" text,
"role" text,
"dance_partner" text,
"director" text,
"lyrics" text,
"music" text
); | SELECT "role" FROM "1921_1930" WHERE "theatre"='globe' AND "music"='jerome kern'; | 2-15186990-3 |
what name was on the year 2012 | CREATE TABLE "proposed" (
"rank" real,
"name" text,
"height_ft_m" text,
"year_est" text,
"city" text
); | SELECT "name" FROM "proposed" WHERE "year_est"='2012'; | 2-13538796-5 |
Which member of house of Habsburg-Lorraine had the spouse Charles II? | CREATE TABLE "house_of_habsburg_lorraine_1765_1918" (
"name" text,
"birth" text,
"marriage" text,
"became_duchess" text,
"ceased_to_be_duchess" text,
"death" text,
"spouse" text
); | SELECT "name" FROM "house_of_habsburg_lorraine_1765_1918" WHERE "spouse"='charles ii'; | 2-14908743-4 |
What is the marriage date for the Habsburg-Lorraine house member who died 29 December 1829? | CREATE TABLE "house_of_habsburg_lorraine_1765_1918" (
"name" text,
"birth" text,
"marriage" text,
"became_duchess" text,
"ceased_to_be_duchess" text,
"death" text,
"spouse" text
); | SELECT "marriage" FROM "house_of_habsburg_lorraine_1765_1918" WHERE "death"='29 december 1829'; | 2-14908743-4 |
When did the duchess who became duchess on 7/8 April 1766 cease to be duchess? | CREATE TABLE "house_of_habsburg_lorraine_1765_1918" (
"name" text,
"birth" text,
"marriage" text,
"became_duchess" text,
"ceased_to_be_duchess" text,
"death" text,
"spouse" text
); | SELECT "ceased_to_be_duchess" FROM "house_of_habsburg_lorraine_1765_1918" WHERE "became_duchess"='7/8 april 1766'; | 2-14908743-4 |
What is the date of death of the duchess born on 30 October 1797? | CREATE TABLE "house_of_habsburg_lorraine_1765_1918" (
"name" text,
"birth" text,
"marriage" text,
"became_duchess" text,
"ceased_to_be_duchess" text,
"death" text,
"spouse" text
); | SELECT "death" FROM "house_of_habsburg_lorraine_1765_1918" WHERE "birth"='30 october 1797'; | 2-14908743-4 |
What is the birth date of the duchess who married on 1 May 1844? | CREATE TABLE "house_of_habsburg_lorraine_1765_1918" (
"name" text,
"birth" text,
"marriage" text,
"became_duchess" text,
"ceased_to_be_duchess" text,
"death" text,
"spouse" text
); | SELECT "birth" FROM "house_of_habsburg_lorraine_1765_1918" WHERE "marriage"='1 may 1844'; | 2-14908743-4 |
What is the highest numbered pick from round 7? | CREATE TABLE "nba_draft" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"school_club_team" text
); | SELECT MAX("pick") FROM "nba_draft" WHERE "round"=7; | 2-13821848-1 |
How much Played has an Against larger than 11, and a Team of botafogo, and a Position smaller than 2? | CREATE TABLE "torneio_rio_s_o_paulo" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
); | SELECT COUNT("played") FROM "torneio_rio_s_o_paulo" WHERE "against">11 AND "team"='botafogo' AND "position"<2; | 2-15268176-2 |
Which average Drawn has Points smaller than 14, and a Lost smaller than 4, and a Played larger than 9? | CREATE TABLE "torneio_rio_s_o_paulo" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
); | SELECT AVG("drawn") FROM "torneio_rio_s_o_paulo" WHERE "points"<14 AND "lost"<4 AND "played">9; | 2-15268176-2 |
Which Played is the lowest one that has a Team of vasco da gama, and an Against smaller than 11? | CREATE TABLE "torneio_rio_s_o_paulo" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
); | SELECT MIN("played") FROM "torneio_rio_s_o_paulo" WHERE "team"='vasco da gama' AND "against"<11; | 2-15268176-2 |
Which Played has a Lost larger than 4, and a Team of américa, and Points smaller than 5? | CREATE TABLE "torneio_rio_s_o_paulo" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
); | SELECT SUM("played") FROM "torneio_rio_s_o_paulo" WHERE "lost">4 AND "team"='américa' AND "points"<5; | 2-15268176-2 |
Which Lost has a Position of 3, and a Drawn larger than 3? | CREATE TABLE "torneio_rio_s_o_paulo" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
); | SELECT SUM("lost") FROM "torneio_rio_s_o_paulo" WHERE "position"=3 AND "drawn">3; | 2-15268176-2 |
How much Lost has a Drawn larger than 1, and Points smaller than 14, and an Against larger than 10? | CREATE TABLE "torneio_rio_s_o_paulo" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
); | SELECT COUNT("lost") FROM "torneio_rio_s_o_paulo" WHERE "drawn">1 AND "points"<14 AND "against">10; | 2-15268176-2 |
What tournament has yvonne vermaak as the opponent? | CREATE TABLE "singles_6_2_titles_4_runners_up" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
); | SELECT "tournament" FROM "singles_6_2_titles_4_runners_up" WHERE "opponent"='yvonne vermaak'; | 2-1454042-3 |
What outcome has yvonne vermaak as the opponent? | CREATE TABLE "singles_6_2_titles_4_runners_up" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
); | SELECT "outcome" FROM "singles_6_2_titles_4_runners_up" WHERE "opponent"='yvonne vermaak'; | 2-1454042-3 |
What is the outcome for the Hershey tournament? | CREATE TABLE "singles_6_2_titles_4_runners_up" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
); | SELECT "outcome" FROM "singles_6_2_titles_4_runners_up" WHERE "tournament"='hershey'; | 2-1454042-3 |
Who played against Save Of Ni Fu-Deh? | CREATE TABLE "regular_season" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"save" text
); | SELECT "opponent" FROM "regular_season" WHERE "save"='ni fu-deh'; | 2-13990653-2 |
What's the loss of who has a Save of Miguel Saladin and played against Chinatrust Whales? | CREATE TABLE "regular_season" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"save" text
); | SELECT "loss" FROM "regular_season" WHERE "opponent"='chinatrust whales' AND "save"='miguel saladin'; | 2-13990653-2 |
Who's the opponent when Diegomar Markwell is the loss? | CREATE TABLE "regular_season" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"save" text
); | SELECT "opponent" FROM "regular_season" WHERE "loss"='diegomar markwell'; | 2-13990653-2 |
what game had a score of 86-71 | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "attendance" FROM "game_log" WHERE "record"='86-71'; | 2-13848348-10 |
what game took place on september 14 | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "record" FROM "game_log" WHERE "date"='september 14'; | 2-13848348-10 |
what game had an attendance of 21,629 | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "record" FROM "game_log" WHERE "attendance"='21,629'; | 2-13848348-10 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.