question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
What season did the Rangers win? | CREATE TABLE "tournaments" (
"season" text,
"winner" text,
"score" text,
"runner_up" text,
"venue" text
); | SELECT "season" FROM "tournaments" WHERE "winner"='rangers'; | 2-16880170-1 |
What is the score of the game with Falkirk as the runner-up? | CREATE TABLE "tournaments" (
"season" text,
"winner" text,
"score" text,
"runner_up" text,
"venue" text
); | SELECT "score" FROM "tournaments" WHERE "runner_up"='falkirk'; | 2-16880170-1 |
What is the venue of the game where hibernian won and the rangers were the runner-up? | CREATE TABLE "tournaments" (
"season" text,
"winner" text,
"score" text,
"runner_up" text,
"venue" text
); | SELECT "venue" FROM "tournaments" WHERE "runner_up"='rangers' AND "winner"='hibernian'; | 2-16880170-1 |
what is the country for the 1972 winter olympics? | CREATE TABLE "women_s_10_km" (
"winner" text,
"country" text,
"winter_olympics" real,
"fis_nordic_world_ski_championships" text,
"holmenkollen" text
); | SELECT "country" FROM "women_s_10_km" WHERE "winter_olympics"=1972; | 2-174491-6 |
what is the winter olympics year when the fis nordic world ski championships is 1976? | CREATE TABLE "women_s_10_km" (
"winner" text,
"country" text,
"winter_olympics" real,
"fis_nordic_world_ski_championships" text,
"holmenkollen" text
); | SELECT "winter_olympics" FROM "women_s_10_km" WHERE "fis_nordic_world_ski_championships"='1976'; | 2-174491-6 |
what is the earliest winter olympics when the fis nordic world ski championships is 1976? | CREATE TABLE "women_s_10_km" (
"winner" text,
"country" text,
"winter_olympics" real,
"fis_nordic_world_ski_championships" text,
"holmenkollen" text
); | SELECT MIN("winter_olympics") FROM "women_s_10_km" WHERE "fis_nordic_world_ski_championships"='1976'; | 2-174491-6 |
what is the winter olympics when the country is soviet union and holmenkollen is 1970, 1979? | CREATE TABLE "women_s_10_km" (
"winner" text,
"country" text,
"winter_olympics" real,
"fis_nordic_world_ski_championships" text,
"holmenkollen" text
); | SELECT SUM("winter_olympics") FROM "women_s_10_km" WHERE "country"='soviet union' AND "holmenkollen"='1970, 1979'; | 2-174491-6 |
what is the date when the away team is newport county? | CREATE TABLE "second_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "date" FROM "second_round_proper" WHERE "away_team"='newport county'; | 2-17455843-3 |
How many games have 5 goals and less than 8 assists? | CREATE TABLE "play_offs" (
"player" text,
"club" text,
"games" real,
"goals" real,
"assists" real,
"points" real
); | SELECT COUNT("games") FROM "play_offs" WHERE "goals"=5 AND "assists"<8; | 2-16706701-7 |
What is the highest number of goals Eisbären Berlin had along with 13 points and 10 assists? | CREATE TABLE "play_offs" (
"player" text,
"club" text,
"games" real,
"goals" real,
"assists" real,
"points" real
); | SELECT MAX("goals") FROM "play_offs" WHERE "points"=13 AND "assists"=10 AND "club"='eisbären berlin'; | 2-16706701-7 |
What is Ivan Ciernik's average points with less than 11 goals? | CREATE TABLE "play_offs" (
"player" text,
"club" text,
"games" real,
"goals" real,
"assists" real,
"points" real
); | SELECT AVG("points") FROM "play_offs" WHERE "player"='ivan ciernik' AND "goals"<11; | 2-16706701-7 |
Which province is Parun in? | CREATE TABLE "provinces_of_afghanistan" (
"province" text,
"map_num" real,
"iso_3166_2_af" text,
"centers" text,
"population" real,
"area_km" real,
"language" text,
"notes" text,
"u_n_region" text
); | SELECT "province" FROM "provinces_of_afghanistan" WHERE "centers"='parun'; | 2-16278349-1 |
In which category is Frank Scarabino a pilot? | CREATE TABLE "aircraft" (
"category" text,
"speed_km_h" real,
"speed_mph" real,
"vehicle" text,
"pilot" text,
"date" text
); | SELECT "category" FROM "aircraft" WHERE "pilot"='frank scarabino'; | 2-16343705-3 |
What is the sum of speed in km per hour reached by John Egginton? | CREATE TABLE "aircraft" (
"category" text,
"speed_km_h" real,
"speed_mph" real,
"vehicle" text,
"pilot" text,
"date" text
); | SELECT SUM("speed_km_h") FROM "aircraft" WHERE "pilot"='john egginton'; | 2-16343705-3 |
What is the name of team 1 that was after the 2005 season and with a 4-2 score? | CREATE TABLE "results" (
"season" real,
"team_1" text,
"score" text,
"team_2" text,
"venue" text
); | SELECT "team_1" FROM "results" WHERE "season">2005 AND "score"='4-2'; | 2-16593799-8 |
In the 2004 season with a 0-2 score what was the name of the venue? | CREATE TABLE "results" (
"season" real,
"team_1" text,
"score" text,
"team_2" text,
"venue" text
); | SELECT "venue" FROM "results" WHERE "score"='0-2' AND "season"=2004; | 2-16593799-8 |
What is the earliest season that Pisico Bình ðinh is team 2? | CREATE TABLE "results" (
"season" real,
"team_1" text,
"score" text,
"team_2" text,
"venue" text
); | SELECT MIN("season") FROM "results" WHERE "team_2"='pisico bình ðinh'; | 2-16593799-8 |
Which years have a rank less than 2? | CREATE TABLE "rebounds" (
"rank" real,
"player" text,
"years" text,
"games" real,
"reb_avg" real,
"total_rebounds" real
); | SELECT "years" FROM "rebounds" WHERE "rank"<2; | 2-16835332-3 |
How many games have rebounds larger than 1048? | CREATE TABLE "rebounds" (
"rank" real,
"player" text,
"years" text,
"games" real,
"reb_avg" real,
"total_rebounds" real
); | SELECT COUNT("games") FROM "rebounds" WHERE "total_rebounds">1048; | 2-16835332-3 |
How many rebounds have a Player of andre gaddy, and a Rank smaller than 6? | CREATE TABLE "rebounds" (
"rank" real,
"player" text,
"years" text,
"games" real,
"reb_avg" real,
"total_rebounds" real
); | SELECT COUNT("total_rebounds") FROM "rebounds" WHERE "player"='andre gaddy' AND "rank"<6; | 2-16835332-3 |
How many rebounds have a Player of herb estes? | CREATE TABLE "rebounds" (
"rank" real,
"player" text,
"years" text,
"games" real,
"reb_avg" real,
"total_rebounds" real
); | SELECT COUNT("total_rebounds") FROM "rebounds" WHERE "player"='herb estes'; | 2-16835332-3 |
What is the total of rebound averages with more than 98 games and a rank of 7? | CREATE TABLE "rebounds" (
"rank" real,
"player" text,
"years" text,
"games" real,
"reb_avg" real,
"total_rebounds" real
); | SELECT SUM("reb_avg") FROM "rebounds" WHERE "games">98 AND "rank"=7; | 2-16835332-3 |
Can you tell me the Date that has the Team of golden state? | 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 "date" FROM "game_log" WHERE "team"='golden state'; | 2-17311812-5 |
Can you tell me the High assists that has the Date of november 25? | 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 "high_assists" FROM "game_log" WHERE "date"='november 25'; | 2-17311812-5 |
Can you tell me the Team that has the High rebounds of antawn jamison (10), and the Date of november 5? | 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 "high_rebounds"='antawn jamison (10)' AND "date"='november 5'; | 2-17311812-5 |
Can you tell me the High rebounds that has the Date of november 5? | 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 "high_rebounds" FROM "game_log" WHERE "date"='november 5'; | 2-17311812-5 |
WHAT IS THE TEAM WITH astc round 1? | CREATE TABLE "race_calendar" (
"date" text,
"series" text,
"circuit" text,
"city_state" text,
"winner" text,
"team" text
); | SELECT "team" FROM "race_calendar" WHERE "series"='astc round 1'; | 2-17105922-1 |
WHAT IS THE WINNER WITH ATCC ROUND 6? | CREATE TABLE "race_calendar" (
"date" text,
"series" text,
"circuit" text,
"city_state" text,
"winner" text,
"team" text
); | SELECT "winner" FROM "race_calendar" WHERE "series"='atcc round 6'; | 2-17105922-1 |
What is the lowest number of points the 49ers scored when the record was 1-5 and there were more than 29,563 fans attending? | CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"49ers_points" real,
"opponents" real,
"record" text,
"streak" text,
"attendance" real
); | SELECT MIN("49ers_points") FROM "schedule" WHERE "attendance">'29,563' AND "record"='1-5'; | 2-17406982-3 |
What was the highest attendance for the game where the record was 0-5 and the opponents scored more than 20 points? | CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"49ers_points" real,
"opponents" real,
"record" text,
"streak" text,
"attendance" real
); | SELECT MAX("attendance") FROM "schedule" WHERE "record"='0-5' AND "opponents">20; | 2-17406982-3 |
What is the street address of Notre Dame Basilica? | CREATE TABLE "timeline_of_tallest_buildings" (
"name" text,
"street_address" text,
"years_as_tallest" text,
"num_of_years_as_tallest" text,
"height_m_ft" text,
"floors" real
); | SELECT "street_address" FROM "timeline_of_tallest_buildings" WHERE "name"='notre dame basilica'; | 2-1722194-5 |
What is the name of the building that was the tallest for 28 years? | CREATE TABLE "timeline_of_tallest_buildings" (
"name" text,
"street_address" text,
"years_as_tallest" text,
"num_of_years_as_tallest" text,
"height_m_ft" text,
"floors" real
); | SELECT "name" FROM "timeline_of_tallest_buildings" WHERE "num_of_years_as_tallest"='28 years'; | 2-1722194-5 |
What is the Region, when the Catalog is SM 2965-05? | CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
); | SELECT "region" FROM "release_history" WHERE "catalog"='sm 2965-05'; | 2-16752996-2 |
What is the Region, when the Catalog is 25AP 301? | CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
); | SELECT "region" FROM "release_history" WHERE "catalog"='25ap 301'; | 2-16752996-2 |
What is Date, when Catalog is EPC 81436? | CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
); | SELECT "date" FROM "release_history" WHERE "catalog"='epc 81436'; | 2-16752996-2 |
What is Label, when Format is Double CD? | CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
); | SELECT "label" FROM "release_history" WHERE "format"='double cd'; | 2-16752996-2 |
What is Label, when Region is Japan? | CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
); | SELECT "label" FROM "release_history" WHERE "region"='japan'; | 2-16752996-2 |
What is Format, when Region is United States? | CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
); | SELECT "format" FROM "release_history" WHERE "region"='united states'; | 2-16752996-2 |
What was the date of appointment for the manager of lecce when the previous manager's contract expired? | CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text
); | SELECT "date_of_appointment" FROM "managerial_changes" WHERE "manner_of_departure"='contract expired' AND "team"='lecce'; | 2-17043360-4 |
What was the manner of departure for the outgoing manager, davide ballardini? | CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text
); | SELECT "manner_of_departure" FROM "managerial_changes" WHERE "outgoing_manager"='davide ballardini'; | 2-17043360-4 |
What was the manner of departure for the outgoing manager, giuseppe iachini? | CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text
); | SELECT "manner_of_departure" FROM "managerial_changes" WHERE "outgoing_manager"='giuseppe iachini'; | 2-17043360-4 |
What is the date of appointment for the outgoing manager edoardo reja? | CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text
); | SELECT "date_of_appointment" FROM "managerial_changes" WHERE "outgoing_manager"='edoardo reja'; | 2-17043360-4 |
At what event did he fight matt eckerle? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
); | SELECT "event" FROM "mixed_martial_arts_record" WHERE "opponent"='matt eckerle'; | 2-16421237-2 |
What is the highest Round that lasted 1:44? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
); | SELECT MAX("round") FROM "mixed_martial_arts_record" WHERE "time"='1:44'; | 2-16421237-2 |
What is the number for the interview in Illinois when the preliminary is less than 8.558? | CREATE TABLE "final_competition_score" (
"country" text,
"preliminary" real,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
); | SELECT SUM("interview") FROM "final_competition_score" WHERE "country"='illinois' AND "preliminary"<8.558; | 2-17521433-1 |
What is the name of the country with less than 9.033 for swimsuit, 8.611 for interview and preliminary is less than 8.87? | CREATE TABLE "final_competition_score" (
"country" text,
"preliminary" real,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
); | SELECT "country" FROM "final_competition_score" WHERE "swimsuit"<9.033 AND "interview"=8.611 AND "preliminary"<8.87; | 2-17521433-1 |
What is the evening gown number when the average is more than 8.984 in Louisiana and the preliminary is more than 8.597? | CREATE TABLE "final_competition_score" (
"country" text,
"preliminary" real,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
); | SELECT COUNT("evening_gown") FROM "final_competition_score" WHERE "average">8.984 AND "country"='louisiana' AND "preliminary">8.597; | 2-17521433-1 |
What is the interview number in Louisiana, and the swimsuit number is more than 9.1? | CREATE TABLE "final_competition_score" (
"country" text,
"preliminary" real,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
); | SELECT COUNT("interview") FROM "final_competition_score" WHERE "country"='louisiana' AND "swimsuit">9.1; | 2-17521433-1 |
What is the swimsuit number when the preliminary is 8.721, and the average is more than 8.781? | CREATE TABLE "final_competition_score" (
"country" text,
"preliminary" real,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
); | SELECT COUNT("swimsuit") FROM "final_competition_score" WHERE "preliminary"=8.721 AND "average">8.781; | 2-17521433-1 |
Where was the game played on 30 May 2004? | CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "venue" FROM "international_goals" WHERE "date"='30 may 2004'; | 2-1646643-1 |
Who was Silva's Partner in the Amarante Tournament played on a Hard Surface? | CREATE TABLE "doubles_18" (
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponent_in_the_final" text,
"score" text
); | SELECT "partner" FROM "doubles_18" WHERE "surface"='hard' AND "tournament"='amarante'; | 2-16893837-6 |
Who was Silva's Partner in the match with a Score of 6–3, 7–6 (7–3)? | CREATE TABLE "doubles_18" (
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponent_in_the_final" text,
"score" text
); | SELECT "partner" FROM "doubles_18" WHERE "score"='6–3, 7–6 (7–3)'; | 2-16893837-6 |
On what Date was the match with partner Kira Nagy? | CREATE TABLE "doubles_18" (
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponent_in_the_final" text,
"score" text
); | SELECT "date" FROM "doubles_18" WHERE "partner"='kira nagy'; | 2-16893837-6 |
What is the Date of the Vigo Tournament? | CREATE TABLE "doubles_18" (
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponent_in_the_final" text,
"score" text
); | SELECT "date" FROM "doubles_18" WHERE "tournament"='vigo'; | 2-16893837-6 |
What Tournament did Silva Partner with Nicole Thijssen with Opponent in the final Nina Bratchikova & Frederica Piedade? | CREATE TABLE "doubles_18" (
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponent_in_the_final" text,
"score" text
); | SELECT "tournament" FROM "doubles_18" WHERE "partner"='nicole thijssen' AND "opponent_in_the_final"='nina bratchikova & frederica piedade'; | 2-16893837-6 |
What is Name, when State is "Jin"? | CREATE TABLE "vassal_states" (
"state" text,
"type" text,
"name" text,
"title" text,
"royal_house" text,
"from" text
); | SELECT "name" FROM "vassal_states" WHERE "state"='jin'; | 2-17338083-13 |
What is Name, when Royal House is "Ji", and when State is "Cai"? | CREATE TABLE "vassal_states" (
"state" text,
"type" text,
"name" text,
"title" text,
"royal_house" text,
"from" text
); | SELECT "name" FROM "vassal_states" WHERE "royal_house"='ji' AND "state"='cai'; | 2-17338083-13 |
What is State, when From is "830 BC"? | CREATE TABLE "vassal_states" (
"state" text,
"type" text,
"name" text,
"title" text,
"royal_house" text,
"from" text
); | SELECT "state" FROM "vassal_states" WHERE "from"='830 bc'; | 2-17338083-13 |
Which Ratio has a Similar ISO A size of a3? | CREATE TABLE "ansi_paper_sizes" (
"name" text,
"in_in" text,
"mm_mm" text,
"ratio" real,
"similar_iso_a_size" text
); | SELECT AVG("ratio") FROM "ansi_paper_sizes" WHERE "similar_iso_a_size"='a3'; | 2-166105-6 |
Which mm × mm has an in × in of 11 × 17? | CREATE TABLE "ansi_paper_sizes" (
"name" text,
"in_in" text,
"mm_mm" text,
"ratio" real,
"similar_iso_a_size" text
); | SELECT "mm_mm" FROM "ansi_paper_sizes" WHERE "in_in"='11 × 17'; | 2-166105-6 |
Which Ratio has a Name of ansi e? | CREATE TABLE "ansi_paper_sizes" (
"name" text,
"in_in" text,
"mm_mm" text,
"ratio" real,
"similar_iso_a_size" text
); | SELECT MIN("ratio") FROM "ansi_paper_sizes" WHERE "name"='ansi e'; | 2-166105-6 |
Which Ratio has an in × in of 17 × 22? | CREATE TABLE "ansi_paper_sizes" (
"name" text,
"in_in" text,
"mm_mm" text,
"ratio" real,
"similar_iso_a_size" text
); | SELECT "ratio" FROM "ansi_paper_sizes" WHERE "in_in"='17 × 22'; | 2-166105-6 |
What is the Distance of the 1945 Vuelta a Espana with 4A Stage? | CREATE TABLE "stage_results" (
"stage" text,
"date" text,
"course" text,
"distance" text,
"winner" text
); | SELECT "distance" FROM "stage_results" WHERE "stage"='4a'; | 2-16589127-1 |
What earned has 5 for the rank? | CREATE TABLE "leading_career_money_winners" (
"rank" real,
"player" text,
"country" text,
"earned" text,
"earnings" real
); | SELECT "earned" FROM "leading_career_money_winners" WHERE "rank"=5; | 2-173345-6 |
What is the average earnings ($) that has meg mallon as the player, with a rank less than 9? | CREATE TABLE "leading_career_money_winners" (
"rank" real,
"player" text,
"country" text,
"earned" text,
"earnings" real
); | SELECT AVG("earnings") FROM "leading_career_money_winners" WHERE "player"='meg mallon' AND "rank"<9; | 2-173345-6 |
What's the fed tax that has a total tax greater than 33.2, a minimum sales tax less than 41.01 and in Vancouver, BC? | CREATE TABLE "gasoline_taxes_in_canada" (
"government" text,
"federal_excise_tax_cad_l" real,
"total_excise_tax_cad_l" real,
"minimum_tax_incl_sales_taxes_cad_l" real,
"min_tax_cad_us_gal" real
); | SELECT AVG("federal_excise_tax_cad_l") FROM "gasoline_taxes_in_canada" WHERE "total_excise_tax_cad_l">33.2 AND "government"='vancouver, bc' AND "minimum_tax_incl_sales_taxes_cad_l"<41.01; | 2-17254387-1 |
What is the least minimum sales tax when the min tax is 105.7 and fed tax is more than 10? | CREATE TABLE "gasoline_taxes_in_canada" (
"government" text,
"federal_excise_tax_cad_l" real,
"total_excise_tax_cad_l" real,
"minimum_tax_incl_sales_taxes_cad_l" real,
"min_tax_cad_us_gal" real
); | SELECT MIN("minimum_tax_incl_sales_taxes_cad_l") FROM "gasoline_taxes_in_canada" WHERE "min_tax_cad_us_gal"=105.7 AND "federal_excise_tax_cad_l">10; | 2-17254387-1 |
What is the 1991 when 1992 and 1990 are 1R? | CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"1988" text,
"1989" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"career_sr" text
); | SELECT "1991" FROM "singles_performance_timeline" WHERE "1992"='1r' AND "1990"='1r'; | 2-1723697-3 |
What is the 1991 when 1990 is ATP Masters Series? | CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"1988" text,
"1989" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"career_sr" text
); | SELECT "1991" FROM "singles_performance_timeline" WHERE "1990"='atp masters series'; | 2-1723697-3 |
What is the 1995 when the 1991 is Grand Slams? | CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"1988" text,
"1989" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"career_sr" text
); | SELECT "1995" FROM "singles_performance_timeline" WHERE "1991"='grand slams'; | 2-1723697-3 |
What is the career SR when 1985 is Grand Slams? | CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"1988" text,
"1989" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"career_sr" text
); | SELECT "career_sr" FROM "singles_performance_timeline" WHERE "1985"='grand slams'; | 2-1723697-3 |
Which Name has a Date of 11 june 1940? | CREATE TABLE "ships_attacked" (
"date" text,
"u_boat" text,
"name" text,
"nationality" text,
"tonnage_grt" real,
"fate" text
); | SELECT "name" FROM "ships_attacked" WHERE "date"='11 june 1940'; | 2-17166347-1 |
Which Nationality has a Fate of sunk (mine), and a Tonnage (GRT) smaller than 2,266? | CREATE TABLE "ships_attacked" (
"date" text,
"u_boat" text,
"name" text,
"nationality" text,
"tonnage_grt" real,
"fate" text
); | SELECT "nationality" FROM "ships_attacked" WHERE "fate"='sunk (mine)' AND "tonnage_grt"<'2,266'; | 2-17166347-1 |
Which Tonnage (GRT) is the highest one that has a Date of 16 june 1940? | CREATE TABLE "ships_attacked" (
"date" text,
"u_boat" text,
"name" text,
"nationality" text,
"tonnage_grt" real,
"fate" text
); | SELECT MAX("tonnage_grt") FROM "ships_attacked" WHERE "date"='16 june 1940'; | 2-17166347-1 |
Which Nationality has a Name of assyrian? | CREATE TABLE "ships_attacked" (
"date" text,
"u_boat" text,
"name" text,
"nationality" text,
"tonnage_grt" real,
"fate" text
); | SELECT "nationality" FROM "ships_attacked" WHERE "name"='assyrian'; | 2-17166347-1 |
What is the time for the bike (40km) when the swim (1.5km) is 19:56? | CREATE TABLE "triathlon" (
"athlete" text,
"event" text,
"swim_1_5km" text,
"trans_1" text,
"bike_40km" text,
"trans_2" text,
"run_10km" text,
"total_time" text,
"rank" real
); | SELECT "bike_40km" FROM "triathlon" WHERE "swim_1_5km"='19:56'; | 2-17085947-32 |
With a swim (1.5km) of 18:55 and a run (10km) of 32:37, what is the trans 2? | CREATE TABLE "triathlon" (
"athlete" text,
"event" text,
"swim_1_5km" text,
"trans_1" text,
"bike_40km" text,
"trans_2" text,
"run_10km" text,
"total_time" text,
"rank" real
); | SELECT "trans_2" FROM "triathlon" WHERE "swim_1_5km"='18:55' AND "run_10km"='32:37'; | 2-17085947-32 |
Daniela Ryf who competes in the women's even had what swim (1.5km)? | CREATE TABLE "triathlon" (
"athlete" text,
"event" text,
"swim_1_5km" text,
"trans_1" text,
"bike_40km" text,
"trans_2" text,
"run_10km" text,
"total_time" text,
"rank" real
); | SELECT "swim_1_5km" FROM "triathlon" WHERE "event"='women''s' AND "athlete"='daniela ryf'; | 2-17085947-32 |
For the triathlon with a bike (40km) of 58:20 what is the total time? | CREATE TABLE "triathlon" (
"athlete" text,
"event" text,
"swim_1_5km" text,
"trans_1" text,
"bike_40km" text,
"trans_2" text,
"run_10km" text,
"total_time" text,
"rank" real
); | SELECT "total_time" FROM "triathlon" WHERE "bike_40km"='58:20'; | 2-17085947-32 |
How long did the trans 1 take when 2:00:40.20 is the total time? | CREATE TABLE "triathlon" (
"athlete" text,
"event" text,
"swim_1_5km" text,
"trans_1" text,
"bike_40km" text,
"trans_2" text,
"run_10km" text,
"total_time" text,
"rank" real
); | SELECT "trans_1" FROM "triathlon" WHERE "total_time"='2:00:40.20'; | 2-17085947-32 |
Can you tell me the Record that has the Team of minnesota? | 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 "record" FROM "game_log" WHERE "team"='minnesota'; | 2-17102076-5 |
Can you tell me the Score that has the Team of memphis? | 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 "score" FROM "game_log" WHERE "team"='memphis'; | 2-17102076-5 |
With a date of Aldershot and Aldershot as the away team what was the score of the game? | 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 "away_team"='aldershot' AND "date"='aldershot'; | 2-17440483-5 |
What was the score for the game when West Ham United was the away team? | 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 "away_team"='west ham united'; | 2-17440483-5 |
With Sheffield United as the away team and the date, what home team has a tie no of 15? | CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "home_team" FROM "fourth_round_proper" WHERE "tie_no"='15' AND "away_team"='sheffield united' AND "date"='sheffield united'; | 2-17440483-5 |
Who was the home team when Sheffield United was the away team and the date was also Sheffield United? | CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "home_team" FROM "fourth_round_proper" WHERE "away_team"='sheffield united' AND "date"='sheffield united'; | 2-17440483-5 |
What tie no has Watford as the date? | 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 "date"='watford'; | 2-17440483-5 |
Which Country has a Place of t9, and a Score of 71-71-72=214, and a Player of ernie els? | CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
); | SELECT "country" FROM "third_round" WHERE "place"='t9' AND "score"='71-71-72=214' AND "player"='ernie els'; | 2-16514480-4 |
Which Country has a To par of –13? | CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
); | SELECT "country" FROM "third_round" WHERE "to_par"='–13'; | 2-16514480-4 |
Which Player has a Score of 72-69-73=214? | CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
); | SELECT "player" FROM "third_round" WHERE "score"='72-69-73=214'; | 2-16514480-4 |
Which Score has a To par of –4, and a Player of duffy waldorf? | CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
); | SELECT "score" FROM "third_round" WHERE "to_par"='–4' AND "player"='duffy waldorf'; | 2-16514480-4 |
Which Country has a Score of 79-68-74=212? | CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
); | SELECT "country" FROM "third_round" WHERE "score"='79-68-74=212'; | 2-16514480-4 |
Which To par has a Country of united states, and a Player of duffy waldorf? | CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
); | SELECT "to_par" FROM "third_round" WHERE "country"='united states' AND "player"='duffy waldorf'; | 2-16514480-4 |
What is Opponent In Final, when Surface is Hard, when Location is Wellington, New Zealand, and when Date is 6 February 2000? | CREATE TABLE "singles_finals_10_7_3" (
"outcome" text,
"date" text,
"location" text,
"surface" text,
"opponent_in_final" text,
"score" text
); | SELECT "opponent_in_final" FROM "singles_finals_10_7_3" WHERE "surface"='hard' AND "location"='wellington, new zealand' AND "date"='6 february 2000'; | 2-16776506-2 |
What is Surface, when Date is 2 May 1999? | CREATE TABLE "singles_finals_10_7_3" (
"outcome" text,
"date" text,
"location" text,
"surface" text,
"opponent_in_final" text,
"score" text
); | SELECT "surface" FROM "singles_finals_10_7_3" WHERE "date"='2 may 1999'; | 2-16776506-2 |
What is the 2nd leg when team #1 is Rubin Kazan? | CREATE TABLE "belarusian_clubs_in_euporean_cups" (
"round" text,
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
); | SELECT "2nd_leg" FROM "belarusian_clubs_in_euporean_cups" WHERE "team_num1"='rubin kazan'; | 2-17503189-3 |
What is the agg when team #2 is 2006 UEFA Intertoto Cup? | CREATE TABLE "belarusian_clubs_in_euporean_cups" (
"round" text,
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
); | SELECT "agg" FROM "belarusian_clubs_in_euporean_cups" WHERE "team_num2"='2006 uefa intertoto cup'; | 2-17503189-3 |
What is the highest market value in billions of the company with profits of 20.96 billions and 166.99 billions in assets? | CREATE TABLE "2004_list" (
"rank" real,
"company" text,
"headquarters" text,
"industry" text,
"sales_billion" real,
"profits_billion" real,
"assets_billion" real,
"market_value_billion" real
); | SELECT MAX("market_value_billion") FROM "2004_list" WHERE "profits_billion"=20.96 AND "assets_billion">166.99; | 2-1682026-10 |
What is the total market value in billions of the company with 20.96 billion in profits and less than 166.99 billions in assets? | CREATE TABLE "2004_list" (
"rank" real,
"company" text,
"headquarters" text,
"industry" text,
"sales_billion" real,
"profits_billion" real,
"assets_billion" real,
"market_value_billion" real
); | SELECT COUNT("market_value_billion") FROM "2004_list" WHERE "profits_billion"=20.96 AND "assets_billion"<166.99; | 2-1682026-10 |
What is the average assets in billions of the company Bank of America, which has less than 49.01 billions in sales? | CREATE TABLE "2004_list" (
"rank" real,
"company" text,
"headquarters" text,
"industry" text,
"sales_billion" real,
"profits_billion" real,
"assets_billion" real,
"market_value_billion" real
); | SELECT AVG("assets_billion") FROM "2004_list" WHERE "company"='bank of america' AND "sales_billion"<49.01; | 2-1682026-10 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.