answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 484 |
|---|---|---|
SELECT T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID ORDER BY T1.Points DESC LIMIT 1 | Show the height of the mountain climbed by the climber with the maximum points. | CREATE TABLE climber (Mountain_ID VARCHAR, Points VARCHAR); CREATE TABLE mountain (Height VARCHAR, Mountain_ID VARCHAR) |
SELECT rank FROM table_name_96 WHERE bronze < 7 AND nation = "norway" | Where does Norway rank in total medals among countries with fewer than 7 bronzes? | CREATE TABLE table_name_96 (rank VARCHAR, bronze VARCHAR, nation VARCHAR) |
SELECT tournament_winner FROM table_22733636_1 WHERE regular_season_winner = "Princeton" | When Princeton was the regular season winner, who was the tournament winner? | CREATE TABLE table_22733636_1 (tournament_winner VARCHAR, regular_season_winner VARCHAR) |
SELECT womens_doubles FROM table_14496232_2 WHERE tour = "Malaysia Super Series" | Name the womens doubles when tour is malaysia super series | CREATE TABLE table_14496232_2 (womens_doubles VARCHAR, tour VARCHAR) |
SELECT SUM(other) FROM table_name_14 WHERE name = "simon gillett category:articles with hcards" AND total < 34 | What is the sum of Other, when the Name is Simon Gillett Category:Articles with hCards, and when the Total is less than 34? | CREATE TABLE table_name_14 (other INTEGER, name VARCHAR, total VARCHAR) |
SELECT COUNT(mlb_team) FROM table_18373863_2 WHERE fcsl_team = "Winter Pines" | When winter pines is the fcsl team how many mlb teams are there? | CREATE TABLE table_18373863_2 (mlb_team VARCHAR, fcsl_team VARCHAR) |
SELECT pPos FROM tryout GROUP BY pPos ORDER BY COUNT(*) DESC LIMIT 1 | Which position is most popular among players in the tryout? | CREATE TABLE tryout (pPos VARCHAR) |
SELECT name FROM table_name_87 WHERE proposed = "12/30/1982" AND county = "rockingham" AND cerclis_id = "nhd062004569" | What name was proposed on 12/30/1982 in rockingham county with a CERCLIS ID of nhd062004569? | CREATE TABLE table_name_87 (name VARCHAR, cerclis_id VARCHAR, proposed VARCHAR, county VARCHAR) |
SELECT date FROM table_name_96 WHERE record = "10–13–2" | What was the date of the game when the Lightning had a record of 10–13–2? | CREATE TABLE table_name_96 (date VARCHAR, record VARCHAR) |
SELECT dominant_religion__2002_ FROM table_2562572_37 WHERE settlement = "Srpska Crnja" | Name the dominant religion of srpska crnja | CREATE TABLE table_2562572_37 (dominant_religion__2002_ VARCHAR, settlement VARCHAR) |
SELECT premiere FROM table_11323532_2 WHERE channel = "Mega channel" | What is the premiere on the mega channel? | CREATE TABLE table_11323532_2 (premiere VARCHAR, channel VARCHAR) |
SELECT team_s_ FROM table_2626564_2 WHERE winnings = "$5,200" | What team was Pearson on when his winnings were $5,200? | CREATE TABLE table_2626564_2 (team_s_ VARCHAR, winnings VARCHAR) |
SELECT 3 AS rd_edition FROM table_name_90 WHERE episode = "4" | What is the 3rd Edition for Episode 4? | CREATE TABLE table_name_90 (episode VARCHAR) |
SELECT T1.Abbreviation, T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY COUNT(*) LIMIT 1 | Find the abbreviation and country of the airline that has fewest number of flights? | CREATE TABLE FLIGHTS (Airline VARCHAR); CREATE TABLE AIRLINES (Abbreviation VARCHAR, Country VARCHAR, Airline VARCHAR, uid VARCHAR) |
SELECT date FROM table_name_84 WHERE score = "l 111–122 (ot)" | When was the score l 111–122 (ot)? | CREATE TABLE table_name_84 (date VARCHAR, score VARCHAR) |
SELECT COUNT(*) FROM College | How many colleges in total? | CREATE TABLE College (Id VARCHAR) |
SELECT LOCATION FROM performance GROUP BY LOCATION ORDER BY COUNT(*) DESC LIMIT 1 | Show the most common location of performances. | CREATE TABLE performance (LOCATION VARCHAR) |
SELECT successor FROM table_2159537_3 WHERE district = "New York 11th" | Who was the successor in New York 11th district? | CREATE TABLE table_2159537_3 (successor VARCHAR, district VARCHAR) |
SELECT seat_no_4 FROM table_2231241_1 WHERE election = "January 25, 1967" | Who was the winner of seat no 4 for the election on January 25, 1967 | CREATE TABLE table_2231241_1 (seat_no_4 VARCHAR, election VARCHAR) |
SELECT vmax FROM table_name_60 WHERE cylinder = "straight-4" AND capacity = "1.466 cc" AND type = "r 150" | What was the maximum speed for straight-4, 1.466 cc Type r 150? | CREATE TABLE table_name_60 (vmax VARCHAR, type VARCHAR, cylinder VARCHAR, capacity VARCHAR) |
SELECT winner FROM table_name_11 WHERE tournament = "hamburg" | Who was the winner at the tournament in Hamburg? | CREATE TABLE table_name_11 (winner VARCHAR, tournament VARCHAR) |
SELECT position FROM table_name_70 WHERE round > 14 AND overall < 419 | Which Position has a Round larger than 14, and an Overall smaller than 419? | CREATE TABLE table_name_70 (position VARCHAR, round VARCHAR, overall VARCHAR) |
SELECT laps FROM table_name_73 WHERE driver = "eddie irvine" | How many laps did Eddie Irvine have? | CREATE TABLE table_name_73 (laps VARCHAR, driver VARCHAR) |
SELECT MAX(2005) FROM table_name_36 WHERE 2007 < 42 AND tv_station__operator_ = "tv3" AND 2010 < 29.5 | What's the 2005 of TV3 when there is less than 42 in 2007 and less than 29.5 in 2010? | CREATE TABLE table_name_36 (tv_station__operator_ VARCHAR) |
SELECT COUNT(5 AS wi) FROM table_28846752_5 WHERE average = "33.13" | how many 5wi with an average of 33.13? | CREATE TABLE table_28846752_5 (average VARCHAR) |
SELECT score FROM table_name_22 WHERE venue = "riyadh, saudi arabia" AND result = "win" | What is Score, when Venue is Riyadh, Saudi Arabia, and when Result is "Win"? | CREATE TABLE table_name_22 (score VARCHAR, venue VARCHAR, result VARCHAR) |
SELECT MIN(decile) FROM table_name_71 WHERE authority = "state" AND name = "midhirst school" | What is the lowest decile with a state authority and Midhirst school? | CREATE TABLE table_name_71 (decile INTEGER, authority VARCHAR, name VARCHAR) |
SELECT 1 AS st_leg FROM table_name_53 WHERE team_1 = "aalborg bk" | When Team 1 is Aalborg BK, what is the 1st Leg? | CREATE TABLE table_name_53 (team_1 VARCHAR) |
SELECT score FROM table_name_82 WHERE date = "6 june 2010" | what was the score on 6 june 2010? | CREATE TABLE table_name_82 (score VARCHAR, date VARCHAR) |
SELECT MAX(track__number) FROM table_10848177_1 | What is the highest track number? | CREATE TABLE table_10848177_1 (track__number INTEGER) |
SELECT surface FROM table_name_93 WHERE date = "january 8, 2001" | Name the surface for january 8, 2001 | CREATE TABLE table_name_93 (surface VARCHAR, date VARCHAR) |
SELECT engine FROM table_name_59 WHERE entrant = "larrousse f1" | Name the engine with entrant of larrousse f1 | CREATE TABLE table_name_59 (engine VARCHAR, entrant VARCHAR) |
SELECT COUNT(wins) FROM table_2216245_2 WHERE winnings = "$95,180" | How many wins did he have when he had $95,180 in winnings? | CREATE TABLE table_2216245_2 (wins VARCHAR, winnings VARCHAR) |
SELECT away FROM table_name_14 WHERE home = "marathon" | What is Away, when Home is "marathon"? | CREATE TABLE table_name_14 (away VARCHAR, home VARCHAR) |
SELECT host_country___countries FROM table_name_3 WHERE year = "2007" | Who was the host country in 2007? | CREATE TABLE table_name_3 (host_country___countries VARCHAR, year VARCHAR) |
SELECT COUNT(height__cm_) FROM table_name_52 WHERE birthplace = "new canaan, connecticut" | Which Height (cm) has a Birthplace of new canaan, connecticut? | CREATE TABLE table_name_52 (height__cm_ VARCHAR, birthplace VARCHAR) |
SELECT settlement FROM table_2562572_30 WHERE cyrillic_name_other_names = "Сигет" | Which settlement has the cyrillic name сигет? | CREATE TABLE table_2562572_30 (settlement VARCHAR, cyrillic_name_other_names VARCHAR) |
SELECT COUNT(year) FROM table_12275654_1 WHERE mens_singles = "Niels Christian Kaldau" AND womens_singles = "Pi Hongyan" | How many times did Niels Christian Kaldau win the men's single and Pi Hongyan win the women's single in the same year? | CREATE TABLE table_12275654_1 (year VARCHAR, mens_singles VARCHAR, womens_singles VARCHAR) |
SELECT COUNT(patient_portrayer) FROM table_26561508_1 WHERE directed_by = "Craig Zisk" AND written_by = "Brad Falchuk" | What is the total number of patient portayers for the episode directed by Craig Zisk and written by Brad Falchuk? | CREATE TABLE table_26561508_1 (patient_portrayer VARCHAR, directed_by VARCHAR, written_by VARCHAR) |
SELECT player FROM table_name_8 WHERE score = 68 - 69 - 73 = 210 | Which player has a score of 68-69-73=210 | CREATE TABLE table_name_8 (player VARCHAR, score VARCHAR) |
SELECT hometown FROM table_11677691_6 WHERE school = "Norco High school" | Where is Norco HIgh School? | CREATE TABLE table_11677691_6 (hometown VARCHAR, school VARCHAR) |
SELECT frequency_mhz FROM table_name_4 WHERE call_sign = "kamy" | Frequency for kamy? | CREATE TABLE table_name_4 (frequency_mhz VARCHAR, call_sign VARCHAR) |
SELECT COUNT(printing_process) FROM table_25468520_1 WHERE theme = "Rotary International : 100 Years in Canada" | How many time is the theme rotary international : 100 years in canada? | CREATE TABLE table_25468520_1 (printing_process VARCHAR, theme VARCHAR) |
SELECT SUM(bronze) FROM table_name_97 WHERE silver < 3 AND rank < 31 AND gold = 5 | How many bronze medals did the nation have that had less than 3 silver, 5 gold and ranked better than 31? | CREATE TABLE table_name_97 (bronze INTEGER, gold VARCHAR, silver VARCHAR, rank VARCHAR) |
SELECT MIN(selection) FROM table_name_39 WHERE player = "ron barnett" | Name the least selection for ron barnett | CREATE TABLE table_name_39 (selection INTEGER, player VARCHAR) |
SELECT MIN(water__sqmi_) FROM table_name_47 WHERE county = "dickey" AND longitude < -98.444062 | What was the lowest water(sqmi) in the county of dickey where the longitude was smaller than -98.444062? | CREATE TABLE table_name_47 (water__sqmi_ INTEGER, county VARCHAR, longitude VARCHAR) |
SELECT position FROM table_name_7 WHERE pick = "146" | Tell me the position for pick of 146 | CREATE TABLE table_name_7 (position VARCHAR, pick VARCHAR) |
SELECT round FROM table_name_58 WHERE player = "craig erickson" | What round was Craig Erickson drafted? | CREATE TABLE table_name_58 (round VARCHAR, player VARCHAR) |
SELECT country FROM table_name_52 WHERE place = "t3" AND score = 70 - 65 = 135 | What country placed t3 with a score of 70-65=135? | CREATE TABLE table_name_52 (country VARCHAR, place VARCHAR, score VARCHAR) |
SELECT home FROM table_name_76 WHERE score = "52-54" | Who has the Home Score of 52-54? | CREATE TABLE table_name_76 (home VARCHAR, score VARCHAR) |
SELECT 1935 FROM table_name_6 WHERE 1953 = "4" | What 1935 has 4 as a 1953? | CREATE TABLE table_name_6 (Id VARCHAR) |
SELECT SUM(total) FROM table_name_89 WHERE nation = "brazil" AND bronze < 2 | How many totals have brazil as the nation, and a bronze less than 2? | CREATE TABLE table_name_89 (total INTEGER, nation VARCHAR, bronze VARCHAR) |
SELECT hessen FROM table_name_23 WHERE saar = "fk pirmasens" | Who was the Hessen the year that Saar was FK Pirmasens? | CREATE TABLE table_name_23 (hessen VARCHAR, saar VARCHAR) |
SELECT chief_judge FROM table_name_35 WHERE reason_for_termination = "retirement" | Tell me the chief judge which has reason for termination of retirement | CREATE TABLE table_name_35 (chief_judge VARCHAR, reason_for_termination VARCHAR) |
SELECT rank FROM table_name_11 WHERE total = "3 (20)" | What is the rank for the total that has 3 (20)? | CREATE TABLE table_name_11 (rank VARCHAR, total VARCHAR) |
SELECT away_team FROM table_name_63 WHERE home_team = "north melbourne" | Who was the away team at the home game of north melbourne? | CREATE TABLE table_name_63 (away_team VARCHAR, home_team VARCHAR) |
SELECT order__number FROM table_15796072_1 WHERE original_artist = "The Doors" | What was the order number where the original artist is The Doors? | CREATE TABLE table_15796072_1 (order__number VARCHAR, original_artist VARCHAR) |
SELECT time FROM table_name_98 WHERE event = "ifl: championship final" | What's the time of IFL: Championship Final? | CREATE TABLE table_name_98 (time VARCHAR, event VARCHAR) |
SELECT district FROM table_1341663_19 WHERE incumbent = "Dave Treen" | What district did Dave Treen serve? | CREATE TABLE table_1341663_19 (district VARCHAR, incumbent VARCHAR) |
SELECT year FROM table_name_36 WHERE championship = "peter jackson classic" | Which year was the peter jackson classic? | CREATE TABLE table_name_36 (year VARCHAR, championship VARCHAR) |
SELECT date_of_vacancy FROM table_24172157_3 WHERE table = "Pre-season" AND team = "Liverpool" | What is the date of vacancy for the Liverpool team with a table named pre-season? | CREATE TABLE table_24172157_3 (date_of_vacancy VARCHAR, table VARCHAR, team VARCHAR) |
SELECT athlete FROM table_name_12 WHERE nation = "nigeria" | What is Athlete, when Nation is "Nigeria"? | CREATE TABLE table_name_12 (athlete VARCHAR, nation VARCHAR) |
SELECT allied_forces FROM table_1160161_12 WHERE target = "Woensdrecht" | Which Allied Force targetted Woensdrecht? | CREATE TABLE table_1160161_12 (allied_forces VARCHAR, target VARCHAR) |
SELECT candidates FROM table_2668336_24 WHERE district = "Virginia 12" | Who are the candidates for district virginia 12? | CREATE TABLE table_2668336_24 (candidates VARCHAR, district VARCHAR) |
SELECT COUNT(accreditation) FROM table_2076522_2 WHERE founded = 2006 | How many schools founded in 2006? | CREATE TABLE table_2076522_2 (accreditation VARCHAR, founded VARCHAR) |
SELECT result FROM table_14966537_1 WHERE opponent = "Chicago Bears" | What is the result of the game against the Chicago Bears? | CREATE TABLE table_14966537_1 (result VARCHAR, opponent VARCHAR) |
SELECT authority FROM table_name_22 WHERE roll = 54 | Name the authority for roll of 54 | CREATE TABLE table_name_22 (authority VARCHAR, roll VARCHAR) |
SELECT MIN(total) FROM table_name_44 WHERE games < 6 AND gold > 0 | What is the fewest number of medals associated with under 6 games and over 0 golds? | CREATE TABLE table_name_44 (total INTEGER, games VARCHAR, gold VARCHAR) |
SELECT text_background_colour FROM table_1000181_1 WHERE state_territory = "Australian Capital Territory" | Name the background colour for the Australian Capital Territory | CREATE TABLE table_1000181_1 (text_background_colour VARCHAR, state_territory VARCHAR) |
SELECT song_sung FROM table_name_17 WHERE artist = "luther vandross" AND week = "top 20" | Which song was sung by Artist Luther Vandross in the Week Top 20? | CREATE TABLE table_name_17 (song_sung VARCHAR, artist VARCHAR, week VARCHAR) |
SELECT date_sent FROM table_name_29 WHERE constellation = "cancer" | What date sent has cancer as the constellation? | CREATE TABLE table_name_29 (date_sent VARCHAR, constellation VARCHAR) |
SELECT MAX(attendance) FROM table_name_47 WHERE opponent = "at kansas city chiefs" | What is the highest number in attendance against the game at Kansas City Chiefs? | CREATE TABLE table_name_47 (attendance INTEGER, opponent VARCHAR) |
SELECT MAX(Cows), MIN(Cows) FROM farm | What are the maximum and minimum number of cows across all farms. | CREATE TABLE farm (Cows INTEGER) |
SELECT away_team FROM table_name_65 WHERE venue = "victoria park" | Who was the away team at the game at Victoria Park? | CREATE TABLE table_name_65 (away_team VARCHAR, venue VARCHAR) |
SELECT quantity_made FROM table_name_78 WHERE wheel_arrangement = "2-6-0" AND class = "k" | what is the quantity made when the wheel arrangement is 2-6-0 and the class is k? | CREATE TABLE table_name_78 (quantity_made VARCHAR, wheel_arrangement VARCHAR, class VARCHAR) |
SELECT name FROM table_name_91 WHERE year = "1988" | Which event happened in 1988? | CREATE TABLE table_name_91 (name VARCHAR, year VARCHAR) |
SELECT DISTINCT t3.name FROM country AS t1 JOIN countrylanguage AS t2 ON t1.code = t2.countrycode JOIN city AS t3 ON t1.code = t3.countrycode WHERE t2.isofficial = 't' AND t2.language = 'chinese' AND t1.continent = "asia" | Which unique cities are in Asian countries where Chinese is the official language ? | CREATE TABLE city (name VARCHAR, countrycode VARCHAR); CREATE TABLE countrylanguage (countrycode VARCHAR, isofficial VARCHAR, language VARCHAR); CREATE TABLE country (code VARCHAR, continent VARCHAR) |
SELECT province FROM table_name_6 WHERE rank > 49 | Name the province with rank more than 49 | CREATE TABLE table_name_6 (province VARCHAR, rank INTEGER) |
SELECT score FROM table_name_64 WHERE home = "kings" | Home of kings had what score? | CREATE TABLE table_name_64 (score VARCHAR, home VARCHAR) |
SELECT internet_explorer FROM table_name_66 WHERE mobile = "2.1%" | What percentage of users were using Internet Explorer during the period in which 2.1% were using mobile browsers? | CREATE TABLE table_name_66 (internet_explorer VARCHAR, mobile VARCHAR) |
SELECT gdp__billion_us$_ FROM table_1307842_6 WHERE gdp_per_capita__us$_ = 18048 | What was the gdp of the country with a gdp per capita of $18048? | CREATE TABLE table_1307842_6 (gdp__billion_us$_ VARCHAR, gdp_per_capita__us$_ VARCHAR) |
SELECT MIN(points) FROM table_name_23 WHERE league = "w-2 (w-league)" AND draws > 2 | What is the lowest points that has w-2 (w-league) as the league, and draws greater than 2? | CREATE TABLE table_name_23 (points INTEGER, league VARCHAR, draws VARCHAR) |
SELECT AVG(lane) FROM table_name_88 WHERE name = "rebecca brown" | What is the average lane that is called rebecca brown? | CREATE TABLE table_name_88 (lane INTEGER, name VARCHAR) |
SELECT score FROM table_name_93 WHERE player = "sandy lyle" | What is the score for Sandy Lyle? | CREATE TABLE table_name_93 (score VARCHAR, player VARCHAR) |
SELECT location FROM table_1973816_2 WHERE institution = "Southern Vermont College" | Where is Southern Vermont College located? | CREATE TABLE table_1973816_2 (location VARCHAR, institution VARCHAR) |
SELECT venue FROM table_name_73 WHERE result = "12th" | What was the venue where the result was 12th? | CREATE TABLE table_name_73 (venue VARCHAR, result VARCHAR) |
SELECT MIN(attendance) FROM table_name_75 WHERE week = 14 | What week 14 has the lowest attendance? | CREATE TABLE table_name_75 (attendance INTEGER, week VARCHAR) |
SELECT score FROM table_name_12 WHERE result = "hunter mariners def. castleford tigers" | What was the score for the match that had the result of Hunter Mariners def. Castleford Tigers? | CREATE TABLE table_name_12 (score VARCHAR, result VARCHAR) |
SELECT party FROM table_1341577_14 WHERE incumbent = "Cardiss Collins" | To what party does Cardiss Collins belong? | CREATE TABLE table_1341577_14 (party VARCHAR, incumbent VARCHAR) |
SELECT SUM(draw) FROM table_name_15 WHERE points = 0 AND lost < 14 | What is the total for the draw with 0 points, and less than 14 lost? | CREATE TABLE table_name_15 (draw INTEGER, points VARCHAR, lost VARCHAR) |
SELECT week_15__final__dec_3 FROM table_name_69 WHERE week_12_nov_13 = "washington (9-1)" | What was Week 15 when Week 12 was Washington (9-1)? | CREATE TABLE table_name_69 (week_15__final__dec_3 VARCHAR, week_12_nov_13 VARCHAR) |
SELECT id, market_share FROM browser WHERE name = 'Safari' | What is the id and market share of the browser Safari? | CREATE TABLE browser (id VARCHAR, market_share VARCHAR, name VARCHAR) |
SELECT original_airdate FROM table_2501754_2 WHERE prod_code = "IPEA345A" | What are the original air date(s) for episodes with production code ipea345a? | CREATE TABLE table_2501754_2 (original_airdate VARCHAR, prod_code VARCHAR) |
SELECT power FROM table_name_47 WHERE fuel_system = "fuel injection" AND displacement = "1991cc" | How much power does the fuel injection system have with a displacement of 1991cc? | CREATE TABLE table_name_47 (power VARCHAR, fuel_system VARCHAR, displacement VARCHAR) |
SELECT to_par FROM table_name_45 WHERE year_s__won = "1936" | What is the To par of the Player who won in 1936? | CREATE TABLE table_name_45 (to_par VARCHAR, year_s__won VARCHAR) |
SELECT difference FROM table_name_66 WHERE points > 10 AND drawn < 2 | What difference has a points greater than 10, and a drawn less than 2? | CREATE TABLE table_name_66 (difference VARCHAR, points VARCHAR, drawn VARCHAR) |
SELECT SUM(rebounds) FROM table_name_56 WHERE team = "aris thessaloniki" AND games > 14 | What is the sum of Rebounds, when Team is Aris Thessaloniki, and when Games is greater than 14? | CREATE TABLE table_name_56 (rebounds INTEGER, team VARCHAR, games VARCHAR) |
SELECT driver FROM table_name_10 WHERE tyre = "p" AND entrant = "officine alfieri maserati" | Who is the driver when the tyre is p and the entrant is officine alfieri maserati? | CREATE TABLE table_name_10 (driver VARCHAR, tyre VARCHAR, entrant VARCHAR) |
SELECT centerfold_model FROM table_name_47 WHERE pictorials = "adrianne curry, girls of tuscany" | Who's the Centerfold model with a Pictorials of adrianne curry, girls of tuscany? | CREATE TABLE table_name_47 (centerfold_model VARCHAR, pictorials VARCHAR) |
SELECT state_name FROM table_287659_2 WHERE regional_page__number = "1, 5-7, 9-11, 13-15" | What states have a regional page # of 1, 5-7, 9-11, 13-15? | CREATE TABLE table_287659_2 (state_name VARCHAR, regional_page__number VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.