question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
What was the output with no IR LEDs? | CREATE TABLE "comparison_of_some_cameras_compatible_wi" (
"camera" text,
"sensor_resolution" text,
"sensor" text,
"output" text,
"cpu_usage" text,
"ir_le_ds" text
); | SELECT "output" FROM "comparison_of_some_cameras_compatible_wi" WHERE "ir_le_ds"='no'; | 2-13751214-1 |
What sensor has a resolution of 640x480 with small CPU usage, jpeg compressed output and a camera of sony playstation eyetoy? | CREATE TABLE "comparison_of_some_cameras_compatible_wi" (
"camera" text,
"sensor_resolution" text,
"sensor" text,
"output" text,
"cpu_usage" text,
"ir_le_ds" text
); | SELECT "sensor" FROM "comparison_of_some_cameras_compatible_wi" WHERE "sensor_resolution"='640x480' AND "cpu_usage"='small' AND "output"='jpeg compressed' AND "camera"='sony playstation eyetoy'; | 2-13751214-1 |
What is the max speed of the unit with an 8+4 quantity built before 1971? | CREATE TABLE "diesel_multiple_units" (
"type" text,
"numbers" text,
"year_built" real,
"quantity_built" text,
"power_horsepower" real,
"max_speed_km_h" real
); | SELECT SUM("max_speed_km_h") FROM "diesel_multiple_units" WHERE "quantity_built"='8+4' AND "year_built"<1971; | 2-1527960-3 |
What is the numbers of the thn unit with a power greater than 220? | CREATE TABLE "diesel_multiple_units" (
"type" text,
"numbers" text,
"year_built" real,
"quantity_built" text,
"power_horsepower" real,
"max_speed_km_h" real
); | SELECT "numbers" FROM "diesel_multiple_units" WHERE "power_horsepower">220 AND "type"='thn'; | 2-1527960-3 |
What is the power of the unit built after 1995? | CREATE TABLE "diesel_multiple_units" (
"type" text,
"numbers" text,
"year_built" real,
"quantity_built" text,
"power_horsepower" real,
"max_speed_km_h" real
); | SELECT SUM("power_horsepower") FROM "diesel_multiple_units" WHERE "year_built">1995; | 2-1527960-3 |
Week larger than 6, and a Date of november 22, 1959 had what result? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" real
); | SELECT "result" FROM "schedule" WHERE "week">6 AND "date"='november 22, 1959'; | 2-14984153-1 |
Result of w 21–7 had what average week? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" real
); | SELECT AVG("week") FROM "schedule" WHERE "result"='w 21–7'; | 2-14984153-1 |
Date of november 29, 1959 had what lowest attendance? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" real
); | SELECT MIN("attendance") FROM "schedule" WHERE "date"='november 29, 1959'; | 2-14984153-1 |
Week that has a Date of december 5, 1959 had what week? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" real
); | SELECT "week" FROM "schedule" WHERE "date"='december 5, 1959'; | 2-14984153-1 |
Which Game has an Opponent of @ carolina hurricanes? | CREATE TABLE "schedule_and_results" (
"game" real,
"november" real,
"opponent" text,
"score" text,
"record" text
); | SELECT SUM("game") FROM "schedule_and_results" WHERE "opponent"='@ carolina hurricanes'; | 2-14383093-4 |
How many games have a November of 10? | CREATE TABLE "schedule_and_results" (
"game" real,
"november" real,
"opponent" text,
"score" text,
"record" text
); | SELECT COUNT("game") FROM "schedule_and_results" WHERE "november"=10; | 2-14383093-4 |
Which Game has a November of 22? | CREATE TABLE "schedule_and_results" (
"game" real,
"november" real,
"opponent" text,
"score" text,
"record" text
); | SELECT SUM("game") FROM "schedule_and_results" WHERE "november"=22; | 2-14383093-4 |
What is the mean year of marriage when her age was more than 19 and his age was 30? | CREATE TABLE "chart_the_eight_wives" (
"year_of_marriage" real,
"name" text,
"her_age" real,
"his_age" real,
"num_of_children" real
); | SELECT AVG("year_of_marriage") FROM "chart_the_eight_wives" WHERE "her_age">19 AND "his_age"=30; | 2-1517784-1 |
What is the lowest figure for her age when the year of marriage is before 1853, the number of children is less than 8, and the bride was Eliza Maria Partridge? | CREATE TABLE "chart_the_eight_wives" (
"year_of_marriage" real,
"name" text,
"her_age" real,
"his_age" real,
"num_of_children" real
); | SELECT MIN("her_age") FROM "chart_the_eight_wives" WHERE "year_of_marriage"<1853 AND "num_of_children"<8 AND "name"='eliza maria partridge'; | 2-1517784-1 |
What is the total number of her age figures where his age is less than 33, the bride was diontha walker, and the number of children was less than 0? | CREATE TABLE "chart_the_eight_wives" (
"year_of_marriage" real,
"name" text,
"her_age" real,
"his_age" real,
"num_of_children" real
); | SELECT SUM("her_age") FROM "chart_the_eight_wives" WHERE "his_age"<33 AND "name"='diontha walker' AND "num_of_children"<0; | 2-1517784-1 |
How much Lost has an Against larger than 19, and a Drawn smaller than 1? | 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 "against">19 AND "drawn"<1; | 2-15303773-1 |
Which Played has a Lost of 3, and an Against of 23? | 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("played") FROM "torneio_rio_s_o_paulo" WHERE "lost"=3 AND "against"=23; | 2-15303773-1 |
Which Played is the highest one that has an Against smaller than 18, and Points smaller 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 MAX("played") FROM "torneio_rio_s_o_paulo" WHERE "against"<18 AND "points"<10; | 2-15303773-1 |
Which Against is the highest one that has a Drawn larger than 1, and a Team of corinthians, and a Played smaller than 7? | CREATE TABLE "torneio_rio_s_o_paulo" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
); | SELECT MAX("against") FROM "torneio_rio_s_o_paulo" WHERE "drawn">1 AND "team"='corinthians' AND "played"<7; | 2-15303773-1 |
What opponent has october less than 20, and 8 for points? | CREATE TABLE "regular_season" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text,
"points" real
); | SELECT "opponent" FROM "regular_season" WHERE "october"<20 AND "points"=8; | 2-14344570-2 |
What position does Drew Callander play? | 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"='drew callander'; | 2-14303579-16 |
What round did Ray Kurpis play? | CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
); | SELECT "round" FROM "draft_picks" WHERE "player"='ray kurpis'; | 2-14303579-16 |
Which Built by has a Name of northern jaeger? | CREATE TABLE "american_seafoods_company_fleet" (
"name" text,
"length" text,
"tonnage" real,
"built_by" text,
"year" real,
"engines" text,
"horsepowers" real,
"former_names" text
); | SELECT "built_by" FROM "american_seafoods_company_fleet" WHERE "name"='northern jaeger'; | 2-15230458-1 |
How many Horsepowers have a Year smaller than 1974, and a Tonnage of 4437? | CREATE TABLE "american_seafoods_company_fleet" (
"name" text,
"length" text,
"tonnage" real,
"built_by" text,
"year" real,
"engines" text,
"horsepowers" real,
"former_names" text
); | SELECT SUM("horsepowers") FROM "american_seafoods_company_fleet" WHERE "year"<1974 AND "tonnage"=4437; | 2-15230458-1 |
When was the 2014 fifa world cup qualification? | CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "date" FROM "international_goals" WHERE "competition"='2014 fifa world cup qualification'; | 2-1385062-3 |
When was the date of an event at Tokyo venue? | CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "date" FROM "international_goals" WHERE "venue"='tokyo'; | 2-1385062-3 |
What city did Yugoslavia play against Poland in? | CREATE TABLE "1980" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
); | SELECT "city" FROM "1980" WHERE "opponent"='poland'; | 2-14305653-58 |
What day did Yugoslavia play Luxembourg? | CREATE TABLE "1980" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
); | SELECT "date" FROM "1980" WHERE "opponent"='luxembourg'; | 2-14305653-58 |
What type of game was played in Ljubljana? | CREATE TABLE "1980" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
); | SELECT "type_of_game" FROM "1980" WHERE "city"='ljubljana'; | 2-14305653-58 |
What's the result of the game played in Belgrade? | CREATE TABLE "1980" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
); | SELECT "results" FROM "1980" WHERE "city"='belgrade'; | 2-14305653-58 |
What was the score on March 23? | CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "score" FROM "regular_season" WHERE "date"='march 23'; | 2-14032792-2 |
When the Vancouver Canucks were visiting, what was the record when the score was 4-2? | CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "record" FROM "regular_season" WHERE "score"='4-2' AND "visitor"='vancouver canucks'; | 2-14032792-2 |
Which Partner has a Score of 6–7, 7–6, 6–7? | CREATE TABLE "doubles_9_6_titles_3_runner_ups" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
); | SELECT "partner" FROM "doubles_9_6_titles_3_runner_ups" WHERE "score"='6–7, 7–6, 6–7'; | 2-15290537-3 |
Which Score has a Date of 13 april 1997? | CREATE TABLE "doubles_9_6_titles_3_runner_ups" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
); | SELECT "score" FROM "doubles_9_6_titles_3_runner_ups" WHERE "date"='13 april 1997'; | 2-15290537-3 |
Which Partner has a Score of 7–6, 6–3? | CREATE TABLE "doubles_9_6_titles_3_runner_ups" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
); | SELECT "partner" FROM "doubles_9_6_titles_3_runner_ups" WHERE "score"='7–6, 6–3'; | 2-15290537-3 |
Which Date has a Tournament of bmw open? | CREATE TABLE "doubles_9_6_titles_3_runner_ups" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
); | SELECT "date" FROM "doubles_9_6_titles_3_runner_ups" WHERE "tournament"='bmw open'; | 2-15290537-3 |
Which Partner has a Tournament of catella swedish open? | CREATE TABLE "doubles_9_6_titles_3_runner_ups" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
); | SELECT "partner" FROM "doubles_9_6_titles_3_runner_ups" WHERE "tournament"='catella swedish open'; | 2-15290537-3 |
Which Date has a Surface of clay, and a Score of 6–3, 5–7, 2–6? | CREATE TABLE "doubles_9_6_titles_3_runner_ups" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
); | SELECT "date" FROM "doubles_9_6_titles_3_runner_ups" WHERE "surface"='clay' AND "score"='6–3, 5–7, 2–6'; | 2-15290537-3 |
Who was the winner of the tre valli varesine race? | CREATE TABLE "events" (
"date" text,
"race_name" text,
"location" text,
"uci_rating" text,
"winner" text,
"team" text
); | SELECT "winner" FROM "events" WHERE "race_name"='tre valli varesine'; | 2-13554011-1 |
What is the date of the omloop van de vlaamse scheldeboorden race with a UCI rating of 1.1? | CREATE TABLE "events" (
"date" text,
"race_name" text,
"location" text,
"uci_rating" text,
"winner" text,
"team" text
); | SELECT "date" FROM "events" WHERE "uci_rating"='1.1' AND "race_name"='omloop van de vlaamse scheldeboorden'; | 2-13554011-1 |
What is the date of the gp città di camaiore race? | CREATE TABLE "events" (
"date" text,
"race_name" text,
"location" text,
"uci_rating" text,
"winner" text,
"team" text
); | SELECT "date" FROM "events" WHERE "race_name"='gp città di camaiore'; | 2-13554011-1 |
What is the UCI rating of the race in Italy with the progetto ciclismo alplast team? | CREATE TABLE "events" (
"date" text,
"race_name" text,
"location" text,
"uci_rating" text,
"winner" text,
"team" text
); | SELECT "uci_rating" FROM "events" WHERE "location"='italy' AND "team"='progetto ciclismo alplast'; | 2-13554011-1 |
What is the date of the game being played at Schaeffer Stadium? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" real
); | SELECT "date" FROM "schedule" WHERE "game_site"='schaeffer stadium'; | 2-14941284-1 |
Which Points have a Year larger than 1966, and Wins larger than 1? | CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"wins" real
); | SELECT AVG("points") FROM "motorcycle_grand_prix_results" WHERE "year">1966 AND "wins">1; | 2-15250161-2 |
Which Year is the lowest one that has Wins smaller than 0? | CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"wins" real
); | SELECT MIN("year") FROM "motorcycle_grand_prix_results" WHERE "wins"<0; | 2-15250161-2 |
Which Points have Wins larger than 1? | CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"wins" real
); | SELECT AVG("points") FROM "motorcycle_grand_prix_results" WHERE "wins">1; | 2-15250161-2 |
Which Wins have a Year of 1963, and a Class of 50cc? | CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"wins" real
); | SELECT AVG("wins") FROM "motorcycle_grand_prix_results" WHERE "year"=1963 AND "class"='50cc'; | 2-15250161-2 |
How many overall WC ponts (rank) did Anders Jacobsen get when his rank was smaller than 3? | CREATE TABLE "liberec" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"2nd_m" real,
"points" real,
"overall_wc_points_rank" text
); | SELECT "overall_wc_points_rank" FROM "liberec" WHERE "rank"<3 AND "name"='anders jacobsen'; | 2-14407512-20 |
Who had the highest rank with a 1st (m) of 129 and less than 255.6 points? | CREATE TABLE "liberec" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"2nd_m" real,
"points" real,
"overall_wc_points_rank" text
); | SELECT MAX("rank") FROM "liberec" WHERE "1st_m"=129 AND "points"<255.6; | 2-14407512-20 |
Who had the lowest 1st (m), ranked lower than 8, with an overall WC points (rank) of 369 (16) with more than 258.2 points? | CREATE TABLE "liberec" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"2nd_m" real,
"points" real,
"overall_wc_points_rank" text
); | SELECT MIN("1st_m") FROM "liberec" WHERE "rank"<8 AND "overall_wc_points_rank"='369 (16)' AND "points">258.2; | 2-14407512-20 |
What is the player from Australia's rank with more than 16 wins? | CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
); | SELECT COUNT("rank") FROM "leaders" WHERE "wins">16 AND "country"='australia'; | 2-14611466-4 |
What is the lowest rank of a player with earnings under $11,936,443 and more than 16 wins? | CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
); | SELECT MIN("rank") FROM "leaders" WHERE "earnings"<'11,936,443' AND "wins">16; | 2-14611466-4 |
What is the highest earnings of a player with more than 19 wins? | CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
); | SELECT MAX("earnings") FROM "leaders" WHERE "wins">19; | 2-14611466-4 |
Which average Opened has a Manufacturer of vekoma? | CREATE TABLE "roller_coasters" (
"name" text,
"style" text,
"opened" real,
"manufacturer" text,
"themed_area" text
); | SELECT AVG("opened") FROM "roller_coasters" WHERE "manufacturer"='vekoma'; | 2-1520959-1 |
Which Opened is the highest one that has a Themed Area of aerial park, and a Manufacturer of zamperla? | CREATE TABLE "roller_coasters" (
"name" text,
"style" text,
"opened" real,
"manufacturer" text,
"themed_area" text
); | SELECT MAX("opened") FROM "roller_coasters" WHERE "themed_area"='aerial park' AND "manufacturer"='zamperla'; | 2-1520959-1 |
Which Themed Area has a Name of troublesome trucks runaway coaster? | CREATE TABLE "roller_coasters" (
"name" text,
"style" text,
"opened" real,
"manufacturer" text,
"themed_area" text
); | SELECT "themed_area" FROM "roller_coasters" WHERE "name"='troublesome trucks runaway coaster'; | 2-1520959-1 |
Which Manufacturer has a Style of steel sit down, and an Opened larger than 2008? | CREATE TABLE "roller_coasters" (
"name" text,
"style" text,
"opened" real,
"manufacturer" text,
"themed_area" text
); | SELECT "manufacturer" FROM "roller_coasters" WHERE "style"='steel sit down' AND "opened">2008; | 2-1520959-1 |
What position has a pick less than 25 for the university of california? | CREATE TABLE "first_round_selections" (
"pick" real,
"player" text,
"team" text,
"position" text,
"school" text
); | SELECT "position" FROM "first_round_selections" WHERE "pick"<25 AND "school"='university of california'; | 2-14747955-1 |
What is the pick number for tulane university? | CREATE TABLE "first_round_selections" (
"pick" real,
"player" text,
"team" text,
"position" text,
"school" text
); | SELECT SUM("pick") FROM "first_round_selections" WHERE "school"='tulane university'; | 2-14747955-1 |
What is the pick number for the kansas city royals? | CREATE TABLE "first_round_selections" (
"pick" real,
"player" text,
"team" text,
"position" text,
"school" text
); | SELECT SUM("pick") FROM "first_round_selections" WHERE "team"='kansas city royals'; | 2-14747955-1 |
What is the average Pick for the Pasco, Wa school? | CREATE TABLE "first_round_selections" (
"pick" real,
"player" text,
"team" text,
"position" text,
"school" text
); | SELECT AVG("pick") FROM "first_round_selections" WHERE "school"='pasco, wa'; | 2-14747955-1 |
What Label released a CD single in 1993? | CREATE TABLE "release_history" (
"date" text,
"label" text,
"region" text,
"format" text,
"catalog" text
); | SELECT "label" FROM "release_history" WHERE "format"='cd single' AND "date"='1993'; | 2-15186554-1 |
Where was home with a record of 7–5–2? | CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "home" FROM "december" WHERE "record"='7–5–2'; | 2-13581632-3 |
On what date was the record 8–6–3? | CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "date" FROM "december" WHERE "record"='8–6–3'; | 2-13581632-3 |
What was the score when Pittsburgh was the visitor? | CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "score" FROM "december" WHERE "visitor"='pittsburgh'; | 2-13581632-3 |
On what date were the NY Rangers home? | CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "date" FROM "december" WHERE "home"='ny rangers'; | 2-13581632-3 |
Which visitor had a record of 7–5–3? | CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "visitor" FROM "december" WHERE "record"='7–5–3'; | 2-13581632-3 |
Who was home when Detroit was visiting with a score of 4 – 1? | CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "home" FROM "december" WHERE "visitor"='detroit' AND "score"='4 – 1'; | 2-13581632-3 |
What is the earliest date with Great Expectations label with LP format? | CREATE TABLE "release_history" (
"region" text,
"date" real,
"label" text,
"format" text,
"catalog" text
); | SELECT MIN("date") FROM "release_history" WHERE "label"='great expectations' AND "format"='lp'; | 2-14568768-2 |
What format was used for Mobil 1? | CREATE TABLE "release_history" (
"region" text,
"date" real,
"label" text,
"format" text,
"catalog" text
); | SELECT "format" FROM "release_history" WHERE "catalog"='mobil 1'; | 2-14568768-2 |
what team won the friendly match | CREATE TABLE "under_23" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "result" FROM "under_23" WHERE "competition"='friendly match'; | 2-14670286-3 |
Which Runner-up has a Last win smaller than 1998, and Wins of 1, and a Rank larger than 13? | CREATE TABLE "wins_by_club" (
"rank" real,
"club" text,
"wins" real,
"last_win" real,
"runner_up" real,
"last_losing_final" text
); | SELECT COUNT("runner_up") FROM "wins_by_club" WHERE "last_win"<1998 AND "wins"=1 AND "rank">13; | 2-143737-1 |
How many Last wins have a Club of mansfield town, and Wins smaller than 1? | CREATE TABLE "wins_by_club" (
"rank" real,
"club" text,
"wins" real,
"last_win" real,
"runner_up" real,
"last_losing_final" text
); | SELECT COUNT("last_win") FROM "wins_by_club" WHERE "club"='mansfield town' AND "wins"<1; | 2-143737-1 |
Which Driver has a Date of 16th september 1951, and a Race of dns? | CREATE TABLE "formula_one_entries_for_brm_type_15" (
"date" text,
"event" text,
"circuit" text,
"driver" text,
"race" text
); | SELECT "driver" FROM "formula_one_entries_for_brm_type_15" WHERE "date"='16th september 1951' AND "race"='dns'; | 2-15177130-1 |
At which race did reg parnell win the goodwood trophy? | CREATE TABLE "formula_one_entries_for_brm_type_15" (
"date" text,
"event" text,
"circuit" text,
"driver" text,
"race" text
); | SELECT "race" FROM "formula_one_entries_for_brm_type_15" WHERE "event"='goodwood trophy' AND "driver"='reg parnell'; | 2-15177130-1 |
Which Race has a Date of 31st may 1953, and an Event of grand prix de l'albigeois final? | CREATE TABLE "formula_one_entries_for_brm_type_15" (
"date" text,
"event" text,
"circuit" text,
"driver" text,
"race" text
); | SELECT "race" FROM "formula_one_entries_for_brm_type_15" WHERE "date"='31st may 1953' AND "event"='grand prix de l''albigeois final'; | 2-15177130-1 |
What's the highest rank of a PVG/ZSPD Code (IATA/ICAO) airport with a total cargo less than 2,543,394 metric tonnes? | CREATE TABLE "2009_final_statistics" (
"rank" real,
"airport" text,
"code_iata_icao" text,
"total_cargo_metric_tonnes" real,
"pct_change" text
); | SELECT MAX("rank") FROM "2009_final_statistics" WHERE "code_iata_icao"='pvg/zspd' AND "total_cargo_metric_tonnes"<'2,543,394'; | 2-1451581-4 |
What's the average total cargo in metric tonnes that has an 11.8% Change? | CREATE TABLE "2009_final_statistics" (
"rank" real,
"airport" text,
"code_iata_icao" text,
"total_cargo_metric_tonnes" real,
"pct_change" text
); | SELECT AVG("total_cargo_metric_tonnes") FROM "2009_final_statistics" WHERE "pct_change"='11.8%'; | 2-1451581-4 |
What is the highest rank of Tokyo International Airport? | CREATE TABLE "2009_final_statistics" (
"rank" real,
"airport" text,
"code_iata_icao" text,
"total_cargo_metric_tonnes" real,
"pct_change" text
); | SELECT MAX("rank") FROM "2009_final_statistics" WHERE "airport"='tokyo international airport'; | 2-1451581-4 |
Where the games are smaller than 5 and the points are 6, what is the average lost? | CREATE TABLE "group_2" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
); | SELECT AVG("lost") FROM "group_2" WHERE "points"=6 AND "games"<5; | 2-13771649-3 |
with build 5/69-6/69 what's the order? | CREATE TABLE "roster" (
"order" real,
"built" text,
"serial_numbers" text,
"quantity" real,
"1st_no" text
); | SELECT SUM("order") FROM "roster" WHERE "built"='5/69-6/69'; | 2-1379652-1 |
Which Outcome has a Score of 6–2, 6–2? | CREATE TABLE "singles_17_10_7" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
); | SELECT "outcome" FROM "singles_17_10_7" WHERE "score"='6–2, 6–2'; | 2-15100199-8 |
Which Date has an Outcome of winner, and a Score of 7–5, 6–4? | CREATE TABLE "singles_17_10_7" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
); | SELECT "date" FROM "singles_17_10_7" WHERE "outcome"='winner' AND "score"='7–5, 6–4'; | 2-15100199-8 |
Which Tournament has an Outcome of winner, and a Surface of clay, and a Score of 6–4, 6–1? | CREATE TABLE "singles_17_10_7" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
); | SELECT "tournament" FROM "singles_17_10_7" WHERE "outcome"='winner' AND "surface"='clay' AND "score"='6–4, 6–1'; | 2-15100199-8 |
What was the outcome in mari andersson's tournament? | CREATE TABLE "singles_17_10_7" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
); | SELECT "outcome" FROM "singles_17_10_7" WHERE "opponent"='mari andersson'; | 2-15100199-8 |
What's the loss of the game with the opponent of the Nationals with a score of 7-1? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT "loss" FROM "game_log" WHERE "opponent"='nationals' AND "score"='7-1'; | 2-14269540-8 |
Which opponent has a record of 70-52? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT "opponent" FROM "game_log" WHERE "record"='70-52'; | 2-14269540-8 |
What is the attendance of the game that has the opponent of The Nationals with a record of 68-51? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT SUM("attendance") FROM "game_log" WHERE "opponent"='nationals' AND "record"='68-51'; | 2-14269540-8 |
What's the attendance of the game with a score of 5-4? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT "attendance" FROM "game_log" WHERE "score"='5-4'; | 2-14269540-8 |
Who's the opponent of the game with the record 64-51? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT "opponent" FROM "game_log" WHERE "record"='64-51'; | 2-14269540-8 |
Who were the opponents in games before number 54? | CREATE TABLE "regular_season" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text,
"points" real
); | SELECT "opponent" FROM "regular_season" WHERE "game"<54; | 2-14208857-6 |
what was the score of bert yancey | CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
); | SELECT "score" FROM "final_leaderboard" WHERE "player"='bert yancey'; | 2-13674190-1 |
What is the Length/Fuel of the bus with a Quantity of 30? | CREATE TABLE "current_fleet" (
"length_fuel" text,
"model" text,
"year_built" text,
"quantity" real,
"floor_styling" text,
"wheelchair_access" text
); | SELECT "length_fuel" FROM "current_fleet" WHERE "quantity"=30; | 2-14885455-1 |
What is the Length/Fuel of the bus built between 2000-2003 with a high Floor Styling? | CREATE TABLE "current_fleet" (
"length_fuel" text,
"model" text,
"year_built" text,
"quantity" real,
"floor_styling" text,
"wheelchair_access" text
); | SELECT "length_fuel" FROM "current_fleet" WHERE "floor_styling"='high' AND "year_built"='2000-2003'; | 2-14885455-1 |
In what Venue was the game with a Friendly Competition and 1 Goal played? | CREATE TABLE "thomas_buffel_international_goals" (
"goal" real,
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "venue" FROM "thomas_buffel_international_goals" WHERE "competition"='friendly' AND "goal"=1; | 2-1368584-1 |
What is the amount of money that a +5 to par with a score of 76-69-70-70=285? | CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
); | SELECT COUNT("money") FROM "final_round" WHERE "to_par"='+5' AND "score"='76-69-70-70=285'; | 2-14064009-6 |
What is the name of the player with a 71-69-71-69=280 score? | CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
); | SELECT "player" FROM "final_round" WHERE "score"='71-69-71-69=280'; | 2-14064009-6 |
Which average Game # has a Home of san jose, and Points smaller than 71? | CREATE TABLE "february" (
"game_num" real,
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text,
"points" real
); | SELECT AVG("game_num") FROM "february" WHERE "home"='san jose' AND "points"<71; | 2-13913477-7 |
Which Home has a Game # of 59? | CREATE TABLE "february" (
"game_num" real,
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text,
"points" real
); | SELECT "home" FROM "february" WHERE "game_num"=59; | 2-13913477-7 |
Which Visitor has a Game # larger than 62, and a Date of february 25? | CREATE TABLE "february" (
"game_num" real,
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text,
"points" real
); | SELECT "visitor" FROM "february" WHERE "game_num">62 AND "date"='february 25'; | 2-13913477-7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.