question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is Wasim Akram's rank?
CREATE TABLE table_name_47 (rank VARCHAR, player VARCHAR)
SELECT rank FROM table_name_47 WHERE player = "wasim akram"
What player's original team are the Buffalo Bills?
CREATE TABLE table_name_31 (player VARCHAR, original_nfl_team VARCHAR)
SELECT player FROM table_name_31 WHERE original_nfl_team = "buffalo bills"
What was the number for Schwante where Bärenklau is 1.270?
CREATE TABLE table_11680175_1 (schwante VARCHAR, bärenklau VARCHAR)
SELECT schwante FROM table_11680175_1 WHERE bärenklau = "1.270"
What is the size of the windfarm in wexford that has more than 19 turbines and a vendor of Enercon?
CREATE TABLE table_name_87 (size__mw_ VARCHAR, county VARCHAR, turbines VARCHAR, turbine_vendor VARCHAR)
SELECT size__mw_ FROM table_name_87 WHERE turbines > 19 AND turbine_vendor = "enercon" AND county = "wexford"
Which Location has an ObjectNumber of 2005-7698?
CREATE TABLE table_name_71 (location VARCHAR, objectnumber VARCHAR)
SELECT location FROM table_name_71 WHERE objectnumber = "2005-7698"
What's the target of the antibody rituximab?
CREATE TABLE table_name_90 (target VARCHAR, antibody VARCHAR)
SELECT target FROM table_name_90 WHERE antibody = "rituximab"
Of which part does congressman dick clark belong to?
CREATE TABLE table_24415627_2 (party VARCHAR, senator VARCHAR)
SELECT party FROM table_24415627_2 WHERE senator = "Dick Clark"
How many countries played in the city of ljungskile?
CREATE TABLE table_28005160_2 (country VARCHAR, city VARCHAR)
SELECT COUNT(country) FROM table_28005160_2 WHERE city = "Ljungskile"
Which Team Win is from sweden and has a Individual win smaller than 1
CREATE TABLE table_name_48 (team_wins INTEGER, nation VARCHAR, individual_wins VARCHAR)
SELECT MAX(team_wins) FROM table_name_48 WHERE nation = "sweden" AND individual_wins < 1
What event placed bronze earlier than 1987?
CREATE TABLE table_name_16 (event VARCHAR, placed VARCHAR, year VARCHAR)
SELECT event FROM table_name_16 WHERE placed = "bronze" AND year < 1987
Who is the co-driver for the 6th position and more than 159 laps?
CREATE TABLE table_name_36 (co_driver VARCHAR, position VARCHAR, laps VARCHAR)
SELECT co_driver FROM table_name_36 WHERE position = "6th" AND laps > 159
Yards of 45, and a Date of november 8, 1971 is what kicker?
CREATE TABLE table_name_92 (kicker VARCHAR, yards VARCHAR, date VARCHAR)
SELECT kicker FROM table_name_92 WHERE yards = 45 AND date = "november 8, 1971"
What is the height of the player who attended Hartford?
CREATE TABLE table_11734041_2 (height_in_ft VARCHAR, school_club_team_country VARCHAR)
SELECT height_in_ft FROM table_11734041_2 WHERE school_club_team_country = "Hartford"
What village has an area of 27.19 km2?
CREATE TABLE table_2588674_1 (village VARCHAR, area_km² VARCHAR)
SELECT village FROM table_2588674_1 WHERE area_km² = "27.19"
List the names of buildings in descending order of building height.
CREATE TABLE buildings (name VARCHAR, Height VARCHAR)
SELECT name FROM buildings ORDER BY Height DESC
What is the highest value for map number?
CREATE TABLE table_198175_2 (map_number INTEGER)
SELECT MAX(map_number) FROM table_198175_2
what's the goals for/against with w-l-d being 3-1-1
CREATE TABLE table_14181578_1 (goals_for_against VARCHAR, w_l_d VARCHAR)
SELECT goals_for_against FROM table_14181578_1 WHERE w_l_d = "3-1-1"
On what date was the Essendon home match?
CREATE TABLE table_name_66 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_66 WHERE home_team = "essendon"
What is the Player with Versus with australia?
CREATE TABLE table_name_34 (player VARCHAR, versus VARCHAR)
SELECT player FROM table_name_34 WHERE versus = "australia"
What was the Venue of the King's Cup 1998?
CREATE TABLE table_name_3 (venue VARCHAR, competition VARCHAR)
SELECT venue FROM table_name_3 WHERE competition = "king's cup 1998"
Which Status has a Opposing Teams of wales?
CREATE TABLE table_name_16 (status VARCHAR, opposing_teams VARCHAR)
SELECT status FROM table_name_16 WHERE opposing_teams = "wales"
What is the lowest round for a player selected from a college of New Hampshire?
CREATE TABLE table_name_64 (round INTEGER, college_junior_club_team__league_ VARCHAR)
SELECT MIN(round) FROM table_name_64 WHERE college_junior_club_team__league_ = "new hampshire"
What is the lowest Profits (billion $), when Market Value (billion $) is less than 201.3, when Headquarters is United States, and when Company is JPMorgan Chase?
CREATE TABLE table_name_83 (profits__billion_ INTEGER, company VARCHAR, market_value__billion_$_ VARCHAR, headquarters VARCHAR)
SELECT MIN(profits__billion_) AS $_ FROM table_name_83 WHERE market_value__billion_$_ < 201.3 AND headquarters = "united states" AND company = "jpmorgan chase"
Who won the tournament for Australia in the year when Byron Nelson was Honoree?
CREATE TABLE table_1515346_2 (player VARCHAR, country VARCHAR, honoree_s_ VARCHAR)
SELECT player FROM table_1515346_2 WHERE country = "Australia" AND honoree_s_ = "Byron Nelson"
Who led team classification during the stage whose winner was Chris Horner?
CREATE TABLE table_26257223_13 (team_classification VARCHAR, winner VARCHAR)
SELECT team_classification FROM table_26257223_13 WHERE winner = "Chris Horner"
Which tournament had a 2012 of a and a 2011 of 2r?
CREATE TABLE table_name_25 (tournament VARCHAR)
SELECT tournament FROM table_name_25 WHERE 2012 = "a" AND 2011 = "2r"
How many wins for Port Fairy and against more than 2333?
CREATE TABLE table_name_81 (wins INTEGER, port_fairy_fl VARCHAR, against VARCHAR)
SELECT MAX(wins) FROM table_name_81 WHERE port_fairy_fl = "port fairy" AND against > 2333
What is the February number of the game played against the St. Louis Blues with a game number less than 58?
CREATE TABLE table_name_35 (february INTEGER, opponent VARCHAR, game VARCHAR)
SELECT AVG(february) FROM table_name_35 WHERE opponent = "st. louis blues" AND game < 58
Which venue resulted in 2nd before 2005?
CREATE TABLE table_name_27 (venue VARCHAR, result VARCHAR, year VARCHAR)
SELECT venue FROM table_name_27 WHERE result = "2nd" AND year < 2005
Which grid has a time/retired of +3.9 secs in less than 96 laps?
CREATE TABLE table_name_42 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT AVG(grid) FROM table_name_42 WHERE time_retired = "+3.9 secs" AND laps < 96
What away team played at western oval?
CREATE TABLE table_name_11 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_11 WHERE venue = "western oval"
if the completed is 2010, what is the number of floors?
CREATE TABLE table_27067379_1 (number_of_floors INTEGER, completion VARCHAR)
SELECT MIN(number_of_floors) FROM table_27067379_1 WHERE completion = 2010
What company does Simon Stone direct earlier than 2011?
CREATE TABLE table_name_14 (company VARCHAR, director VARCHAR, year VARCHAR)
SELECT company FROM table_name_14 WHERE director = "simon stone" AND year < 2011
What is the total number of long Dubose, E., who had 0 losses, a gain less than 17, and an avg/g bigger than 0, had?
CREATE TABLE table_name_45 (long VARCHAR, name VARCHAR, avg_g VARCHAR, loss VARCHAR, gain VARCHAR)
SELECT COUNT(long) FROM table_name_45 WHERE loss = 0 AND gain < 17 AND avg_g > 0 AND name = "dubose, e."
What is Elizabeth Yarnold's nation?
CREATE TABLE table_name_70 (nation VARCHAR, athlete_s_ VARCHAR)
SELECT nation FROM table_name_70 WHERE athlete_s_ = "elizabeth yarnold"
what's the player with college being penn state
CREATE TABLE table_14655985_1 (player VARCHAR, college VARCHAR)
SELECT player FROM table_14655985_1 WHERE college = "Penn State"
Which competition had a 4-3 score?
CREATE TABLE table_name_86 (competition VARCHAR, score VARCHAR)
SELECT competition FROM table_name_86 WHERE score = "4-3"
what was the score on 6 june 2010?
CREATE TABLE table_name_82 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_82 WHERE date = "6 june 2010"
What is the I/O bus entry for the processor with a release price of $657?
CREATE TABLE table_name_65 (i_o_bus VARCHAR, release_price___usd__ VARCHAR)
SELECT i_o_bus FROM table_name_65 WHERE release_price___usd__ = "$657"
What was the opponent for july 21?
CREATE TABLE table_name_35 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_35 WHERE date = "july 21"
Which episode was N/A in region 1
CREATE TABLE table_15823956_1 (episodes VARCHAR, region_1 VARCHAR)
SELECT episodes FROM table_15823956_1 WHERE region_1 = "N/A"
What is the Score of the match on August 23, 2004?
CREATE TABLE table_name_71 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_71 WHERE date = "august 23, 2004"
Which year had a transmission of Voith D863.4 and a Cummins ISM engine?
CREATE TABLE table_19643196_1 (year VARCHAR, transmission VARCHAR, engine VARCHAR)
SELECT year FROM table_19643196_1 WHERE transmission = "Voith D863.4" AND engine = "Cummins ISM"
How many locations are listed for the Big 12 Conference?
CREATE TABLE table_22645714_5 (tournament_venue__city_ VARCHAR, conference VARCHAR)
SELECT COUNT(tournament_venue__city_) FROM table_22645714_5 WHERE conference = "Big 12 conference"
What is the lowest ends lost when the stolen ends for is less than 13, and stolten ends against is 6?
CREATE TABLE table_name_16 (ends_lost INTEGER, stolen_ends_for VARCHAR, stolen_ends_against VARCHAR)
SELECT MIN(ends_lost) FROM table_name_16 WHERE stolen_ends_for < 13 AND stolen_ends_against = 6
Show the first name and last name for the customer with account name 900.
CREATE TABLE Accounts (customer_id VARCHAR, account_name VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR)
SELECT T2.customer_first_name, T2.customer_last_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.account_name = "900"
WHAT MANUFACTURER AFTER 1966 HAD A START SMALLER THAN 5, A WOOD TEAM AND FINISHED 35?
CREATE TABLE table_name_5 (manufacturer VARCHAR, finish VARCHAR, team VARCHAR, year VARCHAR, start VARCHAR)
SELECT manufacturer FROM table_name_5 WHERE year > 1966 AND start < 5 AND team = "wood" AND finish = 35
What type of graphics are present in the Precision 340 model with the intel 850e chipset?
CREATE TABLE table_name_99 (graphics VARCHAR, chipset VARCHAR, model VARCHAR)
SELECT graphics FROM table_name_99 WHERE chipset = "intel 850e" AND model = "precision 340"
When did St Kilda play a home game?
CREATE TABLE table_name_91 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_91 WHERE home_team = "st kilda"
Which episode has ulrika jonsson and michael mcintyre on sean's team?
CREATE TABLE table_23292220_4 (episode VARCHAR, seans_team VARCHAR)
SELECT episode FROM table_23292220_4 WHERE seans_team = "Ulrika Jonsson and Michael McIntyre"
What is the hand number of the hand where player 1 is south and the east wind is prevailing?
CREATE TABLE table_26853172_1 (hand_number VARCHAR, player_1 VARCHAR, prevailing_wind VARCHAR)
SELECT COUNT(hand_number) FROM table_26853172_1 WHERE player_1 = "South" AND prevailing_wind = "East"
Show invoice dates and order id and details for all invoices.
CREATE TABLE Invoices (invoice_date VARCHAR, order_id VARCHAR); CREATE TABLE Orders (order_details VARCHAR, order_id VARCHAR)
SELECT T1.invoice_date, T1.order_id, T2.order_details FROM Invoices AS T1 JOIN Orders AS T2 ON T1.order_id = T2.order_id
What is Date, when Format is Vinyl, and when Label is Mercury?
CREATE TABLE table_name_65 (date VARCHAR, format VARCHAR, label VARCHAR)
SELECT date FROM table_name_65 WHERE format = "vinyl" AND label = "mercury"
What is the largest capacity for a stadium?
CREATE TABLE table_25129482_1 (capacity INTEGER)
SELECT MAX(capacity) FROM table_25129482_1
Which Total has a Bronze larger than 2, a Gold smaller than 16, a Silver of 0, and a Rank of 13?
CREATE TABLE table_name_27 (total INTEGER, rank VARCHAR, silver VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT AVG(total) FROM table_name_27 WHERE bronze > 2 AND gold < 16 AND silver = 0 AND rank = "13"
What was the award for the excellence in tamil category?
CREATE TABLE table_name_96 (award VARCHAR, category VARCHAR)
SELECT award FROM table_name_96 WHERE category = "excellence in tamil"
What is the lowest pick from Elitserien (Sweden)?
CREATE TABLE table_name_15 (pick__number INTEGER, league_from VARCHAR)
SELECT MIN(pick__number) FROM table_name_15 WHERE league_from = "elitserien (sweden)"
Which Location Attendance has a Game larger than 5?
CREATE TABLE table_name_32 (location_attendance VARCHAR, game INTEGER)
SELECT location_attendance FROM table_name_32 WHERE game > 5
What was the score of the game at the Chicago Stadium?
CREATE TABLE table_name_67 (score VARCHAR, location_attendance VARCHAR)
SELECT score FROM table_name_67 WHERE location_attendance = "chicago stadium"
How many different kickoffs happened when the opponent was the Scottish Claymores
CREATE TABLE table_26275503_2 (kickoff VARCHAR, opponent VARCHAR)
SELECT COUNT(kickoff) FROM table_26275503_2 WHERE opponent = "Scottish Claymores"
what is the date when the opponent is real juventud?
CREATE TABLE table_name_90 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_90 WHERE opponent = "real juventud"
what is the "normalized" transliteration for Roman i
CREATE TABLE table_name_9 (roman_equivalent VARCHAR)
SELECT "normalised" AS _transliteration FROM table_name_9 WHERE roman_equivalent = "i"
Whose term expired in 1996 and was from the province of Central Highlands?
CREATE TABLE table_name_74 (name VARCHAR, province VARCHAR, term_expires VARCHAR)
SELECT name FROM table_name_74 WHERE province = "central highlands" AND term_expires = 1996
What is the city and region of the team in the dalhús arena?
CREATE TABLE table_name_35 (city VARCHAR, _region VARCHAR, arena VARCHAR)
SELECT city, _region FROM table_name_35 WHERE arena = "dalhús"
what's the series with reverse being swimming
CREATE TABLE table_12284476_8 (series VARCHAR, reverse VARCHAR)
SELECT series FROM table_12284476_8 WHERE reverse = "Swimming"
What is the template type descriptions for template type code "AD".
CREATE TABLE Ref_template_types (template_type_description VARCHAR, template_type_code VARCHAR)
SELECT template_type_description FROM Ref_template_types WHERE template_type_code = "AD"
Show all the ranks and the number of male and female faculty for each rank.
CREATE TABLE Faculty (rank VARCHAR, sex VARCHAR)
SELECT rank, sex, COUNT(*) FROM Faculty GROUP BY rank, sex
Released on April 12, 1968 in LP format, what was the catalog?
CREATE TABLE table_name_20 (catalog VARCHAR, format VARCHAR, date VARCHAR)
SELECT catalog FROM table_name_20 WHERE format = "lp" AND date = "april 12, 1968"
How much time did Coad make when the margin was 04:02?
CREATE TABLE table_name_44 (total_time VARCHAR, margin VARCHAR, driver VARCHAR)
SELECT total_time FROM table_name_44 WHERE margin = "04:02" AND driver = "coad"
How many places featured the DXCL Callsign?
CREATE TABLE table_12547903_3 (location VARCHAR, callsign VARCHAR)
SELECT COUNT(location) FROM table_12547903_3 WHERE callsign = "DXCL"
What is the Record of the Montreal Canadiens Home game on March 23?
CREATE TABLE table_name_38 (record VARCHAR, home VARCHAR, date VARCHAR)
SELECT record FROM table_name_38 WHERE home = "montreal canadiens" AND date = "march 23"
What venue has a score of 4-0 with the 2002 Tiger Cup listed as the competition?
CREATE TABLE table_name_26 (venue VARCHAR, score VARCHAR, competition VARCHAR)
SELECT venue FROM table_name_26 WHERE score = "4-0" AND competition = "2002 tiger cup"
How many spectators watched when the away team was Collingwood?
CREATE TABLE table_name_8 (crowd VARCHAR, away_team VARCHAR)
SELECT crowd FROM table_name_8 WHERE away_team = "collingwood"
Who does pregame analysts for TSN2 network when Taylor Twellman is the color commentator?
CREATE TABLE table_name_74 (pregame_analysts VARCHAR, color_commentator VARCHAR, network VARCHAR)
SELECT pregame_analysts FROM table_name_74 WHERE color_commentator = "taylor twellman" AND network = "tsn2"
What first appeared in 1966 in the comic X-2-Y?
CREATE TABLE table_name_60 (first_appearance VARCHAR, year VARCHAR, name VARCHAR)
SELECT first_appearance FROM table_name_60 WHERE year = 1966 AND name = "x-2-y"
How many classes are professor whose last name is Graztevski has?
CREATE TABLE CLASS (PROF_NUM VARCHAR); CREATE TABLE employee (EMP_NUM VARCHAR, EMP_LNAME VARCHAR)
SELECT COUNT(*) FROM employee AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM = T2.PROF_NUM WHERE T1.EMP_LNAME = 'Graztevski'
what is the average Against has Drawn of 2, and a Played larger than 10?
CREATE TABLE table_name_37 (against INTEGER, drawn VARCHAR, played VARCHAR)
SELECT AVG(against) FROM table_name_37 WHERE drawn = 2 AND played > 10
Who was featured in 20 questions on 4-03?
CREATE TABLE table_1566852_4 (date VARCHAR)
SELECT 20 AS _questions FROM table_1566852_4 WHERE date = "4-03"
What position did he finish in 2012?
CREATE TABLE table_name_59 (position VARCHAR, year VARCHAR)
SELECT position FROM table_name_59 WHERE year = 2012
What is the location and attendance of the game with a game number greater than 7 and a record of 5-2-1?
CREATE TABLE table_name_90 (location_attendance VARCHAR, game VARCHAR, record VARCHAR)
SELECT location_attendance FROM table_name_90 WHERE game > 7 AND record = "5-2-1"
In what county is the entry that has a Construction Completed date of 07/19/2000 and a Listed date of 09/21/1984 located?
CREATE TABLE table_name_68 (county VARCHAR, listed VARCHAR, construction_completed VARCHAR)
SELECT county FROM table_name_68 WHERE listed = "09/21/1984" AND construction_completed = "07/19/2000"
What is the maximum number of blocks where rebounds equal 35?
CREATE TABLE table_19722664_5 (blocks INTEGER, rebounds VARCHAR)
SELECT MAX(blocks) FROM table_19722664_5 WHERE rebounds = 35
What Round against Aleksander Emelianenko had a time of 5:00?
CREATE TABLE table_name_98 (round VARCHAR, time VARCHAR, opponent VARCHAR)
SELECT round FROM table_name_98 WHERE time = "5:00" AND opponent = "aleksander emelianenko"
What is the name of the country when the ioc code is mas?
CREATE TABLE table_2879165_1 (country VARCHAR, ioc_code VARCHAR)
SELECT country FROM table_2879165_1 WHERE ioc_code = "MAS"
How many are injured in Borneo?
CREATE TABLE table_name_68 (injured VARCHAR, location VARCHAR)
SELECT injured FROM table_name_68 WHERE location = "borneo"
Who captains Portsmouth?
CREATE TABLE table_name_9 (captain VARCHAR, team VARCHAR)
SELECT captain FROM table_name_9 WHERE team = "portsmouth"
What is Australian, when Examples is "amœba, anemone, ascesis"?
CREATE TABLE table_name_95 (australian VARCHAR, examples VARCHAR)
SELECT australian FROM table_name_95 WHERE examples = "amœba, anemone, ascesis"
On what date did Fitzroy play as the home team?
CREATE TABLE table_name_74 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_74 WHERE home_team = "fitzroy"
What is the driver for the team whose primary sponsor is Quicken Loans / Haas Automation?
CREATE TABLE table_1266602_1 (driver_s_ VARCHAR, primary_sponsor_s_ VARCHAR)
SELECT driver_s_ FROM table_1266602_1 WHERE primary_sponsor_s_ = "Quicken Loans / Haas Automation"
Name the champion for christopher miles runner-up
CREATE TABLE table_name_52 (champion VARCHAR, runner_up VARCHAR)
SELECT champion FROM table_name_52 WHERE runner_up = "christopher miles"
What is the name of the entry that has a developer entry of Yes and a personal sites entry of No?
CREATE TABLE table_name_61 (name VARCHAR, developer VARCHAR, personal_sites VARCHAR)
SELECT name FROM table_name_61 WHERE developer = "yes" AND personal_sites = "no"
What is Streak, when Heat Points is "101", and when Game is "16"?
CREATE TABLE table_name_12 (streak VARCHAR, heat_points VARCHAR, game VARCHAR)
SELECT streak FROM table_name_12 WHERE heat_points = 101 AND game = 16
What was the latest season with 20 contestants?
CREATE TABLE table_20026849_1 (season INTEGER, contestants VARCHAR)
SELECT MAX(season) FROM table_20026849_1 WHERE contestants = 20
What is the city containing the KDKA-TV station?
CREATE TABLE table_name_61 (city_of_license__market VARCHAR, station VARCHAR)
SELECT city_of_license__market FROM table_name_61 WHERE station = "kdka-tv"
Record of 92–70 had what date?
CREATE TABLE table_name_70 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_70 WHERE record = "92–70"
Name the total number of series for march 19, 2000
CREATE TABLE table_1876825_2 (no_in_series VARCHAR, original_air_date VARCHAR)
SELECT COUNT(no_in_series) FROM table_1876825_2 WHERE original_air_date = "March 19, 2000"
List the grape, winery and year of the wines whose price is bigger than 100 ordered by year.
CREATE TABLE WINE (Grape VARCHAR, Winery VARCHAR, YEAR VARCHAR, Price INTEGER)
SELECT Grape, Winery, YEAR FROM WINE WHERE Price > 100 ORDER BY YEAR
What grid has 2 laps?
CREATE TABLE table_name_93 (grid VARCHAR, laps VARCHAR)
SELECT grid FROM table_name_93 WHERE laps = "2"
What is the alternate of the nation with Piotras Gerasimovici as the second?
CREATE TABLE table_name_19 (alternate VARCHAR, second VARCHAR)
SELECT alternate FROM table_name_19 WHERE second = "piotras gerasimovici"
what is the highest draw when the place is less than 3 and the percentage is 30.71%?
CREATE TABLE table_name_61 (draw INTEGER, place VARCHAR, percentage VARCHAR)
SELECT MAX(draw) FROM table_name_61 WHERE place < 3 AND percentage = "30.71%"