answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT MAX(version) FROM table_name_38 WHERE release_date = "2011-04-01"
What is the highest Version, when Release Date is "2011-04-01"?
CREATE TABLE table_name_38 (version INTEGER, release_date VARCHAR)
SELECT japanese_orthography FROM table_name_39 WHERE abbreviation = "ndmc"
What is the Japanese orthography for the abbreviation of ndmc?
CREATE TABLE table_name_39 (japanese_orthography VARCHAR, abbreviation VARCHAR)
SELECT COUNT(party) FROM table_1341865_44 WHERE district = "Tennessee 1"
how many party with district being tennessee 1
CREATE TABLE table_1341865_44 (party VARCHAR, district VARCHAR)
SELECT surface FROM table_name_30 WHERE tournament = "kuwait"
What surface did Smeets play on during the Kuwait tournament?
CREATE TABLE table_name_30 (surface VARCHAR, tournament VARCHAR)
SELECT opp_team FROM table_name_49 WHERE score = "21-17"
Who was the opposing team in the game with a score of 21-17?
CREATE TABLE table_name_49 (opp_team VARCHAR, score VARCHAR)
SELECT general_classification FROM table_name_26 WHERE points_classification = "levi leipheimer"
What general classification has levi leipheimer as points classification?
CREATE TABLE table_name_26 (general_classification VARCHAR, points_classification VARCHAR)
SELECT name FROM table_name_80 WHERE reaction > 0.17400000000000002 AND lane > 6
Who had a reaction larger than 0.17400000000000002 and a lane larger than 6?
CREATE TABLE table_name_80 (name VARCHAR, reaction VARCHAR, lane VARCHAR)
SELECT MIN(game) FROM table_name_11 WHERE high_assists = "maurice williams (8)"
What is the lowest Game, when High Assists is "Maurice Williams (8)"?
CREATE TABLE table_name_11 (game INTEGER, high_assists VARCHAR)
SELECT season FROM table_20867295_2 WHERE winner = "Ajax" AND third_place = "Twente"
When twente came in third place and ajax was the winner what are the seasons?
CREATE TABLE table_20867295_2 (season VARCHAR, winner VARCHAR, third_place VARCHAR)
SELECT protein_name FROM table_26708105_5 WHERE e_value = "2.50E-41"
What is the protein name when the e-value is 2.50e-41?
CREATE TABLE table_26708105_5 (protein_name VARCHAR, e_value VARCHAR)
SELECT COUNT(at_opponents_venue) FROM table_16201038_3 WHERE missouri_vs = "Oklahoma"
Name the total number of opponets venue for oklahoma
CREATE TABLE table_16201038_3 (at_opponents_venue VARCHAR, missouri_vs VARCHAR)
SELECT opponent FROM table_name_93 WHERE date = "april 21"
what team played on april 21
CREATE TABLE table_name_93 (opponent VARCHAR, date VARCHAR)
SELECT lane FROM table_name_6 WHERE nationality = "zambia"
Which lane did the athlete from Zambia swim in?
CREATE TABLE table_name_6 (lane VARCHAR, nationality VARCHAR)
SELECT school_club_team FROM table_name_26 WHERE pick > 83
What is the school/club team of the player with a pick larger than 83?
CREATE TABLE table_name_26 (school_club_team VARCHAR, pick INTEGER)
SELECT COUNT(pl_gp) FROM table_name_16 WHERE reg_gp < 5 AND team__league_ = "seattle thunderbirds" AND pick__number < 131
What is the total number of playoff games played by the Seattle Thunderbirds team where the number of regular games played is less than 5 and pick number is less than 131?
CREATE TABLE table_name_16 (pl_gp VARCHAR, pick__number VARCHAR, reg_gp VARCHAR, team__league_ VARCHAR)
SELECT other_party FROM table_name_98 WHERE democratic = "rick boucher"
Who was the other party nominee that ran against Democratic Rick Boucher?
CREATE TABLE table_name_98 (other_party VARCHAR, democratic VARCHAR)
SELECT series FROM table_name_82 WHERE year < 1993 AND actor = "teresa graves"
What was actor Teresa Graves's series before the year 1993?
CREATE TABLE table_name_82 (series VARCHAR, year VARCHAR, actor VARCHAR)
SELECT T2.company, COUNT(*) FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id GROUP BY T1.company_id
Show the company name with the number of gas station.
CREATE TABLE station_company (company_id VARCHAR); CREATE TABLE company (company VARCHAR, company_id VARCHAR)
SELECT COUNT(isolation) FROM table_19716903_1 WHERE mountain_peak = "Jack Mountain"
How many different isolation numbers does the Jack Mountain peak have?
CREATE TABLE table_19716903_1 (isolation VARCHAR, mountain_peak VARCHAR)
SELECT arranger_s_ FROM table_28715942_5 WHERE vocal_percussionist = "Alexei Kalveks and Dave Brennan"
Who is the arranger when the vocal percussionist is Alexei Kalveks and Dave Brennan?
CREATE TABLE table_28715942_5 (arranger_s_ VARCHAR, vocal_percussionist VARCHAR)
SELECT MIN(round) FROM table_name_74 WHERE grand_prix = "indian gp"
What is the smallest round with a Grand Prix of indian gp?
CREATE TABLE table_name_74 (round INTEGER, grand_prix VARCHAR)
SELECT record FROM table_17118657_10 WHERE high_assists = "Canty (6)"
If high assists are under Canty (6) how much would the record be?
CREATE TABLE table_17118657_10 (record VARCHAR, high_assists VARCHAR)
SELECT MAX(wins) FROM table_name_80 WHERE losses < 2
What is the highest number of wins when there are less than 2 losses?
CREATE TABLE table_name_80 (wins INTEGER, losses INTEGER)
SELECT name FROM table_name_31 WHERE borough = "anchorage" AND type = "natural history"
In what Borough is the Anchorage museum of Natural History?
CREATE TABLE table_name_31 (name VARCHAR, borough VARCHAR, type VARCHAR)
SELECT league_division FROM table_name_29 WHERE club = "sai kung"
What division is Sai Kung in?
CREATE TABLE table_name_29 (league_division VARCHAR, club VARCHAR)
SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE loan_type = 'Mortgages' INTERSECT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE loan_type = 'Auto'
Find the name of customers who have loans of both Mortgages and Auto.
CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR); CREATE TABLE loan (cust_id VARCHAR)
SELECT MAX(points) FROM table_name_39 WHERE lost = 8
What is the highest Points with a Lost total of 8?
CREATE TABLE table_name_39 (points INTEGER, lost VARCHAR)
SELECT original_title FROM table_20124413_1 WHERE prod_code = "1.12"
When 1.12 is the production code what is the original title?
CREATE TABLE table_20124413_1 (original_title VARCHAR, prod_code VARCHAR)
SELECT pick__number FROM table_14209245_9 WHERE round = 2
What is the pick number for round 2?
CREATE TABLE table_14209245_9 (pick__number VARCHAR, round VARCHAR)
SELECT children_per_donor FROM table_16175217_1 WHERE allowed_recipients = "no data"
List the possible children per donor levels for countries where the allowed recipients is no data.
CREATE TABLE table_16175217_1 (children_per_donor VARCHAR, allowed_recipients VARCHAR)
SELECT score FROM table_name_80 WHERE date = "17 december 1979"
Name the Score on 17 december 1979?
CREATE TABLE table_name_80 (score VARCHAR, date VARCHAR)
SELECT MIN(average) FROM table_name_38 WHERE wickets > 265 AND career = "1888/89-1913/14" AND matches > 51
Name the least average with wickets more than 265 and career of 1888/89-1913/14 and matches more than 51
CREATE TABLE table_name_38 (average INTEGER, matches VARCHAR, wickets VARCHAR, career VARCHAR)
SELECT name FROM Person WHERE age > (SELECT MIN(age) FROM person WHERE job = 'engineer') ORDER BY age
Find the name of people whose age is greater than any engineer sorted by their age.
CREATE TABLE Person (name VARCHAR, age INTEGER, job VARCHAR); CREATE TABLE person (name VARCHAR, age INTEGER, job VARCHAR)
SELECT rank__csa_ FROM table_12720275_1 WHERE percent_change__1990_2000_ = "A034 +8.71%"
What is the rank (csa) for the percentage change (1990-2000) was a034 +8.71%?
CREATE TABLE table_12720275_1 (rank__csa_ VARCHAR, percent_change__1990_2000_ VARCHAR)
SELECT song FROM table_name_58 WHERE index = "f6"
What Song's Index is F6?
CREATE TABLE table_name_58 (song VARCHAR, index VARCHAR)
SELECT date FROM table_name_27 WHERE pos < 4 AND venue = "piraeus"
On which date was the position less than 4 at Piraeus?
CREATE TABLE table_name_27 (date VARCHAR, pos VARCHAR, venue VARCHAR)
SELECT AVG(crimean_war) FROM table_name_49 WHERE second_afghan_war = "1" AND school = "hamblin and porter's school, cork"
What is the average Crimean War with a Second Afghan War totaling 1, and a School of hamblin and porter's school, cork?
CREATE TABLE table_name_49 (crimean_war INTEGER, second_afghan_war VARCHAR, school VARCHAR)
SELECT airdate FROM table_name_54 WHERE length = "30 minutes"
The length of 30 minutes aired on what date?
CREATE TABLE table_name_54 (airdate VARCHAR, length VARCHAR)
SELECT COUNT(place) FROM table_name_84 WHERE name = "bianka panova" AND clubs < 10
How many places have bianka panova as the name, with clubs less than 10?
CREATE TABLE table_name_84 (place VARCHAR, name VARCHAR, clubs VARCHAR)
SELECT 2011 FROM table_name_82 WHERE tournament = "french open"
What shows for 2011 at the French open?
CREATE TABLE table_name_82 (tournament VARCHAR)
SELECT MIN(no_in_season) FROM table_11820086_1 WHERE us_viewers__millions_ = "3.00"
Which episode number in season 5 was viewed by 3.00 million U.S. viziers?
CREATE TABLE table_11820086_1 (no_in_season INTEGER, us_viewers__millions_ VARCHAR)
SELECT casualties FROM table_name_3 WHERE intensity = "unknown" AND epicenter = "bouïra province"
How many casualties were in the earthquake with an unknown intensity and an epicenter in the bouïra province?
CREATE TABLE table_name_3 (casualties VARCHAR, intensity VARCHAR, epicenter VARCHAR)
SELECT league_division FROM table_name_29 WHERE location = "n/a"
What League/Division has a Location of n/a?
CREATE TABLE table_name_29 (league_division VARCHAR, location VARCHAR)
SELECT result FROM table_1342149_42 WHERE candidates = "Tom J. Murray (D) Unopposed"
What is the candidates result that is tom j. murray (d) unopposed?
CREATE TABLE table_1342149_42 (result VARCHAR, candidates VARCHAR)
SELECT written_by FROM table_14847258_1 WHERE directed_by = "Steve Gomer"
When steve gomer is the director who is the writer?
CREATE TABLE table_14847258_1 (written_by VARCHAR, directed_by VARCHAR)
SELECT height_ft__m_ FROM table_name_51 WHERE year = 1907
How tall is the structure built in 1907?
CREATE TABLE table_name_51 (height_ft__m_ VARCHAR, year VARCHAR)
SELECT max_demand_charge___rs__kva_ FROM table_25479607_3 WHERE tariff___rs__kwh_ = "8.85"
What was the max demand charge for the user with a tariff of 8.85?
CREATE TABLE table_25479607_3 (max_demand_charge___rs__kva_ VARCHAR, tariff___rs__kwh_ VARCHAR)
SELECT airport FROM table_name_58 WHERE country = "united kingdom" AND iata = "lcy"
which aiport is in the united kingdom and has iata of lcy?
CREATE TABLE table_name_58 (airport VARCHAR, country VARCHAR, iata VARCHAR)
SELECT listed FROM table_name_22 WHERE municipality = "florida"
What is the site for Florida?
CREATE TABLE table_name_22 (listed VARCHAR, municipality VARCHAR)
SELECT AVG(money___) AS $__ FROM table_name_38 WHERE score = 69 - 72 - 72 - 72 = 285
Which average money has a Score of 69-72-72-72=285?
CREATE TABLE table_name_38 (money___ INTEGER, score VARCHAR)
SELECT AVG(week) FROM table_name_82 WHERE result = "w 17–13"
How many Weeks have a Result of w 17–13?
CREATE TABLE table_name_82 (week INTEGER, result VARCHAR)
SELECT link FROM table_name_64 WHERE date_of_polling = "january 31 – february 3, 2011"
What is the link for january 31 – february 3, 2011?
CREATE TABLE table_name_64 (link VARCHAR, date_of_polling VARCHAR)
SELECT home_team AS score FROM table_name_1 WHERE away_team = "hawthorn"
What is the home team score when the away team was Hawthorn?
CREATE TABLE table_name_1 (home_team VARCHAR, away_team VARCHAR)
SELECT throws FROM table_name_1 WHERE position = "3b/rhp"
Which Throws have a Position of 3b/rhp?
CREATE TABLE table_name_1 (throws VARCHAR, position VARCHAR)
SELECT region FROM table_name_82 WHERE label = "bronze" AND catalogue = "202 876-270"
What region has a bronze label and a catalogue of 202 876-270?
CREATE TABLE table_name_82 (region VARCHAR, label VARCHAR, catalogue VARCHAR)
SELECT rules FROM table_name_2 WHERE event = "n/a" AND result = "loss" AND location = "winsford england"
Which rule has The Event of n/a, The Result of loss, and The Location of winsford england?
CREATE TABLE table_name_2 (rules VARCHAR, location VARCHAR, event VARCHAR, result VARCHAR)
SELECT tries_for FROM table_15467476_3 WHERE club = "Cambrian Welfare RFC"
How many tries for, for club cambrian welfare rfc?
CREATE TABLE table_15467476_3 (tries_for VARCHAR, club VARCHAR)
SELECT series FROM table_name_72 WHERE poles = "0" AND races = "17"
Which Series has Poles of 0, and Races of 17?
CREATE TABLE table_name_72 (series VARCHAR, poles VARCHAR, races VARCHAR)
SELECT AVG(debut_year) FROM table_name_6 WHERE games < 54 AND years_at_club = "1989" AND goals < 8
What is the debut year for the player with fewer than 54 games, fewer than 8 goals and 1989 at club?
CREATE TABLE table_name_6 (debut_year INTEGER, goals VARCHAR, games VARCHAR, years_at_club VARCHAR)
SELECT athletes FROM table_name_97 WHERE country = "myanmar"
What is the name of the athlete from Myanmar?
CREATE TABLE table_name_97 (athletes VARCHAR, country VARCHAR)
SELECT SUM(year) FROM table_name_62 WHERE nominated_work = "the house of blue leaves" AND category = "outstanding actress in a play"
In what year was The House of Blue Leaves nominated for outstanding actress in a play?
CREATE TABLE table_name_62 (year INTEGER, nominated_work VARCHAR, category VARCHAR)
SELECT pick FROM table_name_34 WHERE player = "dexter bailey"
What is Pick, when Player is "Dexter Bailey"?
CREATE TABLE table_name_34 (pick VARCHAR, player VARCHAR)
SELECT player FROM table_name_50 WHERE round > 8
Which Player has a Round larger than 8?
CREATE TABLE table_name_50 (player VARCHAR, round INTEGER)
SELECT decile FROM table_name_62 WHERE area = "welcome bay" AND authority = "state"
Which decile has an Area of welcome bay, and an Authority of state?
CREATE TABLE table_name_62 (decile VARCHAR, area VARCHAR, authority VARCHAR)
SELECT MIN(game) FROM table_19789597_6 WHERE high_assists = "S. Johnson (3)"
What's the lowest number of a game where S. Johnson (3) did the most high assists?
CREATE TABLE table_19789597_6 (game INTEGER, high_assists VARCHAR)
SELECT COUNT(best_finish) FROM table_20590020_2 WHERE money_list_rank = 96
What is the total number of players who had a money list rank of 96?
CREATE TABLE table_20590020_2 (best_finish VARCHAR, money_list_rank VARCHAR)
SELECT DISTINCT building FROM Faculty
Show all the distinct buildings that have faculty rooms.
CREATE TABLE Faculty (building VARCHAR)
SELECT track FROM table_name_86 WHERE pole_position = "takashi kogure"
On which track did Takashi Kogure hold pole position?
CREATE TABLE table_name_86 (track VARCHAR, pole_position VARCHAR)
SELECT away_team AS score FROM table_name_65 WHERE date = "17 august 1935"
What was the away team score at the game held on 17 August 1935?
CREATE TABLE table_name_65 (away_team VARCHAR, date VARCHAR)
SELECT COUNT(result) FROM table_15383430_1 WHERE original_artist = "Queen"
How many songs were sung by queen?
CREATE TABLE table_15383430_1 (result VARCHAR, original_artist VARCHAR)
SELECT SUM(pop_¹) FROM table_name_13 WHERE prefecture = "shizuoka"
Name the sum of pop for shizuoka
CREATE TABLE table_name_13 (pop_¹ INTEGER, prefecture VARCHAR)
SELECT kickoff_time FROM table_name_28 WHERE date = "november 10, 2002"
What is the kickoff time on November 10, 2002?
CREATE TABLE table_name_28 (kickoff_time VARCHAR, date VARCHAR)
SELECT 2008 FROM table_name_88 WHERE 1998 = "a" AND 2002 = "1r" AND 2004 = "2r"
Name the 2008 with 1998 of a and 2002 of 1r with 2004 of 2r
CREATE TABLE table_name_88 (Id VARCHAR)
SELECT bedType, COUNT(*) FROM Rooms GROUP BY bedType
Find the number of rooms for each bed type.
CREATE TABLE Rooms (bedType VARCHAR)
SELECT target FROM table_1661124_1 WHERE approval_date = 2006
What is the target with an approval date of 2006?
CREATE TABLE table_1661124_1 (target VARCHAR, approval_date VARCHAR)
SELECT SUM(goals) FROM table_name_48 WHERE season = "2004/05"
What is the sum of goals for the 2004/05 Season?
CREATE TABLE table_name_48 (goals INTEGER, season VARCHAR)
SELECT order__number FROM table_name_16 WHERE week__number = "top 20 (10 women)"
What is the order number that has top 20 (10 women) as the week number?
CREATE TABLE table_name_16 (order__number VARCHAR, week__number VARCHAR)
SELECT television_service FROM table_15887683_6 WHERE content = "Primafila Hot Club"
Name the television service when primafila hot club
CREATE TABLE table_15887683_6 (television_service VARCHAR, content VARCHAR)
SELECT MAX(wins) FROM table_1708050_3 WHERE position = "16th"
Name the most wins where position is 16th
CREATE TABLE table_1708050_3 (wins INTEGER, position VARCHAR)
SELECT cores FROM table_name_89 WHERE part_number_s_ = "cl8064701477202"
What's the cores with the part number cl8064701477202?
CREATE TABLE table_name_89 (cores VARCHAR, part_number_s_ VARCHAR)
SELECT MIN(year_operational) FROM table_26387382_1 WHERE location__county_ = "Fayette" AND capacity__mw_ = "46"
What year was Fayette operational at 46?
CREATE TABLE table_26387382_1 (year_operational INTEGER, location__county_ VARCHAR, capacity__mw_ VARCHAR)
SELECT run_3 FROM table_name_13 WHERE run_1 = "2:20.10"
Which Run 3 has a Run 1 of 2:20.10?
CREATE TABLE table_name_13 (run_3 VARCHAR, run_1 VARCHAR)
SELECT MIN(pieces) FROM table_name_15 WHERE release = 1984
What was the lowest number of pieces for a board released in 1984?
CREATE TABLE table_name_15 (pieces INTEGER, release VARCHAR)
SELECT COUNT(provincial_capital) FROM table_17416221_1 WHERE population__2013_ = 1162900
what is the numbe of provincial captial where the population is 1162900?
CREATE TABLE table_17416221_1 (provincial_capital VARCHAR, population__2013_ VARCHAR)
SELECT COUNT(ends) FROM table_name_39 WHERE since > 2006 AND nat = "ita" AND goals < 0
What is the total number of ends after 2006 with a nationality of ita and 0 goals?
CREATE TABLE table_name_39 (ends VARCHAR, goals VARCHAR, since VARCHAR, nat VARCHAR)
SELECT home FROM table_name_11 WHERE date = "16 april 2008"
Name the home for 16 april 2008
CREATE TABLE table_name_11 (home VARCHAR, date VARCHAR)
SELECT MIN(height) FROM table_name_37 WHERE player = "rans brempong"
What is the lowest height for Rans Brempong?
CREATE TABLE table_name_37 (height INTEGER, player VARCHAR)
SELECT AVG(drawn) FROM table_name_45 WHERE points_1 = "33" AND goals_against = 45 AND played < 28
For entries with fewer than 28 played, with 45 goals against and points 1 of 33, what is the average drawn?
CREATE TABLE table_name_45 (drawn INTEGER, played VARCHAR, points_1 VARCHAR, goals_against VARCHAR)
SELECT pilot FROM table_name_98 WHERE position > 5 AND speed = "118.8km/h"
Which pilot has a position above 5 and a speed of 118.8km/h?
CREATE TABLE table_name_98 (pilot VARCHAR, position VARCHAR, speed VARCHAR)
SELECT original_name FROM table_name_4 WHERE country = "bulgaria"
Name the original name for the one from bulgaria
CREATE TABLE table_name_4 (original_name VARCHAR, country VARCHAR)
SELECT skip FROM table_name_55 WHERE third = "anna sloan" AND season = "2012-13"
What is the skip that has a third of Anna Sloan in season 2012-13?
CREATE TABLE table_name_55 (skip VARCHAR, third VARCHAR, season VARCHAR)
SELECT MIN(first_elected) FROM table_1341672_6 WHERE incumbent = "Mark W. Hannaford"
What year was incumbent mark w. hannaford elected?
CREATE TABLE table_1341672_6 (first_elected INTEGER, incumbent VARCHAR)
SELECT episodes FROM table_name_17 WHERE average_ratings = "12.0%" AND tv_station = "tv asahi"
What Episode on TV Asahi Station has Rating of 12.0%?
CREATE TABLE table_name_17 (episodes VARCHAR, average_ratings VARCHAR, tv_station VARCHAR)
SELECT AVG(snatch) FROM table_name_19 WHERE total__kg_ > 318 AND bodyweight = 84.15
WHTA IS THE SNATCH WITH A TOTAL OF LARGER THAN 318 KG AND BODY WEIGHT OF 84.15?
CREATE TABLE table_name_19 (snatch INTEGER, total__kg_ VARCHAR, bodyweight VARCHAR)
SELECT 2013 FROM table_name_68 WHERE 2011 = "qf"
What is the 2013 value with a qf in 2011?
CREATE TABLE table_name_68 (Id VARCHAR)
SELECT COUNT(*) FROM matches WHERE YEAR = 2013 OR YEAR = 2016
List the number of all matches who played in years of 2013 or 2016.
CREATE TABLE matches (YEAR VARCHAR)
SELECT MAX(wins) FROM table_26609690_1
What is the highest number of wins?
CREATE TABLE table_26609690_1 (wins INTEGER)
SELECT total FROM table_name_39 WHERE years = "1925"
What was the total for the year of 1925?
CREATE TABLE table_name_39 (total VARCHAR, years VARCHAR)
SELECT runner_up FROM table_name_12 WHERE margin_of_victory = "10 strokes"
Which runner-up has a 10 strokes margin of victory?
CREATE TABLE table_name_12 (runner_up VARCHAR, margin_of_victory VARCHAR)
SELECT COUNT(*) FROM TV_Channel WHERE LANGUAGE = "English"
How many TV Channel using language English?
CREATE TABLE TV_Channel (LANGUAGE VARCHAR)