question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
What is the largest number of stories in Recife completed later than 2007 with a height less than 135 meters? | CREATE TABLE "tallest_buildings" (
"name" text,
"location" text,
"height_m" real,
"stories" real,
"year_of_completion" real
); | SELECT MAX("stories") FROM "tallest_buildings" WHERE "location"='recife' AND "year_of_completion">2007 AND "height_m"<135; | 2-166559-1 |
Which Sanskrit has an English of mindfulness of breathing? | CREATE TABLE "key_terms" (
"english" text,
"pali" text,
"sanskrit" text,
"chinese" text,
"tibetan" text
); | SELECT "sanskrit" FROM "key_terms" WHERE "english"='mindfulness of breathing'; | 2-1686975-1 |
Which Sanskrit has a Chinese of —, and an English of cultivation of settling? | CREATE TABLE "key_terms" (
"english" text,
"pali" text,
"sanskrit" text,
"chinese" text,
"tibetan" text
); | SELECT "sanskrit" FROM "key_terms" WHERE "chinese"='—' AND "english"='cultivation of settling'; | 2-1686975-1 |
Which Pali has an English of mindfulness of breathing? | CREATE TABLE "key_terms" (
"english" text,
"pali" text,
"sanskrit" text,
"chinese" text,
"tibetan" text
); | SELECT "pali" FROM "key_terms" WHERE "english"='mindfulness of breathing'; | 2-1686975-1 |
Which Pali has an English of meditative concentration? | CREATE TABLE "key_terms" (
"english" text,
"pali" text,
"sanskrit" text,
"chinese" text,
"tibetan" text
); | SELECT "pali" FROM "key_terms" WHERE "english"='meditative concentration'; | 2-1686975-1 |
Which Chinese has a Pali of atappa? | CREATE TABLE "key_terms" (
"english" text,
"pali" text,
"sanskrit" text,
"chinese" text,
"tibetan" text
); | SELECT "chinese" FROM "key_terms" WHERE "pali"='atappa'; | 2-1686975-1 |
Which English has a Sanskrit of samādhi? | CREATE TABLE "key_terms" (
"english" text,
"pali" text,
"sanskrit" text,
"chinese" text,
"tibetan" text
); | SELECT "english" FROM "key_terms" WHERE "sanskrit"='samādhi'; | 2-1686975-1 |
Who is the player in guard position from Stephen F. Austin in a round less than 8? | CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"position" text,
"nationality" text,
"school_club_team" text
); | SELECT "player" FROM "draft_picks" WHERE "round"<8 AND "position"='guard' AND "school_club_team"='stephen f. austin'; | 2-16275352-2 |
Which position has a pick less than 41 from Ohio State? | CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"position" text,
"nationality" text,
"school_club_team" text
); | SELECT "position" FROM "draft_picks" WHERE "pick"<41 AND "school_club_team"='ohio state'; | 2-16275352-2 |
What shows for 2006 when 2002 is Grand Slam Tournaments? | CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2002" text,
"2004" text,
"2005" text,
"2006" text
); | SELECT "2006" FROM "doubles_performance_timeline" WHERE "2002"='grand slam tournaments'; | 2-1750635-13 |
What shows for 2002 when 2006 is Grand Slam Tournaments? | CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2002" text,
"2004" text,
"2005" text,
"2006" text
); | SELECT "2002" FROM "doubles_performance_timeline" WHERE "2006"='grand slam tournaments'; | 2-1750635-13 |
What shows for 2005 when 2002 shows 0–1? | CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2002" text,
"2004" text,
"2005" text,
"2006" text
); | SELECT "2005" FROM "doubles_performance_timeline" WHERE "2002"='0–1'; | 2-1750635-13 |
What shows for 2006 when 2002 is 0–1? | CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2002" text,
"2004" text,
"2005" text,
"2006" text
); | SELECT "2006" FROM "doubles_performance_timeline" WHERE "2002"='0–1'; | 2-1750635-13 |
What shows for 2002 when the 2004 is A, and the 2005 is 1r? | CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2002" text,
"2004" text,
"2005" text,
"2006" text
); | SELECT "2002" FROM "doubles_performance_timeline" WHERE "2004"='a' AND "2005"='1r'; | 2-1750635-13 |
What shows for 2004 when 2005 is A, 2006 is A, tournament is US Open? | CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2002" text,
"2004" text,
"2005" text,
"2006" text
); | SELECT "2004" FROM "doubles_performance_timeline" WHERE "2005"='a' AND "2006"='a' AND "tournament"='us open'; | 2-1750635-13 |
Who was the opponent on December 2, 1962? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT "opponent" FROM "schedule" WHERE "date"='december 2, 1962'; | 2-16660955-1 |
What is the Population of the Town with a Census Ranking of 1,379 of 5,008 and an Area km 2 smaller than 8.35? | CREATE TABLE "communities" (
"official_name" text,
"status" text,
"area_km_2" real,
"population" real,
"census_ranking" text
); | SELECT MAX("population") FROM "communities" WHERE "status"='town' AND "census_ranking"='1,379 of 5,008' AND "area_km_2"<8.35; | 2-170969-1 |
What is the Official Name of the Community with an Area km 2 of 16.13? | CREATE TABLE "communities" (
"official_name" text,
"status" text,
"area_km_2" real,
"population" real,
"census_ranking" text
); | SELECT "official_name" FROM "communities" WHERE "area_km_2"=16.13; | 2-170969-1 |
What is Country, when To Par is "–2", and when Player is "Tsuneyuki Nakajima"? | CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
); | SELECT "country" FROM "second_round" WHERE "to_par"='–2' AND "player"='tsuneyuki nakajima'; | 2-17231211-5 |
What is Country, when Score is "72-65=137"? | CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
); | SELECT "country" FROM "second_round" WHERE "score"='72-65=137'; | 2-17231211-5 |
What is Country, when Place is "T3", and when Player is "Jim Thorpe"? | CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
); | SELECT "country" FROM "second_round" WHERE "place"='t3' AND "player"='jim thorpe'; | 2-17231211-5 |
Who was the team for game 34? | 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 "team" FROM "game_log" WHERE "game"=34; | 2-17323042-7 |
How many goals for had a drawn more than 12 for the Goole Town team, as well as more than 60 goals against? | CREATE TABLE "final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" real
); | SELECT SUM("goals_for") FROM "final_table" WHERE "drawn">12 AND "team"='goole town' AND "goals_against">60; | 2-17386462-1 |
What are the average goals for with a drawn higher than 7 and goals against less than 86, as well as more than 11 losses and more than 42 games played? | CREATE TABLE "final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" real
); | SELECT AVG("goals_for") FROM "final_table" WHERE "drawn">7 AND "goals_against"<86 AND "lost">11 AND "played">42; | 2-17386462-1 |
What is the highest lost with a drawn more than 11, a position lower than 17 and more than 61 goals? | CREATE TABLE "final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" real
); | SELECT MAX("lost") FROM "final_table" WHERE "drawn">11 AND "position"<17 AND "goals_for">61; | 2-17386462-1 |
Who held the title of Ruler? | CREATE TABLE "vassal_states" (
"state" text,
"type" text,
"name" text,
"title" text,
"royal_house" text
); | SELECT "name" FROM "vassal_states" WHERE "title"='ruler'; | 2-17337904-12 |
What type of state did the ruler have a title? | CREATE TABLE "vassal_states" (
"state" text,
"type" text,
"name" text,
"title" text,
"royal_house" text
); | SELECT "type" FROM "vassal_states" WHERE "title"='ruler'; | 2-17337904-12 |
In what state did Jing have the title of Marquis? | CREATE TABLE "vassal_states" (
"state" text,
"type" text,
"name" text,
"title" text,
"royal_house" text
); | SELECT "state" FROM "vassal_states" WHERE "title"='marquis' AND "name"='jing'; | 2-17337904-12 |
What was Gongbo's title? | CREATE TABLE "vassal_states" (
"state" text,
"type" text,
"name" text,
"title" text,
"royal_house" text
); | SELECT "title" FROM "vassal_states" WHERE "name"='gongbo'; | 2-17337904-12 |
What is the name of Yi's state? | CREATE TABLE "vassal_states" (
"state" text,
"type" text,
"name" text,
"title" text,
"royal_house" text
); | SELECT "state" FROM "vassal_states" WHERE "name"='yi'; | 2-17337904-12 |
What is the Devices per channel where the Name is sata revision 3.0? | CREATE TABLE "comparison_with_other_buses" (
"name" text,
"raw_bandwidth_mbit_s" text,
"max_cable_length_m" text,
"power_provided" text,
"devices_per_channel" text
); | SELECT "devices_per_channel" FROM "comparison_with_other_buses" WHERE "name"='sata revision 3.0'; | 2-174151-5 |
What is the Raw bandwidth (Mbit/s) for the SAS 300? | CREATE TABLE "comparison_with_other_buses" (
"name" text,
"raw_bandwidth_mbit_s" text,
"max_cable_length_m" text,
"power_provided" text,
"devices_per_channel" text
); | SELECT "raw_bandwidth_mbit_s" FROM "comparison_with_other_buses" WHERE "name"='sas 300'; | 2-174151-5 |
Which Ground has a Home team score of 18.12 (120)? | CREATE TABLE "group_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"date" text,
"crowd" real
); | SELECT "ground" FROM "group_2" WHERE "home_team_score"='18.12 (120)'; | 2-16388439-2 |
Name the Away team score which has an Away team of st kilda, and a Crowd of 8157? | CREATE TABLE "group_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"date" text,
"crowd" real
); | SELECT "away_team_score" FROM "group_2" WHERE "away_team"='st kilda' AND "crowd"=8157; | 2-16388439-2 |
Name the Away team which have a Ground of colonial stadium on friday, 2 march? | CREATE TABLE "group_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"date" text,
"crowd" real
); | SELECT "away_team" FROM "group_2" WHERE "ground"='colonial stadium' AND "date"='friday, 2 march'; | 2-16388439-2 |
Which team has 71 Points and F/Laps of 4? | CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" text,
"wins" text,
"poles" text,
"f_laps" text,
"podiums" text,
"points" text,
"position" text
); | SELECT "team" FROM "career_summary" WHERE "points"='71' AND "f_laps"='4'; | 2-1746765-1 |
What Poles do Team jva have? | CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" text,
"wins" text,
"poles" text,
"f_laps" text,
"podiums" text,
"points" text,
"position" text
); | SELECT "poles" FROM "career_summary" WHERE "team"='team jva'; | 2-1746765-1 |
If the Season is later than 2008 and Races is 11, what ate the Points? | CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" text,
"wins" text,
"poles" text,
"f_laps" text,
"podiums" text,
"points" text,
"position" text
); | SELECT "points" FROM "career_summary" WHERE "races"='11' AND "season">2008; | 2-1746765-1 |
What Position is Team Sahara Force india f1 team with 46 Points? | CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" text,
"wins" text,
"poles" text,
"f_laps" text,
"podiums" text,
"points" text,
"position" text
); | SELECT "position" FROM "career_summary" WHERE "team"='sahara force india f1 team' AND "points"='46'; | 2-1746765-1 |
Which Poles have a position of 4th? | CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" text,
"wins" text,
"poles" text,
"f_laps" text,
"podiums" text,
"points" text,
"position" text
); | SELECT "poles" FROM "career_summary" WHERE "position"='4th'; | 2-1746765-1 |
Which F/Laps have 27 Points? | CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" text,
"wins" text,
"poles" text,
"f_laps" text,
"podiums" text,
"points" text,
"position" text
); | SELECT "f_laps" FROM "career_summary" WHERE "points"='27'; | 2-1746765-1 |
What country has the SBA Towers Tower Hayneville? | CREATE TABLE "structures_past_or_present_between_500_a" (
"name" text,
"pinnacle_height" text,
"structure_type" text,
"main_use" text,
"country" text,
"town" text
); | SELECT "country" FROM "structures_past_or_present_between_500_a" WHERE "name"='sba towers tower hayneville'; | 2-166570-3 |
What type of structure is there at the American Tower Christmas? | CREATE TABLE "structures_past_or_present_between_500_a" (
"name" text,
"pinnacle_height" text,
"structure_type" text,
"main_use" text,
"country" text,
"town" text
); | SELECT "structure_type" FROM "structures_past_or_present_between_500_a" WHERE "name"='american tower christmas'; | 2-166570-3 |
What's the name of the structure at Egypt, Arkansas? | CREATE TABLE "structures_past_or_present_between_500_a" (
"name" text,
"pinnacle_height" text,
"structure_type" text,
"main_use" text,
"country" text,
"town" text
); | SELECT "name" FROM "structures_past_or_present_between_500_a" WHERE "town"='egypt, arkansas'; | 2-166570-3 |
What country was the woman from who was born 1976-07-23 and became a grandmaster in 1991? | CREATE TABLE "grandmasters" (
"name" text,
"country" text,
"birth_date" text,
"date" real,
"earned" text,
"peak_rating_nov_2012" real
); | SELECT "country" FROM "grandmasters" WHERE "date"=1991 AND "birth_date"='1976-07-23'; | 2-1642003-1 |
Name the Points which has a Team of sportivo luqueño, and Wins larger than 1? | CREATE TABLE "pre_libertadores_playoff" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"bonus_points" text,
"points" real
); | SELECT MIN("points") FROM "pre_libertadores_playoff" WHERE "team"='sportivo luqueño' AND "wins">1; | 2-16788123-9 |
Name the Wins which has Points smaller than 10, Losses smaller than 3, and a Scored of 11? | CREATE TABLE "pre_libertadores_playoff" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"bonus_points" text,
"points" real
); | SELECT MIN("wins") FROM "pre_libertadores_playoff" WHERE "points"<10 AND "losses"<3 AND "scored"=11; | 2-16788123-9 |
Please name the highest Conceded which has a Played smaller than 5? | CREATE TABLE "pre_libertadores_playoff" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"bonus_points" text,
"points" real
); | SELECT MAX("conceded") FROM "pre_libertadores_playoff" WHERE "played"<5; | 2-16788123-9 |
Please name the Losses that has a Played smaller than 5? | CREATE TABLE "pre_libertadores_playoff" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"bonus_points" text,
"points" real
); | SELECT MAX("losses") FROM "pre_libertadores_playoff" WHERE "played"<5; | 2-16788123-9 |
Name the Scored which has a Position larger than 6? | CREATE TABLE "pre_libertadores_playoff" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"bonus_points" text,
"points" real
); | SELECT COUNT("scored") FROM "pre_libertadores_playoff" WHERE "position">6; | 2-16788123-9 |
What is the earliest week with an opponent of cincinnati bengals? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT MIN("week") FROM "schedule" WHERE "opponent"='cincinnati bengals'; | 2-16714815-1 |
What is the sum for the week with the date october 30, 1994? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT SUM("week") FROM "schedule" WHERE "date"='october 30, 1994'; | 2-16714815-1 |
What is the date for a week before 9, and a opponent of dallas cowboys? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT "date" FROM "schedule" WHERE "week"<9 AND "opponent"='dallas cowboys'; | 2-16714815-1 |
What is the biggest week with an opponent of washington redskins? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT MAX("week") FROM "schedule" WHERE "opponent"='washington redskins'; | 2-16714815-1 |
What was the attendance for a week larger than 3, and an opponent of philadelphia eagles? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT "attendance" FROM "schedule" WHERE "week">3 AND "opponent"='philadelphia eagles'; | 2-16714815-1 |
What is the result of the match with Jeff Monson as opponent? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"round" text
); | SELECT "res" FROM "mixed_martial_arts_record" WHERE "opponent"='jeff monson'; | 2-17433715-2 |
How many rounds was the match against Jason Fairn? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"round" text
); | SELECT "round" FROM "mixed_martial_arts_record" WHERE "opponent"='jason fairn'; | 2-17433715-2 |
What is the method of the match where there was a loss to Carlos Newton in round 1? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"round" text
); | SELECT "method" FROM "mixed_martial_arts_record" WHERE "round"='1' AND "res"='loss' AND "opponent"='carlos newton'; | 2-17433715-2 |
Who had the most points in games over 59? | CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_assists" text,
"location_attendance" text,
"record" text
); | SELECT "high_points" FROM "game_log" WHERE "game">59; | 2-17140608-8 |
What was the score for the game against San Antonio? | CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_assists" text,
"location_attendance" text,
"record" text
); | SELECT "score" FROM "game_log" WHERE "team"='san antonio'; | 2-17140608-8 |
Who had the most assists in the game against Indiana? | CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_assists" text,
"location_attendance" text,
"record" text
); | SELECT "high_assists" FROM "game_log" WHERE "team"='indiana'; | 2-17140608-8 |
What is the UK Railway with an ObjectNumber of 1975-7023? | CREATE TABLE "standard_gauge_designs_1870_to_1899" (
"railway" text,
"built" real,
"wheels" text,
"location" text,
"object_number" text
); | SELECT "railway" FROM "standard_gauge_designs_1870_to_1899" WHERE "object_number"='1975-7023'; | 2-17477462-2 |
Who was the manager that was positioned 11th in table and resigned in departure? | CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
); | SELECT "replaced_by" FROM "managerial_changes" WHERE "position_in_table"='11th' AND "manner_of_departure"='resigned'; | 2-17563103-2 |
what is the least tournaments played when the year is 1998? | CREATE TABLE "pga_tour_results" (
"year" real,
"tournaments_played" real,
"cuts_made" real,
"wins" real,
"best_finish" text,
"earnings" real,
"money_list_rank" text
); | SELECT MIN("tournaments_played") FROM "pga_tour_results" WHERE "year"=1998; | 2-1697190-2 |
what is the year when tournaments played is less than 2, cuts made is 1 and earnings ($) is less than 10,547? | CREATE TABLE "pga_tour_results" (
"year" real,
"tournaments_played" real,
"cuts_made" real,
"wins" real,
"best_finish" text,
"earnings" real,
"money_list_rank" text
); | SELECT SUM("year") FROM "pga_tour_results" WHERE "tournaments_played"<2 AND "cuts_made"=1 AND "earnings"<'10,547'; | 2-1697190-2 |
what is the best finish when money list rank is n/a, earnings ($) is more than 0 and cuts made is more than 1? | CREATE TABLE "pga_tour_results" (
"year" real,
"tournaments_played" real,
"cuts_made" real,
"wins" real,
"best_finish" text,
"earnings" real,
"money_list_rank" text
); | SELECT "best_finish" FROM "pga_tour_results" WHERE "money_list_rank"='n/a' AND "earnings">0 AND "cuts_made">1; | 2-1697190-2 |
how many times is the money list rank 221 and cuts more than 2? | CREATE TABLE "pga_tour_results" (
"year" real,
"tournaments_played" real,
"cuts_made" real,
"wins" real,
"best_finish" text,
"earnings" real,
"money_list_rank" text
); | SELECT COUNT("tournaments_played") FROM "pga_tour_results" WHERE "money_list_rank"='221' AND "cuts_made">2; | 2-1697190-2 |
what is the earliest year with the best finish t-65? | CREATE TABLE "pga_tour_results" (
"year" real,
"tournaments_played" real,
"cuts_made" real,
"wins" real,
"best_finish" text,
"earnings" real,
"money_list_rank" text
); | SELECT MIN("year") FROM "pga_tour_results" WHERE "best_finish"='t-65'; | 2-1697190-2 |
what is the average tournaments played when cuts made is 14? | CREATE TABLE "pga_tour_results" (
"year" real,
"tournaments_played" real,
"cuts_made" real,
"wins" real,
"best_finish" text,
"earnings" real,
"money_list_rank" text
); | SELECT AVG("tournaments_played") FROM "pga_tour_results" WHERE "cuts_made"=14; | 2-1697190-2 |
What is the earliest date of taking office for district 22? | CREATE TABLE "senate" (
"senator" text,
"party" text,
"district" real,
"home_town" text,
"took_office" real
); | SELECT MIN("took_office") FROM "senate" WHERE "district"=22; | 2-17137782-3 |
What district has a democratic leader from Roby? | CREATE TABLE "senate" (
"senator" text,
"party" text,
"district" real,
"home_town" text,
"took_office" real
); | SELECT SUM("district") FROM "senate" WHERE "party"='democratic' AND "home_town"='roby'; | 2-17137782-3 |
What is the district where Steve Carriker is the Democratic Senator and he took office later than 1988? | CREATE TABLE "senate" (
"senator" text,
"party" text,
"district" real,
"home_town" text,
"took_office" real
); | SELECT MAX("district") FROM "senate" WHERE "party"='democratic' AND "senator"='steve carriker' AND "took_office">1988; | 2-17137782-3 |
How many series originally aired before 1999 with more than 7 episodes and a DVD Region 1 release date of 16 april 2013? | CREATE TABLE "series" (
"series_number" real,
"number_of_episodes" real,
"original_air_date" real,
"dvd_region_2_release_date" text,
"dvd_region_1_release_date" text
); | SELECT COUNT("series_number") FROM "series" WHERE "original_air_date"<1999 AND "number_of_episodes">7 AND "dvd_region_1_release_date"='16 april 2013'; | 2-168334-1 |
What's the latest original air date with more than 10 episodes and a DVD Region 2 release date of 23 april 2012? | CREATE TABLE "series" (
"series_number" real,
"number_of_episodes" real,
"original_air_date" real,
"dvd_region_2_release_date" text,
"dvd_region_1_release_date" text
); | SELECT MAX("original_air_date") FROM "series" WHERE "dvd_region_2_release_date"='23 april 2012' AND "number_of_episodes">10; | 2-168334-1 |
What was the original air date of series number 10? | CREATE TABLE "series" (
"series_number" real,
"number_of_episodes" real,
"original_air_date" real,
"dvd_region_2_release_date" text,
"dvd_region_1_release_date" text
); | SELECT AVG("original_air_date") FROM "series" WHERE "series_number"=10; | 2-168334-1 |
What's the sum of the number of episodes that originally aired after 1991 with a series number smaller than 21 and a DVD Region 2 release date of 26 march 2012? | CREATE TABLE "series" (
"series_number" real,
"number_of_episodes" real,
"original_air_date" real,
"dvd_region_2_release_date" text,
"dvd_region_1_release_date" text
); | SELECT SUM("number_of_episodes") FROM "series" WHERE "original_air_date">1991 AND "series_number"<21 AND "dvd_region_2_release_date"='26 march 2012'; | 2-168334-1 |
What's the lowest series number that originally aired before 2009 with more than 7 episodes and had a DVD Region 2 release date of 26 july 2004? | CREATE TABLE "series" (
"series_number" real,
"number_of_episodes" real,
"original_air_date" real,
"dvd_region_2_release_date" text,
"dvd_region_1_release_date" text
); | SELECT MIN("series_number") FROM "series" WHERE "original_air_date"<2009 AND "dvd_region_2_release_date"='26 july 2004' AND "number_of_episodes">7; | 2-168334-1 |
What is the total of bronze that has more silvers than 2? | CREATE TABLE "medal_table" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT COUNT("bronze") FROM "medal_table" WHERE "silver">2; | 2-17048578-2 |
What is the total of Golds with more bronzes than 1 and totaled larger than 4? | CREATE TABLE "medal_table" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT COUNT("gold") FROM "medal_table" WHERE "bronze">1 AND "total">4; | 2-17048578-2 |
What is the least total that had more Bronzes than 1 and more silvers than 2? | CREATE TABLE "medal_table" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("total") FROM "medal_table" WHERE "bronze">1 AND "silver">2; | 2-17048578-2 |
What is the least total that has fewer golds than 2, a higher rank than 4 and fewer bronzes than 1? | CREATE TABLE "medal_table" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("total") FROM "medal_table" WHERE "gold"<2 AND "rank"=4 AND "bronze"<1; | 2-17048578-2 |
What is the lest amount of bronzes that ranked 2 and has less silvers than 0? | CREATE TABLE "medal_table" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("bronze") FROM "medal_table" WHERE "rank"=2 AND "silver"<0; | 2-17048578-2 |
How many Total(s) are there, when the number of Bronze is greater than 13, when the Rank is 8, and when the number of Silver is less than 11? | CREATE TABLE "medal_count" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT COUNT("total") FROM "medal_count" WHERE "bronze">13 AND "rank"='8' AND "silver"<11; | 2-168195-1 |
What is the Nation, when the number of Bronze is less than 17, and when the number of Gold is less than 16? | CREATE TABLE "medal_count" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT "nation" FROM "medal_count" WHERE "bronze"<17 AND "gold"<16; | 2-168195-1 |
What is the highest number of Silver, when the Nation is Japan (JPN), and when the Total is greater than 37? | CREATE TABLE "medal_count" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MAX("silver") FROM "medal_count" WHERE "nation"='japan (jpn)' AND "total">37; | 2-168195-1 |
What is the lowest number of Gold, when the number of Bronze is less than 36, when the Rank is 2, and when Silver is less than 37? | CREATE TABLE "medal_count" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("gold") FROM "medal_count" WHERE "bronze"<36 AND "rank"='2' AND "silver"<37; | 2-168195-1 |
What is Res., when Event is "FT 6 - Full Throttle 6"? | CREATE TABLE "iscf_international_sport_combat_federati" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"location" text
); | SELECT "res" FROM "iscf_international_sport_combat_federati" WHERE "event"='ft 6 - full throttle 6'; | 2-17442730-2 |
What is Opponent, when Event is "ISCF - Southeast Championships"? | CREATE TABLE "iscf_international_sport_combat_federati" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"location" text
); | SELECT "opponent" FROM "iscf_international_sport_combat_federati" WHERE "event"='iscf - southeast championships'; | 2-17442730-2 |
What is Event, when Record is "3-0"? | CREATE TABLE "iscf_international_sport_combat_federati" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"location" text
); | SELECT "event" FROM "iscf_international_sport_combat_federati" WHERE "record"='3-0'; | 2-17442730-2 |
What is the date of the game against Chelsea when the league position is 14th? | CREATE TABLE "match_details" (
"date" text,
"league_position" text,
"opponents" text,
"venue" text,
"result" text,
"score_f_a" text,
"attendance" real
); | SELECT "date" FROM "match_details" WHERE "opponents"='chelsea' AND "league_position"='14th'; | 2-17165897-1 |
Which method had a time of 0:46? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
); | SELECT "method" FROM "mixed_martial_arts_record" WHERE "time"='0:46'; | 2-17442478-2 |
In the fight against Brandon Bledsoe, how many rounds did the fight last? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
); | SELECT "round" FROM "mixed_martial_arts_record" WHERE "opponent"='brandon bledsoe'; | 2-17442478-2 |
What methos did Keith Wisniewski use in the ufc fight night: teixeira vs. bader? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
); | SELECT "method" FROM "mixed_martial_arts_record" WHERE "event"='ufc fight night: teixeira vs. bader'; | 2-17442478-2 |
What was the maximum speed of the car with 1.556 cc capacity? | CREATE TABLE "passenger_car_models" (
"type" text,
"construction_period" text,
"cylinder" text,
"capacity" text,
"power" text,
"vmax" text
); | SELECT "vmax" FROM "passenger_car_models" WHERE "capacity"='1.556 cc'; | 2-172255-1 |
What was the maximum speed for straight-4, 1.466 cc Type r 150? | CREATE TABLE "passenger_car_models" (
"type" text,
"construction_period" text,
"cylinder" text,
"capacity" text,
"power" text,
"vmax" text
); | SELECT "vmax" FROM "passenger_car_models" WHERE "cylinder"='straight-4' AND "capacity"='1.466 cc' AND "type"='r 150'; | 2-172255-1 |
What was the maximum speed for the P4-1 (24/36 ps)? | CREATE TABLE "passenger_car_models" (
"type" text,
"construction_period" text,
"cylinder" text,
"capacity" text,
"power" text,
"vmax" text
); | SELECT "vmax" FROM "passenger_car_models" WHERE "type"='p4-1 (24/36 ps)'; | 2-172255-1 |
What country is Jack Nicklaus from? | CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
); | SELECT "country" FROM "final_leaderboard" WHERE "player"='jack nicklaus'; | 2-16514275-1 |
What was the To par for bill britton when he placed t7? | CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
); | SELECT "to_par" FROM "final_leaderboard" WHERE "place"='t7' AND "player"='bill britton'; | 2-16514275-1 |
What was the To par of Jack Nicklaus? | CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
); | SELECT "to_par" FROM "final_leaderboard" WHERE "player"='jack nicklaus'; | 2-16514275-1 |
What country was the golfer from who had a money amount of 45,000? | CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
); | SELECT "country" FROM "final_leaderboard" WHERE "money"='45,000'; | 2-16514275-1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.