question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
Which crystal structures has a Tc(K) of 110 and the number of Cu-O planes in the unit cell is 3? | CREATE TABLE "critical_temperature_t_c_crystal_structu" (
"formula" text,
"notation" text,
"t_c_k" real,
"no_of_cu_o_planes_in_unit_cell" real,
"crystal_structure" text
); | SELECT "crystal_structure" FROM "critical_temperature_t_c_crystal_structu" WHERE "no_of_cu_o_planes_in_unit_cell"=3 AND "t_c_k"=110; | 2-101336-1 |
Name the gold with total larger than 33 | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT "gold" FROM "medal_table" WHERE "total">33; | 2-10215649-3 |
Name the fewest gold for tanzania with bronze less than 0 | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("gold") FROM "medal_table" WHERE "nation"='tanzania' AND "bronze"<0; | 2-10215649-3 |
Who is the opponent for week 10? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT "opponent" FROM "schedule" WHERE "week"=10; | 2-10361679-2 |
For countries that won more than 32 gold medals, what was the highest number of golds? | CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MAX("gold") FROM "medal_table" WHERE "total">32; | 2-10139327-3 |
Tell me fourth place for year of 2010 | CREATE TABLE "australasian_championships" (
"year" real,
"host" text,
"winners" text,
"runners_up" text,
"third_place" text,
"fourth_place" text
); | SELECT "fourth_place" FROM "australasian_championships" WHERE "year"=2010; | 2-10283965-4 |
Tell me the result for 2010 fifa world cup qualification | CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"score" text,
"result" text,
"competition" text
); | SELECT "result" FROM "international_goals" WHERE "competition"='2010 fifa world cup qualification'; | 2-10112806-4 |
Tell me the date for 2010 fifa world cup qualification | CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"score" text,
"result" text,
"competition" text
); | SELECT "date" FROM "international_goals" WHERE "competition"='2010 fifa world cup qualification'; | 2-10112806-4 |
Tell me the surface for november 28, 2010 | CREATE TABLE "singles_8_1" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
); | SELECT "surface" FROM "singles_8_1" WHERE "date"='november 28, 2010'; | 2-10299353-4 |
Tell me the tournament with a hard surface for 6–1, 6–2 | CREATE TABLE "singles_8_1" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
); | SELECT "tournament" FROM "singles_8_1" WHERE "surface"='hard' AND "score"='6–1, 6–2'; | 2-10299353-4 |
Tell me the date for 6–3, 6–2 | CREATE TABLE "singles_8_1" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
); | SELECT "date" FROM "singles_8_1" WHERE "score"='6–3, 6–2'; | 2-10299353-4 |
Tell me the date for johanna konta | CREATE TABLE "singles_8_1" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
); | SELECT "date" FROM "singles_8_1" WHERE "opponent_in_the_final"='johanna konta'; | 2-10299353-4 |
What is the time value for the rider Brian Finch and a rank greater than 3? | CREATE TABLE "1970_isle_of_man_production_500_cc_tt_fi" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
); | SELECT "time" FROM "1970_isle_of_man_production_500_cc_tt_fi" WHERE "rank">3 AND "rider"='brian finch'; | 2-10301911-2 |
What result does the project Once Upon A Time In The West, directed by Sergio Leone have? | CREATE TABLE "prizes_and_awards" (
"year" real,
"director" text,
"project" text,
"category" text,
"result" text
); | SELECT "result" FROM "prizes_and_awards" WHERE "director"='sergio leone' AND "project"='once upon a time in the west'; | 2-10277-6 |
What year was Bulworth nominated? | CREATE TABLE "prizes_and_awards" (
"year" real,
"director" text,
"project" text,
"category" text,
"result" text
); | SELECT "year" FROM "prizes_and_awards" WHERE "project"='bulworth'; | 2-10277-6 |
What is the average Year for the project The Untouchables? | CREATE TABLE "prizes_and_awards" (
"year" real,
"director" text,
"project" text,
"category" text,
"result" text
); | SELECT AVG("year") FROM "prizes_and_awards" WHERE "project"='the untouchables'; | 2-10277-6 |
Tell me the section for position of 8th and season of 2003 | CREATE TABLE "season_to_season" (
"season" text,
"level" text,
"division" text,
"section" text,
"position" text
); | SELECT "section" FROM "season_to_season" WHERE "position"='8th' AND "season"='2003'; | 2-10093697-1 |
What is the date of week 17? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT "date" FROM "schedule" WHERE "week"=17; | 2-10147486-2 |
What was the latest week that the Tampa Bay Buccaneers were an opponent? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT MAX("week") FROM "schedule" WHERE "opponent"='tampa bay buccaneers'; | 2-10147486-2 |
Name the fewest tries for leicester tigers with points less than 207 | CREATE TABLE "points" (
"points" real,
"name" text,
"club" text,
"tries" real,
"drop" real
); | SELECT MIN("tries") FROM "points" WHERE "club"='leicester tigers' AND "points"<207; | 2-10234157-2 |
Name the date of st albans city for result of drew 0-0 | CREATE TABLE "2006_07_york_city_f_c_season" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
); | SELECT "date" FROM "2006_07_york_city_f_c_season" WHERE "opponent"='st albans city' AND "result"='drew 0-0'; | 2-10017434-2 |
Name the venue for 15 august 2006 | CREATE TABLE "2006_07_york_city_f_c_season" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
); | SELECT "venue" FROM "2006_07_york_city_f_c_season" WHERE "date"='15 august 2006'; | 2-10017434-2 |
Name the most attendance for tamworth with home venue | CREATE TABLE "2006_07_york_city_f_c_season" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
); | SELECT MAX("attendance") FROM "2006_07_york_city_f_c_season" WHERE "opponent"='tamworth' AND "venue"='home'; | 2-10017434-2 |
Name the least attendance for 10 october 2006 | CREATE TABLE "2006_07_york_city_f_c_season" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
); | SELECT MIN("attendance") FROM "2006_07_york_city_f_c_season" WHERE "date"='10 october 2006'; | 2-10017434-2 |
I want the average bronze for total of 19 and silver of 8 with rank of 31 | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("bronze") FROM "medal_table" WHERE "total"=19 AND "silver"=8 AND "rank"='31'; | 2-1012026-1 |
Tell me the average bronze for rank of 43 and total less than 11 | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("bronze") FROM "medal_table" WHERE "rank"='43' AND "total"<11; | 2-1012026-1 |
Say the frequency of 1290 khz | CREATE TABLE "affiliates" (
"calls" text,
"frequency" text,
"branding" text,
"format" text,
"timeslot" text,
"group_owner" text
); | SELECT "format" FROM "affiliates" WHERE "frequency"='1290 khz'; | 2-10333757-1 |
Tell me the timeslot of calls of wrko | CREATE TABLE "affiliates" (
"calls" text,
"frequency" text,
"branding" text,
"format" text,
"timeslot" text,
"group_owner" text
); | SELECT "timeslot" FROM "affiliates" WHERE "calls"='wrko'; | 2-10333757-1 |
Tell me the format for calls of wrko | CREATE TABLE "affiliates" (
"calls" text,
"frequency" text,
"branding" text,
"format" text,
"timeslot" text,
"group_owner" text
); | SELECT "format" FROM "affiliates" WHERE "calls"='wrko'; | 2-10333757-1 |
Tell me the calls for frequency of 1290 khz | CREATE TABLE "affiliates" (
"calls" text,
"frequency" text,
"branding" text,
"format" text,
"timeslot" text,
"group_owner" text
); | SELECT "calls" FROM "affiliates" WHERE "frequency"='1290 khz'; | 2-10333757-1 |
Tell me the branding for frequency of 680 khz | CREATE TABLE "affiliates" (
"calls" text,
"frequency" text,
"branding" text,
"format" text,
"timeslot" text,
"group_owner" text
); | SELECT "branding" FROM "affiliates" WHERE "frequency"='680 khz'; | 2-10333757-1 |
Tell me the timeslot for calls of whyn | CREATE TABLE "affiliates" (
"calls" text,
"frequency" text,
"branding" text,
"format" text,
"timeslot" text,
"group_owner" text
); | SELECT "timeslot" FROM "affiliates" WHERE "calls"='whyn'; | 2-10333757-1 |
For how long did Bolivia have a lane greater than 6? | CREATE TABLE "heats" (
"heat_rank" real,
"lane" real,
"swimmer" text,
"country" text,
"time" real,
"overall_rank" text
); | SELECT COUNT("time") FROM "heats" WHERE "country"='bolivia' AND "lane">6; | 2-10289926-12 |
In heat rank 7, what is the sum of lanes? | CREATE TABLE "heats" (
"heat_rank" real,
"lane" real,
"swimmer" text,
"country" text,
"time" real,
"overall_rank" text
); | SELECT SUM("lane") FROM "heats" WHERE "heat_rank"=7; | 2-10289926-12 |
Which country is ranked 56 overall and has a heat rank smaller than 8? | CREATE TABLE "heats" (
"heat_rank" real,
"lane" real,
"swimmer" text,
"country" text,
"time" real,
"overall_rank" text
); | SELECT "country" FROM "heats" WHERE "heat_rank"<8 AND "overall_rank"='56'; | 2-10289926-12 |
What is the greatest lane with an overall rank of 79 and a time larger than 26.1? | CREATE TABLE "heats" (
"heat_rank" real,
"lane" real,
"swimmer" text,
"country" text,
"time" real,
"overall_rank" text
); | SELECT MAX("lane") FROM "heats" WHERE "overall_rank"='79' AND "time">26.1; | 2-10289926-12 |
Tell me the highest week for metropolitan stadium for attendance more than 47,644 | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"venue" text,
"attendance" real
); | SELECT MAX("week") FROM "schedule" WHERE "venue"='metropolitan stadium' AND "attendance">'47,644'; | 2-10361093-2 |
Name the sum of played for serik berdalin and drawn more than 4 | CREATE TABLE "coaches" (
"manager" text,
"period" text,
"played" real,
"drawn" real,
"lost" real,
"win_pct" text
); | SELECT SUM("played") FROM "coaches" WHERE "manager"='serik berdalin' AND "drawn">4; | 2-1012044-4 |
Who had the highest total PR seats of 48 with a District seat larger than than 73? | CREATE TABLE "results" (
"party" text,
"pr_seats" real,
"district_seats" real,
"total_elected_2001" text,
"total_seats" real
); | SELECT MAX("total_seats") FROM "results" WHERE "pr_seats"=48 AND "district_seats">73; | 2-10124546-1 |
In 1955 which party did Thomas Mitchell belong to? | CREATE TABLE "since_1945" (
"candidate" text,
"party" text,
"constituency" text,
"year" text,
"days" text
); | SELECT "party" FROM "since_1945" WHERE "year"='1955' AND "candidate"='thomas mitchell'; | 2-10107334-3 |
What are the number of days did the ulster unionist Party have the constituate fermanagh and south tyrone? | CREATE TABLE "since_1945" (
"candidate" text,
"party" text,
"constituency" text,
"year" text,
"days" text
); | SELECT "days" FROM "since_1945" WHERE "party"='ulster unionist' AND "constituency"='fermanagh and south tyrone'; | 2-10107334-3 |
What are the number of days in 1945 where the constituent was heywood and radcliffe? | CREATE TABLE "since_1945" (
"candidate" text,
"party" text,
"constituency" text,
"year" text,
"days" text
); | SELECT "days" FROM "since_1945" WHERE "year"='1945' AND "constituency"='heywood and radcliffe'; | 2-10107334-3 |
What year was Hazel Grove the constituent for the liberal party? | CREATE TABLE "since_1945" (
"candidate" text,
"party" text,
"constituency" text,
"year" text,
"days" text
); | SELECT "year" FROM "since_1945" WHERE "party"='liberal' AND "constituency"='hazel grove'; | 2-10107334-3 |
Tell me the average Laps for grid larger than 12 and bikes of ducati 999rs for dean ellison | CREATE TABLE "superbike_race_2_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
); | SELECT AVG("laps") FROM "superbike_race_2_classification" WHERE "grid">12 AND "bike"='ducati 999rs' AND "rider"='dean ellison'; | 2-10282772-2 |
Tell me the highest Laps for grid less than 22 and riderS of ruben xaus | CREATE TABLE "superbike_race_2_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
); | SELECT MAX("laps") FROM "superbike_race_2_classification" WHERE "grid"<22 AND "rider"='ruben xaus'; | 2-10282772-2 |
Tell me the total number of grid for rider of james toseland | CREATE TABLE "superbike_race_2_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
); | SELECT COUNT("grid") FROM "superbike_race_2_classification" WHERE "rider"='james toseland'; | 2-10282772-2 |
Tell me the least Laps for grid larger than 2 with 35:26.734 | CREATE TABLE "superbike_race_2_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
); | SELECT MIN("laps") FROM "superbike_race_2_classification" WHERE "time"='35:26.734' AND "grid">2; | 2-10282772-2 |
Tell me the date with week of 13 | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT "date" FROM "schedule" WHERE "week"=13; | 2-10362150-2 |
Tell me the average week for attendance of 48,113 | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT AVG("week") FROM "schedule" WHERE "attendance"='48,113'; | 2-10362150-2 |
Which Album had a year less than 2005 with a Label by Ministry of Sound? | CREATE TABLE "albums" (
"year" real,
"album" text,
"song" text,
"label" text,
"catalognum" text,
"format" text,
"country" text
); | SELECT "album" FROM "albums" WHERE "year"<2005 AND "label"='ministry of sound'; | 2-10374985-14 |
Which Album had a bigger year than 2005 and whose country was Australia? | CREATE TABLE "albums" (
"year" real,
"album" text,
"song" text,
"label" text,
"catalognum" text,
"format" text,
"country" text
); | SELECT "album" FROM "albums" WHERE "year">2005 AND "country"='australia'; | 2-10374985-14 |
Which song had Central Station as a label and whose album was Various - Wild Nights 4? | CREATE TABLE "albums" (
"year" real,
"album" text,
"song" text,
"label" text,
"catalognum" text,
"format" text,
"country" text
); | SELECT "song" FROM "albums" WHERE "label"='central station' AND "album"='various - wild nights 4'; | 2-10374985-14 |
Where did Zimbabwe play? | CREATE TABLE "in_a_match" (
"sixes" text,
"player" text,
"opponent" text,
"venue" text,
"date" text
); | SELECT "venue" FROM "in_a_match" WHERE "opponent"='zimbabwe'; | 2-10044096-10 |
What is the date when Canada played? | CREATE TABLE "in_a_match" (
"sixes" text,
"player" text,
"opponent" text,
"venue" text,
"date" text
); | SELECT "date" FROM "in_a_match" WHERE "opponent"='canada'; | 2-10044096-10 |
Tell me the lowest silver for rank of 9 and bronze less than 2 | CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("silver") FROM "medal_table" WHERE "rank"=9 AND "bronze"<2; | 2-10258265-3 |
Name the report for raymond sommer | CREATE TABLE "non_championship_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
); | SELECT "report" FROM "non_championship_grands_prix" WHERE "winning_driver"='raymond sommer'; | 2-10219837-2 |
Name the winning driver for monaco grand prix | CREATE TABLE "non_championship_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
); | SELECT "winning_driver" FROM "non_championship_grands_prix" WHERE "name"='monaco grand prix'; | 2-10219837-2 |
Name the circuit for marcel lehoux | CREATE TABLE "non_championship_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
); | SELECT "circuit" FROM "non_championship_grands_prix" WHERE "winning_driver"='marcel lehoux'; | 2-10219837-2 |
Name the report for per-viktor widengren and alfa romeo | CREATE TABLE "non_championship_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
); | SELECT "report" FROM "non_championship_grands_prix" WHERE "winning_driver"='per-viktor widengren' AND "winning_constructor"='alfa romeo'; | 2-10219837-2 |
Tell me the date for warsaw 1929 | CREATE TABLE "1925_1929" (
"year" real,
"competition" text,
"date" text,
"location" text,
"score" text,
"result" text
); | SELECT "date" FROM "1925_1929" WHERE "location"='warsaw' AND "year"=1929; | 2-10154327-10 |
Tell me the result for warsaw 1929 | CREATE TABLE "1925_1929" (
"year" real,
"competition" text,
"date" text,
"location" text,
"score" text,
"result" text
); | SELECT "result" FROM "1925_1929" WHERE "location"='warsaw' AND "year"=1929; | 2-10154327-10 |
Tell me the result for harrogate | CREATE TABLE "1925_1929" (
"year" real,
"competition" text,
"date" text,
"location" text,
"score" text,
"result" text
); | SELECT "result" FROM "1925_1929" WHERE "location"='harrogate'; | 2-10154327-10 |
Tell me the Stem Meaning of ical | CREATE TABLE "honorifics" (
"stem_meaning" text,
"2nd_person_sg" text,
"2nd_person_sg_honorific" text,
"3rd_person_sg" text,
"3rd_person_sg_honorific" text
); | SELECT "stem_meaning" FROM "honorifics" WHERE "3rd_person_sg"='ical'; | 2-10144306-4 |
Tell me the 3rd person sg for tiecal, tiecaltzi | CREATE TABLE "honorifics" (
"stem_meaning" text,
"2nd_person_sg" text,
"2nd_person_sg_honorific" text,
"3rd_person_sg" text,
"3rd_person_sg_honorific" text
); | SELECT "3rd_person_sg" FROM "honorifics" WHERE "3rd_person_sg_honorific"='tiecal, tiecaltzi'; | 2-10144306-4 |
Tell me the overall rank for roland schoeman | CREATE TABLE "heats" (
"heat_rank" real,
"lane" real,
"swimmer" text,
"country" text,
"time" real,
"overall_rank" text
); | SELECT "overall_rank" FROM "heats" WHERE "swimmer"='roland schoeman'; | 2-10289926-22 |
How many Silver medals did nation who is ranked greater than 1 and has 4 Gold medals have? | CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT SUM("silver") FROM "medal_table" WHERE "rank">1 AND "gold"=4; | 2-10102961-2 |
Which nation has more than 6 Silver medals and fewer than 8 Gold medals? | CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("total") FROM "medal_table" WHERE "silver">6 AND "gold"<8; | 2-10102961-2 |
What is the rank of the Nation that has fewer than 24 total medals are more than 7 Gold medals? | CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("rank") FROM "medal_table" WHERE "total"<24 AND "gold">7; | 2-10102961-2 |
What is the rank of the nation that has more than 1 Bronze medals and fewer than 4 Gold medals? | CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("rank") FROM "medal_table" WHERE "bronze">1 AND "gold"<4; | 2-10102961-2 |
How many silver medals does Belarus (blr) along with 4 gold and 4 bronze? | CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT SUM("silver") FROM "medal_table" WHERE "gold"=4 AND "nation"='belarus (blr)' AND "bronze">4; | 2-1005019-3 |
What rank is Belarus (BLR), which earned 15 medals total? | CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MAX("rank") FROM "medal_table" WHERE "nation"='belarus (blr)' AND "total"<15; | 2-1005019-3 |
What was the name of the race on 24 September? | CREATE TABLE "grandes_preuves" (
"name" text,
"circuit" text,
"date" text,
"winning_drivers" text,
"winning_constructor" text,
"report" text
); | SELECT "name" FROM "grandes_preuves" WHERE "date"='24 september'; | 2-10302742-1 |
What is the name of the race on 9 July? | CREATE TABLE "grandes_preuves" (
"name" text,
"circuit" text,
"date" text,
"winning_drivers" text,
"winning_constructor" text,
"report" text
); | SELECT "name" FROM "grandes_preuves" WHERE "date"='9 july'; | 2-10302742-1 |
What was the race that was won by a Maserati being driven by Giuseppe Campari? | CREATE TABLE "grandes_preuves" (
"name" text,
"circuit" text,
"date" text,
"winning_drivers" text,
"winning_constructor" text,
"report" text
); | SELECT "circuit" FROM "grandes_preuves" WHERE "winning_constructor"='maserati' AND "winning_drivers"='giuseppe campari'; | 2-10302742-1 |
What date was the race won by Louis Chiron? | CREATE TABLE "grandes_preuves" (
"name" text,
"circuit" text,
"date" text,
"winning_drivers" text,
"winning_constructor" text,
"report" text
); | SELECT "date" FROM "grandes_preuves" WHERE "winning_drivers"='louis chiron'; | 2-10302742-1 |
What brand of vehicle won a race driven by Tazio Nuvolari? | CREATE TABLE "grandes_preuves" (
"name" text,
"circuit" text,
"date" text,
"winning_drivers" text,
"winning_constructor" text,
"report" text
); | SELECT "winning_constructor" FROM "grandes_preuves" WHERE "winning_drivers"='tazio nuvolari'; | 2-10302742-1 |
What race was won by Tazio Nuvolari? | CREATE TABLE "grandes_preuves" (
"name" text,
"circuit" text,
"date" text,
"winning_drivers" text,
"winning_constructor" text,
"report" text
); | SELECT "name" FROM "grandes_preuves" WHERE "winning_drivers"='tazio nuvolari'; | 2-10302742-1 |
Tell me the result for week less than 4 and september 7, 1986 | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT "result" FROM "schedule" WHERE "week"<4 AND "date"='september 7, 1986'; | 2-10362040-2 |
Tell me the result for week of 3 | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT "result" FROM "schedule" WHERE "week"=3; | 2-10362040-2 |
Tell me the lowest week for attedance less thaan 32,738 | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT MIN("week") FROM "schedule" WHERE "attendance"<'32,738'; | 2-10362040-2 |
Tell me the ship for lieutenant montagu verling | CREATE TABLE "ships_served_in_by_richard_bolitho" (
"ship" text,
"guns" text,
"class" text,
"captain" text,
"rank" text,
"year" text
); | SELECT "ship" FROM "ships_served_in_by_richard_bolitho" WHERE "captain"='lieutenant montagu verling'; | 2-1023875-3 |
Tell me the class for admiral and hms frobisher | CREATE TABLE "ships_served_in_by_richard_bolitho" (
"ship" text,
"guns" text,
"class" text,
"captain" text,
"rank" text,
"year" text
); | SELECT "class" FROM "ships_served_in_by_richard_bolitho" WHERE "rank"='admiral' AND "ship"='hms frobisher'; | 2-1023875-3 |
Tell me the guns for third-rate ship of the line and rank of vice-admiral with year of 1802 | CREATE TABLE "ships_served_in_by_richard_bolitho" (
"ship" text,
"guns" text,
"class" text,
"captain" text,
"rank" text,
"year" text
); | SELECT "guns" FROM "ships_served_in_by_richard_bolitho" WHERE "class"='third-rate ship of the line' AND "rank"='vice-admiral' AND "year"='1802'; | 2-1023875-3 |
Tell me the captain for 1774 and guns of 14 | CREATE TABLE "ships_served_in_by_richard_bolitho" (
"ship" text,
"guns" text,
"class" text,
"captain" text,
"rank" text,
"year" text
); | SELECT "captain" FROM "ships_served_in_by_richard_bolitho" WHERE "year"='1774' AND "guns"='14'; | 2-1023875-3 |
Tell me the captain for guns of 28 | CREATE TABLE "ships_served_in_by_richard_bolitho" (
"ship" text,
"guns" text,
"class" text,
"captain" text,
"rank" text,
"year" text
); | SELECT "captain" FROM "ships_served_in_by_richard_bolitho" WHERE "guns"='28'; | 2-1023875-3 |
Tell me the status of eliminated of anton dela paz | CREATE TABLE "star_struck_standing" (
"week_num" real,
"finalists" text,
"status" text,
"eliminated" text,
"date" text
); | SELECT "status" FROM "star_struck_standing" WHERE "eliminated"='anton dela paz'; | 2-10024445-1 |
Tell me the finalists for week # less than 2 | CREATE TABLE "star_struck_standing" (
"week_num" real,
"finalists" text,
"status" text,
"eliminated" text,
"date" text
); | SELECT "finalists" FROM "star_struck_standing" WHERE "week_num"<2; | 2-10024445-1 |
Tell me the eliminated for week # larger than 4 | CREATE TABLE "star_struck_standing" (
"week_num" real,
"finalists" text,
"status" text,
"eliminated" text,
"date" text
); | SELECT "eliminated" FROM "star_struck_standing" WHERE "week_num">4; | 2-10024445-1 |
At the UFC 78, what is the average round when the time is 5:00? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
); | SELECT AVG("round") FROM "mixed_martial_arts_record" WHERE "time"='5:00' AND "event"='ufc 78'; | 2-10071745-2 |
When there was a draw, what was the time? | 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 "res"='draw'; | 2-10071745-2 |
What is the sum of points in 2010 when the driver had more than 14 races and an F.L. of less than 0? | CREATE TABLE "gp2_series" (
"year" real,
"drivers" text,
"races" real,
"wins" real,
"poles" real,
"f_l" real,
"points" real,
"d_c" text,
"t_c" text
); | SELECT SUM("points") FROM "gp2_series" WHERE "year"=2010 AND "races">14 AND "f_l"<0; | 2-1029726-1 |
What day was the game that had an attendance of more than 46,551 people and had a week number of less than 4? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT "date" FROM "schedule" WHERE "attendance">'46,551' AND "week"<4; | 2-10361637-2 |
What was the outcome of the game that had a week number of less than 2? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT "result" FROM "schedule" WHERE "week"<2; | 2-10361637-2 |
What heat and what lane is thi hue pham in? | CREATE TABLE "heats" (
"rank" real,
"heat_lane" text,
"name" text,
"nationality" text,
"time" text
); | SELECT "heat_lane" FROM "heats" WHERE "name"='thi hue pham'; | 2-10325152-3 |
What Heat & Lane is the person who has a time of 1:01.12? | CREATE TABLE "heats" (
"rank" real,
"heat_lane" text,
"name" text,
"nationality" text,
"time" text
); | SELECT "heat_lane" FROM "heats" WHERE "time"='1:01.12'; | 2-10325152-3 |
How many laps did Fernando Alonso do? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "laps" FROM "race" WHERE "driver"='fernando alonso'; | 2-10128555-2 |
What was Jenson Button's constructor? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "constructor" FROM "race" WHERE "driver"='jenson button'; | 2-10128555-2 |
Tell me the package for EEPROM less than 128 | CREATE TABLE "supported_microcontrollers_according_to_" (
"chip" text,
"flash_size" text,
"eeprom" real,
"sram" real,
"frequency_m_hz" real,
"package" text
); | SELECT "package" FROM "supported_microcontrollers_according_to_" WHERE "eeprom"<128; | 2-100290-1 |
Tell me the chip with frequency larger than 10 | CREATE TABLE "supported_microcontrollers_according_to_" (
"chip" text,
"flash_size" text,
"eeprom" real,
"sram" real,
"frequency_m_hz" real,
"package" text
); | SELECT "chip" FROM "supported_microcontrollers_according_to_" WHERE "frequency_m_hz">10; | 2-100290-1 |
I want the highest Grid for Toyota and jarno trulli | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT MAX("grid") FROM "race" WHERE "constructor"='toyota' AND "driver"='jarno trulli'; | 2-10120476-2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.