question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
What award has a year earlier than 2004 and the episode shows —? | CREATE TABLE "other_awards" (
"year" real,
"award" text,
"nominee" text,
"episode" text,
"result" text
); | SELECT "award" FROM "other_awards" WHERE "year"<2004 AND "episode"='—'; | 2-18666300-7 |
What award has a year later than 2004, and the episode was "The Road to Damuscus"? | CREATE TABLE "other_awards" (
"year" real,
"award" text,
"nominee" text,
"episode" text,
"result" text
); | SELECT "award" FROM "other_awards" WHERE "year">2004 AND "episode"='\"the road to damuscus\"'; | 2-18666300-7 |
What year has a Nominee of —, and a Result of nominated? | CREATE TABLE "other_awards" (
"year" real,
"award" text,
"nominee" text,
"episode" text,
"result" text
); | SELECT AVG("year") FROM "other_awards" WHERE "nominee"='—' AND "result"='nominated'; | 2-18666300-7 |
What is the Country of the Play Electra? | CREATE TABLE "references" (
"play" text,
"author" text,
"company" text,
"base" text,
"country" text
); | SELECT "country" FROM "references" WHERE "play"='electra'; | 2-18379129-4 |
What is the Athens Base play with Dance Theatre Roes Company? | CREATE TABLE "references" (
"play" text,
"author" text,
"company" text,
"base" text,
"country" text
); | SELECT "play" FROM "references" WHERE "base"='athens' AND "company"='dance theatre roes'; | 2-18379129-4 |
Who is the author of the Play Electra? | CREATE TABLE "references" (
"play" text,
"author" text,
"company" text,
"base" text,
"country" text
); | SELECT "author" FROM "references" WHERE "play"='electra'; | 2-18379129-4 |
Waht is the Country of the play by Author Aristophanes? | CREATE TABLE "references" (
"play" text,
"author" text,
"company" text,
"base" text,
"country" text
); | SELECT "country" FROM "references" WHERE "author"='aristophanes'; | 2-18379129-4 |
What Country has the Play The Libation Bearers a Base of Mecklenburg? | CREATE TABLE "references" (
"play" text,
"author" text,
"company" text,
"base" text,
"country" text
); | SELECT "country" FROM "references" WHERE "base"='mecklenburg' AND "play"='the libation bearers'; | 2-18379129-4 |
Which series had a title of Boyhood Daze? | CREATE TABLE "1957" (
"title" text,
"series" text,
"director" text,
"release_date" text,
"reissue" text
); | SELECT "series" FROM "1957" WHERE "title"='boyhood daze'; | 2-18792948-8 |
What was the release date of Rabbit Romeo? | CREATE TABLE "1957" (
"title" text,
"series" text,
"director" text,
"release_date" text,
"reissue" text
); | SELECT "release_date" FROM "1957" WHERE "title"='rabbit romeo'; | 2-18792948-8 |
What was the release date of Three Little Bops? | CREATE TABLE "1957" (
"title" text,
"series" text,
"director" text,
"release_date" text,
"reissue" text
); | SELECT "release_date" FROM "1957" WHERE "title"='three little bops'; | 2-18792948-8 |
When earnings ($) is more than 583,796 after 1998 with 1 LPGA wins and greater than 10 Money list rank, what is the smallest average? | CREATE TABLE "lpga_tour_career_summary" (
"year" real,
"lpga_wins" real,
"earnings" real,
"money_list_rank" real,
"average" real
); | SELECT MIN("average") FROM "lpga_tour_career_summary" WHERE "year">1998 AND "earnings">'583,796' AND "lpga_wins"=1 AND "money_list_rank">10; | 2-1852079-3 |
In 2005 the earnings is less than 615,499 with less than 2 LPGA wins and what smallest Money list rank? | CREATE TABLE "lpga_tour_career_summary" (
"year" real,
"lpga_wins" real,
"earnings" real,
"money_list_rank" real,
"average" real
); | SELECT MIN("money_list_rank") FROM "lpga_tour_career_summary" WHERE "lpga_wins"<2 AND "year"=2005 AND "earnings"<'615,499'; | 2-1852079-3 |
What is the sum of money list rank after 1999 when the average is less than 73.27 and earnings is 583,796? | CREATE TABLE "lpga_tour_career_summary" (
"year" real,
"lpga_wins" real,
"earnings" real,
"money_list_rank" real,
"average" real
); | SELECT COUNT("money_list_rank") FROM "lpga_tour_career_summary" WHERE "average"<73.27 AND "earnings"='583,796' AND "year">1999; | 2-1852079-3 |
What is the team name from Hammond Bishop Noll? | CREATE TABLE "membership" (
"school" text,
"city" text,
"team_name" text,
"enrollment_08_09" real,
"ihsaa_class" text,
"county" text,
"year_joined" text,
"previous_counference" text
); | SELECT "team_name" FROM "membership" WHERE "school"='hammond bishop noll'; | 2-18789059-1 |
What city has a team in IHSAA class 3a, and previous conference of lake? | CREATE TABLE "membership" (
"school" text,
"city" text,
"team_name" text,
"enrollment_08_09" real,
"ihsaa_class" text,
"county" text,
"year_joined" text,
"previous_counference" text
); | SELECT "city" FROM "membership" WHERE "previous_counference"='lake' AND "ihsaa_class"='3a'; | 2-18789059-1 |
What is the average enrollment 08=09, for the team that had a previous conference of lake and IHSAA class of 3A? | CREATE TABLE "membership" (
"school" text,
"city" text,
"team_name" text,
"enrollment_08_09" real,
"ihsaa_class" text,
"county" text,
"year_joined" text,
"previous_counference" text
); | SELECT AVG("enrollment_08_09") FROM "membership" WHERE "previous_counference"='lake' AND "ihsaa_class"='3a'; | 2-18789059-1 |
What is the Date of the Kroger Classic Tournament? | CREATE TABLE "champions_tour_wins_25" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
); | SELECT "date" FROM "champions_tour_wins_25" WHERE "tournament"='kroger classic'; | 2-1859485-3 |
What is the Date of the Ameritech Senior Open? | CREATE TABLE "champions_tour_wins_25" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
); | SELECT "date" FROM "champions_tour_wins_25" WHERE "tournament"='ameritech senior open'; | 2-1859485-3 |
What Tournament has a Winning score of −16 (66-64-67=197)? | CREATE TABLE "champions_tour_wins_25" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
); | SELECT "tournament" FROM "champions_tour_wins_25" WHERE "winning_score"='−16 (66-64-67=197)'; | 2-1859485-3 |
What Japanese On'yomi has Catonese Jyutping of jyut6? | CREATE TABLE "table" (
"celestial_stem" text,
"chinese_mandarin_pinyin" text,
"cantonese_jyutping" text,
"wuu_wuupin" text,
"japanese_kunyomi" text,
"japanese_on_yomi" text,
"korean_rr" text,
"manchu_m_llendorff" text,
"vietnamese" text,
"yin_and_yang" text,
"wu_xing" text,
"wu_xing_correlations" text
); | SELECT "japanese_on_yomi" FROM "table" WHERE "cantonese_jyutping"='jyut6'; | 2-185618-1 |
What Japanese On'yomi has Vietnamese of Mậu? | CREATE TABLE "table" (
"celestial_stem" text,
"chinese_mandarin_pinyin" text,
"cantonese_jyutping" text,
"wuu_wuupin" text,
"japanese_kunyomi" text,
"japanese_on_yomi" text,
"korean_rr" text,
"manchu_m_llendorff" text,
"vietnamese" text,
"yin_and_yang" text,
"wu_xing" text,
"wu_xing_correlations" text
); | SELECT "japanese_on_yomi" FROM "table" WHERE "vietnamese"='mậu'; | 2-185618-1 |
What is Wu Xing (五行) with Korean (RR) of 임 (im)? | CREATE TABLE "table" (
"celestial_stem" text,
"chinese_mandarin_pinyin" text,
"cantonese_jyutping" text,
"wuu_wuupin" text,
"japanese_kunyomi" text,
"japanese_on_yomi" text,
"korean_rr" text,
"manchu_m_llendorff" text,
"vietnamese" text,
"yin_and_yang" text,
"wu_xing" text,
"wu_xing_correlations" text
); | SELECT "wu_xing" FROM "table" WHERE "korean_rr"='임 (im)'; | 2-185618-1 |
What's Manchu (Möllendorff) with the Wi Xing Correltation of 南 South, along with Wuu Wuupin of ting44? | CREATE TABLE "table" (
"celestial_stem" text,
"chinese_mandarin_pinyin" text,
"cantonese_jyutping" text,
"wuu_wuupin" text,
"japanese_kunyomi" text,
"japanese_on_yomi" text,
"korean_rr" text,
"manchu_m_llendorff" text,
"vietnamese" text,
"yin_and_yang" text,
"wu_xing" text,
"wu_xing_correlations" text
); | SELECT "manchu_m_llendorff" FROM "table" WHERE "wu_xing_correlations"='南 south' AND "wuu_wuupin"='ting44'; | 2-185618-1 |
Which Japanese Title has a TV Station of ntv? | CREATE TABLE "2005_spring_season" (
"japanese_title" text,
"romaji_title" text,
"tv_station" text,
"theme_song_s" text,
"episodes" real,
"average_ratings" text
); | SELECT "japanese_title" FROM "2005_spring_season" WHERE "tv_station"='ntv'; | 2-18540104-1 |
Which TV Station has a Romaji Title of kegareta shita? | CREATE TABLE "2005_spring_season" (
"japanese_title" text,
"romaji_title" text,
"tv_station" text,
"theme_song_s" text,
"episodes" real,
"average_ratings" text
); | SELECT "tv_station" FROM "2005_spring_season" WHERE "romaji_title"='kegareta shita'; | 2-18540104-1 |
Which Theme Song(s) has a Japanese Title of 恋におちたら~僕の成功の秘密~? | CREATE TABLE "2005_spring_season" (
"japanese_title" text,
"romaji_title" text,
"tv_station" text,
"theme_song_s" text,
"episodes" real,
"average_ratings" text
); | SELECT "theme_song_s" FROM "2005_spring_season" WHERE "japanese_title"='恋におちたら~僕の成功の秘密~'; | 2-18540104-1 |
Churai has what as the fewest number of electorates? | CREATE TABLE "assembly_segments" (
"constituency_number" text,
"name" text,
"reserved_for_sc_st_none" text,
"district" text,
"number_of_electorates_2009" real
); | SELECT MIN("number_of_electorates_2009") FROM "assembly_segments" WHERE "name"='churai'; | 2-18508640-1 |
what is the title when the release date is 1938-12-17 and the production number is 8610? | CREATE TABLE "1938" (
"title" text,
"series" text,
"director" text,
"production_num" text,
"release_date" text
); | SELECT "title" FROM "1938" WHERE "release_date"='1938-12-17' AND "production_num"='8610'; | 2-18792938-9 |
The match played July 8, 2007 had what outcome? | CREATE TABLE "singles_0_7" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
); | SELECT "outcome" FROM "singles_0_7" WHERE "date"='july 8, 2007'; | 2-18420829-2 |
The final match played against Evie Dominikovic was played on what surface? | CREATE TABLE "singles_0_7" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
); | SELECT "surface" FROM "singles_0_7" WHERE "opponent_in_the_final"='evie dominikovic'; | 2-18420829-2 |
Olga Blahotová was the opponent in the final at what tournament? | CREATE TABLE "singles_0_7" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
); | SELECT "tournament" FROM "singles_0_7" WHERE "opponent_in_the_final"='olga blahotová'; | 2-18420829-2 |
In the final against Ashley Harkleroad what was the score? | CREATE TABLE "singles_0_7" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
); | SELECT "score" FROM "singles_0_7" WHERE "opponent_in_the_final"='ashley harkleroad'; | 2-18420829-2 |
What is the name for the 2008 club Liaoning? | CREATE TABLE "volleyball_at_the_2008_summer_olympics_w" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2008_club" text
); | SELECT "name" FROM "volleyball_at_the_2008_summer_olympics_w" WHERE "2008_club"='liaoning'; | 2-18719696-1 |
What is the height for the Tianjin members in 2008? | CREATE TABLE "volleyball_at_the_2008_summer_olympics_w" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2008_club" text
); | SELECT "height" FROM "volleyball_at_the_2008_summer_olympics_w" WHERE "2008_club"='tianjin'; | 2-18719696-1 |
At what time did the opponent Takaichi Hirayama have an event? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"time" text,
"location" text
); | SELECT "time" FROM "mixed_martial_arts_record" WHERE "opponent"='takaichi hirayama'; | 2-18427840-2 |
In which round was Gabriel Veiga the opponent? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"time" text,
"location" text
); | SELECT "round" FROM "mixed_martial_arts_record" WHERE "opponent"='gabriel veiga'; | 2-18427840-2 |
Which method had a 3 rounds, result in a loss and the Juiz de Fora - fight 1 event? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"time" text,
"location" text
); | SELECT "method" FROM "mixed_martial_arts_record" WHERE "round"='3' AND "res"='loss' AND "event"='juiz de fora - fight 1'; | 2-18427840-2 |
Which opponent has a record of 4-2? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"time" text,
"location" text
); | SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "record"='4-2'; | 2-18427840-2 |
What is the Reserved for when there are more than 161,219 electorates in 2009 and a constituency of 160? | CREATE TABLE "assembly_segments" (
"constituency_number" text,
"name" text,
"reserved_for_sc_st_none" text,
"district" text,
"number_of_electorates_2009" real
); | SELECT "reserved_for_sc_st_none" FROM "assembly_segments" WHERE "number_of_electorates_2009">'161,219' AND "constituency_number"='160'; | 2-18517323-1 |
What is the name when there are more than 161,219 electorates in 2009 and a constituency of 165? | CREATE TABLE "assembly_segments" (
"constituency_number" text,
"name" text,
"reserved_for_sc_st_none" text,
"district" text,
"number_of_electorates_2009" real
); | SELECT "name" FROM "assembly_segments" WHERE "number_of_electorates_2009">'161,219' AND "constituency_number"='165'; | 2-18517323-1 |
what is the country for zhang xiuyun? | CREATE TABLE "quarterfinal_3" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
); | SELECT "country" FROM "quarterfinal_3" WHERE "athlete"='zhang xiuyun'; | 2-18662695-10 |
what is the country for fabiana beltrame? | CREATE TABLE "quarterfinal_3" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
); | SELECT "country" FROM "quarterfinal_3" WHERE "athlete"='fabiana beltrame'; | 2-18662695-10 |
what is the notes when the time is 7:58.71? | CREATE TABLE "quarterfinal_3" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
); | SELECT "notes" FROM "quarterfinal_3" WHERE "time"='7:58.71'; | 2-18662695-10 |
what is the highest rank when the time is 7:52.65? | CREATE TABLE "quarterfinal_3" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
); | SELECT MAX("rank") FROM "quarterfinal_3" WHERE "time"='7:52.65'; | 2-18662695-10 |
what is the country when the nots is sa/b, the rank is more than 1 and the athlete is zhang xiuyun? | CREATE TABLE "quarterfinal_3" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
); | SELECT "country" FROM "quarterfinal_3" WHERE "notes"='sa/b' AND "rank">1 AND "athlete"='zhang xiuyun'; | 2-18662695-10 |
Who had a rank under 17 with a total of 119? | CREATE TABLE "qualification_round" (
"rank" real,
"athlete" text,
"country" text,
"day_1" real,
"total" text
); | SELECT "athlete" FROM "qualification_round" WHERE "rank"<17 AND "total"='119'; | 2-18652826-3 |
What round has 2-1 as the result, and A as the venue? | CREATE TABLE "league_cup" (
"round" text,
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
); | SELECT "round" FROM "league_cup" WHERE "result"='2-1' AND "venue"='a'; | 2-18762971-4 |
What is the most time for the swimmer from South Africa who was in a lane greater than 3? | CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" real
); | SELECT MAX("time") FROM "semifinal_2" WHERE "nationality"='south africa' AND "lane">3; | 2-18624696-5 |
Which school has enrollment of 887? | CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"county" text
); | SELECT "school" FROM "indiana_high_school_athletics_conference" WHERE "enrollment"=887; | 2-18974097-6 |
what is the round when the pick # is less than 236 and the position is offensive guard? | CREATE TABLE "nfl_draft" (
"round" real,
"pick_num" real,
"player" text,
"position" text,
"college" text
); | SELECT AVG("round") FROM "nfl_draft" WHERE "pick_num"<236 AND "position"='offensive guard'; | 2-18695319-1 |
what is the position in round 3? | CREATE TABLE "nfl_draft" (
"round" real,
"pick_num" real,
"player" text,
"position" text,
"college" text
); | SELECT "position" FROM "nfl_draft" WHERE "round"=3; | 2-18695319-1 |
What is the Position of the Pick 8 Player? | CREATE TABLE "draft_selections" (
"round" real,
"pick" real,
"position" text,
"nationality" text,
"school_club_team" text
); | SELECT "position" FROM "draft_selections" WHERE "pick"=8; | 2-1890933-3 |
Which High assists has a Score of w 71-56? | CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location" text,
"record" text
); | SELECT "high_assists" FROM "regular_season" WHERE "score"='w 71-56'; | 2-18904831-5 |
Which Score has a High assists of whalen (5)? | CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location" text,
"record" text
); | SELECT "score" FROM "regular_season" WHERE "high_assists"='whalen (5)'; | 2-18904831-5 |
Which High rebounds has a Game smaller than 9, and a Opponent of detroit? | CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location" text,
"record" text
); | SELECT "high_rebounds" FROM "regular_season" WHERE "game"<9 AND "opponent"='detroit'; | 2-18904831-5 |
Which High rebounds has a Score of w 81-69? | CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location" text,
"record" text
); | SELECT "high_rebounds" FROM "regular_season" WHERE "score"='w 81-69'; | 2-18904831-5 |
Which Surface has a Result of fernando verdasco? | CREATE TABLE "best_5_matches_by_atp_world_tour_com" (
"event" real,
"round" text,
"surface" text,
"winner" text,
"opponent" text,
"result" text
); | SELECT "surface" FROM "best_5_matches_by_atp_world_tour_com" WHERE "result"='fernando verdasco'; | 2-19008019-32 |
How many events did clay win? | CREATE TABLE "best_5_matches_by_atp_world_tour_com" (
"event" real,
"round" text,
"surface" text,
"winner" text,
"opponent" text,
"result" text
); | SELECT COUNT("event") FROM "best_5_matches_by_atp_world_tour_com" WHERE "winner"='clay'; | 2-19008019-32 |
Which Surface has an Opponent of rafael nadal, and an Event of 2? | CREATE TABLE "best_5_matches_by_atp_world_tour_com" (
"event" real,
"round" text,
"surface" text,
"winner" text,
"opponent" text,
"result" text
); | SELECT "surface" FROM "best_5_matches_by_atp_world_tour_com" WHERE "opponent"='rafael nadal' AND "event"=2; | 2-19008019-32 |
Who is iván navarro's opponent? | CREATE TABLE "best_5_matches_by_atp_world_tour_com" (
"event" real,
"round" text,
"surface" text,
"winner" text,
"opponent" text,
"result" text
); | SELECT "opponent" FROM "best_5_matches_by_atp_world_tour_com" WHERE "result"='iván navarro'; | 2-19008019-32 |
Which Event has a Surface of semifinal, and a Winner of hard (i)? | CREATE TABLE "best_5_matches_by_atp_world_tour_com" (
"event" real,
"round" text,
"surface" text,
"winner" text,
"opponent" text,
"result" text
); | SELECT MAX("event") FROM "best_5_matches_by_atp_world_tour_com" WHERE "surface"='semifinal' AND "winner"='hard (i)'; | 2-19008019-32 |
Who was the leader at the summit earlier than 1956, when Carcassonne shows for finish? | CREATE TABLE "appearances_in_tour_de_france_since_1947" (
"year" real,
"stage" real,
"start" text,
"finish" text,
"leader_at_the_summit" text
); | SELECT "leader_at_the_summit" FROM "appearances_in_tour_de_france_since_1947" WHERE "year"<1956 AND "finish"='carcassonne'; | 2-18404734-1 |
What year was finish Toulouse, and stage was larger than 12? | CREATE TABLE "appearances_in_tour_de_france_since_1947" (
"year" real,
"stage" real,
"start" text,
"finish" text,
"leader_at_the_summit" text
); | SELECT SUM("year") FROM "appearances_in_tour_de_france_since_1947" WHERE "finish"='toulouse' AND "stage">12; | 2-18404734-1 |
What is the highest stage number for a year later than 1948, leader at the summit was group, and finish was Bagnères-De-Bigorre? | CREATE TABLE "appearances_in_tour_de_france_since_1947" (
"year" real,
"stage" real,
"start" text,
"finish" text,
"leader_at_the_summit" text
); | SELECT MAX("stage") FROM "appearances_in_tour_de_france_since_1947" WHERE "year">1948 AND "leader_at_the_summit"='group' AND "finish"='bagnères-de-bigorre'; | 2-18404734-1 |
which Vacator has a Reason for change of resigned november 10, 1965? | CREATE TABLE "senate" (
"state_class" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_of_successor_s_formal_installation" text
); | SELECT "vacator" FROM "senate" WHERE "reason_for_change"='resigned november 10, 1965'; | 2-1847180-3 |
Which Reason has a State (class) of tennessee (2)? | CREATE TABLE "senate" (
"state_class" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_of_successor_s_formal_installation" text
); | SELECT "reason_for_change" FROM "senate" WHERE "state_class"='tennessee (2)'; | 2-1847180-3 |
When is it that successor's formal installation has a Vacator of ross bass (d)? | CREATE TABLE "senate" (
"state_class" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_of_successor_s_formal_installation" text
); | SELECT "date_of_successor_s_formal_installation" FROM "senate" WHERE "vacator"='ross bass (d)'; | 2-1847180-3 |
Which State (class) has a Successor of harry f. byrd, jr. (d)? Question | CREATE TABLE "senate" (
"state_class" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_of_successor_s_formal_installation" text
); | SELECT "state_class" FROM "senate" WHERE "successor"='harry f. byrd, jr. (d)'; | 2-1847180-3 |
Which date of Date of successor's formal installation has a State (class) of michigan (2)? | CREATE TABLE "senate" (
"state_class" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_of_successor_s_formal_installation" text
); | SELECT "date_of_successor_s_formal_installation" FROM "senate" WHERE "state_class"='michigan (2)'; | 2-1847180-3 |
Which country has a Col (m) of 1374? | CREATE TABLE "surrounding" (
"peak" text,
"country" text,
"elevation_m" real,
"prominence_m" real,
"col_m" real
); | SELECT "country" FROM "surrounding" WHERE "col_m"=1374; | 2-18947170-9 |
How many Games have Years at club of 1971–1974, and a Debut year larger than 1971? | CREATE TABLE "1970s" (
"debut_year" real,
"player" text,
"games" real,
"goals" real,
"years_at_club" text
); | SELECT SUM("games") FROM "1970s" WHERE "years_at_club"='1971–1974' AND "debut_year">1971; | 2-1893924-9 |
Which Games have Years at club of 1974–1975, and Goals of 4? | CREATE TABLE "1970s" (
"debut_year" real,
"player" text,
"games" real,
"goals" real,
"years_at_club" text
); | SELECT AVG("games") FROM "1970s" WHERE "years_at_club"='1974–1975' AND "goals"=4; | 2-1893924-9 |
Which Years at club have Games smaller than 7, and Goals larger than 2, and a Player of john frazer? | CREATE TABLE "1970s" (
"debut_year" real,
"player" text,
"games" real,
"goals" real,
"years_at_club" text
); | SELECT "years_at_club" FROM "1970s" WHERE "games"<7 AND "goals">2 AND "player"='john frazer'; | 2-1893924-9 |
Which Games have Years at club of 1977, and Goals of 17, and a Debut year smaller than 1977? | CREATE TABLE "1970s" (
"debut_year" real,
"player" text,
"games" real,
"goals" real,
"years_at_club" text
); | SELECT AVG("games") FROM "1970s" WHERE "years_at_club"='1977' AND "goals"=17 AND "debut_year"<1977; | 2-1893924-9 |
Which Goals have Games smaller than 41, and a Player of mark amos? | CREATE TABLE "1970s" (
"debut_year" real,
"player" text,
"games" real,
"goals" real,
"years_at_club" text
); | SELECT MIN("goals") FROM "1970s" WHERE "games"<41 AND "player"='mark amos'; | 2-1893924-9 |
What is Melaine Walker's Rank? | CREATE TABLE "round_1" (
"rank" real,
"heat" real,
"name" text,
"nationality" text,
"result" text
); | SELECT SUM("rank") FROM "round_1" WHERE "name"='melaine walker'; | 2-18579281-4 |
What is the Name of the Player with a Rank of 23 or less, Heat of 4 and Result of 55.91? | CREATE TABLE "round_1" (
"rank" real,
"heat" real,
"name" text,
"nationality" text,
"result" text
); | SELECT "name" FROM "round_1" WHERE "heat"=4 AND "rank"<23 AND "result"='55.91'; | 2-18579281-4 |
What is the Heat of the Player with a Rank of 18 or less and Result of 55.15? | CREATE TABLE "round_1" (
"rank" real,
"heat" real,
"name" text,
"nationality" text,
"result" text
); | SELECT "heat" FROM "round_1" WHERE "rank"<18 AND "result"='55.15'; | 2-18579281-4 |
What is the quantity preserved for fleet number(s) 3000–3015? | CREATE TABLE "mallet_and_simple_articulated_locomotive" (
"class" text,
"wheel_arrangement" text,
"fleet_number_s" text,
"manufacturer" text,
"serial_numbers" text,
"year_made" text,
"quantity_made" text,
"quantity_preserved" text
); | SELECT "quantity_preserved" FROM "mallet_and_simple_articulated_locomotive" WHERE "fleet_number_s"='3000–3015'; | 2-18620528-15 |
What manufacturer has a wheel arrangement of 4-6-6-4, and a Class of z-7? | CREATE TABLE "mallet_and_simple_articulated_locomotive" (
"class" text,
"wheel_arrangement" text,
"fleet_number_s" text,
"manufacturer" text,
"serial_numbers" text,
"year_made" text,
"quantity_made" text,
"quantity_preserved" text
); | SELECT "manufacturer" FROM "mallet_and_simple_articulated_locomotive" WHERE "wheel_arrangement"='4-6-6-4' AND "class"='z-7'; | 2-18620528-15 |
What is the Year for fleet number 5000? | CREATE TABLE "mallet_and_simple_articulated_locomotive" (
"class" text,
"wheel_arrangement" text,
"fleet_number_s" text,
"manufacturer" text,
"serial_numbers" text,
"year_made" text,
"quantity_made" text,
"quantity_preserved" text
); | SELECT "year_made" FROM "mallet_and_simple_articulated_locomotive" WHERE "fleet_number_s"='5000'; | 2-18620528-15 |
What year made has a Quantity made of 4? | CREATE TABLE "mallet_and_simple_articulated_locomotive" (
"class" text,
"wheel_arrangement" text,
"fleet_number_s" text,
"manufacturer" text,
"serial_numbers" text,
"year_made" text,
"quantity_made" text,
"quantity_preserved" text
); | SELECT "year_made" FROM "mallet_and_simple_articulated_locomotive" WHERE "quantity_made"='4'; | 2-18620528-15 |
What is the quantity preserved for the serial number of mallet and simple articulated locomotives? | CREATE TABLE "mallet_and_simple_articulated_locomotive" (
"class" text,
"wheel_arrangement" text,
"fleet_number_s" text,
"manufacturer" text,
"serial_numbers" text,
"year_made" text,
"quantity_made" text,
"quantity_preserved" text
); | SELECT "quantity_preserved" FROM "mallet_and_simple_articulated_locomotive" WHERE "serial_numbers"='mallet and simple articulated locomotives'; | 2-18620528-15 |
How many silver medals did Estonia, which won more than 1 gold and less than 97 medals total, win? | CREATE TABLE "world_championships_total_medals" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT "silver" FROM "world_championships_total_medals" WHERE "gold">1 AND "total"<97 AND "nation"='estonia'; | 2-18938119-5 |
How many gold medals did Denmark win? | CREATE TABLE "world_championships_total_medals" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("gold") FROM "world_championships_total_medals" WHERE "nation"='denmark'; | 2-18938119-5 |
What is the total number of gold medals won among nations that won more than 27 bronze and less than 305 medals total? | CREATE TABLE "world_championships_total_medals" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT COUNT("gold") FROM "world_championships_total_medals" WHERE "bronze">27 AND "total"<305; | 2-18938119-5 |
How many gold medals were won by the nation that won over 4 silver medals, over 14 bronze, and 97 medals total? | CREATE TABLE "world_championships_total_medals" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT COUNT("gold") FROM "world_championships_total_medals" WHERE "silver">4 AND "bronze">14 AND "total"=97; | 2-18938119-5 |
What is the highest championship that has 1 as the league cup, and 17 as the total? | CREATE TABLE "goalscorers" (
"name" text,
"championship" real,
"league_cup" real,
"fa_cup" real,
"total" text
); | SELECT MAX("championship") FROM "goalscorers" WHERE "league_cup"=1 AND "total"='17'; | 2-18884038-5 |
How many league cups have an FA Cup less than 0? | CREATE TABLE "goalscorers" (
"name" text,
"championship" real,
"league_cup" real,
"fa_cup" real,
"total" text
); | SELECT COUNT("league_cup") FROM "goalscorers" WHERE "fa_cup"<0; | 2-18884038-5 |
On what date was the Brookwood, which weighed over 5,008 tons, attacked? | CREATE TABLE "ships_attacked" (
"date" text,
"name_of_ship" text,
"flag" text,
"tonnage" real,
"fate" text
); | SELECT "date" FROM "ships_attacked" WHERE "tonnage">'5,008' AND "name_of_ship"='brookwood'; | 2-18991496-1 |
What is the average rank of west germany (frg), which has more than 1 silver, less than 11 gold, and 2 bronze medals? | CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("rank") FROM "medal_table" WHERE "silver">1 AND "gold"<11 AND "bronze"=2 AND "nation"='west germany (frg)'; | 2-187504-13 |
What's the date when Yelena Isinbayeva for Russia was in Beijing, China? | CREATE TABLE "women" (
"event" text,
"performance" text,
"athlete" text,
"nation" text,
"place" text,
"date" text
); | SELECT "date" FROM "women" WHERE "nation"='russia' AND "place"='beijing, china' AND "athlete"='yelena isinbayeva'; | 2-18942275-2 |
What's the performance of Dire Tune? | CREATE TABLE "women" (
"event" text,
"performance" text,
"athlete" text,
"nation" text,
"place" text,
"date" text
); | SELECT "performance" FROM "women" WHERE "athlete"='dire tune'; | 2-18942275-2 |
What place had 14:11.15 as the performance? | CREATE TABLE "women" (
"event" text,
"performance" text,
"athlete" text,
"nation" text,
"place" text,
"date" text
); | SELECT "place" FROM "women" WHERE "performance"='14:11.15'; | 2-18942275-2 |
What's the event that had a performance of 14:11.15 by Ethiopia? | CREATE TABLE "women" (
"event" text,
"performance" text,
"athlete" text,
"nation" text,
"place" text,
"date" text
); | SELECT "event" FROM "women" WHERE "nation"='ethiopia' AND "performance"='14:11.15'; | 2-18942275-2 |
What was the position of the player picked after 94, by the Boston Patriots? | CREATE TABLE "twelfth_round" (
"pick" real,
"team" text,
"player" text,
"position" text,
"college" text
); | SELECT "position" FROM "twelfth_round" WHERE "pick">94 AND "team"='boston patriots'; | 2-18652198-12 |
What college had the 93 pick? | CREATE TABLE "twelfth_round" (
"pick" real,
"team" text,
"player" text,
"position" text,
"college" text
); | SELECT "college" FROM "twelfth_round" WHERE "pick"=93; | 2-18652198-12 |
Does the Robert McKimson title featuring Bugs Bunny have a reissue? | CREATE TABLE "1952" (
"title" text,
"series" text,
"director" text,
"characters" text,
"release_date" text,
"reissue" text
); | SELECT "reissue" FROM "1952" WHERE "characters"='bugs bunny' AND "director"='robert mckimson'; | 2-18792948-3 |
What venue has euro 2004 q. as the competition? | CREATE TABLE "mark_van_bommel_international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "venue" FROM "mark_van_bommel_international_goals" WHERE "competition"='euro 2004 q.'; | 2-1886415-1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.