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 score of the game home team gillingham played on 23 january 1982? | CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "score" FROM "fourth_round_proper" WHERE "date"='23 january 1982' AND "home_team"='gillingham'; | 2-17751851-4 |
What is the tie no of the game that home team huddersfield town played? | CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "tie_no" FROM "fourth_round_proper" WHERE "home_team"='huddersfield town'; | 2-17751851-4 |
What is the home team of the game with a 2-0 record? | CREATE TABLE "chicago_black_hawks_4_st_louis_blues_1" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "home" FROM "chicago_black_hawks_4_st_louis_blues_1" WHERE "record"='2-0'; | 2-18336411-3 |
What is the score of the game with a 3-0 record? | CREATE TABLE "chicago_black_hawks_4_st_louis_blues_1" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "score" FROM "chicago_black_hawks_4_st_louis_blues_1" WHERE "record"='3-0'; | 2-18336411-3 |
What is the visitor team on April 4? | CREATE TABLE "chicago_black_hawks_4_st_louis_blues_1" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "visitor" FROM "chicago_black_hawks_4_st_louis_blues_1" WHERE "date"='april 4'; | 2-18336411-3 |
What is the score of the game with the chicago black hawks as the visitor and a 3-1 record? | CREATE TABLE "chicago_black_hawks_4_st_louis_blues_1" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "score" FROM "chicago_black_hawks_4_st_louis_blues_1" WHERE "visitor"='chicago black hawks' AND "record"='3-1'; | 2-18336411-3 |
What is Instant Messaging, when Telephony is "Yes with integrated Sametime"? | CREATE TABLE "comparison_of_features" (
"name" text,
"e_mail_server" text,
"faxing" text,
"instant_messaging" text,
"telephony" text,
"videoconferencing" text,
"web_conferencing" text,
"data_conferencing" text,
"application_sharing" text,
"electronic_meeting_system" text,
"synchronous_conferencing" text
); | SELECT "instant_messaging" FROM "comparison_of_features" WHERE "telephony"='yes with integrated sametime'; | 2-1779657-2 |
What is Videoconferencing, when Synchronous Conferencing is "No", when Web Conferencing is "No", and when Faxing is "Yes"? | CREATE TABLE "comparison_of_features" (
"name" text,
"e_mail_server" text,
"faxing" text,
"instant_messaging" text,
"telephony" text,
"videoconferencing" text,
"web_conferencing" text,
"data_conferencing" text,
"application_sharing" text,
"electronic_meeting_system" text,
"synchronous_conferencing" text
); | SELECT "videoconferencing" FROM "comparison_of_features" WHERE "synchronous_conferencing"='no' AND "web_conferencing"='no' AND "faxing"='yes'; | 2-1779657-2 |
What is Videoconferencing, when Data Conferencing is "No", and when Web Conferencing is "No"? | CREATE TABLE "comparison_of_features" (
"name" text,
"e_mail_server" text,
"faxing" text,
"instant_messaging" text,
"telephony" text,
"videoconferencing" text,
"web_conferencing" text,
"data_conferencing" text,
"application_sharing" text,
"electronic_meeting_system" text,
"synchronous_conferencing" text
); | SELECT "videoconferencing" FROM "comparison_of_features" WHERE "data_conferencing"='no' AND "web_conferencing"='no'; | 2-1779657-2 |
What is Application Sharing, when Web Conferencing is "Web Conferencing"? | CREATE TABLE "comparison_of_features" (
"name" text,
"e_mail_server" text,
"faxing" text,
"instant_messaging" text,
"telephony" text,
"videoconferencing" text,
"web_conferencing" text,
"data_conferencing" text,
"application_sharing" text,
"electronic_meeting_system" text,
"synchronous_conferencing" text
); | SELECT "application_sharing" FROM "comparison_of_features" WHERE "web_conferencing"='web conferencing'; | 2-1779657-2 |
What is Instant Messaging, when Electronic Meeting System is "Yes", and when Name is "Microsoft Sharepoint"? | CREATE TABLE "comparison_of_features" (
"name" text,
"e_mail_server" text,
"faxing" text,
"instant_messaging" text,
"telephony" text,
"videoconferencing" text,
"web_conferencing" text,
"data_conferencing" text,
"application_sharing" text,
"electronic_meeting_system" text,
"synchronous_conferencing" text
); | SELECT "instant_messaging" FROM "comparison_of_features" WHERE "electronic_meeting_system"='yes' AND "name"='microsoft sharepoint'; | 2-1779657-2 |
What is Instant Messaging, when Telephony is "Yes with integrated Sametime"? | CREATE TABLE "comparison_of_features" (
"name" text,
"e_mail_server" text,
"faxing" text,
"instant_messaging" text,
"telephony" text,
"videoconferencing" text,
"web_conferencing" text,
"data_conferencing" text,
"application_sharing" text,
"electronic_meeting_system" text,
"synchronous_conferencing" text
); | SELECT "instant_messaging" FROM "comparison_of_features" WHERE "telephony"='yes with integrated sametime'; | 2-1779657-2 |
What is the July 1, 2010 density when the April 1, 2010 density is 1,694? | CREATE TABLE "list_of_the_most_populous_us_counties_so" (
"rank" text,
"county" text,
"state" text,
"land_area_km" text,
"land_area_mi" text,
"april_1_2010_census" text,
"april_1_2010_density_km" text,
"april_1_2010_density_mi" text,
"july_1_2010_official_estimate" text,
"july_1_2010_density_km" text,
"july_1_2010_density_mi" text,
"july_1_2011_official_estimate" text,
"july_1_2011_density_km" text,
"july_1_2011_density_mi" text,
"mid_2010_to_mid_2011_change_absolute" text,
"mid_2010_to_mid_2011_change_pct" text,
"county_seat_or_courthouse" text
); | SELECT "july_1_2010_density_km" FROM "list_of_the_most_populous_us_counties_so" WHERE "april_1_2010_density_mi"='1,694'; | 2-1762887-1 |
Name the mid-2010 to mid-2011 change in the case where then April 1, 2010 census reports 662,564? | CREATE TABLE "list_of_the_most_populous_us_counties_so" (
"rank" text,
"county" text,
"state" text,
"land_area_km" text,
"land_area_mi" text,
"april_1_2010_census" text,
"april_1_2010_density_km" text,
"april_1_2010_density_mi" text,
"july_1_2010_official_estimate" text,
"july_1_2010_density_km" text,
"july_1_2010_density_mi" text,
"july_1_2011_official_estimate" text,
"july_1_2011_density_km" text,
"july_1_2011_density_mi" text,
"mid_2010_to_mid_2011_change_absolute" text,
"mid_2010_to_mid_2011_change_pct" text,
"county_seat_or_courthouse" text
); | SELECT "mid_2010_to_mid_2011_change_absolute" FROM "list_of_the_most_populous_us_counties_so" WHERE "april_1_2010_census"='662,564'; | 2-1762887-1 |
What is the rank where the July 1, 2010 density equals 437? | CREATE TABLE "list_of_the_most_populous_us_counties_so" (
"rank" text,
"county" text,
"state" text,
"land_area_km" text,
"land_area_mi" text,
"april_1_2010_census" text,
"april_1_2010_density_km" text,
"april_1_2010_density_mi" text,
"july_1_2010_official_estimate" text,
"july_1_2010_density_km" text,
"july_1_2010_density_mi" text,
"july_1_2011_official_estimate" text,
"july_1_2011_density_km" text,
"july_1_2011_density_mi" text,
"mid_2010_to_mid_2011_change_absolute" text,
"mid_2010_to_mid_2011_change_pct" text,
"county_seat_or_courthouse" text
); | SELECT "rank" FROM "list_of_the_most_populous_us_counties_so" WHERE "july_1_2010_density_km"='437'; | 2-1762887-1 |
What is the July 1, 2011 density if the July 1, 2010 official estimate is 800,482? | CREATE TABLE "list_of_the_most_populous_us_counties_so" (
"rank" text,
"county" text,
"state" text,
"land_area_km" text,
"land_area_mi" text,
"april_1_2010_census" text,
"april_1_2010_density_km" text,
"april_1_2010_density_mi" text,
"july_1_2010_official_estimate" text,
"july_1_2010_density_km" text,
"july_1_2010_density_mi" text,
"july_1_2011_official_estimate" text,
"july_1_2011_density_km" text,
"july_1_2011_density_mi" text,
"mid_2010_to_mid_2011_change_absolute" text,
"mid_2010_to_mid_2011_change_pct" text,
"county_seat_or_courthouse" text
); | SELECT "july_1_2011_density_mi" FROM "list_of_the_most_populous_us_counties_so" WHERE "july_1_2010_official_estimate"='800,482'; | 2-1762887-1 |
What is the mid-2010 to mid-2011 change where the July 1, 2011 density is 508? | CREATE TABLE "list_of_the_most_populous_us_counties_so" (
"rank" text,
"county" text,
"state" text,
"land_area_km" text,
"land_area_mi" text,
"april_1_2010_census" text,
"april_1_2010_density_km" text,
"april_1_2010_density_mi" text,
"july_1_2010_official_estimate" text,
"july_1_2010_density_km" text,
"july_1_2010_density_mi" text,
"july_1_2011_official_estimate" text,
"july_1_2011_density_km" text,
"july_1_2011_density_mi" text,
"mid_2010_to_mid_2011_change_absolute" text,
"mid_2010_to_mid_2011_change_pct" text,
"county_seat_or_courthouse" text
); | SELECT "mid_2010_to_mid_2011_change_pct" FROM "list_of_the_most_populous_us_counties_so" WHERE "july_1_2011_density_mi"='508'; | 2-1762887-1 |
What country had a July 1, 2010 density of 41? | CREATE TABLE "list_of_the_most_populous_us_counties_so" (
"rank" text,
"county" text,
"state" text,
"land_area_km" text,
"land_area_mi" text,
"april_1_2010_census" text,
"april_1_2010_density_km" text,
"april_1_2010_density_mi" text,
"july_1_2010_official_estimate" text,
"july_1_2010_density_km" text,
"july_1_2010_density_mi" text,
"july_1_2011_official_estimate" text,
"july_1_2011_density_km" text,
"july_1_2011_density_mi" text,
"mid_2010_to_mid_2011_change_absolute" text,
"mid_2010_to_mid_2011_change_pct" text,
"county_seat_or_courthouse" text
); | SELECT "county" FROM "list_of_the_most_populous_us_counties_so" WHERE "july_1_2010_density_km"='41'; | 2-1762887-1 |
What Tournament has an Outcome of winner, and Opponents of eddie dibbs harold solomon? | CREATE TABLE "doubles_20_8_12" (
"outcome" text,
"date" real,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
); | SELECT "tournament" FROM "doubles_20_8_12" WHERE "outcome"='winner' AND "opponents"='eddie dibbs harold solomon'; | 2-1834704-4 |
What Partner has a Score of 3–6, 2–6? | CREATE TABLE "doubles_20_8_12" (
"outcome" text,
"date" real,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
); | SELECT "partner" FROM "doubles_20_8_12" WHERE "score"='3–6, 2–6'; | 2-1834704-4 |
What Tournament has a Partner of tom gorman? | CREATE TABLE "doubles_20_8_12" (
"outcome" text,
"date" real,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
); | SELECT "tournament" FROM "doubles_20_8_12" WHERE "partner"='tom gorman'; | 2-1834704-4 |
What Outcome has Opponents of bob hewitt frew mcmillan? | CREATE TABLE "doubles_20_8_12" (
"outcome" text,
"date" real,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
); | SELECT "outcome" FROM "doubles_20_8_12" WHERE "opponents"='bob hewitt frew mcmillan'; | 2-1834704-4 |
Who was the name of the opposing team on 11/02/1961? | CREATE TABLE "1961" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
); | SELECT "opposing_teams" FROM "1961" WHERE "date"='11/02/1961'; | 2-18179114-2 |
Which Opposing team had an Against smaller Than 5? | CREATE TABLE "1961" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
); | SELECT "opposing_teams" FROM "1961" WHERE "against"<5; | 2-18179114-2 |
What is the status for 07/01/1961? | CREATE TABLE "1961" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
); | SELECT "status" FROM "1961" WHERE "date"='07/01/1961'; | 2-18179114-2 |
What position does Karl Singer play? | CREATE TABLE "round_one" (
"pick" real,
"afl_team" text,
"player" text,
"position" text,
"college" text
); | SELECT "position" FROM "round_one" WHERE "player"='karl singer'; | 2-17706792-1 |
Which player is an offensive tackle for the New York Jets? | CREATE TABLE "round_one" (
"pick" real,
"afl_team" text,
"player" text,
"position" text,
"college" text
); | SELECT "player" FROM "round_one" WHERE "position"='offensive tackle' AND "afl_team"='new york jets'; | 2-17706792-1 |
What position does Mike Dennis play? | CREATE TABLE "round_one" (
"pick" real,
"afl_team" text,
"player" text,
"position" text,
"college" text
); | SELECT "position" FROM "round_one" WHERE "player"='mike dennis'; | 2-17706792-1 |
Which AFL team has a pick 4 for the offensive tackle position? | CREATE TABLE "round_one" (
"pick" real,
"afl_team" text,
"player" text,
"position" text,
"college" text
); | SELECT "afl_team" FROM "round_one" WHERE "position"='offensive tackle' AND "pick"=4; | 2-17706792-1 |
From which country was Sodje loaned? | CREATE TABLE "loans" (
"name" text,
"country" text,
"loan_club" text,
"started" text,
"ended" text,
"start_source" text
); | SELECT "country" FROM "loans" WHERE "name"='sodje'; | 2-17634290-9 |
From which club is player C. Dickinson? | CREATE TABLE "loans" (
"name" text,
"country" text,
"loan_club" text,
"started" text,
"ended" text,
"start_source" text
); | SELECT "loan_club" FROM "loans" WHERE "name"='c. dickinson'; | 2-17634290-9 |
What is the fate for the Bremen ship? | CREATE TABLE "the_ships" (
"ship" text,
"tonnage" text,
"builder" text,
"original_operator" text,
"fate" text
); | SELECT "fate" FROM "the_ships" WHERE "ship"='bremen'; | 2-18215055-1 |
Who is the original operator for the AG Vulcan builder and the Prinzess Irene ship? | CREATE TABLE "the_ships" (
"ship" text,
"tonnage" text,
"builder" text,
"original_operator" text,
"fate" text
); | SELECT "original_operator" FROM "the_ships" WHERE "builder"='ag vulcan' AND "ship"='prinzess irene'; | 2-18215055-1 |
What is the Tonnage that has builder AG Vulcan, and the original operator NDL, and the ship, Prinzess Irene? | CREATE TABLE "the_ships" (
"ship" text,
"tonnage" text,
"builder" text,
"original_operator" text,
"fate" text
); | SELECT "tonnage" FROM "the_ships" WHERE "builder"='ag vulcan' AND "original_operator"='ndl' AND "ship"='prinzess irene'; | 2-18215055-1 |
What Combined has a 100 yard Freestyle of cody miller (palo verde)? | CREATE TABLE "swimming_and_diving" (
"combined" text,
"50_yard_freestyle" text,
"100_yard_freestyle" text,
"200_yard_freestyle" text,
"500_yard_freestyle" text,
"100_yard_backstroke" text,
"100_yard_butterfly" text
); | SELECT "combined" FROM "swimming_and_diving" WHERE "100_yard_freestyle"='cody miller (palo verde)'; | 2-18341614-15 |
What 100 yard Backstroke has a 100 yard Freestyle of helen yee (sierra vista)? | CREATE TABLE "swimming_and_diving" (
"combined" text,
"50_yard_freestyle" text,
"100_yard_freestyle" text,
"200_yard_freestyle" text,
"500_yard_freestyle" text,
"100_yard_backstroke" text,
"100_yard_butterfly" text
); | SELECT "100_yard_backstroke" FROM "swimming_and_diving" WHERE "100_yard_freestyle"='helen yee (sierra vista)'; | 2-18341614-15 |
What 50 yard Freestyle has a 100 yard Butterfly of diving? | CREATE TABLE "swimming_and_diving" (
"combined" text,
"50_yard_freestyle" text,
"100_yard_freestyle" text,
"200_yard_freestyle" text,
"500_yard_freestyle" text,
"100_yard_backstroke" text,
"100_yard_butterfly" text
); | SELECT "50_yard_freestyle" FROM "swimming_and_diving" WHERE "100_yard_butterfly"='diving'; | 2-18341614-15 |
What 100 yard Butterfly has a 100 yard Freestyle of cody miller (palo verde)? | CREATE TABLE "swimming_and_diving" (
"combined" text,
"50_yard_freestyle" text,
"100_yard_freestyle" text,
"200_yard_freestyle" text,
"500_yard_freestyle" text,
"100_yard_backstroke" text,
"100_yard_butterfly" text
); | SELECT "100_yard_butterfly" FROM "swimming_and_diving" WHERE "100_yard_freestyle"='cody miller (palo verde)'; | 2-18341614-15 |
What 500 yard Freestyle has a Combined of palo verde, and a 100 yard Butterfly of edward kollar (douglas)? | CREATE TABLE "swimming_and_diving" (
"combined" text,
"50_yard_freestyle" text,
"100_yard_freestyle" text,
"200_yard_freestyle" text,
"500_yard_freestyle" text,
"100_yard_backstroke" text,
"100_yard_butterfly" text
); | SELECT "500_yard_freestyle" FROM "swimming_and_diving" WHERE "combined"='palo verde' AND "100_yard_butterfly"='edward kollar (douglas)'; | 2-18341614-15 |
What 100 yard Freestyle has a 100 yard Backstroke of palo verde? | CREATE TABLE "swimming_and_diving" (
"combined" text,
"50_yard_freestyle" text,
"100_yard_freestyle" text,
"200_yard_freestyle" text,
"500_yard_freestyle" text,
"100_yard_backstroke" text,
"100_yard_butterfly" text
); | SELECT "100_yard_freestyle" FROM "swimming_and_diving" WHERE "100_yard_backstroke"='palo verde'; | 2-18341614-15 |
Who has a Score of 68-71-70=208? | CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
); | SELECT "player" FROM "third_round" WHERE "score"='68-71-70=208'; | 2-18027810-6 |
Which country has -9 to par with a Score of 70-69-68=207? | CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
); | SELECT "country" FROM "third_round" WHERE "to_par"='-9' AND "score"='70-69-68=207'; | 2-18027810-6 |
What is Tiger Woods' to par? | CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
); | SELECT "to_par" FROM "third_round" WHERE "player"='tiger woods'; | 2-18027810-6 |
Which away team played against Peterborough United, with a tie no of replay? | CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "away_team" FROM "first_round_proper" WHERE "tie_no"='replay' AND "home_team"='peterborough united'; | 2-17751811-1 |
What are the lowest matches that have wickets greater than 16, 3/15 as the best, and an econ less than 8? | CREATE TABLE "wickets" (
"player" text,
"team" text,
"matches" real,
"overs" real,
"runs" real,
"wickets" real,
"best" text,
"econ" real,
"s_rate" real,
"4_inns" real,
"5_inns" real,
"average" real
); | SELECT MIN("matches") FROM "wickets" WHERE "wickets">16 AND "best"='3/15' AND "econ"<8; | 2-17900317-5 |
How many econs have 13.76 as the S/Rate, with runs less than 325? | CREATE TABLE "wickets" (
"player" text,
"team" text,
"matches" real,
"overs" real,
"runs" real,
"wickets" real,
"best" text,
"econ" real,
"s_rate" real,
"4_inns" real,
"5_inns" real,
"average" real
); | SELECT COUNT("econ") FROM "wickets" WHERE "s_rate"=13.76 AND "runs"<325; | 2-17900317-5 |
What is the average wickets that have overs greater than 44, danish kaneria as the player, with an average greater than 13.8? | CREATE TABLE "wickets" (
"player" text,
"team" text,
"matches" real,
"overs" real,
"runs" real,
"wickets" real,
"best" text,
"econ" real,
"s_rate" real,
"4_inns" real,
"5_inns" real,
"average" real
); | SELECT AVG("wickets") FROM "wickets" WHERE "overs">44 AND "player"='danish kaneria' AND "average">13.8; | 2-17900317-5 |
How many 5+/inns have tyron henderson as the player, with wickets less than 21? | CREATE TABLE "wickets" (
"player" text,
"team" text,
"matches" real,
"overs" real,
"runs" real,
"wickets" real,
"best" text,
"econ" real,
"s_rate" real,
"4_inns" real,
"5_inns" real,
"average" real
); | SELECT COUNT("5_inns") FROM "wickets" WHERE "player"='tyron henderson' AND "wickets"<21; | 2-17900317-5 |
What is the surface when the partner was Robert Haybittel? | CREATE TABLE "doubles_titles_4" (
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
); | SELECT "surface" FROM "doubles_titles_4" WHERE "partner"='robert haybittel'; | 2-18089112-5 |
What was the rating of the episode Wonder Drug? | CREATE TABLE "episode_ratings" (
"episode_no" text,
"airdate" text,
"time" text,
"ratings_5_capital_cities" real,
"timeslot_rank" text,
"overall_nightly_rank" text
); | SELECT "ratings_5_capital_cities" FROM "episode_ratings" WHERE "episode_no"='wonder drug'; | 2-17837293-1 |
Who was the winning team on May 12? | CREATE TABLE "race_results" (
"round" text,
"date" text,
"event" text,
"circuit" text,
"winning_driver" text,
"winning_team" text
); | SELECT "winning_team" FROM "race_results" WHERE "date"='may 12'; | 2-18261246-1 |
Who was the winning team for circuit zolder? | CREATE TABLE "race_results" (
"round" text,
"date" text,
"event" text,
"circuit" text,
"winning_driver" text,
"winning_team" text
); | SELECT "winning_team" FROM "race_results" WHERE "circuit"='circuit zolder'; | 2-18261246-1 |
Who was the winning team for round 3? | CREATE TABLE "race_results" (
"round" text,
"date" text,
"event" text,
"circuit" text,
"winning_driver" text,
"winning_team" text
); | SELECT "winning_team" FROM "race_results" WHERE "round"='3'; | 2-18261246-1 |
Who was the winning team on July 13? | CREATE TABLE "race_results" (
"round" text,
"date" text,
"event" text,
"circuit" text,
"winning_driver" text,
"winning_team" text
); | SELECT "winning_team" FROM "race_results" WHERE "date"='july 13'; | 2-18261246-1 |
Name the highest Year which has a Venue of narbonne , france? | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
); | SELECT MAX("year") FROM "achievements" WHERE "venue"='narbonne , france'; | 2-18125992-1 |
Which Competition has a Year larger than 1990 in seville , spain? | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
); | SELECT "competition" FROM "achievements" WHERE "year">1990 AND "venue"='seville , spain'; | 2-18125992-1 |
COunt the Year which has a Venue of latakia , syria? | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
); | SELECT COUNT("year") FROM "achievements" WHERE "venue"='latakia , syria'; | 2-18125992-1 |
Which Position has an Event of 4x400 m relay, and a Venue of stuttgart , germany? | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
); | SELECT "position" FROM "achievements" WHERE "event"='4x400 m relay' AND "venue"='stuttgart , germany'; | 2-18125992-1 |
Which Year has a Competition of european indoor championships, and a Venue of budapest , hungary? | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
); | SELECT SUM("year") FROM "achievements" WHERE "competition"='european indoor championships' AND "venue"='budapest , hungary'; | 2-18125992-1 |
How many rounds did satrio hermanto go with an opc-challenge engine? | CREATE TABLE "teams_and_drivers" (
"team" text,
"driver" text,
"class" text,
"chassis" text,
"engine" text,
"rounds" text
); | SELECT "rounds" FROM "teams_and_drivers" WHERE "engine"='opc-challenge' AND "driver"='satrio hermanto'; | 2-17811141-1 |
How many rounds did frédéric vervisch go? | CREATE TABLE "teams_and_drivers" (
"team" text,
"driver" text,
"class" text,
"chassis" text,
"engine" text,
"rounds" text
); | SELECT "rounds" FROM "teams_and_drivers" WHERE "driver"='frédéric vervisch'; | 2-17811141-1 |
How many rounds did shirley van der lof go? | CREATE TABLE "teams_and_drivers" (
"team" text,
"driver" text,
"class" text,
"chassis" text,
"engine" text,
"rounds" text
); | SELECT "rounds" FROM "teams_and_drivers" WHERE "driver"='shirley van der lof'; | 2-17811141-1 |
What c class engine did philipp eng and team hs technik motorsport use? | CREATE TABLE "teams_and_drivers" (
"team" text,
"driver" text,
"class" text,
"chassis" text,
"engine" text,
"rounds" text
); | SELECT "engine" FROM "teams_and_drivers" WHERE "class"='c' AND "team"='hs technik motorsport' AND "driver"='philipp eng'; | 2-17811141-1 |
What is the chassis of rahel frey's volkswagen engine? | CREATE TABLE "teams_and_drivers" (
"team" text,
"driver" text,
"class" text,
"chassis" text,
"engine" text,
"rounds" text
); | SELECT "chassis" FROM "teams_and_drivers" WHERE "engine"='volkswagen' AND "driver"='rahel frey'; | 2-17811141-1 |
What is the greatest number of losses when the against is 1465 and there are more than 7 wins? | CREATE TABLE "2005_ladder" (
"golden_rivers" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
); | SELECT MAX("losses") FROM "2005_ladder" WHERE "against"=1465 AND "wins">7; | 2-18036506-5 |
What is the total of against matches when there are less than 12 wins, less than 0 draws, and Moulamein is the golden river? | CREATE TABLE "2005_ladder" (
"golden_rivers" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
); | SELECT SUM("against") FROM "2005_ladder" WHERE "wins"<12 AND "golden_rivers"='moulamein' AND "draws"<0; | 2-18036506-5 |
What is the total losses when Hay is the golden river and there are more than 2 byes? | CREATE TABLE "2005_ladder" (
"golden_rivers" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
); | SELECT COUNT("losses") FROM "2005_ladder" WHERE "golden_rivers"='hay' AND "byes">2; | 2-18036506-5 |
What is the total number of draws when there are 1465 against matches and less than 2 byes? | CREATE TABLE "2005_ladder" (
"golden_rivers" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
); | SELECT COUNT("draws") FROM "2005_ladder" WHERE "against"=1465 AND "byes"<2; | 2-18036506-5 |
What is the greatest number of losses when there are more than 0 draws and 1390 against matches? | CREATE TABLE "2005_ladder" (
"golden_rivers" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
); | SELECT MAX("losses") FROM "2005_ladder" WHERE "draws">0 AND "against"=1390; | 2-18036506-5 |
What is the highest number of wins when there are more than 2 byes? | CREATE TABLE "2005_ladder" (
"golden_rivers" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
); | SELECT MAX("wins") FROM "2005_ladder" WHERE "byes">2; | 2-18036506-5 |
Which percent has Wins larger than 72, and a Name of john yovicsin? | CREATE TABLE "head_coaching_history" (
"name" text,
"years" text,
"wins" real,
"losses" real,
"ties" real,
"pct" real
); | SELECT SUM("pct") FROM "head_coaching_history" WHERE "wins">72 AND "name"='john yovicsin'; | 2-17808366-1 |
How many Ties have Years of 1919–1925, and a Pct larger than 0.734? | CREATE TABLE "head_coaching_history" (
"name" text,
"years" text,
"wins" real,
"losses" real,
"ties" real,
"pct" real
); | SELECT SUM("ties") FROM "head_coaching_history" WHERE "years"='1919–1925' AND "pct">0.734; | 2-17808366-1 |
Which Pct has Years of 1957–1970, and Wins smaller than 78? | CREATE TABLE "head_coaching_history" (
"name" text,
"years" text,
"wins" real,
"losses" real,
"ties" real,
"pct" real
); | SELECT SUM("pct") FROM "head_coaching_history" WHERE "years"='1957–1970' AND "wins"<78; | 2-17808366-1 |
Which Wins have Years of 1881, and a Pct larger than 0.75? | CREATE TABLE "head_coaching_history" (
"name" text,
"years" text,
"wins" real,
"losses" real,
"ties" real,
"pct" real
); | SELECT AVG("wins") FROM "head_coaching_history" WHERE "years"='1881' AND "pct">0.75; | 2-17808366-1 |
What's the genre of the song recorded in 1929? | CREATE TABLE "grammy_hall_of_fame" (
"year_recorded" text,
"title" text,
"genre" text,
"label" text,
"year_inducted" text
); | SELECT "genre" FROM "grammy_hall_of_fame" WHERE "year_recorded"='1929'; | 2-18313-2 |
What label is "weather bird" under? | CREATE TABLE "grammy_hall_of_fame" (
"year_recorded" text,
"title" text,
"genre" text,
"label" text,
"year_inducted" text
); | SELECT "label" FROM "grammy_hall_of_fame" WHERE "title"='\"weather bird\"'; | 2-18313-2 |
What's the year inducted for the label of label? | CREATE TABLE "grammy_hall_of_fame" (
"year_recorded" text,
"title" text,
"genre" text,
"label" text,
"year_inducted" text
); | SELECT "year_inducted" FROM "grammy_hall_of_fame" WHERE "label"='label'; | 2-18313-2 |
What genre is the song recorded in 1929? | CREATE TABLE "grammy_hall_of_fame" (
"year_recorded" text,
"title" text,
"genre" text,
"label" text,
"year_inducted" text
); | SELECT "genre" FROM "grammy_hall_of_fame" WHERE "year_recorded"='1929'; | 2-18313-2 |
What genre is the song recorded in 1926? | CREATE TABLE "grammy_hall_of_fame" (
"year_recorded" text,
"title" text,
"genre" text,
"label" text,
"year_inducted" text
); | SELECT "genre" FROM "grammy_hall_of_fame" WHERE "year_recorded"='1926'; | 2-18313-2 |
Which Party has a Residence of san diego? | CREATE TABLE "current_members" (
"name" text,
"residence" text,
"party" text,
"years_in_assembly" text,
"years_in_senate" text
); | SELECT "party" FROM "current_members" WHERE "residence"='san diego'; | 2-17769516-1 |
Which Years in Senate has a Years in Assembly of 2010–present, and toni atkins? | CREATE TABLE "current_members" (
"name" text,
"residence" text,
"party" text,
"years_in_assembly" text,
"years_in_senate" text
); | SELECT "years_in_senate" FROM "current_members" WHERE "years_in_assembly"='2010–present' AND "name"='toni atkins'; | 2-17769516-1 |
Which Party has Years in Senate of —, and Years in Assembly of 2012–present? | CREATE TABLE "current_members" (
"name" text,
"residence" text,
"party" text,
"years_in_assembly" text,
"years_in_senate" text
); | SELECT "party" FROM "current_members" WHERE "years_in_senate"='—' AND "years_in_assembly"='2012–present'; | 2-17769516-1 |
Show the Residence whose Name is rich gordon? | CREATE TABLE "current_members" (
"name" text,
"residence" text,
"party" text,
"years_in_assembly" text,
"years_in_senate" text
); | SELECT "residence" FROM "current_members" WHERE "name"='rich gordon'; | 2-17769516-1 |
Which Years in Assembly has a Name of toni atkins? | CREATE TABLE "current_members" (
"name" text,
"residence" text,
"party" text,
"years_in_assembly" text,
"years_in_senate" text
); | SELECT "years_in_assembly" FROM "current_members" WHERE "name"='toni atkins'; | 2-17769516-1 |
Which Party has Years in Assembly of 2008–present, and a Name of tom ammiano? | CREATE TABLE "current_members" (
"name" text,
"residence" text,
"party" text,
"years_in_assembly" text,
"years_in_senate" text
); | SELECT "party" FROM "current_members" WHERE "years_in_assembly"='2008–present' AND "name"='tom ammiano'; | 2-17769516-1 |
In what year(s) did Raymond Floyd have a total of less than 291 and a To par of +10? | CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
); | SELECT "year_s_won" FROM "made_the_cut" WHERE "total"<291 AND "to_par"='+10' AND "player"='raymond floyd'; | 2-18112814-1 |
What was Jeff Sluman's To par when his total was smaller than 284? | CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
); | SELECT "to_par" FROM "made_the_cut" WHERE "total"<284 AND "player"='jeff sluman'; | 2-18112814-1 |
What was the finish for Lanny Wadkins of the United States? | CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
); | SELECT "finish" FROM "made_the_cut" WHERE "country"='united states' AND "player"='lanny wadkins'; | 2-18112814-1 |
Which player had a To par of +11? | 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"='+11'; | 2-18112814-1 |
From which country was the player whose year(s) won was 1983? | CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
); | SELECT "country" FROM "made_the_cut" WHERE "year_s_won"='1983'; | 2-18112814-1 |
What is the total for the player whose finish was t66? | CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
); | SELECT "total" FROM "made_the_cut" WHERE "finish"='t66'; | 2-18112814-1 |
What is the type of the locomotive which was delivered in 1857-59? | CREATE TABLE "locomotives_and_wagons" (
"class" text,
"quantity" real,
"type" text,
"delivered" text,
"k_b_sts_b_class" text,
"retired" text
); | SELECT "type" FROM "locomotives_and_wagons" WHERE "delivered"='1857-59'; | 2-17943468-1 |
What is the highest quantity of the b ix k.b.sts.b.? | CREATE TABLE "locomotives_and_wagons" (
"class" text,
"quantity" real,
"type" text,
"delivered" text,
"k_b_sts_b_class" text,
"retired" text
); | SELECT MAX("quantity") FROM "locomotives_and_wagons" WHERE "k_b_sts_b_class"='b ix'; | 2-17943468-1 |
What is the lowest quantity of the 1b n2 type, which was retired in 1907-12? | CREATE TABLE "locomotives_and_wagons" (
"class" text,
"quantity" real,
"type" text,
"delivered" text,
"k_b_sts_b_class" text,
"retired" text
); | SELECT MIN("quantity") FROM "locomotives_and_wagons" WHERE "type"='1b n2' AND "retired"='1907-12'; | 2-17943468-1 |
What district is Jim Moran the incumbent for. | CREATE TABLE "virginia" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text
); | SELECT "district" FROM "virginia" WHERE "incumbent"='jim moran'; | 2-1805191-47 |
What was the election result before 2004 where Eric Cantor was the incumbent? | CREATE TABLE "virginia" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text
); | SELECT "results" FROM "virginia" WHERE "first_elected"<2004 AND "incumbent"='eric cantor'; | 2-1805191-47 |
What is the common English for the Italian word san gallo? | CREATE TABLE "names_in_national_languages" (
"abbr" text,
"common_english" text,
"french" text,
"italian" text,
"romansh" text
); | SELECT "common_english" FROM "names_in_national_languages" WHERE "italian"='san gallo'; | 2-180752-2 |
What is the italian word for Glarus? | CREATE TABLE "names_in_national_languages" (
"abbr" text,
"common_english" text,
"french" text,
"italian" text,
"romansh" text
); | SELECT "italian" FROM "names_in_national_languages" WHERE "common_english"='glarus'; | 2-180752-2 |
What is the common english word with the abbr of ai? | CREATE TABLE "names_in_national_languages" (
"abbr" text,
"common_english" text,
"french" text,
"italian" text,
"romansh" text
); | SELECT "common_english" FROM "names_in_national_languages" WHERE "abbr"='ai'; | 2-180752-2 |
What is the abbr of argovia? | CREATE TABLE "names_in_national_languages" (
"abbr" text,
"common_english" text,
"french" text,
"italian" text,
"romansh" text
); | SELECT "abbr" FROM "names_in_national_languages" WHERE "italian"='argovia'; | 2-180752-2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.