question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
With a To par of –2, what is Johnny Miller's Place? | CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
); | SELECT "place" FROM "second_round" WHERE "to_par"='–2' AND "player"='johnny miller'; | 2-17245540-5 |
From what Country is Gene Borek? | CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
); | SELECT "country" FROM "second_round" WHERE "player"='gene borek'; | 2-17245540-5 |
What is the Country of the Player with a To par of –5? | CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
); | SELECT "country" FROM "second_round" WHERE "to_par"='–5'; | 2-17245540-5 |
What is the Place of the Player from New Zealand? | CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
); | SELECT "place" FROM "second_round" WHERE "country"='new zealand'; | 2-17245540-5 |
What is the Place of the Player with a Score of 70-68=138? | CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
); | SELECT "place" FROM "second_round" WHERE "score"='70-68=138'; | 2-17245540-5 |
What is the highest Losses, when Wins is greater than 1, and when Last Appearance is 2003? | CREATE TABLE "championship_game_results_by_team" (
"appearances" real,
"school" text,
"wins" real,
"losses" real,
"percent" text,
"last_appearance" text
); | SELECT MAX("losses") FROM "championship_game_results_by_team" WHERE "wins">1 AND "last_appearance"='2003'; | 2-16225511-2 |
What is the highest Wins, when Percent is 0.000, when School is Oklahoma State, and when Appearances is less than 1? | CREATE TABLE "championship_game_results_by_team" (
"appearances" real,
"school" text,
"wins" real,
"losses" real,
"percent" text,
"last_appearance" text
); | SELECT MAX("wins") FROM "championship_game_results_by_team" WHERE "percent"='0.000' AND "school"='oklahoma state' AND "appearances"<1; | 2-16225511-2 |
What is the total number of Losses, when Last Appearance is 2003, and when Wins is greater than 2? | CREATE TABLE "championship_game_results_by_team" (
"appearances" real,
"school" text,
"wins" real,
"losses" real,
"percent" text,
"last_appearance" text
); | SELECT COUNT("losses") FROM "championship_game_results_by_team" WHERE "last_appearance"='2003' AND "wins">2; | 2-16225511-2 |
What is Last Appearance, when Wins is less than 1, when Losses is 1, and when School is Oklahoma State? | CREATE TABLE "championship_game_results_by_team" (
"appearances" real,
"school" text,
"wins" real,
"losses" real,
"percent" text,
"last_appearance" text
); | SELECT "last_appearance" FROM "championship_game_results_by_team" WHERE "wins"<1 AND "losses"=1 AND "school"='oklahoma state'; | 2-16225511-2 |
What is College, when Pick is less than 145, and when Player is Jeff Wilkins? | CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college" text
); | SELECT "college" FROM "draft_picks" WHERE "pick"<145 AND "player"='jeff wilkins'; | 2-17063833-1 |
What is Nationality, and when College is Illinois State? | CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college" text
); | SELECT "nationality" FROM "draft_picks" WHERE "college"='illinois state'; | 2-17063833-1 |
What is Nationality, when Round is 6? | CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college" text
); | SELECT "nationality" FROM "draft_picks" WHERE "round"=6; | 2-17063833-1 |
What is the total number of Round, when College is Northern Illinois? | CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college" text
); | SELECT COUNT("round") FROM "draft_picks" WHERE "college"='northern illinois'; | 2-17063833-1 |
What is the average bronze when the total is 2, silver is less than 1 and gold is more than 1? | CREATE TABLE "medal_count_by_country" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("bronze") FROM "medal_count_by_country" WHERE "total"=2 AND "silver"<1 AND "gold">1; | 2-16374099-2 |
what is the average silver when the total is more than 20? | CREATE TABLE "medal_count_by_country" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("silver") FROM "medal_count_by_country" WHERE "total">20; | 2-16374099-2 |
what is the highest rank when the nation is united states (usa) and bronze is more than 1? | CREATE TABLE "medal_count_by_country" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MAX("rank") FROM "medal_count_by_country" WHERE "nation"='united states (usa)' AND "bronze">1; | 2-16374099-2 |
what is the average total when bronze is more than 0, gold is 0, the nation is united states (usa) and silver is 0? | CREATE TABLE "medal_count_by_country" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("total") FROM "medal_count_by_country" WHERE "bronze">0 AND "gold"=0 AND "nation"='united states (usa)' AND "silver"<0; | 2-16374099-2 |
What was the resolution for the fight against enrique guzman? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real
); | SELECT "res" FROM "mixed_martial_arts_record" WHERE "opponent"='enrique guzman'; | 2-17440712-2 |
What was the resolution of the fight when Nate Mohr's record was 8-6? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real
); | SELECT "res" FROM "mixed_martial_arts_record" WHERE "record"='8-6'; | 2-17440712-2 |
What is the smallest number of third place earned for the Es Sahel at a rank less than 3? | CREATE TABLE "winners_by_team" (
"rank" real,
"club" text,
"winners" real,
"runners_up" real,
"third" real
); | SELECT MIN("third") FROM "winners_by_team" WHERE "club"='es sahel' AND "rank"<3; | 2-16561135-2 |
Which club has 1 runners-up with 0 winners and 2 third place earned? | CREATE TABLE "winners_by_team" (
"rank" real,
"club" text,
"winners" real,
"runners_up" real,
"third" real
); | SELECT "club" FROM "winners_by_team" WHERE "runners_up"=1 AND "winners"=0 AND "third"=2; | 2-16561135-2 |
Which Annual ridership (2008) has a Number of stations larger than 70, and an Annual ridership (1998) smaller than 451,971,849? | CREATE TABLE "m_etropolitan_r_ailway_p_assenger_t_rans" (
"line" text,
"operator" text,
"line_length_kilometres" real,
"number_of_stations" real,
"annual_ridership_1998" real,
"annual_ridership_2008" real
); | SELECT MIN("annual_ridership_2008") FROM "m_etropolitan_r_ailway_p_assenger_t_rans" WHERE "number_of_stations">70 AND "annual_ridership_1998"<'451,971,849'; | 2-16456054-2 |
What is Name, when Bonus is greater than 1, when Only Point is greater than 7, and when Total Point is less than 21? | CREATE TABLE "kabaddi_world_cup" (
"name" text,
"only_point" real,
"bonus" real,
"catch_taken" real,
"total_point" real
); | SELECT "name" FROM "kabaddi_world_cup" WHERE "bonus">1 AND "only_point">7 AND "total_point"<21; | 2-16926-4 |
What is Name, when Only Point is greater than 1, when Catch Taken is greater than 3, when Bonus is greater than 4, and when Total Point is less than 30? | CREATE TABLE "kabaddi_world_cup" (
"name" text,
"only_point" real,
"bonus" real,
"catch_taken" real,
"total_point" real
); | SELECT "name" FROM "kabaddi_world_cup" WHERE "only_point">1 AND "catch_taken">3 AND "bonus">4 AND "total_point"<30; | 2-16926-4 |
How many grids does Ducati have with Casey Stoner as a rider with fewer than 27 laps? | CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time" text,
"grid" real
); | SELECT COUNT("grid") FROM "moto_gp_classification" WHERE "manufacturer"='ducati' AND "rider"='casey stoner' AND "laps"<27; | 2-16193157-1 |
Which manufacturer has a time of +10.142? | CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time" text,
"grid" real
); | SELECT "manufacturer" FROM "moto_gp_classification" WHERE "time"='+10.142'; | 2-16193157-1 |
What is Loris Capirossi's time? | CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time" text,
"grid" real
); | SELECT "time" FROM "moto_gp_classification" WHERE "rider"='loris capirossi'; | 2-16193157-1 |
What were the highest laps when the grid was larger than 19 and the time/retired was fuel? | CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT MAX("laps") FROM "race" WHERE "grid">19 AND "time_retired"='fuel'; | 2-16653772-2 |
Which team did Scott Pruett drive for when the grid was smaller than 20 and there were 65 laps? | CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "team" FROM "race" WHERE "laps"=65 AND "grid"<20 AND "driver"='scott pruett'; | 2-16653772-2 |
What year is the date when the boiler type is forward topfeed, the built at is Crewe, and lot number is less than 187? | CREATE TABLE "construction_details" (
"br_no" text,
"lot_no" real,
"date" real,
"built_at" text,
"boiler_type" text
); | SELECT COUNT("date") FROM "construction_details" WHERE "boiler_type"='forward topfeed' AND "built_at"='crewe' AND "lot_no"<187; | 2-1759889-1 |
What was the date of the game where Esteban Paredes scored 2 goals? | CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"score" text,
"result" text,
"competition" text
); | SELECT "date" FROM "international_goals" WHERE "goal"=2; | 2-17300996-1 |
What is the highest attendance when the opponent is the Los Angeles Rams and the week is less than 11? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT MAX("attendance") FROM "schedule" WHERE "opponent"='los angeles rams' AND "week"<11; | 2-16764846-2 |
What is the result when the week is greater than 7 and the Houston Oilers were the opponent? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT "result" FROM "schedule" WHERE "week">7 AND "opponent"='houston oilers'; | 2-16764846-2 |
What is Record, when Location Attendance is "Izod Center 16,911"? | 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 "record" FROM "game_log" WHERE "location_attendance"='izod center 16,911'; | 2-17325580-5 |
What is High Rebounds, when High Assists is "Delonte West (10)"? | 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 "high_assists"='delonte west (10)'; | 2-17325580-5 |
What catalog had an Epic Records label in CD format? | CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
); | SELECT "catalog" FROM "release_history" WHERE "label"='epic records' AND "format"='cd'; | 2-16953587-4 |
Which label is in Australia? | CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
); | SELECT "label" FROM "release_history" WHERE "region"='australia'; | 2-16953587-4 |
The match that lasted 2:43 has what record? | CREATE TABLE "boxing_record" (
"date" text,
"result" text,
"opponent" text,
"venue" text,
"location" text,
"method" text,
"round" real,
"time" text,
"record" text
); | SELECT "record" FROM "boxing_record" WHERE "time"='2:43'; | 2-17624865-1 |
The match that was held at Club Med Sandpiper has what method? | CREATE TABLE "boxing_record" (
"date" text,
"result" text,
"opponent" text,
"venue" text,
"location" text,
"method" text,
"round" real,
"time" text,
"record" text
); | SELECT "method" FROM "boxing_record" WHERE "venue"='club med sandpiper'; | 2-17624865-1 |
The match of at Michael's Eighth Avenue venue against Tim Coleman that went 3:00 has what record? | CREATE TABLE "boxing_record" (
"date" text,
"result" text,
"opponent" text,
"venue" text,
"location" text,
"method" text,
"round" real,
"time" text,
"record" text
); | SELECT "record" FROM "boxing_record" WHERE "time"='3:00' AND "venue"='michael''s eighth avenue' AND "opponent"='tim coleman'; | 2-17624865-1 |
What method did the match at Club Med Sandpiper have? | CREATE TABLE "boxing_record" (
"date" text,
"result" text,
"opponent" text,
"venue" text,
"location" text,
"method" text,
"round" real,
"time" text,
"record" text
); | SELECT "method" FROM "boxing_record" WHERE "venue"='club med sandpiper'; | 2-17624865-1 |
What is the Label of the release with Catalog number LPM-2899? | CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
); | SELECT "label" FROM "release_history" WHERE "catalog"='lpm-2899'; | 2-17122961-4 |
What is the Date of the RCA release with Catalog number SF-7635? | CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
); | SELECT "date" FROM "release_history" WHERE "label"='rca' AND "catalog"='sf-7635'; | 2-17122961-4 |
What is the Catalog of the RCA release? | CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
); | SELECT "catalog" FROM "release_history" WHERE "label"='rca'; | 2-17122961-4 |
What is the Catalog number of the CD Reissue Universal release? | CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
); | SELECT "catalog" FROM "release_history" WHERE "format"='cd reissue' AND "label"='universal'; | 2-17122961-4 |
What is the Label of the release on Stereo vinyl LP with Catalog number SF-7635? | CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
); | SELECT "label" FROM "release_history" WHERE "format"='stereo vinyl lp' AND "catalog"='sf-7635'; | 2-17122961-4 |
What university has a 2009 int'l student review greater than 268 and median rank greater than 4? | CREATE TABLE "taiwan" (
"2010_arwu_rankings" text,
"2010_qs_world_rankings" text,
"2010_qs_asian_rankings" text,
"2010_eduniversal_rankings" text,
"2009_qs_asian_rankings_int_l_faculty_review" text,
"2009_qs_asian_rankings_int_l_student_review" real,
"2000_singapore_asiaweek_rankings" text,
"university" text,
"local" text,
"median_ranks" real
); | SELECT "university" FROM "taiwan" WHERE "median_ranks">4 AND "2009_qs_asian_rankings_int_l_student_review">268; | 2-1699468-1 |
What's the ARWU ranking that has the int' student review of 144, a median rank of less than 10, and 2000 Singapore “Asiaweek” of none? | CREATE TABLE "taiwan" (
"2010_arwu_rankings" text,
"2010_qs_world_rankings" text,
"2010_qs_asian_rankings" text,
"2010_eduniversal_rankings" text,
"2009_qs_asian_rankings_int_l_faculty_review" text,
"2009_qs_asian_rankings_int_l_student_review" real,
"2000_singapore_asiaweek_rankings" text,
"university" text,
"local" text,
"median_ranks" real
); | SELECT "2010_arwu_rankings" FROM "taiwan" WHERE "2000_singapore_asiaweek_rankings"='none' AND "median_ranks"<10 AND "2009_qs_asian_rankings_int_l_student_review"=144; | 2-1699468-1 |
Name the local that has the Int'l student review less than 320 and 2010 Eduniversal ranking of none. | CREATE TABLE "taiwan" (
"2010_arwu_rankings" text,
"2010_qs_world_rankings" text,
"2010_qs_asian_rankings" text,
"2010_eduniversal_rankings" text,
"2009_qs_asian_rankings_int_l_faculty_review" text,
"2009_qs_asian_rankings_int_l_student_review" real,
"2000_singapore_asiaweek_rankings" text,
"university" text,
"local" text,
"median_ranks" real
); | SELECT "local" FROM "taiwan" WHERE "2010_eduniversal_rankings"='none' AND "2010_arwu_rankings"='none' AND "2009_qs_asian_rankings_int_l_student_review"<320; | 2-1699468-1 |
What's the int'l student review that has the 2010 QS Rank of none? | CREATE TABLE "taiwan" (
"2010_arwu_rankings" text,
"2010_qs_world_rankings" text,
"2010_qs_asian_rankings" text,
"2010_eduniversal_rankings" text,
"2009_qs_asian_rankings_int_l_faculty_review" text,
"2009_qs_asian_rankings_int_l_student_review" real,
"2000_singapore_asiaweek_rankings" text,
"university" text,
"local" text,
"median_ranks" real
); | SELECT SUM("2009_qs_asian_rankings_int_l_student_review") FROM "taiwan" WHERE "2010_qs_asian_rankings"='none'; | 2-1699468-1 |
What university has an int'l student review of 195? | CREATE TABLE "taiwan" (
"2010_arwu_rankings" text,
"2010_qs_world_rankings" text,
"2010_qs_asian_rankings" text,
"2010_eduniversal_rankings" text,
"2009_qs_asian_rankings_int_l_faculty_review" text,
"2009_qs_asian_rankings_int_l_student_review" real,
"2000_singapore_asiaweek_rankings" text,
"university" text,
"local" text,
"median_ranks" real
); | SELECT "university" FROM "taiwan" WHERE "2009_qs_asian_rankings_int_l_student_review"=195; | 2-1699468-1 |
WHAT CANDIDATE HAD A MARGIN OF ERROR OF ± 4.5%, WHEN PAT TOOMEY WAS 45% AND JOE SESTAK WAS 38%? | CREATE TABLE "polling" (
"poll_source" text,
"date_s_administered" text,
"sample_size" real,
"margin_of_error" text,
"joe_sestak_d" text,
"pat_toomey_r" text,
"other" text,
"undecided" text
); | SELECT "other" FROM "polling" WHERE "margin_of_error"='± 4.5%' AND "pat_toomey_r"='45%' AND "joe_sestak_d"='38%'; | 2-16948973-4 |
WHAT DATE DID JOE SESTAK HAVE 46% WITH ± 3.0% MARGIN OF ERROR? | CREATE TABLE "polling" (
"poll_source" text,
"date_s_administered" text,
"sample_size" real,
"margin_of_error" text,
"joe_sestak_d" text,
"pat_toomey_r" text,
"other" text,
"undecided" text
); | SELECT "date_s_administered" FROM "polling" WHERE "joe_sestak_d"='46%' AND "margin_of_error"='± 3.0%'; | 2-16948973-4 |
WHAT IS THE POINTS PERCENTAGE WITH A TOTAL OF 1-2-2 RECORD? | CREATE TABLE "solheim_cup_record" (
"year" text,
"total_matches" real,
"total_w_l_h" text,
"singles_w_l_h" text,
"points_won" real,
"points_pct" text
); | SELECT "points_pct" FROM "solheim_cup_record" WHERE "total_w_l_h"='1-2-2'; | 2-1710991-4 |
WHAT YEAR HAD 5 TOTAL MATCHES? | CREATE TABLE "solheim_cup_record" (
"year" text,
"total_matches" real,
"total_w_l_h" text,
"singles_w_l_h" text,
"points_won" real,
"points_pct" text
); | SELECT "year" FROM "solheim_cup_record" WHERE "total_matches"=5; | 2-1710991-4 |
What is the quantity preserved when 4 were made of class F-21? | CREATE TABLE "class_f_2_8_0" (
"class" text,
"wheel_arrangement" text,
"fleet_number_s" text,
"manufacturer" text,
"year_made" text,
"quantity_made" text,
"quantity_preserved" text
); | SELECT "quantity_preserved" FROM "class_f_2_8_0" WHERE "quantity_made"='4' AND "class"='f-21'; | 2-17248696-6 |
What fleet number had 3 made? | CREATE TABLE "class_f_2_8_0" (
"class" text,
"wheel_arrangement" text,
"fleet_number_s" text,
"manufacturer" text,
"year_made" text,
"quantity_made" text,
"quantity_preserved" text
); | SELECT "fleet_number_s" FROM "class_f_2_8_0" WHERE "quantity_made"='3'; | 2-17248696-6 |
What class had 1 made and fleet number of 406? | CREATE TABLE "class_f_2_8_0" (
"class" text,
"wheel_arrangement" text,
"fleet_number_s" text,
"manufacturer" text,
"year_made" text,
"quantity_made" text,
"quantity_preserved" text
); | SELECT "class" FROM "class_f_2_8_0" WHERE "quantity_made"='1' AND "fleet_number_s"='406'; | 2-17248696-6 |
What class has 0 preserved and 2 made? | CREATE TABLE "class_f_2_8_0" (
"class" text,
"wheel_arrangement" text,
"fleet_number_s" text,
"manufacturer" text,
"year_made" text,
"quantity_made" text,
"quantity_preserved" text
); | SELECT "class" FROM "class_f_2_8_0" WHERE "quantity_preserved"='0' AND "quantity_made"='2'; | 2-17248696-6 |
What rank has a population of 4839400? | CREATE TABLE "largest_cities_proper_by_population" (
"rank" real,
"city" text,
"population" text,
"definition" text,
"country" text
); | SELECT MIN("rank") FROM "largest_cities_proper_by_population" WHERE "population"='4839400'; | 2-16478687-5 |
What's the rank of the Province-Level Municipality? | CREATE TABLE "largest_cities_proper_by_population" (
"rank" real,
"city" text,
"population" text,
"definition" text,
"country" text
); | SELECT "rank" FROM "largest_cities_proper_by_population" WHERE "definition"='province-level municipality'; | 2-16478687-5 |
What rank was Core Districts + Inner Suburbs and had a population of 10123000? | CREATE TABLE "largest_cities_proper_by_population" (
"rank" real,
"city" text,
"population" text,
"definition" text,
"country" text
); | SELECT MAX("rank") FROM "largest_cities_proper_by_population" WHERE "definition"='core districts + inner suburbs' AND "population"='10123000'; | 2-16478687-5 |
What is Points, when Draws is less than 7, when Wins is less than 16, and when Goals For is "35"? | CREATE TABLE "group_ii" (
"position" real,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
); | SELECT "points" FROM "group_ii" WHERE "draws"<7 AND "wins"<16 AND "goals_for"=35; | 2-17298923-4 |
What is the total number of Losses, when Position is greater than 8, when Goals For is greater than 34, when Points is "25", and when Draws is less than 5? | CREATE TABLE "group_ii" (
"position" real,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
); | SELECT COUNT("losses") FROM "group_ii" WHERE "position">8 AND "goals_for">34 AND "points"=25 AND "draws"<5; | 2-17298923-4 |
What is the average Wins, when Points is less than "19"? | CREATE TABLE "group_ii" (
"position" real,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
); | SELECT AVG("wins") FROM "group_ii" WHERE "points"<19; | 2-17298923-4 |
What is the lowest Goals, when Played is greater than 30? | CREATE TABLE "group_ii" (
"position" real,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
); | SELECT MIN("goals_for") FROM "group_ii" WHERE "played">30; | 2-17298923-4 |
What is the sum of Played, when Losses is "13", and when Position is greater than 11? | CREATE TABLE "group_ii" (
"position" real,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
); | SELECT SUM("played") FROM "group_ii" WHERE "losses"=13 AND "position">11; | 2-17298923-4 |
What is the lowest Wins, when Losses is less than 10, when Goal Difference is less than 46, when Goals is less than 63, and when Played is less than 30? | CREATE TABLE "group_ii" (
"position" real,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
); | SELECT MIN("wins") FROM "group_ii" WHERE "losses"<10 AND "goal_difference"<46 AND "goals_for"<63 AND "played"<30; | 2-17298923-4 |
How many viewed the episode gary gets boundaries? | CREATE TABLE "season_1_2008_2009_weekly_ratings" (
"episode" text,
"air_date" text,
"timeslot" text,
"18_49" text,
"viewers" real
); | SELECT COUNT("viewers") FROM "season_1_2008_2009_weekly_ratings" WHERE "episode"='gary gets boundaries'; | 2-17443121-2 |
What episode had 6.71 viewers? | CREATE TABLE "season_1_2008_2009_weekly_ratings" (
"episode" text,
"air_date" text,
"timeslot" text,
"18_49" text,
"viewers" real
); | SELECT "episode" FROM "season_1_2008_2009_weekly_ratings" WHERE "viewers"=6.71; | 2-17443121-2 |
When did the episode air that had 7.3 viewers? | CREATE TABLE "season_1_2008_2009_weekly_ratings" (
"episode" text,
"air_date" text,
"timeslot" text,
"18_49" text,
"viewers" real
); | SELECT "air_date" FROM "season_1_2008_2009_weekly_ratings" WHERE "viewers"=7.3; | 2-17443121-2 |
What day in March is the game with a 48-13-11 record and a game number less than 72? | CREATE TABLE "schedule_and_results" (
"game" real,
"march" real,
"opponent" text,
"score" text,
"record" text
); | SELECT SUM("march") FROM "schedule_and_results" WHERE "record"='48-13-11' AND "game"<72; | 2-17323283-7 |
Who is the opponent of game 75? | CREATE TABLE "schedule_and_results" (
"game" real,
"march" real,
"opponent" text,
"score" text,
"record" text
); | SELECT "opponent" FROM "schedule_and_results" WHERE "game"=75; | 2-17323283-7 |
What is the lowest game number of the game after March 2 with the minnesota north stars as the opponent? | CREATE TABLE "schedule_and_results" (
"game" real,
"march" real,
"opponent" text,
"score" text,
"record" text
); | SELECT MIN("game") FROM "schedule_and_results" WHERE "march">2 AND "opponent"='minnesota north stars'; | 2-17323283-7 |
The winner, Craig Lowndes, was in what location/state? | CREATE TABLE "race_calendar" (
"circuit" text,
"location_state" text,
"date" text,
"winner" text,
"team" text
); | SELECT "location_state" FROM "race_calendar" WHERE "winner"='craig lowndes'; | 2-16252173-2 |
The Eastern Creek Raceway circuit is on what date? | CREATE TABLE "race_calendar" (
"circuit" text,
"location_state" text,
"date" text,
"winner" text,
"team" text
); | SELECT "date" FROM "race_calendar" WHERE "circuit"='eastern creek raceway'; | 2-16252173-2 |
Castrol Perkins Motorsport and the winner Russell Ingall was in what location/state? | CREATE TABLE "race_calendar" (
"circuit" text,
"location_state" text,
"date" text,
"winner" text,
"team" text
); | SELECT "location_state" FROM "race_calendar" WHERE "team"='castrol perkins motorsport' AND "winner"='russell ingall'; | 2-16252173-2 |
What shows for 1998 when 1996 is 1R, and 2002 is not held? | CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text
); | SELECT "1998" FROM "singles_performance_timeline" WHERE "1996"='1r' AND "2002"='not held'; | 2-1723598-7 |
What is the 1996 when the 1994 is A, the 2003 is A, and the 2001 is 1R? | CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text
); | SELECT "1996" FROM "singles_performance_timeline" WHERE "1994"='a' AND "2003"='a' AND "2001"='1r'; | 2-1723598-7 |
What shows for 1991 when 2002 is 2R? | CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text
); | SELECT "1991" FROM "singles_performance_timeline" WHERE "2002"='2r'; | 2-1723598-7 |
What shows for 2006 when 1999 is Grand Slam Tournaments? | CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text
); | SELECT "2006" FROM "singles_performance_timeline" WHERE "1990"='grand slam tournaments'; | 2-1723598-7 |
What shows for 2006 when 2000 is 1r, 1996 is A, and Tournament is Cincinnati Masters? | CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text
); | SELECT "2006" FROM "singles_performance_timeline" WHERE "2000"='1r' AND "1996"='a' AND "tournament"='cincinnati masters'; | 2-1723598-7 |
What is the Tournament when the 1990 is Olympic Games? | CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text
); | SELECT "tournament" FROM "singles_performance_timeline" WHERE "1990"='olympic games'; | 2-1723598-7 |
Which Location has a Record of 0-1? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
); | SELECT "location" FROM "mixed_martial_arts_record" WHERE "record"='0-1'; | 2-17241410-3 |
What is Record, when Method is "Technical Submission (Rear Naked Choke)"? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
); | SELECT "record" FROM "mixed_martial_arts_record" WHERE "method"='technical submission (rear naked choke)'; | 2-17441190-2 |
What is the sum of Round(s), when Method is "Submission (Banana Split)"? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
); | SELECT SUM("round") FROM "mixed_martial_arts_record" WHERE "method"='submission (banana split)'; | 2-17441190-2 |
What is Time, when Event is "GCM: Demolition 1"? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
); | SELECT "time" FROM "mixed_martial_arts_record" WHERE "event"='gcm: demolition 1'; | 2-17441190-2 |
Which year was "the 12 year old boy" performed? | CREATE TABLE "partial_discography" (
"year" real,
"title" text,
"performer" text,
"label" text,
"cat_no" real
); | SELECT "year" FROM "partial_discography" WHERE "title"='\"the 12 year old boy\"'; | 2-16336801-1 |
What year had a 100m freestyle event? | CREATE TABLE "canadian_records" (
"event" text,
"long_course_short_course" text,
"year_set" real,
"time" text,
"meet" text
); | SELECT COUNT("year_set") FROM "canadian_records" WHERE "event"='100m freestyle'; | 2-16209355-1 |
What event had a short course in 2010? | CREATE TABLE "canadian_records" (
"event" text,
"long_course_short_course" text,
"year_set" real,
"time" text,
"meet" text
); | SELECT "event" FROM "canadian_records" WHERE "long_course_short_course"='short course' AND "year_set"=2010; | 2-16209355-1 |
What year did a short course have a time of 7:51.80? | CREATE TABLE "canadian_records" (
"event" text,
"long_course_short_course" text,
"year_set" real,
"time" text,
"meet" text
); | SELECT COUNT("year_set") FROM "canadian_records" WHERE "long_course_short_course"='short course' AND "time"='7:51.80'; | 2-16209355-1 |
What was the latest year that had a 100m freestyle? | CREATE TABLE "canadian_records" (
"event" text,
"long_course_short_course" text,
"year_set" real,
"time" text,
"meet" text
); | SELECT MAX("year_set") FROM "canadian_records" WHERE "event"='100m freestyle'; | 2-16209355-1 |
In what place was the song that had a draw of 3? | CREATE TABLE "national_final_29_march_1992" (
"draw" real,
"artist" text,
"song" text,
"points" real,
"place" text
); | SELECT "place" FROM "national_final_29_march_1992" WHERE "draw"=3; | 2-16304582-1 |
What is the number of points for the 7th placed song with a draw greater than 8? | CREATE TABLE "national_final_29_march_1992" (
"draw" real,
"artist" text,
"song" text,
"points" real,
"place" text
); | SELECT MIN("points") FROM "national_final_29_march_1992" WHERE "place"='7th' AND "draw">8; | 2-16304582-1 |
How many points did Joe O'Meara have? | CREATE TABLE "national_final_29_march_1992" (
"draw" real,
"artist" text,
"song" text,
"points" real,
"place" text
); | SELECT COUNT("points") FROM "national_final_29_march_1992" WHERE "artist"='joe o''meara'; | 2-16304582-1 |
What was the draw for "Feel The Pain" which placed in 2nd and had more than 79 points? | CREATE TABLE "national_final_29_march_1992" (
"draw" real,
"artist" text,
"song" text,
"points" real,
"place" text
); | SELECT AVG("draw") FROM "national_final_29_march_1992" WHERE "place"='2nd' AND "song"='\"feel the pain\"' AND "points">79; | 2-16304582-1 |
How many points did Linda Martin have? | CREATE TABLE "national_final_29_march_1992" (
"draw" real,
"artist" text,
"song" text,
"points" real,
"place" text
); | SELECT COUNT("points") FROM "national_final_29_march_1992" WHERE "artist"='linda martin'; | 2-16304582-1 |
In what place did "feel the pain" come in? | CREATE TABLE "national_final_29_march_1992" (
"draw" real,
"artist" text,
"song" text,
"points" real,
"place" text
); | SELECT "place" FROM "national_final_29_march_1992" WHERE "song"='\"feel the pain\"'; | 2-16304582-1 |
WHAT IS THE SCORE WITH A WEEK LARGER THAN 13, AND VISITOR TEAM MONTREAL ALOUETTES? | CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"visitor" text,
"score" text,
"home" text,
"attendance" text,
"record" text
); | SELECT "score" FROM "season_schedule" WHERE "week">13 AND "visitor"='montreal alouettes'; | 2-16912000-5 |
WHAT IS THE AVERAGE WEEK WITH A DATE OF JULY 25? | CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"visitor" text,
"score" text,
"home" text,
"attendance" text,
"record" text
); | SELECT AVG("week") FROM "season_schedule" WHERE "date"='july 25'; | 2-16912000-5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.