answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT date FROM table_name_75 WHERE visiting_team = "houston texans"
What date had the Houston Texans as visitors?
CREATE TABLE table_name_75 (date VARCHAR, visiting_team VARCHAR)
SELECT COUNT(week_2) FROM table_28946565_2 WHERE week_7 = 40 + 40 = 80
How many week 2 scores have a week 7 score of 40 + 40 = 80?
CREATE TABLE table_28946565_2 (week_2 VARCHAR, week_7 VARCHAR)
SELECT league FROM table_name_18 WHERE year = "2010-11"
In 2010-11, what was the League name?
CREATE TABLE table_name_18 (league VARCHAR, year VARCHAR)
SELECT years_as_tallest FROM table_name_55 WHERE height_ft__m_ = "145 (44)"
What is the Years as tallest of the Building with a Height ft (m) of 145 (44)?
CREATE TABLE table_name_55 (years_as_tallest VARCHAR, height_ft__m_ VARCHAR)
SELECT round FROM table_name_92 WHERE event = "bars - moscow vs st. petersburg"
What round did the match go to when the event was Bars - Moscow vs St. Petersburg?
CREATE TABLE table_name_92 (round VARCHAR, event VARCHAR)
SELECT dates FROM table_15315276_1 WHERE champion = "Jenny Gleason"
When was Jenny Gleason the champion of the Northeast Delta Dental International?
CREATE TABLE table_15315276_1 (dates VARCHAR, champion VARCHAR)
SELECT institution FROM table_name_43 WHERE mascot = "broncbusters"
Which Institution has a Mascot of broncbusters?
CREATE TABLE table_name_43 (institution VARCHAR, mascot VARCHAR)
SELECT to_par_[a_] FROM table_name_35 WHERE course = "st andrews" AND year < 1888
What's the To par of St Andrews before the year 1888?
CREATE TABLE table_name_35 (to_par_ VARCHAR, a_ VARCHAR, course VARCHAR, year VARCHAR)
SELECT director_s_ FROM table_name_22 WHERE film = "the chapel"
Who directed the film 'The Chapel'?
CREATE TABLE table_name_22 (director_s_ VARCHAR, film VARCHAR)
SELECT COUNT(roll) FROM table_name_69 WHERE decile > 1 AND authority = "integrated" AND name = "bishop viard college"
What is the roll of Bishop Viard College (An Integrated College), which has a decile larger than 1?
CREATE TABLE table_name_69 (roll VARCHAR, name VARCHAR, decile VARCHAR, authority VARCHAR)
SELECT driver FROM table_name_80 WHERE entrant = "enrico platé"
Who is the driver for the Entract of Enrico Platé?
CREATE TABLE table_name_80 (driver VARCHAR, entrant VARCHAR)
SELECT country FROM table_name_35 WHERE city = "johannesburg"
Name the country for johannesburg
CREATE TABLE table_name_35 (country VARCHAR, city VARCHAR)
SELECT MAX(lane) FROM table_name_60 WHERE nationality = "russia" AND rank < 1
What's Russia's lane when they were ranked before 1?
CREATE TABLE table_name_60 (lane INTEGER, nationality VARCHAR, rank VARCHAR)
SELECT mls_cup_playoffs FROM table_16857_2 WHERE concacaf_champions_cup___champions_league = "Did not qualify" AND us_open_cup = "Round of 16"
How did the team place when they did not qualify for the Concaf Champions Cup but made it to Round of 16 in the U.S. Open Cup?
CREATE TABLE table_16857_2 (mls_cup_playoffs VARCHAR, concacaf_champions_cup___champions_league VARCHAR, us_open_cup VARCHAR)
SELECT outgoing_manager FROM table_name_80 WHERE manner_of_departure = "fc energie cottbus purchased rights"
Who was the outgoing manager who departed due to fc energie cottbus purchased rights?
CREATE TABLE table_name_80 (outgoing_manager VARCHAR, manner_of_departure VARCHAR)
SELECT COUNT(number_of_people_1991) FROM table_name_72 WHERE village__german_ = "rupertiberg"
How many people in 1991 have a Village (German) of rupertiberg?
CREATE TABLE table_name_72 (number_of_people_1991 VARCHAR, village__german_ VARCHAR)
SELECT COUNT(year) FROM table_name_51 WHERE performer_s_ = "louis armstrong"
How many years was Louis Armstrong performing?
CREATE TABLE table_name_51 (year VARCHAR, performer_s_ VARCHAR)
SELECT away_team AS score FROM table_name_63 WHERE away_team = "north melbourne"
When the away team was north melbourne, what was the away team score?
CREATE TABLE table_name_63 (away_team VARCHAR)
SELECT record FROM table_name_75 WHERE round = "1" AND res = "loss" AND opponent = "alex hunter"
What is the record when the loss was to Alex Hunter in round 1?
CREATE TABLE table_name_75 (record VARCHAR, opponent VARCHAR, round VARCHAR, res VARCHAR)
SELECT SUM(played) FROM table_name_22 WHERE goals_for > 60 AND lost = 8 AND position < 1
What is the total of Played where the Goals For is higher than 60, the Lost is 8, and the Position is less than 1?
CREATE TABLE table_name_22 (played INTEGER, position VARCHAR, goals_for VARCHAR, lost VARCHAR)
SELECT no FROM table_12962773_10 WHERE height = "2.10"
Which player number is 2.10 meters tall?
CREATE TABLE table_12962773_10 (no VARCHAR, height VARCHAR)
SELECT district FROM table_2147588_4 WHERE successor = "William B. Campbell (U)"
When william b. campbell (u) is the successor what is the district?
CREATE TABLE table_2147588_4 (district VARCHAR, successor VARCHAR)
SELECT hdtv FROM table_15887683_19 WHERE television_service = "PRIVÈ"
Was there HDTV when the service was Privè?
CREATE TABLE table_15887683_19 (hdtv VARCHAR, television_service VARCHAR)
SELECT week FROM table_name_37 WHERE attendance = "90,138"
Which week's game had an attendance of 90,138?
CREATE TABLE table_name_37 (week VARCHAR, attendance VARCHAR)
SELECT score FROM table_name_55 WHERE total = "80–72"
Which Score has a Total of 80–72?
CREATE TABLE table_name_55 (score VARCHAR, total VARCHAR)
SELECT AVG(track) FROM table_name_48 WHERE writer_s_ = "mac davis"
Which Track has a Writer(s) of mac davis?
CREATE TABLE table_name_48 (track INTEGER, writer_s_ VARCHAR)
SELECT date FROM table_name_14 WHERE week = 7
What was the date for the game in week 7?
CREATE TABLE table_name_14 (date VARCHAR, week VARCHAR)
SELECT SUM(attendance) FROM table_name_9 WHERE date = "8 march 2008"
How many people attended the game on 8 March 2008?
CREATE TABLE table_name_9 (attendance INTEGER, date VARCHAR)
SELECT h_a_n FROM table_name_12 WHERE score = "108-102"
What was the H/A/N for the game that ended in a score of 108-102?
CREATE TABLE table_name_12 (h_a_n VARCHAR, score VARCHAR)
SELECT date FROM table_name_3 WHERE week = 6
What day did the play on week 6?
CREATE TABLE table_name_3 (date VARCHAR, week VARCHAR)
SELECT company FROM table_168274_1 WHERE index_weighting___percentage__at_17_january_2013 = "11.96"
Name the company where index weighting % is 11.96
CREATE TABLE table_168274_1 (company VARCHAR, index_weighting___percentage__at_17_january_2013 VARCHAR)
SELECT player FROM table_1013129_10 WHERE nhl_team = "San Jose Sharks" AND nationality = "United States"
NHL team player San Jose Sharks is United States nationally.
CREATE TABLE table_1013129_10 (player VARCHAR, nhl_team VARCHAR, nationality VARCHAR)
SELECT high_rebounds FROM table_name_44 WHERE game > 33 AND score = "w 132-101"
What is High Rebounds, when Game is greater than 33, and when Score is "W 132-101"?
CREATE TABLE table_name_44 (high_rebounds VARCHAR, game VARCHAR, score VARCHAR)
SELECT COUNT(location_attendance) FROM table_23248967_9 WHERE date = "March 6"
How many game locations occurred on March 6?
CREATE TABLE table_23248967_9 (location_attendance VARCHAR, date VARCHAR)
SELECT COUNT(rank) FROM table_name_1 WHERE bronze < 8 AND total < 7 AND gold < 1
How many ranks have a Bronze smaller than 8, and a Total smaller than 7, and a Gold smaller than 1?
CREATE TABLE table_name_1 (rank VARCHAR, gold VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT AVG(money___) AS $__ FROM table_name_76 WHERE place = "t10" AND player = "denny shute" AND to_par > 12
Which average money has a Place of t10, and a Player of denny shute, and a To par larger than 12?
CREATE TABLE table_name_76 (money___ INTEGER, to_par VARCHAR, place VARCHAR, player VARCHAR)
SELECT department FROM table_1331313_1 WHERE acronym = "DepEd (KEd)"
what's the department with acronym being deped (ked)
CREATE TABLE table_1331313_1 (department VARCHAR, acronym VARCHAR)
SELECT high_school FROM table_20785990_2 WHERE home_town = "Blue Island, IL"
What is the high school for the player who's hometown is Blue Island, Il?
CREATE TABLE table_20785990_2 (high_school VARCHAR, home_town VARCHAR)
SELECT nation FROM table_name_73 WHERE lead = "alexandra bruckmiller"
Which Nation has a Lead of alexandra bruckmiller?
CREATE TABLE table_name_73 (nation VARCHAR, lead VARCHAR)
SELECT constellation FROM table_name_56 WHERE declination___j2000__ = "°45′" AND right_ascension___j2000__ = "07h58m"
I want the constellation for declination for °45′ and right ascension of 07h58m
CREATE TABLE table_name_56 (constellation VARCHAR, declination___j2000__ VARCHAR, right_ascension___j2000__ VARCHAR)
SELECT COUNT(goals) FROM table_name_9 WHERE years_at_club = "1961–1966" AND debut_year > 1961
How many Goals have Years at club of 1961–1966, and a Debut year larger than 1961?
CREATE TABLE table_name_9 (goals VARCHAR, years_at_club VARCHAR, debut_year VARCHAR)
SELECT SUM(losses) FROM table_name_1 WHERE wins = 0 AND runs_allowed > 72
How many losses did the team with 0 wins and more than 72 runs allowed have?
CREATE TABLE table_name_1 (losses INTEGER, wins VARCHAR, runs_allowed VARCHAR)
SELECT record FROM table_23248869_10 WHERE team = "Boston"
What is every record for the team Boston?
CREATE TABLE table_23248869_10 (record VARCHAR, team VARCHAR)
SELECT County_name FROM county ORDER BY Population
Return the names of all counties sorted by population in ascending order.
CREATE TABLE county (County_name VARCHAR, Population VARCHAR)
SELECT result FROM table_name_32 WHERE week = 4
What was the result of the game in week 4?
CREATE TABLE table_name_32 (result VARCHAR, week VARCHAR)
SELECT 17 AS th_c FROM table_name_25 WHERE american = "ə"
What is 17th c., when American is "ə"?
CREATE TABLE table_name_25 (american VARCHAR)
SELECT party AS a FROM table_22753439_1 WHERE winner = "P. Chidambaram"
What is every party with a winner of P. Chidambaram?
CREATE TABLE table_22753439_1 (party VARCHAR, winner VARCHAR)
SELECT AVG(votes) FROM table_name_14 WHERE constituency = "dublin south" AND spoilt < 3 OFFSET 387
WHAT IS THE AVERAGE VOTE FOR DUBLIN SOUTH, AND SPOILT SMALLER THAN 3,387?
CREATE TABLE table_name_14 (votes INTEGER, constituency VARCHAR, spoilt VARCHAR)
SELECT fg_fga FROM table_23817012_6 WHERE ft_fta = "16-21"
what is the score in fg-fga if in ft-fta is 16-21
CREATE TABLE table_23817012_6 (fg_fga VARCHAR, ft_fta VARCHAR)
SELECT COUNT(candidates) FROM table_1341423_20 WHERE incumbent = "Wayne Gilchrest"
How many candidates ran in the election where Wayne Gilchrest was the incumbent?
CREATE TABLE table_1341423_20 (candidates VARCHAR, incumbent VARCHAR)
SELECT length__ft_ FROM table_2665085_1 WHERE park = "Kemah Boardwalk"
How long is the rollar coaster on Kemah Boardwalk
CREATE TABLE table_2665085_1 (length__ft_ VARCHAR, park VARCHAR)
SELECT result FROM table_20193855_2 WHERE book_title = "Firelands"
What is the result of the book title firelands?
CREATE TABLE table_20193855_2 (result VARCHAR, book_title VARCHAR)
SELECT opponent FROM table_name_38 WHERE result = "l 24–14"
What was the Opponent in the game with a Result of L 24–14?
CREATE TABLE table_name_38 (opponent VARCHAR, result VARCHAR)
SELECT secondary_sponsor FROM table_187239_1 WHERE main_sponsor = "Ale"
When ale is the main sponsor who is the secondary sponsor?
CREATE TABLE table_187239_1 (secondary_sponsor VARCHAR, main_sponsor VARCHAR)
SELECT AVG(total) FROM table_name_26 WHERE player = "tiger woods"
What is the average total for Tiger Woods?
CREATE TABLE table_name_26 (total INTEGER, player VARCHAR)
SELECT location FROM table_name_73 WHERE record = "10-3"
Which location led to a 10-3 record?
CREATE TABLE table_name_73 (location VARCHAR, record VARCHAR)
SELECT report FROM table_1137696_3 WHERE round = 3
What is the report for round 3?
CREATE TABLE table_1137696_3 (report VARCHAR, round VARCHAR)
SELECT 2009 FROM table_name_44 WHERE 2010 = "1r" AND 2012 = "a" AND 2008 = "2r"
Name the 2009 ffor 2010 of 1r and 2012 of a and 2008 of 2r
CREATE TABLE table_name_44 (Id VARCHAR)
SELECT polling_institute FROM table_name_81 WHERE social_democratic = "30.7%"
Which polling institute has a 30.7% for social democratic?
CREATE TABLE table_name_81 (polling_institute VARCHAR, social_democratic VARCHAR)
SELECT position FROM table_1858574_3 WHERE sail_number = "6606"
Qhat was the position of sail 6606?
CREATE TABLE table_1858574_3 (position VARCHAR, sail_number VARCHAR)
SELECT no_in_season FROM table_18367694_3 WHERE directed_by = "Joan Tewkesbury"
When joan tewkesbury is the director what is the number in seasons?
CREATE TABLE table_18367694_3 (no_in_season VARCHAR, directed_by VARCHAR)
SELECT SUM(attendance) FROM table_name_26 WHERE home = "detroit" AND points > 33
WHAT IS THE SUM OF ATTENDANCE FOR DETROIT, WHEN POINTS ARE LARGER THAN 33?
CREATE TABLE table_name_26 (attendance INTEGER, home VARCHAR, points VARCHAR)
SELECT COUNT(date) FROM table_21091157_1 WHERE record = "1-0"
Name the number of date for 1-0 record
CREATE TABLE table_21091157_1 (date VARCHAR, record VARCHAR)
SELECT semifinals FROM table_27294107_11 WHERE event = "Light flyweight"
What is the semifinals for the light flyweight event?
CREATE TABLE table_27294107_11 (semifinals VARCHAR, event VARCHAR)
SELECT AVG(LifeExpectancy) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "English" AND T2.IsOfficial = "T")
What is average life expectancy in the countries where English is not the official language?
CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR); CREATE TABLE country (LifeExpectancy INTEGER, Name VARCHAR); CREATE TABLE country (Name VARCHAR, Code VARCHAR)
SELECT location FROM table_19215259_1 WHERE power__kw_ = "5kW" AND frequency = "102.3MHz"
Where is the frequency 102.3mhz and 5kw power?
CREATE TABLE table_19215259_1 (location VARCHAR, power__kw_ VARCHAR, frequency VARCHAR)
SELECT AVG(appearances) FROM table_name_58 WHERE bronze_medals < 0
What is the average amount of appearances for the Bronze Meals less than 0?
CREATE TABLE table_name_58 (appearances INTEGER, bronze_medals INTEGER)
SELECT MAX(touchdowns) FROM table_name_77 WHERE points < 105 AND average > 4.7 AND rushing_yards < 487
What is the most number of touchdowns that have fewer than 105 points, averages over 4.7, and fewer than 487 rushing yards?
CREATE TABLE table_name_77 (touchdowns INTEGER, rushing_yards VARCHAR, points VARCHAR, average VARCHAR)
SELECT season AS premiere FROM table_299121_2 WHERE viewers__in_millions_ = "8.4"
When did the season premiere that saw 8.4 million viewers first air?
CREATE TABLE table_299121_2 (season VARCHAR, viewers__in_millions_ VARCHAR)
SELECT nationality FROM table_name_53 WHERE club_team = "quebec remparts (qmjhl)"
What is the Nationality Club Team of Quebec remparts (qmjhl)?
CREATE TABLE table_name_53 (nationality VARCHAR, club_team VARCHAR)
SELECT tournament FROM table_name_82 WHERE outcome = "runner-up" AND partner = "aurelija misevičiūtė"
Partner Aurelija Misevičiūtė had an outcome of runner-up in what tournament?
CREATE TABLE table_name_82 (tournament VARCHAR, outcome VARCHAR, partner VARCHAR)
SELECT race_caller FROM table_22514845_3 WHERE year = 1994
Who is the race caller for the year 1994?
CREATE TABLE table_22514845_3 (race_caller VARCHAR, year VARCHAR)
SELECT Nationality, Age FROM journalist
What are the nationalities and ages of journalists?
CREATE TABLE journalist (Nationality VARCHAR, Age VARCHAR)
SELECT AVG(rank) FROM table_name_82 WHERE country = "hungary"
What is the average rank for Hungary?
CREATE TABLE table_name_82 (rank INTEGER, country VARCHAR)
SELECT record FROM table_name_56 WHERE nationality = "norway" AND date = "23 august 1981"
What is the record for Norway on 23 august 1981?
CREATE TABLE table_name_56 (record VARCHAR, nationality VARCHAR, date VARCHAR)
SELECT SUM(silver) FROM table_name_34 WHERE nation = "liechtenstein" AND bronze > 4
Tell me the sum of silver for liechtenstein and bronze more than 4
CREATE TABLE table_name_34 (silver INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT 2001 FROM table_name_91 WHERE 2002 = "2,360,000 tonnes"
What is the 2001 statistic for the product that had 2,360,000 tonnes in 2002?
CREATE TABLE table_name_91 (Id VARCHAR)
SELECT date FROM table_name_59 WHERE record = "17–24–5"
What day is the team 17–24–5?
CREATE TABLE table_name_59 (date VARCHAR, record VARCHAR)
SELECT score FROM table_name_1 WHERE game > 11 AND october = 30
What score has a game greater than 11 on October 30?
CREATE TABLE table_name_1 (score VARCHAR, game VARCHAR, october VARCHAR)
SELECT class FROM table_name_74 WHERE call_sign = "wmhn"
Name the class with call sign of wmhn
CREATE TABLE table_name_74 (class VARCHAR, call_sign VARCHAR)
SELECT episode_title FROM table_name_26 WHERE countries_visited = "cuba"
Which episode title featured a visit to the country of Cuba?
CREATE TABLE table_name_26 (episode_title VARCHAR, countries_visited VARCHAR)
SELECT AVG(heat) FROM table_name_35 WHERE nationality = "australia" AND rank < 1
what is the heat when the nationality is australia and the rank is less than 1?
CREATE TABLE table_name_35 (heat INTEGER, nationality VARCHAR, rank VARCHAR)
SELECT dar FROM table_15887683_8 WHERE language = "cinese"
Name the dar for cinese
CREATE TABLE table_15887683_8 (dar VARCHAR, language VARCHAR)
SELECT name FROM table_name_22 WHERE assists > 0 AND position = "forward" AND apps > 84 AND goals = 19
What is the name of the player with more than 0 assists, a position of forward, 19 goals, and more than 84 apps?
CREATE TABLE table_name_22 (name VARCHAR, goals VARCHAR, apps VARCHAR, assists VARCHAR, position VARCHAR)
SELECT COUNT(skip__club_) FROM table_29546218_3 WHERE pf = 40
What is the total mumber of skip (club) entries when the pf is 40?
CREATE TABLE table_29546218_3 (skip__club_ VARCHAR, pf VARCHAR)
SELECT airport FROM table_name_68 WHERE country = "tunisia" AND icao = "dtaa"
what is the airport for the country tunisia with the icao dtaa?
CREATE TABLE table_name_68 (airport VARCHAR, country VARCHAR, icao VARCHAR)
SELECT laps FROM table_name_67 WHERE time_retired = "+1 lap" AND driver = "jean-christophe boullion"
How many laps does jean-christophe boullion have with a time/retired of +1 lap?
CREATE TABLE table_name_67 (laps VARCHAR, time_retired VARCHAR, driver VARCHAR)
SELECT programming FROM table_name_14 WHERE channel = 35.4
Which Programming has a Channel of 35.4?
CREATE TABLE table_name_14 (programming VARCHAR, channel VARCHAR)
SELECT COUNT(netflow_version) FROM table_1206114_2 WHERE vendor_and_type = "Enterasys Switches"
How many netflow version are there when the vendor and type is enterasys switches?
CREATE TABLE table_1206114_2 (netflow_version VARCHAR, vendor_and_type VARCHAR)
SELECT bello FROM table_name_35 WHERE liscumb = "27" AND libweshya = "6539"
What Bello has a 27 Liscumb and 6539 Libweshya?
CREATE TABLE table_name_35 (bello VARCHAR, liscumb VARCHAR, libweshya VARCHAR)
SELECT race_name FROM table_name_59 WHERE winning_driver = "graham rahal" AND round > 6 AND pole_position = "graham rahal"
What race after round 6 did Graham Rahal win with a pole position of graham rahal?
CREATE TABLE table_name_59 (race_name VARCHAR, pole_position VARCHAR, winning_driver VARCHAR, round VARCHAR)
SELECT high_points FROM table_27902171_6 WHERE team = "Utah Jazz"
Who had highest points during game against the Utah Jazz?
CREATE TABLE table_27902171_6 (high_points VARCHAR, team VARCHAR)
SELECT segment_b FROM table_15187735_19 WHERE episode = 242
What is the segment B of episode 242?
CREATE TABLE table_15187735_19 (segment_b VARCHAR, episode VARCHAR)
SELECT COUNT(number_of_electorates__2009_) FROM table_name_94 WHERE district = "sheopur" AND constituency_number = "1"
Which Number of electorates (2009) has a District of sheopur, and a Constituency number of 1?
CREATE TABLE table_name_94 (number_of_electorates__2009_ VARCHAR, district VARCHAR, constituency_number VARCHAR)
SELECT score FROM table_name_69 WHERE date = "14 december 1974" AND away_team = "crystal palace"
what is the score on 14 december 1974 and the away team is crystal palace?
CREATE TABLE table_name_69 (score VARCHAR, date VARCHAR, away_team VARCHAR)
SELECT MIN(attendance) FROM table_16119656_1
What was the lowest no. of attendance on record?
CREATE TABLE table_16119656_1 (attendance INTEGER)
SELECT release_date FROM table_name_72 WHERE multi_1 = "10.5×"
When was the release date for technology that has a Multi 1 of 10.5×?
CREATE TABLE table_name_72 (release_date VARCHAR, multi_1 VARCHAR)
SELECT SUM(starts) FROM table_name_54 WHERE avg_finish > 43
How many starts for an average finish greater than 43?
CREATE TABLE table_name_54 (starts INTEGER, avg_finish INTEGER)
SELECT award FROM table_name_77 WHERE result = "won" AND nomination = "senses around"
Which award was won when the nomination was Senses Around?
CREATE TABLE table_name_77 (award VARCHAR, result VARCHAR, nomination VARCHAR)
SELECT COUNT(goal) FROM table_name_10 WHERE venue = "panama city" AND date = "11 febrero 2006"
At the venue of panama city, on 11 Febrero 2006, how many goals were scored?
CREATE TABLE table_name_10 (goal VARCHAR, venue VARCHAR, date VARCHAR)