answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT SUM(rank) FROM table_name_37 WHERE state = "alaska" AND mountain_peak = "mount chamberlin"
Where does Mount Chamberlin, located in Alaska, rank on the chart?
CREATE TABLE table_name_37 (rank INTEGER, state VARCHAR, mountain_peak VARCHAR)
SELECT venue FROM table_name_31 WHERE against < 7
Which Venue has a Against smaller than 7?
CREATE TABLE table_name_31 (venue VARCHAR, against INTEGER)
SELECT owner_s_ FROM table_name_30 WHERE date = 1953 AND description = "mark 1 ck"
Which owner has a description of Mark 1 CK and is dated 1953?
CREATE TABLE table_name_30 (owner_s_ VARCHAR, date VARCHAR, description VARCHAR)
SELECT position FROM table_name_77 WHERE current_club = "alba berlin" AND height > 1.96 AND year_born__age_ = "july 23, 1985 (age28)"
What is the position for the player from the Alba Berlin club who is taller than 1.96 and whose ear born (Age) is july 23, 1985 (age28)?
CREATE TABLE table_name_77 (position VARCHAR, year_born__age_ VARCHAR, current_club VARCHAR, height VARCHAR)
SELECT AVG(attendance) FROM table_name_46 WHERE opponent = "@ philadelphia flyers" AND game < 42
What is the average Attendance, when Opponent is @ Philadelphia Flyers, and when Game is less than 42?
CREATE TABLE table_name_46 (attendance INTEGER, opponent VARCHAR, game VARCHAR)
SELECT SUM(division_titles) FROM table_name_87 WHERE playoff_appearances = 23 AND conference_titles > 1
How many division titles does the team with 23 playoff appearances and more than 1 conference titles have?
CREATE TABLE table_name_87 (division_titles INTEGER, playoff_appearances VARCHAR, conference_titles VARCHAR)
SELECT place FROM table_name_22 WHERE hole > 9 AND country = "australia"
What place is in Australia with 9 or more holes?
CREATE TABLE table_name_22 (place VARCHAR, hole VARCHAR, country VARCHAR)
SELECT res FROM table_name_81 WHERE type = "ko" AND opponent = "cliff beckett"
What was the resolution for KO opposing Cliff Beckett?
CREATE TABLE table_name_81 (res VARCHAR, type VARCHAR, opponent VARCHAR)
SELECT no FROM table_15621965_18 WHERE position = "Guard" AND school_club_team = "Oklahoma State"
WHAT WAS THE JERSEY NUMBER OF THE ROSTER PLAYER FROM OKLAHOMA STATE WHO PLAYED GUARD?
CREATE TABLE table_15621965_18 (no VARCHAR, position VARCHAR, school_club_team VARCHAR)
SELECT method FROM table_name_78 WHERE round < 3 AND record = "4-2"
What's the method for a record of 4-2 and round smaller than 3?
CREATE TABLE table_name_78 (method VARCHAR, round VARCHAR, record VARCHAR)
SELECT MIN(points) FROM table_13789248_2 WHERE highest_position = 1
what is the minimum points with highest position being 1
CREATE TABLE table_13789248_2 (points INTEGER, highest_position VARCHAR)
SELECT race FROM table_name_66 WHERE position = "3rd" AND speed = "126.452"
Which race has a position of 3rd and a speed of 126.452?
CREATE TABLE table_name_66 (race VARCHAR, position VARCHAR, speed VARCHAR)
SELECT MAX(points) FROM table_name_74 WHERE lost = 2 AND games > 7
Name the most points with lost of 2 and games more than 7
CREATE TABLE table_name_74 (points INTEGER, lost VARCHAR, games VARCHAR)
SELECT 2011 FROM table_name_39 WHERE tournament = "year-end ranking"
What is 2011, when Tournament is "Year-End Ranking"?
CREATE TABLE table_name_39 (tournament VARCHAR)
SELECT first_issue FROM table_name_85 WHERE title = "soul eater"
What is the First Issue date of Soul Eater?
CREATE TABLE table_name_85 (first_issue VARCHAR, title VARCHAR)
SELECT MIN(no_in_series) FROM table_2618142_1
the first episode in this season had what number in the series?
CREATE TABLE table_2618142_1 (no_in_series INTEGER)
SELECT date FROM table_name_72 WHERE crowd < 4 OFFSET 485
Which Date has a Crowd smaller than 4,485?
CREATE TABLE table_name_72 (date VARCHAR, crowd INTEGER)
SELECT date FROM table_name_18 WHERE runner_s__up = "jonathan kaye"
What is Date, when Runner(s)-Up is Jonathan Kaye?
CREATE TABLE table_name_18 (date VARCHAR, runner_s__up VARCHAR)
SELECT MIN(position) FROM table_name_6 WHERE pilot = "bruce taylor"
What is the lowest position for bruce taylor?
CREATE TABLE table_name_6 (position INTEGER, pilot VARCHAR)
SELECT dates_administered FROM table_name_87 WHERE lead_margin < 5.5 AND poll_source = "survey usa"
What was the date of the poll from Survey USA that showed a lead margin smaller than 5.5?
CREATE TABLE table_name_87 (dates_administered VARCHAR, lead_margin VARCHAR, poll_source VARCHAR)
SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID ORDER BY COUNT(*) DESC LIMIT 1
Show the name of the conductor that has conducted the most number of orchestras.
CREATE TABLE orchestra (Conductor_ID VARCHAR); CREATE TABLE conductor (Name VARCHAR, Conductor_ID VARCHAR)
SELECT architect FROM table_name_68 WHERE height_[m] = 42 AND floors = 10
Who was the architect of the 10 floor building with a height of 42 M?
CREATE TABLE table_name_68 (architect VARCHAR, floors VARCHAR, height_ VARCHAR, m VARCHAR)
SELECT event FROM table_name_16 WHERE acts = "106 bands"
I want to know the events for 106 bands
CREATE TABLE table_name_16 (event VARCHAR, acts VARCHAR)
SELECT name FROM table_name_39 WHERE decile = "7" AND area = "upper hutt"
What school with a decile of 7 is in upper hutt?
CREATE TABLE table_name_39 (name VARCHAR, decile VARCHAR, area VARCHAR)
SELECT venue FROM table_name_29 WHERE competition = "2000 tiger cup" AND date = "november 10, 2000"
What venue did the 2000 tiger cup take place at on November 10, 2000?
CREATE TABLE table_name_29 (venue VARCHAR, competition VARCHAR, date VARCHAR)
SELECT AVG(rank) FROM table_name_6 WHERE 2012 = 219 OFFSET 721
What is the average rank of a nation that had 219,721 in 2012?
CREATE TABLE table_name_6 (rank INTEGER)
SELECT szdsz FROM table_name_8 WHERE mszp = "25%" AND date = "25/2/2009"
What is the SZDSZ percentage with an MSZP of 25% on 25/2/2009?
CREATE TABLE table_name_8 (szdsz VARCHAR, mszp VARCHAR, date VARCHAR)
SELECT school FROM table_name_23 WHERE hometown = "raleigh, nc"
Which school is in Raleigh, NC?
CREATE TABLE table_name_23 (school VARCHAR, hometown VARCHAR)
SELECT site FROM table_name_67 WHERE date = "september 13"
What is SIte, when Date is "September 13"?
CREATE TABLE table_name_67 (site VARCHAR, date VARCHAR)
SELECT COUNT(time) FROM table_name_32 WHERE name = "lisbeth trickett"
What is Lisbeth Trickett's time?
CREATE TABLE table_name_32 (time VARCHAR, name VARCHAR)
SELECT country FROM table_name_16 WHERE place = "t4" AND score = 67 - 71 - 73 = 211
What country has t4 place and a 67-71-73=211 score?
CREATE TABLE table_name_16 (country VARCHAR, place VARCHAR, score VARCHAR)
SELECT score FROM table_name_38 WHERE to_par > 7 AND place = "t4" AND player = "bob rosburg"
What is Score, when To Par is greater than 7, when Place is "T4", and when Player is "Bob Rosburg"?
CREATE TABLE table_name_38 (score VARCHAR, player VARCHAR, to_par VARCHAR, place VARCHAR)
SELECT city FROM table_25200461_9 WHERE democratic = "42.5%"
If Democratic is 42.5%, what is the city?
CREATE TABLE table_25200461_9 (city VARCHAR, democratic VARCHAR)
SELECT icao FROM table_name_34 WHERE province = "heilongjiang" AND iata = "jmu"
Which ICAO has a Province of heilongjiang, and a IATA of jmu?
CREATE TABLE table_name_34 (icao VARCHAR, province VARCHAR, iata VARCHAR)
SELECT population_2011_census FROM table_140297_1 WHERE local_government_area = "Sorell"
How many people live in the area of Sorell according to the Census of 2011?
CREATE TABLE table_140297_1 (population_2011_census VARCHAR, local_government_area VARCHAR)
SELECT T1.Service_Type_Description, T1.Service_Type_Code FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code GROUP BY T1.Service_Type_Code ORDER BY COUNT(*) DESC LIMIT 1
What is the description and code of the type of service that is performed the most often?
CREATE TABLE Services (Service_Type_Code VARCHAR); CREATE TABLE Ref_Service_Types (Service_Type_Description VARCHAR, Service_Type_Code VARCHAR)
SELECT visiting_team FROM table_name_34 WHERE stadium = "lincoln financial field" AND final_score = "24-14"
Who was the visiting team at Lincoln Financial Field when the final score was 24-14?
CREATE TABLE table_name_34 (visiting_team VARCHAR, stadium VARCHAR, final_score VARCHAR)
SELECT attendance FROM table_name_86 WHERE record = "43-28"
What is the attendance that has a record of 43-28?
CREATE TABLE table_name_86 (attendance VARCHAR, record VARCHAR)
SELECT COUNT(lost) FROM table_13015539_1 WHERE club = "Keighley Cougars"
How many numbers are given for losses by the Keighley Cougars?
CREATE TABLE table_13015539_1 (lost VARCHAR, club VARCHAR)
SELECT nation FROM table_name_91 WHERE sail = "usa-18"
Which Nation has the USA-18 sail?
CREATE TABLE table_name_91 (nation VARCHAR, sail VARCHAR)
SELECT COUNT(year) FROM table_name_97 WHERE chassis = "lotus 18"
What is the year of the Lotus 18 chassis?
CREATE TABLE table_name_97 (year VARCHAR, chassis VARCHAR)
SELECT 2008 FROM table_name_38 WHERE 2011 = "2r" AND 2010 = "a"
What is the 2008 of the 2r 2011 and A 2010?
CREATE TABLE table_name_38 (Id VARCHAR)
SELECT T1.first_name, T1.last_name, T1.other_details, T3.skill_description FROM Maintenance_Engineers AS T1 JOIN Engineer_Skills AS T2 ON T1.engineer_id = T2.engineer_id JOIN Skills AS T3 ON T2.skill_id = T3.skill_id
List all every engineer's first name, last name, details and coresponding skill description.
CREATE TABLE Maintenance_Engineers (first_name VARCHAR, last_name VARCHAR, other_details VARCHAR, engineer_id VARCHAR); CREATE TABLE Engineer_Skills (engineer_id VARCHAR, skill_id VARCHAR); CREATE TABLE Skills (skill_description VARCHAR, skill_id VARCHAR)
SELECT 2009 FROM table_name_38 WHERE 2012 = "year-end championship"
What is the 2009 when 2012 is Year-End Championship?
CREATE TABLE table_name_38 (Id VARCHAR)
SELECT location_denotes_location_of_school_by_seattle_neighborhood, _does_not_necessary_correspond_with_attendance_area FROM table_17641314_3 WHERE school = "Eckstein"
Name the location for school eckstein
CREATE TABLE table_17641314_3 (location_denotes_location_of_school_by_seattle_neighborhood VARCHAR, _does_not_necessary_correspond_with_attendance_area VARCHAR, school VARCHAR)
SELECT opponent FROM table_name_39 WHERE date = "november 24, 1996"
Tell me the opponent for november 24, 1996
CREATE TABLE table_name_39 (opponent VARCHAR, date VARCHAR)
SELECT title FROM table_name_94 WHERE termination_of_mission = "current"
Which Title has a Termination of Mission of current?
CREATE TABLE table_name_94 (title VARCHAR, termination_of_mission VARCHAR)
SELECT away_team AS score FROM table_name_6 WHERE home_team = "fitzroy"
What is the away team score when Home team is fitzroy?
CREATE TABLE table_name_6 (away_team VARCHAR, home_team VARCHAR)
SELECT COUNT(format) FROM table_11222744_2 WHERE title = "Beginning Callanetics"
where title is beginning callanetics , what is the total of format ?
CREATE TABLE table_11222744_2 (format VARCHAR, title VARCHAR)
SELECT score FROM table_name_27 WHERE away_team = "aldershot" AND date = "aldershot"
With a date of Aldershot and Aldershot as the away team what was the score of the game?
CREATE TABLE table_name_27 (score VARCHAR, away_team VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_25 WHERE week = "15"
What is the attendance in week 15?
CREATE TABLE table_name_25 (attendance VARCHAR, week VARCHAR)
SELECT date_of_birth FROM table_name_51 WHERE player = "avishka gunawardene"
When was avishka gunawardene born?
CREATE TABLE table_name_51 (date_of_birth VARCHAR, player VARCHAR)
SELECT player FROM table_11677691_7 WHERE college = "Utah"
Which player is from Utah?
CREATE TABLE table_11677691_7 (player VARCHAR, college VARCHAR)
SELECT date FROM table_name_93 WHERE label = "nebula" AND catalog = "nebdjx029"
What is the date for the Nebula Label, and a nebdjx029 catalog?
CREATE TABLE table_name_93 (date VARCHAR, label VARCHAR, catalog VARCHAR)
SELECT ahli FROM table_26173063_2 WHERE ramtha = "0-4"
what is ahli when ramtha is 0-4?
CREATE TABLE table_26173063_2 (ahli VARCHAR, ramtha VARCHAR)
SELECT MAX(ngc_number) FROM table_name_1 WHERE constellation = "ursa major"
Which NGC number has a Constellation of ursa major?
CREATE TABLE table_name_1 (ngc_number INTEGER, constellation VARCHAR)
SELECT SUM(win_percentage) FROM table_name_55 WHERE name = "red kelly"
Which Win percentage has a Name of red kelly?
CREATE TABLE table_name_55 (win_percentage INTEGER, name VARCHAR)
SELECT opponent FROM table_name_76 WHERE save = "||33,723||93–64"
Who was the opponent in the game with save ||33,723||93–64?
CREATE TABLE table_name_76 (opponent VARCHAR, save VARCHAR)
SELECT nhl_team FROM table_name_72 WHERE pick__number = "32"
What is the NHL team that had pick number 32?
CREATE TABLE table_name_72 (nhl_team VARCHAR, pick__number VARCHAR)
SELECT COUNT(primary_conference) FROM table_27361255_1 WHERE location = "Allendale, Michigan"
How many primary conferences were held in Allendale, Michigan?
CREATE TABLE table_27361255_1 (primary_conference VARCHAR, location VARCHAR)
SELECT fastest_lap FROM table_name_16 WHERE grand_prix = "belgian grand prix"
What is the fastest lap for Belgian Grand Prix?
CREATE TABLE table_name_16 (fastest_lap VARCHAR, grand_prix VARCHAR)
SELECT record FROM table_name_58 WHERE visitor = "quebec nordiques" AND score = "4–5"
Which Record has a Visitor of quebec nordiques with a Score of 4–5?
CREATE TABLE table_name_58 (record VARCHAR, visitor VARCHAR, score VARCHAR)
SELECT director FROM table_name_55 WHERE year < 1948 AND leading_lady = "linda darnell" AND title = "blood and sand"
Who directs before 1948 with linda darnell, titled blood and sand?
CREATE TABLE table_name_55 (director VARCHAR, title VARCHAR, year VARCHAR, leading_lady VARCHAR)
SELECT attendance FROM table_name_7 WHERE week = 1
What was the Attendance in Week 1?
CREATE TABLE table_name_7 (attendance VARCHAR, week VARCHAR)
SELECT SUM(december) FROM table_name_64 WHERE record = "6-3-1"
What day in December was the game that resulted in a record of 6-3-1?
CREATE TABLE table_name_64 (december INTEGER, record VARCHAR)
SELECT pick__number FROM table_name_92 WHERE nhl_team = "california golden seals"
What is the pick# for the California Golden Seals?
CREATE TABLE table_name_92 (pick__number VARCHAR, nhl_team VARCHAR)
SELECT MIN(area__km²_) FROM table_23887174_1 WHERE armenian_name = "Փայտակարան"
How big is the province with the Armenian name of փայտակարան?
CREATE TABLE table_23887174_1 (area__km²_ INTEGER, armenian_name VARCHAR)
SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Cylinders = 4 ORDER BY T2.horsepower DESC LIMIT 1
For the cars with 4 cylinders, which model has the largest horsepower?
CREATE TABLE CAR_NAMES (Model VARCHAR, MakeId VARCHAR); CREATE TABLE CARS_DATA (Id VARCHAR, Cylinders VARCHAR, horsepower VARCHAR)
SELECT artist FROM table_name_40 WHERE year < 2010
Which artist created coins before 2010?
CREATE TABLE table_name_40 (artist VARCHAR, year INTEGER)
SELECT MAX(wins) FROM table_name_74 WHERE cuts_made < 6 AND events = 4 AND top_5 < 0
What are the highest wins with cuts smaller than 6, events of 4 and a top-5 smaller than 0?
CREATE TABLE table_name_74 (wins INTEGER, top_5 VARCHAR, cuts_made VARCHAR, events VARCHAR)
SELECT report FROM table_name_98 WHERE location = "buenos aires"
What was the report in Buenos Aires?
CREATE TABLE table_name_98 (report VARCHAR, location VARCHAR)
SELECT network_protocols FROM table_1300080_1 WHERE notes = "Discontinued in favor of the en1700"
What are the network protocols for the model that has been discontinued in favor of the EN1700?
CREATE TABLE table_1300080_1 (network_protocols VARCHAR, notes VARCHAR)
SELECT party FROM table_1341690_20 WHERE incumbent = "Robert Bauman"
What is the party of the election in which Robert Bauman is the incumbent?
CREATE TABLE table_1341690_20 (party VARCHAR, incumbent VARCHAR)
SELECT MAX(crowd) FROM table_name_75 WHERE away_team = "essendon"
What was the top crowd when essendon played away?
CREATE TABLE table_name_75 (crowd INTEGER, away_team VARCHAR)
SELECT class FROM table_name_34 WHERE year_made = "1880"
Which class was made in 1880?
CREATE TABLE table_name_34 (class VARCHAR, year_made VARCHAR)
SELECT points_against FROM table_name_27 WHERE club = "cwmllynfell rfc"
Name the points against for cwmllynfell rfc
CREATE TABLE table_name_27 (points_against VARCHAR, club VARCHAR)
SELECT overall_record FROM table_name_81 WHERE week = 3
Can you tell me the Overall Record that has the Week of 3?
CREATE TABLE table_name_81 (overall_record VARCHAR, week VARCHAR)
SELECT MAX(assists) FROM table_name_48 WHERE goals < 0
what is the most assists when the goals is less than 0?
CREATE TABLE table_name_48 (assists INTEGER, goals INTEGER)
SELECT MAX(rd) FROM table_10706961_2 WHERE pole_position = "Tom Sneva"
What is the highest Rd that Tom Sneva had the pole position in?
CREATE TABLE table_10706961_2 (rd INTEGER, pole_position VARCHAR)
SELECT package_option FROM table_name_53 WHERE content = "calcio"
What is the package/option for the calcio content?
CREATE TABLE table_name_53 (package_option VARCHAR, content VARCHAR)
SELECT AVG(attendance) FROM table_name_39 WHERE opponent = "at atlanta falcons"
What was the average attendance for games played at Atlanta Falcons?
CREATE TABLE table_name_39 (attendance INTEGER, opponent VARCHAR)
SELECT AVG(lost) FROM table_name_93 WHERE against < 25 AND played < 1
What is the Lost with Against smaller than 25, and Played smaller than 1?
CREATE TABLE table_name_93 (lost INTEGER, against VARCHAR, played VARCHAR)
SELECT away FROM table_name_57 WHERE time = "15:00"
Who was the away team of the game at the time 15:00?
CREATE TABLE table_name_57 (away VARCHAR, time VARCHAR)
SELECT result FROM table_name_73 WHERE week = 16
What was the result of week 16?
CREATE TABLE table_name_73 (result VARCHAR, week VARCHAR)
SELECT character FROM table_name_48 WHERE italian_voice_actor = "emanuela damasio"
What character does Italian voice actor Emanuela Damasio play?
CREATE TABLE table_name_48 (character VARCHAR, italian_voice_actor VARCHAR)
SELECT melbourne FROM table_name_90 WHERE adelaide = "yes" AND gold_coast = "no"
yes or no for the melbourne that has no for adelaide, no for gold coast?
CREATE TABLE table_name_90 (melbourne VARCHAR, adelaide VARCHAR, gold_coast VARCHAR)
SELECT record FROM table_name_69 WHERE visitor = "buffalo"
What is the record when the visitor is Buffalo?
CREATE TABLE table_name_69 (record VARCHAR, visitor VARCHAR)
SELECT score FROM table_name_68 WHERE year > 2004 AND champion = "gaël monfils"
Which Score has a Year larger than 2004, and a Champion of gaël monfils?
CREATE TABLE table_name_68 (score VARCHAR, year VARCHAR, champion VARCHAR)
SELECT AVG(against) FROM table_name_99 WHERE lost < 7 AND drawn > 6 AND points = 25
What is the average against score of all teams with less than 7 losses, more than 6 draws, and 25 points?
CREATE TABLE table_name_99 (against INTEGER, points VARCHAR, lost VARCHAR, drawn VARCHAR)
SELECT MIN(altitude__mslm_) FROM table_1449169_1
What is the minimum altitude (mslm) in all the commons?
CREATE TABLE table_1449169_1 (altitude__mslm_ INTEGER)
SELECT country FROM table_name_48 WHERE player = "vijay singh"
From Country is Vijay Singh?
CREATE TABLE table_name_48 (country VARCHAR, player VARCHAR)
SELECT COUNT(built) FROM table_142159_1 WHERE name = "River Esk"
How many are named River Esk
CREATE TABLE table_142159_1 (built VARCHAR, name VARCHAR)
SELECT loss FROM table_name_94 WHERE date = "may 31"
Who lost on May 31?
CREATE TABLE table_name_94 (loss VARCHAR, date VARCHAR)
SELECT date FROM table_name_53 WHERE type = "tko" AND opponent = "jesse brinkley"
When is a Type of tko, and an Opponent of jesse brinkley
CREATE TABLE table_name_53 (date VARCHAR, type VARCHAR, opponent VARCHAR)
SELECT SUM(games) FROM table_name_24 WHERE term_[c_] = "1969 – 1973"
What is the of games when for the term [c] of 1969 – 1973?
CREATE TABLE table_name_24 (games INTEGER, term_ VARCHAR, c_ VARCHAR)
SELECT SUM(rank) FROM table_name_55 WHERE silver < 0
Name the sum of rank for silver less than 0
CREATE TABLE table_name_55 (rank INTEGER, silver INTEGER)
SELECT MAX(goals) FROM table_name_8 WHERE name = "josep samitier"
Name the most goals for josep samitier
CREATE TABLE table_name_8 (goals INTEGER, name VARCHAR)
SELECT builder FROM table_17607663_1 WHERE br_no = 31779
Who is the builder for br no. 31779?
CREATE TABLE table_17607663_1 (builder VARCHAR, br_no VARCHAR)
SELECT AVG(rank) FROM table_name_54 WHERE time___sec__ = 11.14
What is the rank for the person with time 11.14?
CREATE TABLE table_name_54 (rank INTEGER, time___sec__ VARCHAR)
SELECT date FROM table_27902171_8 WHERE score = "W 112-91"
Name the date for score of w 112-91
CREATE TABLE table_27902171_8 (date VARCHAR, score VARCHAR)