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 total number for the position that has less than 2 draws, less than 9 losses and more than 24? | CREATE TABLE "promotion_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
); | SELECT COUNT("position") FROM "promotion_round" WHERE "drawn"<2 AND "lost"<9 AND "points">24; | 2-18771190-14 |
What is the highest played with more than 0 draws, less than 3 losses, and less than 27 points? | CREATE TABLE "promotion_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
); | SELECT MAX("played") FROM "promotion_round" WHERE "drawn">0 AND "lost"<3 AND "points"<27; | 2-18771190-14 |
What is the total number played with 8 points and a position more than 6? | CREATE TABLE "promotion_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
); | SELECT COUNT("played") FROM "promotion_round" WHERE "points"=8 AND "position">6; | 2-18771190-14 |
What is the total number played with 1 drawn, and less than 7 points? | CREATE TABLE "promotion_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
); | SELECT COUNT("played") FROM "promotion_round" WHERE "drawn"=1 AND "points"<7; | 2-18771190-14 |
What is the most silver when bronze is more than 1 and total is more than 48? | CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MAX("silver") FROM "medals_table" WHERE "bronze">1 AND "total">48; | 2-18540480-4 |
what is the most bronze when the total is 9? | CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MAX("bronze") FROM "medals_table" WHERE "total"=9; | 2-18540480-4 |
what is the least bronze when the nation is soviet union and the total is less than 11? | CREATE TABLE "medals_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("bronze") FROM "medals_table" WHERE "nation"='soviet union' AND "total"<11; | 2-18540480-4 |
What is the category when Hy Conrad nominated in 2003? | CREATE TABLE "list_of_awards_and_nominations_received_" (
"year" real,
"category" text,
"nominee_s" text,
"episode" text,
"result" text
); | SELECT "category" FROM "list_of_awards_and_nominations_received_" WHERE "nominee_s"='hy conrad' AND "year"=2003; | 2-18620373-3 |
What is the long figure when gain is less than 0? | CREATE TABLE "rushing" (
"name" text,
"gp_gs" text,
"gain" real,
"loss" real,
"long" real,
"avg_g" real
); | SELECT AVG("long") FROM "rushing" WHERE "gain"<0; | 2-18830588-38 |
What is the loss when the average/gain is less than 16.7, gain is 104 and long is larger than 4? | CREATE TABLE "rushing" (
"name" text,
"gp_gs" text,
"gain" real,
"loss" real,
"long" real,
"avg_g" real
); | SELECT AVG("loss") FROM "rushing" WHERE "avg_g"<16.7 AND "long">4 AND "gain"=104; | 2-18830588-38 |
What is the time for Estonia with sc/d notes? | CREATE TABLE "quarterfinal_3" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
); | SELECT "time" FROM "quarterfinal_3" WHERE "notes"='sc/d' AND "country"='estonia'; | 2-18662643-10 |
What is the time for the rank after 5 with sc/d notes? | CREATE TABLE "quarterfinal_3" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
); | SELECT "time" FROM "quarterfinal_3" WHERE "notes"='sc/d' AND "rank">5; | 2-18662643-10 |
What was Law Hiu Fung's time? | CREATE TABLE "quarterfinal_3" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
); | SELECT "time" FROM "quarterfinal_3" WHERE "athlete"='law hiu fung'; | 2-18662643-10 |
What is the time for the rank after 5 with sc/d notes? | CREATE TABLE "quarterfinal_3" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
); | SELECT "time" FROM "quarterfinal_3" WHERE "notes"='sc/d' AND "rank">5; | 2-18662643-10 |
What is the highest rank for a 6:52.70 time and notes of sa/b? | CREATE TABLE "quarterfinal_3" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
); | SELECT MAX("rank") FROM "quarterfinal_3" WHERE "notes"='sa/b' AND "time"='6:52.70'; | 2-18662643-10 |
What is the lowest rank that has paul biedermann as the name? | CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
); | SELECT MIN("rank") FROM "semifinal_2" WHERE "name"='paul biedermann'; | 2-18624643-5 |
What nationality has 2 as the rank? | CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
); | SELECT "nationality" FROM "semifinal_2" WHERE "rank"=2; | 2-18624643-5 |
What is the highest lane that has nimrod shapira bar-or as the name? | CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
); | SELECT MAX("lane") FROM "semifinal_2" WHERE "name"='nimrod shapira bar-or'; | 2-18624643-5 |
What is the latest year they were nominated? | CREATE TABLE "awards" (
"year" real,
"award" text,
"work" text,
"category" text,
"result" text
); | SELECT MAX("year") FROM "awards" WHERE "result"='nominated'; | 2-18381900-1 |
What is the result of the choice tv actor: drama category? | CREATE TABLE "awards" (
"year" real,
"award" text,
"work" text,
"category" text,
"result" text
); | SELECT "result" FROM "awards" WHERE "category"='choice tv actor: drama'; | 2-18381900-1 |
Which Drawn has a Position smaller than 8, and a Played smaller than 14? | CREATE TABLE "relegation_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
); | SELECT MAX("drawn") FROM "relegation_round" WHERE "position"<8 AND "played"<14; | 2-18771190-19 |
Which Points have a Drawn smaller than 2, and a Lost of 12, and a Name of ev bad wörishofen? | CREATE TABLE "relegation_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
); | SELECT MAX("points") FROM "relegation_round" WHERE "drawn"<2 AND "lost"=12 AND "name"='ev bad wörishofen'; | 2-18771190-19 |
What place did Lee Westwood finish in? | CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
); | SELECT "place" FROM "second_round" WHERE "player"='lee westwood'; | 2-18811509-5 |
What is the to par score of the player that had a score of 67-68=135? | CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
); | SELECT "to_par" FROM "second_round" WHERE "score"='67-68=135'; | 2-18811509-5 |
What Televote Points had a Final Points score of 2? | CREATE TABLE "results_of_the_individual_jury_and_telev" (
"draw" real,
"televote_points" text,
"jury_points" text,
"total" text,
"final_points" text
); | SELECT "televote_points" FROM "results_of_the_individual_jury_and_telev" WHERE "final_points"='2'; | 2-18618386-8 |
Which Draw had 8 Televote Points? | CREATE TABLE "results_of_the_individual_jury_and_telev" (
"draw" real,
"televote_points" text,
"jury_points" text,
"total" text,
"final_points" text
); | SELECT COUNT("draw") FROM "results_of_the_individual_jury_and_telev" WHERE "televote_points"='8'; | 2-18618386-8 |
What was the Jury Points value when there were 3 Televote Points? | CREATE TABLE "results_of_the_individual_jury_and_telev" (
"draw" real,
"televote_points" text,
"jury_points" text,
"total" text,
"final_points" text
); | SELECT "jury_points" FROM "results_of_the_individual_jury_and_telev" WHERE "televote_points"='3'; | 2-18618386-8 |
Which player was +4 to par and won the Open in 1995? | CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
); | SELECT "player" FROM "made_the_cut" WHERE "to_par"='+4' AND "year_s_won"='1995'; | 2-18811509-2 |
Which player has a to par of +8? | CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
); | SELECT "player" FROM "made_the_cut" WHERE "to_par"='+8'; | 2-18811509-2 |
What country is ranked smaller than 2? | CREATE TABLE "repechage_2" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
); | SELECT "country" FROM "repechage_2" WHERE "rank"<2; | 2-18662685-8 |
What is the rank when the time is 6:50.48? | CREATE TABLE "repechage_2" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
); | SELECT "rank" FROM "repechage_2" WHERE "time"='6:50.48'; | 2-18662685-8 |
What is the highest rank with the notes of sa/b, and a time of 6:39.07? | CREATE TABLE "repechage_2" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
); | SELECT MAX("rank") FROM "repechage_2" WHERE "notes"='sa/b' AND "time"='6:39.07'; | 2-18662685-8 |
What shows for notes when rank is more than 4, and country is South Korea? | CREATE TABLE "repechage_2" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
); | SELECT "notes" FROM "repechage_2" WHERE "rank">4 AND "country"='south korea'; | 2-18662685-8 |
What is the First Issue date of Bamboo Blade? | CREATE TABLE "serialized_titles" (
"title" text,
"author" text,
"first_issue" text,
"last_issue" text,
"completed" text
); | SELECT "first_issue" FROM "serialized_titles" WHERE "title"='bamboo blade'; | 2-18685750-1 |
What is the First issue date of the title with a Last Issue of July 2010? | CREATE TABLE "serialized_titles" (
"title" text,
"author" text,
"first_issue" text,
"last_issue" text,
"completed" text
); | SELECT "first_issue" FROM "serialized_titles" WHERE "last_issue"='july 2010'; | 2-18685750-1 |
What is the First Issue date of Soul Eater? | CREATE TABLE "serialized_titles" (
"title" text,
"author" text,
"first_issue" text,
"last_issue" text,
"completed" text
); | SELECT "first_issue" FROM "serialized_titles" WHERE "title"='soul eater'; | 2-18685750-1 |
Was the Title with a Last Issue of July 2010 completed? | CREATE TABLE "serialized_titles" (
"title" text,
"author" text,
"first_issue" text,
"last_issue" text,
"completed" text
); | SELECT "completed" FROM "serialized_titles" WHERE "last_issue"='july 2010'; | 2-18685750-1 |
What is the Author of the Title with a First Issue of September 2010? | CREATE TABLE "serialized_titles" (
"title" text,
"author" text,
"first_issue" text,
"last_issue" text,
"completed" text
); | SELECT "author" FROM "serialized_titles" WHERE "first_issue"='september 2010'; | 2-18685750-1 |
What is the Author of the Title with an Ongoing Last Issue? | CREATE TABLE "serialized_titles" (
"title" text,
"author" text,
"first_issue" text,
"last_issue" text,
"completed" text
); | SELECT "author" FROM "serialized_titles" WHERE "last_issue"='ongoing'; | 2-18685750-1 |
What is the highest number of losses for Presidente Hayes, when the draws were more than 4? | CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
); | SELECT MAX("losses") FROM "torneo_apertura" WHERE "team"='presidente hayes' AND "draws">4; | 2-18597302-1 |
What is the number of wins when position was larger than 6, and conceded was smaller than 19? | CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
); | SELECT COUNT("wins") FROM "torneo_apertura" WHERE "position">6 AND "conceded"<19; | 2-18597302-1 |
What is the number of losses when there were less than 4 draws, and points were 9? | CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
); | SELECT "losses" FROM "torneo_apertura" WHERE "draws"<4 AND "points"=9; | 2-18597302-1 |
What is the number of wins when scored was less than 26, and conceded was larger than 23? | CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
); | SELECT SUM("wins") FROM "torneo_apertura" WHERE "scored"<26 AND "conceded">23; | 2-18597302-1 |
What was the series in season 2009? | CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"podiums" real,
"points" real,
"position" text
); | SELECT "series" FROM "career_summary" WHERE "season"=2009; | 2-18446940-1 |
What was the lowest amount of wins before season 2009 for 97 points? | CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"podiums" real,
"points" real,
"position" text
); | SELECT MIN("wins") FROM "career_summary" WHERE "points"=97 AND "season"<2009; | 2-18446940-1 |
How many wins had a podium larger than 6 after season 2008? | CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"podiums" real,
"points" real,
"position" text
); | SELECT COUNT("wins") FROM "career_summary" WHERE "season">2008 AND "podiums">6; | 2-18446940-1 |
what is the date for the week larger than 1 and the opponent detroit lions? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT "date" FROM "schedule" WHERE "week">1 AND "opponent"='detroit lions'; | 2-18843092-2 |
what is the lowest week when the attendance is 54,714? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT MIN("week") FROM "schedule" WHERE "attendance"='54,714'; | 2-18843092-2 |
Which Athlete has a Reaction of 0.248? | CREATE TABLE "heat_6" (
"rank" real,
"lane" real,
"athlete" text,
"nationality" text,
"time" real,
"react" real
); | SELECT "athlete" FROM "heat_6" WHERE "react"=0.248; | 2-18569105-7 |
Which Rank has a Reaction of 0.198, and a Time smaller than 46.3? | CREATE TABLE "heat_6" (
"rank" real,
"lane" real,
"athlete" text,
"nationality" text,
"time" real,
"react" real
); | SELECT MAX("rank") FROM "heat_6" WHERE "react"=0.198 AND "time"<46.3; | 2-18569105-7 |
Which Lane has a Time larger than 47.83? | CREATE TABLE "heat_6" (
"rank" real,
"lane" real,
"athlete" text,
"nationality" text,
"time" real,
"react" real
); | SELECT AVG("lane") FROM "heat_6" WHERE "time">47.83; | 2-18569105-7 |
Which Reaction has a Rank smaller than 4, and a Nationality of trinidad and tobago, and a Time larger than 45.13? | CREATE TABLE "heat_6" (
"rank" real,
"lane" real,
"athlete" text,
"nationality" text,
"time" real,
"react" real
); | SELECT AVG("react") FROM "heat_6" WHERE "rank"<4 AND "nationality"='trinidad and tobago' AND "time">45.13; | 2-18569105-7 |
Count the Rank-Final which has a Year larger than 2008, and an Apparatus of balance beam, and a Rank-Qualifying larger than 4? | CREATE TABLE "competitive_history" (
"year" real,
"competition_description" text,
"location" text,
"apparatus" text,
"rank_final" real,
"score_final" real,
"rank_qualifying" real,
"score_qualifying" real
); | SELECT COUNT("rank_final") FROM "competitive_history" WHERE "year">2008 AND "apparatus"='balance beam' AND "rank_qualifying">4; | 2-18694663-1 |
Which the lowest Score-Fina has a Rank-Final of 7 and a Year larger than 2009? | CREATE TABLE "competitive_history" (
"year" real,
"competition_description" text,
"location" text,
"apparatus" text,
"rank_final" real,
"score_final" real,
"rank_qualifying" real,
"score_qualifying" real
); | SELECT MIN("score_final") FROM "competitive_history" WHERE "rank_final"=7 AND "year">2009; | 2-18694663-1 |
Name the Year with a Rank-Final smaller than 2, an Apparatus of team, and a Score-Qualifying smaller than 248.275? | CREATE TABLE "competitive_history" (
"year" real,
"competition_description" text,
"location" text,
"apparatus" text,
"rank_final" real,
"score_final" real,
"rank_qualifying" real,
"score_qualifying" real
); | SELECT AVG("year") FROM "competitive_history" WHERE "rank_final"<2 AND "apparatus"='team' AND "score_qualifying"<248.275; | 2-18694663-1 |
What's the pick for the New York jets with a defensive end? | CREATE TABLE "fifth_round" (
"pick" real,
"team" text,
"player" text,
"position" text,
"college" text
); | SELECT "pick" FROM "fifth_round" WHERE "position"='defensive end' AND "team"='new york jets'; | 2-18652198-5 |
What's the pick for Georgia tech? | CREATE TABLE "fifth_round" (
"pick" real,
"team" text,
"player" text,
"position" text,
"college" text
); | SELECT "pick" FROM "fifth_round" WHERE "college"='georgia tech'; | 2-18652198-5 |
Who plays halfback? | CREATE TABLE "fifth_round" (
"pick" real,
"team" text,
"player" text,
"position" text,
"college" text
); | SELECT "player" FROM "fifth_round" WHERE "position"='halfback'; | 2-18652198-5 |
Who is the team for Washington College? | CREATE TABLE "fifth_round" (
"pick" real,
"team" text,
"player" text,
"position" text,
"college" text
); | SELECT "team" FROM "fifth_round" WHERE "college"='washington'; | 2-18652198-5 |
What is the Rank of the game with an Attendance of 93,039? | CREATE TABLE "top_10_largest_crowds" (
"rank" real,
"attendance" real,
"visiting_team" text,
"date" text,
"result" text
); | SELECT COUNT("rank") FROM "top_10_largest_crowds" WHERE "attendance"='93,039'; | 2-1873992-1 |
What fuel system does the diesel engines model have? | CREATE TABLE "engines" (
"model" text,
"engine" text,
"displacement" text,
"valvetrain" text,
"fuel_system" text,
"max_power_at_rpm" text,
"max_torque_at_rpm" text,
"years" text
); | SELECT "fuel_system" FROM "engines" WHERE "model"='diesel engines'; | 2-1871071-2 |
What is the displacement for the petrol engines model? | CREATE TABLE "engines" (
"model" text,
"engine" text,
"displacement" text,
"valvetrain" text,
"fuel_system" text,
"max_power_at_rpm" text,
"max_torque_at_rpm" text,
"years" text
); | SELECT "displacement" FROM "engines" WHERE "model"='petrol engines'; | 2-1871071-2 |
What is the size of the 2009 electorate for Gwalior Rural? | CREATE TABLE "assembly_segments" (
"constituency_number" text,
"name" text,
"reserved_for_sc_st_none" text,
"district" text,
"number_of_electorates_2009" real
); | SELECT "number_of_electorates_2009" FROM "assembly_segments" WHERE "name"='gwalior rural'; | 2-18496195-1 |
Who was eliminated that entered after number 3 and lasted 35:55? | CREATE TABLE "elimination_chamber_entrances_and_elimin" (
"eliminated" text,
"wrestler" text,
"entered" real,
"eliminated_by" text,
"time" text
); | SELECT "eliminated" FROM "elimination_chamber_entrances_and_elimin" WHERE "entered">3 AND "time"='35:55'; | 2-18438494-2 |
What is the average year in which the finish position was 13th? | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
); | SELECT AVG("year") FROM "achievements" WHERE "position"='13th'; | 2-18619114-1 |
What is the average year for the Olympic Games? | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
); | SELECT AVG("year") FROM "achievements" WHERE "competition"='olympic games'; | 2-18619114-1 |
What is the Label of the September 20, 2008 release with Catalog number RTRADCD491? | CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
); | SELECT "label" FROM "release_history" WHERE "catalog"='rtradcd491' AND "date"='september 20, 2008'; | 2-18438650-3 |
What is the Format of the September 22, 2008 release with Catalog number RTRADCD491? | CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
); | SELECT "format" FROM "release_history" WHERE "catalog"='rtradcd491' AND "date"='september 22, 2008'; | 2-18438650-3 |
What is the Format of the release with Catalog number RTRADLP491? | CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
); | SELECT "format" FROM "release_history" WHERE "catalog"='rtradlp491'; | 2-18438650-3 |
What is the Label of the Release with Catalog number 2508668? | CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
); | SELECT "label" FROM "release_history" WHERE "catalog"='2508668'; | 2-18438650-3 |
What is the Format of the release with Catalog number 2508668? | CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
); | SELECT "format" FROM "release_history" WHERE "catalog"='2508668'; | 2-18438650-3 |
What is the Region of the Warner Music Canada Label release? | CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
); | SELECT "region" FROM "release_history" WHERE "label"='warner music canada'; | 2-18438650-3 |
Who were the developers for Portal? | CREATE TABLE "list_of_game_of_the_year_awards" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
); | SELECT "developer_s" FROM "list_of_game_of_the_year_awards" WHERE "game"='portal'; | 2-1851722-57 |
Who were the developers for the Action RPG made after 2010? | CREATE TABLE "list_of_game_of_the_year_awards" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
); | SELECT "developer_s" FROM "list_of_game_of_the_year_awards" WHERE "year">2010 AND "genre"='action rpg'; | 2-1851722-57 |
Which Callsign has an IATA of tr? | CREATE TABLE "airlines_based_in_changi" (
"airline" text,
"iata" text,
"icao" text,
"callsign" text,
"commenced_operations" real
); | SELECT "callsign" FROM "airlines_based_in_changi" WHERE "iata"='tr'; | 2-18952243-3 |
Which Commenced operations have an Airline of valuair? | CREATE TABLE "airlines_based_in_changi" (
"airline" text,
"iata" text,
"icao" text,
"callsign" text,
"commenced_operations" real
); | SELECT "commenced_operations" FROM "airlines_based_in_changi" WHERE "airline"='valuair'; | 2-18952243-3 |
Which Commenced operations have an Airline of valuair? | CREATE TABLE "airlines_based_in_changi" (
"airline" text,
"iata" text,
"icao" text,
"callsign" text,
"commenced_operations" real
); | SELECT MAX("commenced_operations") FROM "airlines_based_in_changi" WHERE "airline"='valuair'; | 2-18952243-3 |
Which IATA has a ICAO of slk? | CREATE TABLE "airlines_based_in_changi" (
"airline" text,
"iata" text,
"icao" text,
"callsign" text,
"commenced_operations" real
); | SELECT "iata" FROM "airlines_based_in_changi" WHERE "icao"='slk'; | 2-18952243-3 |
How many Viewers have a Rank smaller than 2? | CREATE TABLE "most_watched_programmes" (
"rank" real,
"series" text,
"episode_title" text,
"viewers" real,
"date" text
); | SELECT SUM("viewers") FROM "most_watched_programmes" WHERE "rank"<2; | 2-18952437-1 |
What is the longitude for the Township that has a ANSI code less than 1036534, a water (sqmi) of 0, and a GEO ID greater than 3809959540? | CREATE TABLE "o" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" real,
"water_sqmi" real,
"latitude" real,
"longitude" real,
"geo_id" real,
"ansi_code" real
); | SELECT COUNT("longitude") FROM "o" WHERE "ansi_code"<1036534 AND "water_sqmi"=0 AND "geo_id">3809959540; | 2-18600760-15 |
What is the population in 2010 for the longitude of -97.578927? | CREATE TABLE "o" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" real,
"water_sqmi" real,
"latitude" real,
"longitude" real,
"geo_id" real,
"ansi_code" real
); | SELECT COUNT("pop_2010") FROM "o" WHERE "longitude"=-97.578927; | 2-18600760-15 |
What is the total population in 2010 for the township located in Mountrail which has land less than 34.424 sq miles and a GEO ID less than 3806159940? | CREATE TABLE "o" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" real,
"water_sqmi" real,
"latitude" real,
"longitude" real,
"geo_id" real,
"ansi_code" real
); | SELECT SUM("pop_2010") FROM "o" WHERE "land_sqmi"<34.424 AND "county"='mountrail' AND "geo_id"<3806159940; | 2-18600760-15 |
What is the highest recorded latitude for the township that has an ANSI code greater than 1759541 and a population in 2010 of 72? | CREATE TABLE "o" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" real,
"water_sqmi" real,
"latitude" real,
"longitude" real,
"geo_id" real,
"ansi_code" real
); | SELECT MAX("latitude") FROM "o" WHERE "ansi_code">1759541 AND "pop_2010"=72; | 2-18600760-15 |
Which Athlete has a Rank larger than 1, and a Lane larger than 7, and a Nationality of china? | CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"athlete" text,
"nationality" text,
"time" real
); | SELECT "athlete" FROM "semifinal_2" WHERE "rank">1 AND "lane">7 AND "nationality"='china'; | 2-18578891-5 |
How many Lanes have a Time larger than 13.59, and a Rank larger than 8? | CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"athlete" text,
"nationality" text,
"time" real
); | SELECT SUM("lane") FROM "semifinal_2" WHERE "time">13.59 AND "rank">8; | 2-18578891-5 |
How many lanes have a Nationality of france, and a Rank larger than 8? | CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"athlete" text,
"nationality" text,
"time" real
); | SELECT SUM("lane") FROM "semifinal_2" WHERE "nationality"='france' AND "rank">8; | 2-18578891-5 |
What game was developed by Nintendo for the Gamecube platform? | CREATE TABLE "game_spot" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
); | SELECT "game" FROM "game_spot" WHERE "developer_s"='nintendo' AND "platform_s"='gamecube'; | 2-1851722-24 |
What is the genre of Super Mario Galaxy? | CREATE TABLE "game_spot" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
); | SELECT "genre" FROM "game_spot" WHERE "game"='super mario galaxy'; | 2-1851722-24 |
What is the average year having a rank among provinces over 5 and ten-year percentage change of 67.3? | CREATE TABLE "demography" (
"year" real,
"population" real,
"five_year_pct_change" text,
"ten_year_pct_change" text,
"rank_among_provinces" real
); | SELECT AVG("year") FROM "demography" WHERE "ten_year_pct_change"='67.3' AND "rank_among_provinces">5; | 2-18926-3 |
What is the highest population for the province having a rank under 5? | CREATE TABLE "demography" (
"year" real,
"population" real,
"five_year_pct_change" text,
"ten_year_pct_change" text,
"rank_among_provinces" real
); | SELECT MAX("population") FROM "demography" WHERE "rank_among_provinces"<5; | 2-18926-3 |
What is the number of population values having a rank among provinces under 5 with a five-year percentage change of 3.6? | CREATE TABLE "demography" (
"year" real,
"population" real,
"five_year_pct_change" text,
"ten_year_pct_change" text,
"rank_among_provinces" real
); | SELECT COUNT("population") FROM "demography" WHERE "five_year_pct_change"='3.6' AND "rank_among_provinces"<5; | 2-18926-3 |
What is the highest year having a ten-year percentage change of 7.9? | CREATE TABLE "demography" (
"year" real,
"population" real,
"five_year_pct_change" text,
"ten_year_pct_change" text,
"rank_among_provinces" real
); | SELECT MAX("year") FROM "demography" WHERE "ten_year_pct_change"='7.9'; | 2-18926-3 |
What's the comp for 1998-04-22? | CREATE TABLE "1998_in_paraguayan_football" (
"date" text,
"venue" text,
"score" text,
"comp" text,
"report" text
); | SELECT "comp" FROM "1998_in_paraguayan_football" WHERE "date"='1998-04-22'; | 2-18607260-13 |
What's the score at Olympic Stadium Tokyo, Japan? | CREATE TABLE "1998_in_paraguayan_football" (
"date" text,
"venue" text,
"score" text,
"comp" text,
"report" text
); | SELECT "score" FROM "1998_in_paraguayan_football" WHERE "venue"='olympic stadium tokyo, japan'; | 2-18607260-13 |
What's the comp in Olympic Stadium Tokyo, Japan? | CREATE TABLE "1998_in_paraguayan_football" (
"date" text,
"venue" text,
"score" text,
"comp" text,
"report" text
); | SELECT "comp" FROM "1998_in_paraguayan_football" WHERE "venue"='olympic stadium tokyo, japan'; | 2-18607260-13 |
What's the report in King Baudouin Stadium Brussels, Belgium? | CREATE TABLE "1998_in_paraguayan_football" (
"date" text,
"venue" text,
"score" text,
"comp" text,
"report" text
); | SELECT "report" FROM "1998_in_paraguayan_football" WHERE "venue"='king baudouin stadium brussels, belgium'; | 2-18607260-13 |
What is the Percentage Lost for the contestant with a starting weight above 102 kg who lost 46.9 kg? | CREATE TABLE "eliminated_contestants_weigh_in_results" (
"contestant" text,
"starting_weight_kg" real,
"final_weight_kg" real,
"weight_lost_kg" real,
"percentage_lost" text,
"position_out_of_eliminated_contestants" text
); | SELECT "percentage_lost" FROM "eliminated_contestants_weigh_in_results" WHERE "starting_weight_kg">102 AND "weight_lost_kg"=46.9; | 2-18426579-9 |
What lane has a time of 1:57.71? | CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
); | SELECT SUM("lane") FROM "semifinal_2" WHERE "time"='1:57.71'; | 2-18625276-5 |
Who had a larger rank than 3, less than 6 lanes, and a time of 1:58.15? | CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
); | SELECT "name" FROM "semifinal_2" WHERE "rank">3 AND "lane"<6 AND "time"='1:58.15'; | 2-18625276-5 |
Which Crude death rate (per 1000) has Deaths of 768, and a Crude birth rate (per 1000) smaller than 29.7? | CREATE TABLE "registered_births_and_deaths" (
"average_population_x_1000" real,
"live_births" text,
"deaths" text,
"natural_change" text,
"crude_birth_rate_per_1000" real,
"crude_death_rate_per_1000" real,
"natural_change_per_1000" real
); | SELECT MIN("crude_death_rate_per_1000") FROM "registered_births_and_deaths" WHERE "deaths"='768' AND "crude_birth_rate_per_1000"<29.7; | 2-18950672-3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.