question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Which Position has a Pick # smaller than 23, and a Player of garrett sutherland?
CREATE TABLE table_name_12 (position VARCHAR, pick__number VARCHAR, player VARCHAR)
SELECT position FROM table_name_12 WHERE pick__number < 23 AND player = "garrett sutherland"
What is the name of the most expensive product?
CREATE TABLE PRODUCTS (Product_Name VARCHAR, Product_Price VARCHAR)
SELECT Product_Name FROM PRODUCTS ORDER BY Product_Price DESC LIMIT 1
What is the points for where the tries for is 29?
CREATE TABLE table_name_34 (points_for VARCHAR, tries_for VARCHAR)
SELECT points_for FROM table_name_34 WHERE tries_for = "29"
What is the number of the pick for round 11?
CREATE TABLE table_name_15 (pick INTEGER, round VARCHAR)
SELECT SUM(pick) FROM table_name_15 WHERE round = 11
What was the result in 2000?
CREATE TABLE table_name_23 (results VARCHAR, year VARCHAR)
SELECT results FROM table_name_23 WHERE year = 2000
Tell me the pos for adrian sutil
CREATE TABLE table_name_75 (pos VARCHAR, driver VARCHAR)
SELECT pos FROM table_name_75 WHERE driver = "adrian sutil"
What was the score of having a tie of 1?
CREATE TABLE table_name_27 (score VARCHAR, tie_no VARCHAR)
SELECT score FROM table_name_27 WHERE tie_no = "1"
What was the event when suárez ( tri ) w 16–6 was round of 32?
CREATE TABLE table_27294107_11 (event VARCHAR, round_of_32 VARCHAR)
SELECT event FROM table_27294107_11 WHERE round_of_32 = "Suárez ( TRI ) W 16–6"
What is the latest year the world championships were held in Thun?
CREATE TABLE table_name_71 (year INTEGER, place VARCHAR)
SELECT MAX(year) FROM table_name_71 WHERE place = "thun"
What is the highest Z (p) when arsenic is the element, and the N (n) is more than 42
CREATE TABLE table_name_46 (z___p__ INTEGER, element VARCHAR, n___n__ VARCHAR)
SELECT MAX(z___p__) FROM table_name_46 WHERE element = "arsenic" AND n___n__ > 42
What university was founded in 1898?
CREATE TABLE table_24697604_1 (university VARCHAR, year_founded VARCHAR)
SELECT university FROM table_24697604_1 WHERE year_founded = 1898
What is the Domestic Tournament with Chennai Super Kings Team?
CREATE TABLE table_name_42 (domestic_tournament VARCHAR, team VARCHAR)
SELECT domestic_tournament FROM table_name_42 WHERE team = "chennai super kings"
What are the names of those who made less than 3 wins in 15 matches?
CREATE TABLE table_name_90 (name VARCHAR, wins VARCHAR, matches VARCHAR)
SELECT name FROM table_name_90 WHERE wins < 3 AND matches < 15
What is the score on February 23, 2005?
CREATE TABLE table_name_81 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_81 WHERE date = "february 23, 2005"
What's the smallest number of players?
CREATE TABLE table_10682862_68 (players INTEGER)
SELECT MIN(players) FROM table_10682862_68
Tell me the rank for year of 2012 and out of larger than 176
CREATE TABLE table_name_66 (rank VARCHAR, year VARCHAR, out_of VARCHAR)
SELECT rank FROM table_name_66 WHERE year = "2012" AND out_of > 176
Which player was at position left tackle?
CREATE TABLE table_25711913_8 (player VARCHAR, position VARCHAR)
SELECT player FROM table_25711913_8 WHERE position = "Left tackle"
Which authority has a rocket launch called rehbar-ii?
CREATE TABLE table_11869952_1 (institutional_authority VARCHAR, rocket_launch VARCHAR)
SELECT institutional_authority FROM table_11869952_1 WHERE rocket_launch = "Rehbar-II"
What was the highest season number with a total prize of $108,000?
CREATE TABLE table_name_17 (season INTEGER, total_prize_money VARCHAR)
SELECT MAX(season) FROM table_name_17 WHERE total_prize_money = "$108,000"
What is every date with a record of 30–34–12?
CREATE TABLE table_23486853_8 (date VARCHAR, record VARCHAR)
SELECT date FROM table_23486853_8 WHERE record = "30–34–12"
Which poll source had an other of 15%?
CREATE TABLE table_name_38 (poll_source VARCHAR, other VARCHAR)
SELECT poll_source FROM table_name_38 WHERE other = "15%"
What was the minimum population in 2011 of the district of Prakasam?
CREATE TABLE table_1610301_1 (population__2011_ INTEGER, district VARCHAR)
SELECT MIN(population__2011_) FROM table_1610301_1 WHERE district = "Prakasam"
Who is the visitor team on Saturday, November 22 when linköpings hc was the home team and there were more than 20 rounds?
CREATE TABLE table_name_89 (visitor VARCHAR, date VARCHAR, home VARCHAR, round VARCHAR)
SELECT visitor FROM table_name_89 WHERE home = "linköpings hc" AND round > 20 AND date = "saturday, november 22"
What is the lowest land in sq mi with a longitude of -99.172785 and less than 0.973 sq mi of water?
CREATE TABLE table_name_27 (land___sqmi__ INTEGER, longitude VARCHAR, water__sqmi_ VARCHAR)
SELECT MIN(land___sqmi__) FROM table_name_27 WHERE longitude = -99.172785 AND water__sqmi_ < 0.973
What was St Kilda's away team score?
CREATE TABLE table_name_30 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_30 WHERE home_team = "st kilda"
In what Year was 1st Division El Salvador with a Finish of Champion and a Team of Fas?
CREATE TABLE table_name_83 (year VARCHAR, team VARCHAR, tournament VARCHAR, finish VARCHAR)
SELECT year FROM table_name_83 WHERE tournament = "1st division el salvador" AND finish = "champion" AND team = "fas"
What was the name of the host team at Texas stadium?
CREATE TABLE table_name_1 (host_team VARCHAR, stadium VARCHAR)
SELECT host_team FROM table_name_1 WHERE stadium = "texas stadium"
Who had the highest points against new york?
CREATE TABLE table_23211041_5 (high_points VARCHAR, team VARCHAR)
SELECT high_points FROM table_23211041_5 WHERE team = "New York"
Which team played on December 5?
CREATE TABLE table_11959669_4 (team VARCHAR, date VARCHAR)
SELECT team FROM table_11959669_4 WHERE date = "December 5"
For the game that was 76-85, what was the record?
CREATE TABLE table_name_66 (record VARCHAR, score VARCHAR)
SELECT record FROM table_name_66 WHERE score = "76-85"
What unit of measurement for uruguay?
CREATE TABLE table_14098_1 (area__km²___per_sqmi_ VARCHAR, country_or_territory_with_flag VARCHAR)
SELECT area__km²___per_sqmi_ FROM table_14098_1 WHERE country_or_territory_with_flag = "Uruguay"
What was the lowest attendance for a score of 5 - 0?
CREATE TABLE table_name_40 (attendance INTEGER, score VARCHAR)
SELECT MIN(attendance) FROM table_name_40 WHERE score = "5 - 0"
How many characters is by Babs Rubenstein?
CREATE TABLE table_10402018_1 (london VARCHAR, us_tour VARCHAR)
SELECT COUNT(london) FROM table_10402018_1 WHERE us_tour = "Babs Rubenstein"
What is the number Played that has 310 Points for?
CREATE TABLE table_name_77 (played VARCHAR, points_for VARCHAR)
SELECT played FROM table_name_77 WHERE points_for = "310"
What are all the distinct last names of all the engineers?
CREATE TABLE Maintenance_Engineers (last_name VARCHAR)
SELECT DISTINCT last_name FROM Maintenance_Engineers
When was the motor gear of the LMS 1946 no. 1901 model fitted?
CREATE TABLE table_2030453_1 (date_motor_gear_fitted VARCHAR, lms_1946_no VARCHAR)
SELECT date_motor_gear_fitted FROM table_2030453_1 WHERE lms_1946_no = 1901
Where does Carlton play?
CREATE TABLE table_name_82 (venue VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_82 WHERE home_team = "carlton"
Who was the Home captain when the Result was Aus by 218 runs?
CREATE TABLE table_name_22 (home_captain VARCHAR, result VARCHAR)
SELECT home_captain FROM table_name_22 WHERE result = "aus by 218 runs"
Which Born-Died has a Term start of 4 november 1943?
CREATE TABLE table_name_52 (born_died VARCHAR, term_start VARCHAR)
SELECT born_died FROM table_name_52 WHERE term_start = "4 november 1943"
What team classification has alejandro valverde as points classification, with alejandro valverde as the winner, with 3 as the stage?
CREATE TABLE table_name_26 (team_classification VARCHAR, stage VARCHAR, points_classification VARCHAR, winner VARCHAR)
SELECT team_classification FROM table_name_26 WHERE points_classification = "alejandro valverde" AND winner = "alejandro valverde" AND stage = "3"
What is the lowest attendance when the Atlanta Falcons were the opponent?
CREATE TABLE table_name_69 (week INTEGER, opponent VARCHAR)
SELECT MIN(week) FROM table_name_69 WHERE opponent = "atlanta falcons"
How many of the writers had 5.35 viewers?
CREATE TABLE table_22053239_1 (written_by VARCHAR, us_viewers__millions_ VARCHAR)
SELECT COUNT(written_by) FROM table_22053239_1 WHERE us_viewers__millions_ = "5.35"
On what platform does Mindark publish?
CREATE TABLE table_name_84 (platform VARCHAR, publisher VARCHAR)
SELECT platform FROM table_name_84 WHERE publisher = "mindark"
What date was the week 10 game?
CREATE TABLE table_name_89 (date VARCHAR, week VARCHAR)
SELECT date FROM table_name_89 WHERE week = 10
What is Notes, when App(L/C/E) is 13 (7/2/4)?
CREATE TABLE table_name_89 (notes VARCHAR, app_l_c_e_ VARCHAR)
SELECT notes FROM table_name_89 WHERE app_l_c_e_ = "13 (7/2/4)"
Tell me the declination for consellaion of ophiuchus and apparent magnitude less than 8.6 with right ascension of 16h47m14.5s
CREATE TABLE table_name_55 (declination___j2000__ VARCHAR, right_ascension___j2000__ VARCHAR, constellation VARCHAR, apparent_magnitude VARCHAR)
SELECT declination___j2000__ FROM table_name_55 WHERE constellation = "ophiuchus" AND apparent_magnitude < 8.6 AND right_ascension___j2000__ = "16h47m14.5s"
What was the attendance when the result was a bye?
CREATE TABLE table_name_79 (attendance VARCHAR, result VARCHAR)
SELECT attendance FROM table_name_79 WHERE result = "bye"
What is the points number when 20 shows for played, and lost is 0?
CREATE TABLE table_name_19 (points_for VARCHAR, played VARCHAR, lost VARCHAR)
SELECT points_for FROM table_name_19 WHERE played = "20" AND lost = "0"
What is the headquarter of the company with the largest sales?
CREATE TABLE company (Headquarters VARCHAR, Sales_in_Billion VARCHAR)
SELECT Headquarters FROM company ORDER BY Sales_in_Billion DESC LIMIT 1
What is the most recently founded school that joined in 2011?
CREATE TABLE table_name_94 (founded INTEGER, joined VARCHAR)
SELECT MAX(founded) FROM table_name_94 WHERE joined = "2011"
What is the main service for the station with 14.849 million passengers 2011-12?
CREATE TABLE table_18118221_1 (main_services VARCHAR, total_passengers__millions__2011_12 VARCHAR)
SELECT main_services FROM table_18118221_1 WHERE total_passengers__millions__2011_12 = "14.849"
What are the different product names? What is the average product price for each of them?
CREATE TABLE PRODUCTS (Product_Name VARCHAR, Product_Price INTEGER)
SELECT Product_Name, AVG(Product_Price) FROM PRODUCTS GROUP BY Product_Name
Who were the co-drivers with more than 377 laps in 1st position?
CREATE TABLE table_name_62 (co_drivers VARCHAR, laps VARCHAR, pos VARCHAR)
SELECT co_drivers FROM table_name_62 WHERE laps > 377 AND pos = "1st"
What is the name of the museum that had no visitor yet?
CREATE TABLE visit (name VARCHAR, Museum_ID VARCHAR, museum_id VARCHAR); CREATE TABLE museum (name VARCHAR, Museum_ID VARCHAR, museum_id VARCHAR)
SELECT name FROM museum WHERE NOT Museum_ID IN (SELECT museum_id FROM visit)
WHAT IS THE PLAYER WITH TOTAL LESS THAN 151, TO PAR OF 8?
CREATE TABLE table_name_41 (player VARCHAR, total VARCHAR, to_par VARCHAR)
SELECT player FROM table_name_41 WHERE total < 151 AND to_par = 8
Show different nominees and the number of musicals they have been nominated.
CREATE TABLE musical (Nominee VARCHAR)
SELECT Nominee, COUNT(*) FROM musical GROUP BY Nominee
When South Melbourne was the home team, who was the away team?
CREATE TABLE table_name_80 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_80 WHERE home_team = "south melbourne"
which train name arrives in lonavla at 17:45
CREATE TABLE table_29301050_1 (train_name VARCHAR, arrival_lonavla VARCHAR)
SELECT train_name FROM table_29301050_1 WHERE arrival_lonavla = "17:45"
What is the highest when pohang steelers is the team?
CREATE TABLE table_21824695_8 (highest VARCHAR, team VARCHAR)
SELECT highest FROM table_21824695_8 WHERE team = "Pohang Steelers"
What is Season, when # Of Episodes is "10", and when Date Released is "1 April 2010"?
CREATE TABLE table_name_97 (season VARCHAR, _number_of_episodes VARCHAR, date_released VARCHAR)
SELECT season FROM table_name_97 WHERE _number_of_episodes = 10 AND date_released = "1 april 2010"
WHICH 1990 has a 1993 of 1r?
CREATE TABLE table_name_3 (Id VARCHAR)
SELECT 1990 FROM table_name_3 WHERE 1993 = "1r"
Which Home Town has a Took Office of 1983, and a District larger than 15?
CREATE TABLE table_name_60 (home_town VARCHAR, took_office VARCHAR, district VARCHAR)
SELECT home_town FROM table_name_60 WHERE took_office = 1983 AND district > 15
Which ERP W has a Class of A, and a Call sign of wffc?
CREATE TABLE table_name_50 (erp_w VARCHAR, class VARCHAR, call_sign VARCHAR)
SELECT erp_w FROM table_name_50 WHERE class = "a" AND call_sign = "wffc"
Who directed episode 12 in season 3?
CREATE TABLE table_16581695_4 (directed_by VARCHAR, no_in_season VARCHAR)
SELECT directed_by FROM table_16581695_4 WHERE no_in_season = "12"
What is the total number of Solo with a Player with sean mcinerney, and Yards larger than 0?
CREATE TABLE table_name_33 (solo VARCHAR, player VARCHAR, yards VARCHAR)
SELECT COUNT(solo) FROM table_name_33 WHERE player = "sean mcinerney" AND yards > 0
what is the title of the episode with the production code of ad1a22?
CREATE TABLE table_name_1 (title VARCHAR, production_code VARCHAR)
SELECT title FROM table_name_1 WHERE production_code = "ad1a22"
What are the Juntas de Regantes (WUB) within the Azua Valley?
CREATE TABLE table_20018310_1 (juntas_de_regantes__wub_ VARCHAR, irrigation_district VARCHAR)
SELECT juntas_de_regantes__wub_ FROM table_20018310_1 WHERE irrigation_district = "Azua Valley"
Which Team has Points of 0, a Grid larger than 13, and a Driver of alex yoong?
CREATE TABLE table_name_67 (team VARCHAR, driver VARCHAR, points VARCHAR, grid VARCHAR)
SELECT team FROM table_name_67 WHERE points = 0 AND grid > 13 AND driver = "alex yoong"
What was the smallest crowd at junction oval?
CREATE TABLE table_name_61 (crowd INTEGER, venue VARCHAR)
SELECT MIN(crowd) FROM table_name_61 WHERE venue = "junction oval"
What is the maximum number of matches in a game?
CREATE TABLE table_28547332_4 (matches INTEGER)
SELECT MAX(matches) FROM table_28547332_4
What is the poor law union when the townland is bohonagh?
CREATE TABLE table_30121075_1 (poor_law_union VARCHAR, townland VARCHAR)
SELECT poor_law_union FROM table_30121075_1 WHERE townland = "Bohonagh"
How many number of screenings have an opening film of the journey of vaan nguyen?
CREATE TABLE table_18220102_1 (number_of_screening VARCHAR, opening_film VARCHAR)
SELECT COUNT(number_of_screening) FROM table_18220102_1 WHERE opening_film = "The Journey of Vaan Nguyen"
Which sliding tackle has no dump tackle and a restricted shoulder charge?
CREATE TABLE table_name_3 (sliding_tackle VARCHAR, dump_tackle VARCHAR, shoulder_charge VARCHAR)
SELECT sliding_tackle FROM table_name_3 WHERE dump_tackle = "no" AND shoulder_charge = "restricted"
What is Call Sign, when ERP W is greater than 50?
CREATE TABLE table_name_56 (call_sign VARCHAR, erp_w INTEGER)
SELECT call_sign FROM table_name_56 WHERE erp_w > 50
What was the result of the Euro '64 qualifying game?
CREATE TABLE table_name_65 (results¹ VARCHAR, type_of_game VARCHAR)
SELECT results¹ FROM table_name_65 WHERE type_of_game = "euro '64 qualifying"
What was the state (class) where the new successor was formally installed on May 11, 1966?
CREATE TABLE table_1847180_3 (state__class_ VARCHAR, date_of_successors_formal_installation VARCHAR)
SELECT state__class_ FROM table_1847180_3 WHERE date_of_successors_formal_installation = "May 11, 1966"
How many rounds did satrio hermanto go with an opc-challenge engine?
CREATE TABLE table_name_84 (rounds VARCHAR, engine VARCHAR, driver VARCHAR)
SELECT rounds FROM table_name_84 WHERE engine = "opc-challenge" AND driver = "satrio hermanto"
What is Finalist, when Year is "2008"?
CREATE TABLE table_name_30 (finalist VARCHAR, year VARCHAR)
SELECT finalist FROM table_name_30 WHERE year = 2008
Who is the driver that one for the winning tpc team qi-meritus that has a round more than 8?
CREATE TABLE table_name_76 (winning_driver VARCHAR, winning_team VARCHAR, round VARCHAR)
SELECT winning_driver FROM table_name_76 WHERE winning_team = "tpc team qi-meritus" AND round > 8
What date had a 4ad label and a CD (reissue) format?
CREATE TABLE table_name_99 (date VARCHAR, label VARCHAR, format VARCHAR)
SELECT date FROM table_name_99 WHERE label = "4ad" AND format = "cd (reissue)"
What's the lowest round Justin Forsett was drafted in, with a draft pick larger than 233?
CREATE TABLE table_name_62 (round INTEGER, name VARCHAR, pick VARCHAR)
SELECT MIN(round) FROM table_name_62 WHERE name = "justin forsett" AND pick > 233
Which player was from Western Washington University, played midfield, and was from years after 2009?
CREATE TABLE table_name_90 (player VARCHAR, year VARCHAR, school VARCHAR, position VARCHAR)
SELECT player FROM table_name_90 WHERE school = "western washington university" AND position = "midfield" AND year > 2009
What was the surface for October 10, 2004?
CREATE TABLE table_name_72 (surface VARCHAR, date VARCHAR)
SELECT surface FROM table_name_72 WHERE date = "october 10, 2004"
Which district is Joe Moakley?
CREATE TABLE table_1341423_21 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341423_21 WHERE incumbent = "Joe Moakley"
On what surface was the score in the final 0–6, 4–6?
CREATE TABLE table_name_47 (surface VARCHAR, score_in_the_final VARCHAR)
SELECT surface FROM table_name_47 WHERE score_in_the_final = "0–6, 4–6"
Name the date for attendance more than 20,268
CREATE TABLE table_name_47 (date VARCHAR, attendance INTEGER)
SELECT date FROM table_name_47 WHERE attendance > 20 OFFSET 268
WHAT IS THE SCORE FOR 2010 fifa world cup qualification?
CREATE TABLE table_name_28 (score VARCHAR, competition VARCHAR)
SELECT score FROM table_name_28 WHERE competition = "2010 fifa world cup qualification"
How many years did Barclay Nordica Arrows BMW enter with Cosworth v8 engine?
CREATE TABLE table_name_43 (year INTEGER, entrant VARCHAR, engine VARCHAR)
SELECT SUM(year) FROM table_name_43 WHERE entrant = "barclay nordica arrows bmw" AND engine = "cosworth v8"
What is 2006 when 1997 is 6.8?
CREATE TABLE table_27146868_1 (Id VARCHAR)
SELECT 2006 FROM table_27146868_1 WHERE 1997 = "6.8"
Who were the opponents that had an attendance of exactly 16115?
CREATE TABLE table_24852001_2 (opponent VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_24852001_2 WHERE attendance = 16115
Name the average position when the goals against are more than 42 and draws less than 16 with goals of 44
CREATE TABLE table_name_4 (position INTEGER, draws VARCHAR, goals_against VARCHAR, goals_for VARCHAR)
SELECT AVG(position) FROM table_name_4 WHERE goals_against > 42 AND goals_for = 44 AND draws < 16
What is the Outcome with an Opponent that is jelena janković?
CREATE TABLE table_name_85 (outcome VARCHAR, opponent VARCHAR)
SELECT outcome FROM table_name_85 WHERE opponent = "jelena janković"
What is the French word for the Italian word nazione?
CREATE TABLE table_15040_8 (french VARCHAR, italian VARCHAR)
SELECT french FROM table_15040_8 WHERE italian = "nazione"
Name the location attendance for chucky atkins , russell westbrook (4)
CREATE TABLE table_17355628_10 (location_attendance VARCHAR, high_assists VARCHAR)
SELECT location_attendance FROM table_17355628_10 WHERE high_assists = "Chucky Atkins , Russell Westbrook (4)"
What is the highest decile of Tarras school, which had a state authority?
CREATE TABLE table_name_58 (decile INTEGER, authority VARCHAR, name VARCHAR)
SELECT MAX(decile) FROM table_name_58 WHERE authority = "state" AND name = "tarras school"
What Entrepreneurs requested £60,000?
CREATE TABLE table_name_27 (entrepreneur_s_ VARCHAR, money_requested__£_ VARCHAR)
SELECT entrepreneur_s_ FROM table_name_27 WHERE money_requested__£_ = "60,000"
Which Country has a Place of t1?
CREATE TABLE table_name_38 (country VARCHAR, place VARCHAR)
SELECT country FROM table_name_38 WHERE place = "t1"
What is Rank Points, when Event is "WC Milan", and when Shooter is "Lalita Yauhleuskaya ( AUS )"?
CREATE TABLE table_name_77 (rank_points VARCHAR, event VARCHAR, shooter VARCHAR)
SELECT rank_points FROM table_name_77 WHERE event = "wc milan" AND shooter = "lalita yauhleuskaya ( aus )"
What is the power for the Spirit R (Type B)?
CREATE TABLE table_250230_2 (power VARCHAR, model VARCHAR)
SELECT power FROM table_250230_2 WHERE model = "Spirit R (Type B)"
Which best 3-year period has a best 15-year period of smyslov; kasparov, and a Position of 5?
CREATE TABLE table_name_61 (best_3_year_period VARCHAR, best_15_year_period VARCHAR, position VARCHAR)
SELECT best_3_year_period FROM table_name_61 WHERE best_15_year_period = "smyslov; kasparov" AND position = 5