question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
How many total number have robert young as the director?
CREATE TABLE table_19982699_1 (_number VARCHAR, director VARCHAR)
SELECT COUNT(_number) FROM table_19982699_1 WHERE director = "Robert Young"
What is the Score, when the Venue is Lübker Golf Resort?
CREATE TABLE table_name_37 (score VARCHAR, venue VARCHAR)
SELECT score FROM table_name_37 WHERE venue = "lübker golf resort"
What is the Attendance number when the Opponent was purdue?
CREATE TABLE table_name_15 (attendance VARCHAR, opponent_number VARCHAR)
SELECT attendance FROM table_name_15 WHERE opponent_number = "purdue"
Which Opposition has a City of taunton?
CREATE TABLE table_name_17 (opposition VARCHAR, city VARCHAR)
SELECT opposition FROM table_name_17 WHERE city = "taunton"
Which lowest position has goals against smaller than 78, Points of 42-2, and Wins larger than 15?
CREATE TABLE table_name_63 (position INTEGER, wins VARCHAR, goals_against VARCHAR, points VARCHAR)
SELECT MIN(position) FROM table_name_63 WHERE goals_against < 78 AND points = "42-2" AND wins > 15
What is the smallest number of safeties?
CREATE TABLE table_25642873_2 (safeties INTEGER)
SELECT MIN(safeties) FROM table_25642873_2
What is the rank for Mar 17 when the April 21 rank is 10?
CREATE TABLE table_name_96 (mar_17 VARCHAR, april_21 VARCHAR)
SELECT mar_17 FROM table_name_96 WHERE april_21 = "10"
What are the dates of publications in descending order of price?
CREATE TABLE publication (Publication_Date VARCHAR, Price VARCHAR)
SELECT Publication_Date FROM publication ORDER BY Price DESC
What was the site of the game that had an 11-4 score?
CREATE TABLE table_28001186_8 (site_stadium VARCHAR, score VARCHAR)
SELECT site_stadium FROM table_28001186_8 WHERE score = "11-4"
What is the perfect stem for pozten?
CREATE TABLE table_12784134_24 (perfect_stem VARCHAR, imperfect_stem VARCHAR)
SELECT perfect_stem FROM table_12784134_24 WHERE imperfect_stem = "pozten"
What is the lowest overall for a quarterback with fewer than 7 rounds?
CREATE TABLE table_name_88 (overall INTEGER, position VARCHAR, round VARCHAR)
SELECT MIN(overall) FROM table_name_88 WHERE position = "quarterback" AND round < 7
Who won when V. A. Muthiah was the runner-up?
CREATE TABLE table_22756549_1 (winner VARCHAR, runner_up_a VARCHAR)
SELECT winner FROM table_22756549_1 WHERE runner_up_a = "V. A. Muthiah"
Which Club has a Rank of 5?
CREATE TABLE table_name_40 (club VARCHAR, rank VARCHAR)
SELECT club FROM table_name_40 WHERE rank = "5"
What is Alexandr Elke's Weight?
CREATE TABLE table_name_59 (weight VARCHAR, name VARCHAR)
SELECT weight FROM table_name_59 WHERE name = "alexandr elke"
What is Country, when Points are more than 12?
CREATE TABLE table_name_30 (country VARCHAR, points INTEGER)
SELECT country FROM table_name_30 WHERE points > 12
What is the highest number of losses with 25 points?
CREATE TABLE table_name_79 (lost INTEGER, points VARCHAR)
SELECT MAX(lost) FROM table_name_79 WHERE points = 25
What is the enrollment number for Rockville?
CREATE TABLE table_name_27 (enrollment VARCHAR, location VARCHAR)
SELECT COUNT(enrollment) FROM table_name_27 WHERE location = "rockville"
What is the average reaction for brigitte foster-hylton after heat 1?
CREATE TABLE table_name_53 (reaction INTEGER, heat VARCHAR, name VARCHAR)
SELECT AVG(reaction) FROM table_name_53 WHERE heat > 1 AND name = "brigitte foster-hylton"
What is 1995 Grand Slam Tournament if 1996 is also grand slam tournaments?
CREATE TABLE table_name_33 (Id VARCHAR)
SELECT 1990 FROM table_name_33 WHERE 1996 = "grand slam tournaments"
How many goals were scored when 158 points were collected?
CREATE TABLE table_name_45 (goals VARCHAR, points VARCHAR)
SELECT goals FROM table_name_45 WHERE points = "158"
What is the Position, when Player is "Magnus Nygren"?
CREATE TABLE table_name_53 (position VARCHAR, player VARCHAR)
SELECT position FROM table_name_53 WHERE player = "magnus nygren"
What was the largest number of people in attendance of the game with a W 14-3 result after week 10?
CREATE TABLE table_name_10 (attendance INTEGER, result VARCHAR, week VARCHAR)
SELECT MAX(attendance) FROM table_name_10 WHERE result = "w 14-3" AND week > 10
Name the score when it had a decision of dipietro and visitor of ny islanders with home of colorado
CREATE TABLE table_name_80 (score VARCHAR, home VARCHAR, decision VARCHAR, visitor VARCHAR)
SELECT score FROM table_name_80 WHERE decision = "dipietro" AND visitor = "ny islanders" AND home = "colorado"
Which First has a Surname of searle?
CREATE TABLE table_name_42 (first VARCHAR, surname VARCHAR)
SELECT first FROM table_name_42 WHERE surname = "searle"
What is the Date of Catalog 573 194-2?
CREATE TABLE table_name_76 (date VARCHAR, catalog VARCHAR)
SELECT date FROM table_name_76 WHERE catalog = "573 194-2"
What's the first aired date when Professor Hubert Whitehead was the role?
CREATE TABLE table_name_30 (first_aired VARCHAR, role VARCHAR)
SELECT first_aired FROM table_name_30 WHERE role = "professor hubert whitehead"
Find the details for all chip models.
CREATE TABLE chip_model (Id VARCHAR)
SELECT * FROM chip_model
What was the score of the game when the record was 32–19–7?
CREATE TABLE table_name_40 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_40 WHERE record = "32–19–7"
Name the Daytime which has Saturday of yes and a Name of exmouth?
CREATE TABLE table_name_5 (daytime VARCHAR, saturday VARCHAR, name VARCHAR)
SELECT daytime FROM table_name_5 WHERE saturday = "yes" AND name = "exmouth"
What was the population of the coastal location Isio in May of 2000?
CREATE TABLE table_2051288_1 (_2000_ VARCHAR, population__may INTEGER, location VARCHAR, barangay VARCHAR)
SELECT MIN(population__may), _2000_ FROM table_2051288_1 WHERE location = "coastal" AND barangay = "Isio"
When the United Kingdom had a time of 1:30.51.2, what was the lowest that they ranked?
CREATE TABLE table_name_8 (place INTEGER, country VARCHAR, time VARCHAR)
SELECT MIN(place) FROM table_name_8 WHERE country = "united kingdom" AND time = "1:30.51.2"
What country is the athlete ekaterina karsten from with a rank less than 4?
CREATE TABLE table_name_85 (country VARCHAR, rank VARCHAR, athlete VARCHAR)
SELECT country FROM table_name_85 WHERE rank < 4 AND athlete = "ekaterina karsten"
Which player finished t35?
CREATE TABLE table_name_89 (player VARCHAR, finish VARCHAR)
SELECT player FROM table_name_89 WHERE finish = "t35"
Which Hanya has an area of 19.3888?
CREATE TABLE table_name_59 (hanyu VARCHAR, area__km²_ VARCHAR)
SELECT hanyu FROM table_name_59 WHERE area__km²_ = 19.3888
What is the score for the Oregon location?
CREATE TABLE table_11622896_1 (score VARCHAR, location VARCHAR)
SELECT score FROM table_11622896_1 WHERE location = "Oregon"
Who's the opponent of the game with the record 64-51?
CREATE TABLE table_name_60 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_60 WHERE record = "64-51"
Who owned the team Jeremy Mayfield raced for?
CREATE TABLE table_1529793_1 (listed_owner_s_ VARCHAR, driver_s_ VARCHAR)
SELECT listed_owner_s_ FROM table_1529793_1 WHERE driver_s_ = "Jeremy Mayfield"
Margot Kidder had what director?
CREATE TABLE table_11642945_1 (director VARCHAR, celebrity VARCHAR)
SELECT director FROM table_11642945_1 WHERE celebrity = "Margot Kidder"
what is the time/retired when the driver is toulo de graffenried?
CREATE TABLE table_name_81 (time_retired VARCHAR, driver VARCHAR)
SELECT time_retired FROM table_name_81 WHERE driver = "toulo de graffenried"
Name the title that was written by r. scott gemmill
CREATE TABLE table_17356042_1 (title VARCHAR, written_by VARCHAR)
SELECT title FROM table_17356042_1 WHERE written_by = "R. Scott Gemmill"
What is the result of the game with 68,436 attending?
CREATE TABLE table_name_98 (result VARCHAR, attendance VARCHAR)
SELECT result FROM table_name_98 WHERE attendance = "68,436"
What is the latest year that the final television commentator was David Jacobs?
CREATE TABLE table_17766232_7 (year_s_ INTEGER, final_television_commentator VARCHAR)
SELECT MAX(year_s_) FROM table_17766232_7 WHERE final_television_commentator = "David Jacobs"
Who was the player from the United States with a score of 70-70-71=211?
CREATE TABLE table_name_66 (player VARCHAR, country VARCHAR, score VARCHAR)
SELECT player FROM table_name_66 WHERE country = "united states" AND score = 70 - 70 - 71 = 211
What is the Capacity of Ernst-Abbe-Sportfeld?
CREATE TABLE table_name_25 (capacity VARCHAR, stadium VARCHAR)
SELECT capacity FROM table_name_25 WHERE stadium = "ernst-abbe-sportfeld"
What is the rank of the chinese title 緣來自有機?
CREATE TABLE table_11173827_1 (rank VARCHAR, chinese_title VARCHAR)
SELECT rank FROM table_11173827_1 WHERE chinese_title = "緣來自有機"
In 1994 what tournament held a ATP masters series
CREATE TABLE table_name_38 (tournament VARCHAR)
SELECT 1994 FROM table_name_38 WHERE tournament = "atp masters series"
The Decile of 6 has which corresponding Years?
CREATE TABLE table_name_91 (years VARCHAR, decile VARCHAR)
SELECT years FROM table_name_91 WHERE decile = "6"
What is the average games Played with positions higher than 3 that have goals Against less than 27 and a Lost games smaller than 6?
CREATE TABLE table_name_3 (played INTEGER, lost VARCHAR, position VARCHAR, against VARCHAR)
SELECT AVG(played) FROM table_name_3 WHERE position > 3 AND against < 27 AND lost < 6
What is the earliest year for 9 points?
CREATE TABLE table_name_79 (year INTEGER, points VARCHAR)
SELECT MIN(year) FROM table_name_79 WHERE points = 9
Who did the Blue Jays play against on April 11?
CREATE TABLE table_name_52 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_52 WHERE date = "april 11"
Who was the opponent when the method was points (4 x 0)?
CREATE TABLE table_name_55 (opponent VARCHAR, method VARCHAR)
SELECT opponent FROM table_name_55 WHERE method = "points (4 x 0)"
How many different ranks does the Cathay Pacific Plaza 2 have?
CREATE TABLE table_23759976_1 (rank VARCHAR, building_ VARCHAR, a_ VARCHAR)
SELECT COUNT(rank) FROM table_23759976_1 WHERE building_[a_] = "Cathay Pacific Plaza 2"
Which home team played at Princes Park?
CREATE TABLE table_name_67 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_67 WHERE venue = "princes park"
Who were the rowers from china wh had a rank smaller than 4?
CREATE TABLE table_name_51 (rowers VARCHAR, rank VARCHAR, country VARCHAR)
SELECT rowers FROM table_name_51 WHERE rank < 4 AND country = "china"
What is Points Against, when Try Bonus is "Try bonus"?
CREATE TABLE table_name_77 (points_against VARCHAR, try_bonus VARCHAR)
SELECT points_against FROM table_name_77 WHERE try_bonus = "try bonus"
Which round had a city/location of Toronto, Ontario?
CREATE TABLE table_name_81 (round VARCHAR, city_location VARCHAR)
SELECT round FROM table_name_81 WHERE city_location = "toronto, ontario"
How many mixed doubles were won in 1996?
CREATE TABLE table_15001957_1 (mixed_doubles VARCHAR, year VARCHAR)
SELECT COUNT(mixed_doubles) FROM table_15001957_1 WHERE year = 1996
Find the first names and offices of all instructors who have taught some course and the course description and the department name.
CREATE TABLE employee (emp_fname VARCHAR, emp_num VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR); CREATE TABLE course (crs_description VARCHAR, crs_code VARCHAR); CREATE TABLE CLASS (prof_num VARCHAR, crs_code VARCHAR); CREATE TABLE professor (prof_office VARCHAR, emp_num VARCHAR, dept_code VA...
SELECT T2.emp_fname, T4.prof_office, T3.crs_description, T5.dept_name FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN professor AS T4 ON T2.emp_num = T4.emp_num JOIN department AS T5 ON T4.dept_code = T5.dept_code
What is the average public debt % of GDP in 2013 Q1 of the country with a member slate sorted by GDP of Czech Republic and a GDP per capita in PPP US dollars in 2012 greater than 27,191?
CREATE TABLE table_name_7 (public_debt__percentage_of_gdp__2013_q1_ INTEGER, member_state_sorted_by_gdp VARCHAR, gdp_per_capita_in_ppp_us$__2012_ VARCHAR)
SELECT AVG(public_debt__percentage_of_gdp__2013_q1_) FROM table_name_7 WHERE member_state_sorted_by_gdp = "czech republic" AND gdp_per_capita_in_ppp_us$__2012_ > 27 OFFSET 191
What number pick was Bill Athey?
CREATE TABLE table_name_70 (pick__number VARCHAR, name VARCHAR)
SELECT pick__number FROM table_name_70 WHERE name = "bill athey"
How many companies operates airlines in each airport?
CREATE TABLE airport (id VARCHAR); CREATE TABLE flight (Id VARCHAR); CREATE TABLE operate_company (id VARCHAR)
SELECT T3.id, COUNT(*) FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id JOIN airport AS T3 ON T2.airport_id = T3.id GROUP BY T3.id
What was the date of the game when the record was 53–104?
CREATE TABLE table_name_89 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_89 WHERE record = "53–104"
What is the lowest number of wins with more than 113 points in 4th rank?
CREATE TABLE table_name_80 (wins INTEGER, points VARCHAR, rank VARCHAR)
SELECT MIN(wins) FROM table_name_80 WHERE points > 113 AND rank = "4th"
Which of the participating clubs had 73 tries for?
CREATE TABLE table_name_73 (club VARCHAR, tries_for VARCHAR)
SELECT club FROM table_name_73 WHERE tries_for = "73"
On what date did Gunnar Nilsson make the fastest lap?
CREATE TABLE table_name_38 (date VARCHAR, fastest_lap VARCHAR)
SELECT date FROM table_name_38 WHERE fastest_lap = "gunnar nilsson"
What is the Result of the battle with Latin Commander Boniface of Montferrat?
CREATE TABLE table_name_3 (result VARCHAR, latin_commander VARCHAR)
SELECT result FROM table_name_3 WHERE latin_commander = "boniface of montferrat"
How many Sets did Gary Muller have?
CREATE TABLE table_name_21 (sets VARCHAR, player VARCHAR)
SELECT COUNT(sets) FROM table_name_21 WHERE player = "gary muller"
What is the lowest draws that have losses greater than 0, an against less than 1728, melton as the ballarat fl, and byes less than 2?
CREATE TABLE table_name_66 (draws INTEGER, byes VARCHAR, ballarat_fl VARCHAR, losses VARCHAR, against VARCHAR)
SELECT MIN(draws) FROM table_name_66 WHERE losses > 0 AND against < 1728 AND ballarat_fl = "melton" AND byes < 2
What is the least amount of podiums?
CREATE TABLE table_25548630_1 (podiums INTEGER)
SELECT MIN(podiums) FROM table_25548630_1
What is the Best score if the Maidens is 547 and Overs is 2755.1?
CREATE TABLE table_18914438_1 (best VARCHAR, maidens VARCHAR, overs VARCHAR)
SELECT best FROM table_18914438_1 WHERE maidens = 547 AND overs = "2755.1"
What is the smallest number of gold medals corresponding to the total rank with more than 4 bronze medals?
CREATE TABLE table_name_7 (gold INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT MIN(gold) FROM table_name_7 WHERE rank = "total" AND bronze > 4
How many people are listed for high rebounds on game 30?
CREATE TABLE table_27723228_8 (high_rebounds VARCHAR, game VARCHAR)
SELECT COUNT(high_rebounds) FROM table_27723228_8 WHERE game = 30
What country was Henry Picard from?
CREATE TABLE table_name_22 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_22 WHERE player = "henry picard"
What is Tiger Woods's score?
CREATE TABLE table_name_1 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_1 WHERE player = "tiger woods"
How much Silver has a Nation of total, and a Total smaller than 54?
CREATE TABLE table_name_58 (silver VARCHAR, nation VARCHAR)
SELECT COUNT(silver) FROM table_name_58 WHERE nation = "total" AND "total" < 54
What school is in Richmond?
CREATE TABLE table_2076608_3 (school VARCHAR, location_s_ VARCHAR)
SELECT school FROM table_2076608_3 WHERE location_s_ = "Richmond"
How many points did Corbari Italia earn in 1985?
CREATE TABLE table_name_90 (points VARCHAR, entrant VARCHAR, year VARCHAR)
SELECT points FROM table_name_90 WHERE entrant = "corbari italia" AND year = 1985
What is the date of the game with 38,062 people in attendance?
CREATE TABLE table_name_80 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_80 WHERE attendance = "38,062"
How did the election end for Robert Wexler?
CREATE TABLE table_1341453_11 (results VARCHAR, incumbent VARCHAR)
SELECT results FROM table_1341453_11 WHERE incumbent = "Robert Wexler"
what is the minimum storeys on 325 5th ave n
CREATE TABLE table_13397394_1 (storeys INTEGER, address VARCHAR)
SELECT MIN(storeys) FROM table_13397394_1 WHERE address = "325 5th Ave N"
What is the ICAO for the destination in Armenia?
CREATE TABLE table_name_80 (icao VARCHAR, country VARCHAR)
SELECT icao FROM table_name_80 WHERE country = "armenia"
What is the Standard cost (USD) by hans Oischinger Creator ?
CREATE TABLE table_name_27 (standard_cost__usd_ VARCHAR, creator VARCHAR)
SELECT standard_cost__usd_ FROM table_name_27 WHERE creator = "hans oischinger"
What format has 080 360-2 as the catalog?
CREATE TABLE table_name_84 (format VARCHAR, catalog VARCHAR)
SELECT format FROM table_name_84 WHERE catalog = "080 360-2"
What is the total number of points when the grade was A?
CREATE TABLE table_name_31 (points INTEGER, grade VARCHAR)
SELECT SUM(points) FROM table_name_31 WHERE grade = "a"
what is the percent of mass when the mol.weight (daltons) is 1e11?
CREATE TABLE table_name_21 (percent_of_mass VARCHAR, molweight__daltons_ VARCHAR)
SELECT percent_of_mass FROM table_name_21 WHERE molweight__daltons_ = "1e11"
What Location has a Delivery of barge and the Name of scaevola?
CREATE TABLE table_name_77 (location VARCHAR, delivery VARCHAR, name VARCHAR)
SELECT location FROM table_name_77 WHERE delivery = "barge" AND name = "scaevola"
What is Record, when Game is 27?
CREATE TABLE table_name_54 (record VARCHAR, game VARCHAR)
SELECT record FROM table_name_54 WHERE game = 27
List the names of all winners who played in both 2013 and 2016.
CREATE TABLE matches (winner_name VARCHAR, YEAR VARCHAR)
SELECT winner_name FROM matches WHERE YEAR = 2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR = 2016
Who were the candidates in the Kentucky 4 voting district?
CREATE TABLE table_1342218_17 (candidates VARCHAR, district VARCHAR)
SELECT candidates FROM table_1342218_17 WHERE district = "Kentucky 4"
What platform is nds4droid on for the nintendo ds with a license of gpl v2?
CREATE TABLE table_name_93 (platform VARCHAR, name VARCHAR, system VARCHAR, license VARCHAR)
SELECT platform FROM table_name_93 WHERE system = "nintendo ds" AND license = "gpl v2" AND name = "nds4droid"
What are the total number of laps for Tom Bridger?
CREATE TABLE table_name_63 (laps VARCHAR, driver VARCHAR)
SELECT COUNT(laps) FROM table_name_63 WHERE driver = "tom bridger"
Which Manhattan number appeared when Richmond (Staten Island) was 78%?
CREATE TABLE table_name_21 (manhattan VARCHAR, richmond_ VARCHAR, staten_is VARCHAR)
SELECT manhattan FROM table_name_21 WHERE richmond_[staten_is] = "78%"
When did the season start that ended with the top record of Lindenwood (20–0–0)?
CREATE TABLE table_22383603_1 (start__reg_season_ VARCHAR, top_record VARCHAR)
SELECT start__reg_season_ FROM table_22383603_1 WHERE top_record = "Lindenwood (20–0–0)"
What entrant appeared in 1969?
CREATE TABLE table_name_24 (entrant VARCHAR, year VARCHAR)
SELECT entrant FROM table_name_24 WHERE year = 1969
Which Weeks on Top have an Issue Date(s) of 20 november?
CREATE TABLE table_name_94 (weeks_on_top INTEGER, issue_date_s_ VARCHAR)
SELECT SUM(weeks_on_top) FROM table_name_94 WHERE issue_date_s_ = "20 november"
What is the coinage metal for a location of Fribourg and denomination of 00005 5 Francs?
CREATE TABLE table_26336060_19 (coinage_metal VARCHAR, location VARCHAR, denomination VARCHAR)
SELECT coinage_metal FROM table_26336060_19 WHERE location = "Fribourg" AND denomination = "00005 5 francs"
What's the highest league of the Nova Scotia Clippers with a total season of less than 4?
CREATE TABLE table_name_2 (highest_league VARCHAR, total_seasons VARCHAR, team VARCHAR)
SELECT highest_league FROM table_name_2 WHERE total_seasons < 4 AND team = "nova scotia clippers"
What country is Larry Mize from?
CREATE TABLE table_name_21 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_21 WHERE player = "larry mize"
Which Total population (2005 estimate) has a Province of west kalimantan (kalimantan barat), and an Area (km 2) smaller than 147,307.00?
CREATE TABLE table_name_78 (total_population__2005_estimate_ INTEGER, province VARCHAR, area__km_2__ VARCHAR)
SELECT AVG(total_population__2005_estimate_) FROM table_name_78 WHERE province = "west kalimantan (kalimantan barat)" AND area__km_2__ < 147 OFFSET 307.00
When Alberto Contador Kanstantsin Sivtsov was the general classification and Alessandro Petacchi was the points classification at the same time while Mark Cavendish is the winner, who was the mountain classification?
CREATE TABLE table_28538368_2 (mountains_classification VARCHAR, winner VARCHAR, general_classification VARCHAR, points_classification VARCHAR)
SELECT mountains_classification FROM table_28538368_2 WHERE general_classification = "Alberto Contador Kanstantsin Sivtsov" AND points_classification = "Alessandro Petacchi" AND winner = "Mark Cavendish"