question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
On August 29, What was the record playing against the Rangers?
CREATE TABLE table_name_75 (record VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT record FROM table_name_75 WHERE opponent = "rangers" AND date = "august 29"
What was the Tie no when the Home team was carshalton athletic?
CREATE TABLE table_name_50 (tie_no VARCHAR, home_team VARCHAR)
SELECT tie_no FROM table_name_50 WHERE home_team = "carshalton athletic"
Find the team of the player of the highest age.
CREATE TABLE player (Team VARCHAR, Age VARCHAR)
SELECT Team FROM player ORDER BY Age DESC LIMIT 1
Who was the constructor of the car that had a Q1 pos of less than 8 and a Q1 time of 1:15.038?
CREATE TABLE table_name_84 (constructor VARCHAR, q1_pos VARCHAR, q1_time VARCHAR)
SELECT constructor FROM table_name_84 WHERE q1_pos < 8 AND q1_time = "1:15.038"
What is the Round against Gillingham with an Against smaller than 3?
CREATE TABLE table_name_40 (round VARCHAR, opposing_team VARCHAR, against VARCHAR)
SELECT round FROM table_name_40 WHERE opposing_team = "gillingham" AND against < 3
which # / county is correct for year less than 1981 and chalmers as location?
CREATE TABLE table_name_90 (_number___county VARCHAR, year_joined VARCHAR, location VARCHAR)
SELECT _number___county FROM table_name_90 WHERE year_joined < 1981 AND location = "chalmers"
Where was the successor formally installed on December 3, 1858?
CREATE TABLE table_1802760_3 (state__class_ VARCHAR, date_of_successors_formal_installation VARCHAR)
SELECT state__class_ FROM table_1802760_3 WHERE date_of_successors_formal_installation = "December 3, 1858"
What is the lowest share with an air date of March 21, 2008 and had viewers larger than 5.15?
CREATE TABLE table_name_8 (share INTEGER, air_date VARCHAR, viewers VARCHAR)
SELECT MIN(share) FROM table_name_8 WHERE air_date = "march 21, 2008" AND viewers > 5.15
What is the type where the name is bojan?
CREATE TABLE table_11891841_2 (type VARCHAR, name VARCHAR)
SELECT type FROM table_11891841_2 WHERE name = "Bojan"
What place did Fred Couples finish in?
CREATE TABLE table_name_84 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_84 WHERE player = "fred couples"
What is Team 1, when Team 2 is "Iskra Odintsovo"?
CREATE TABLE table_name_36 (team_1 VARCHAR, team_2 VARCHAR)
SELECT team_1 FROM table_name_36 WHERE team_2 = "iskra odintsovo"
When Efrain Valdez was pitching, what was the highest home run?
CREATE TABLE table_name_82 (home_run INTEGER, opposing_pitcher VARCHAR)
SELECT MAX(home_run) FROM table_name_82 WHERE opposing_pitcher = "efrain valdez"
Who has the highest total and a to par of +14?
CREATE TABLE table_name_58 (total INTEGER, to_par VARCHAR)
SELECT MAX(total) FROM table_name_58 WHERE to_par = "+14"
List the Award Descriptions for the year of 1989.
CREATE TABLE table_name_17 (award_description_s_ VARCHAR, year VARCHAR)
SELECT award_description_s_ FROM table_name_17 WHERE year = 1989
What is the number of disposals when marks is 134?
CREATE TABLE table_name_84 (disposals VARCHAR, marks VARCHAR)
SELECT disposals FROM table_name_84 WHERE marks = "134"
What team was the opponent when February shows more than 2, with a game number less than 55?
CREATE TABLE table_name_92 (opponent VARCHAR, february VARCHAR, game VARCHAR)
SELECT opponent FROM table_name_92 WHERE february > 2 AND game < 55
How many touchdowns did the player with less than 4495 yards, long of less than 80, and yds/att less than 5.5 have?
CREATE TABLE table_name_65 (touchdowns VARCHAR, yds_att VARCHAR, net_yds VARCHAR, long VARCHAR)
SELECT COUNT(touchdowns) FROM table_name_65 WHERE net_yds < 4495 AND long < 80 AND yds_att < 5.5
What was the location and attendance on the May 22 game?
CREATE TABLE table_name_13 (location_attendance VARCHAR, date VARCHAR)
SELECT location_attendance FROM table_name_13 WHERE date = "may 22"
How many times is brannon condren with and overall more than 131 drafted?
CREATE TABLE table_name_56 (round VARCHAR, name VARCHAR, overall VARCHAR)
SELECT COUNT(round) FROM table_name_56 WHERE name = "brannon condren" AND overall > 131
what's the species in the world with peruvian amazon vs. peru (percent)  of 63
CREATE TABLE table_11727969_1 (species_in_the_world VARCHAR, peruvian_amazon_vs_peru__percent_ VARCHAR)
SELECT species_in_the_world FROM table_11727969_1 WHERE peruvian_amazon_vs_peru__percent_ = 63
Name the 1821 with 1811 of 1921
CREATE TABLE table_name_1 (Id VARCHAR)
SELECT 1821 FROM table_name_1 WHERE 1811 = "1921"
What is the IUPAC name for chloroform?
CREATE TABLE table_name_44 (iupac_name VARCHAR, common_name VARCHAR)
SELECT iupac_name FROM table_name_44 WHERE common_name = "chloroform"
how many high points where date is february 19
CREATE TABLE table_20010140_10 (high_points VARCHAR, date VARCHAR)
SELECT COUNT(high_points) FROM table_20010140_10 WHERE date = "February 19"
How many games did they play on january 11?
CREATE TABLE table_27882867_6 (location_attendance VARCHAR, date VARCHAR)
SELECT COUNT(location_attendance) FROM table_27882867_6 WHERE date = "January 11"
What was the score of the game when they played at new york islanders?
CREATE TABLE table_name_99 (score VARCHAR, home VARCHAR)
SELECT score FROM table_name_99 WHERE home = "new york islanders"
Which years did Martin Sacks work on a soap opera?
CREATE TABLE table_name_98 (years VARCHAR, actor VARCHAR)
SELECT years FROM table_name_98 WHERE actor = "martin sacks"
Who was the girl of the week 3 weeks after brianne bailey in the same month?
CREATE TABLE table_name_65 (week_5 VARCHAR, week_2 VARCHAR)
SELECT week_5 FROM table_name_65 WHERE week_2 = "brianne bailey"
at kardinia park, what was the away team's score?
CREATE TABLE table_name_22 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_22 WHERE venue = "kardinia park"
What machine has 5 as the place?
CREATE TABLE table_name_95 (machine VARCHAR, place VARCHAR)
SELECT machine FROM table_name_95 WHERE place = 5
What are the maximum duration and resolution of songs grouped and ordered by languages?
CREATE TABLE song (languages VARCHAR, resolution INTEGER, f_id VARCHAR); CREATE TABLE files (duration INTEGER, f_id VARCHAR)
SELECT MAX(T1.duration), MAX(T2.resolution), T2.languages FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.languages ORDER BY T2.languages
How many high schools have storm mascots?
CREATE TABLE table_22058547_1 (high_school VARCHAR, mascot VARCHAR)
SELECT high_school FROM table_22058547_1 WHERE mascot = "Storm"
What is the largest round of a pick smaller than 92 from Toledo University?
CREATE TABLE table_name_34 (round INTEGER, college VARCHAR, pick VARCHAR)
SELECT MAX(round) FROM table_name_34 WHERE college = "toledo" AND pick < 92
Name the number of stage winners for team columbia
CREATE TABLE table_19115414_4 (stage__winner_ VARCHAR, team_classification VARCHAR)
SELECT COUNT(stage__winner_) FROM table_19115414_4 WHERE team_classification = "Team Columbia"
What was Peter Woolfolk's Total Rebound average?
CREATE TABLE table_name_59 (total_rebounds INTEGER, player VARCHAR)
SELECT SUM(total_rebounds) FROM table_name_59 WHERE player = "peter woolfolk"
who won the lifetime achievement in the year 1998?
CREATE TABLE table_name_39 (lifetime_achievement VARCHAR, year VARCHAR)
SELECT lifetime_achievement FROM table_name_39 WHERE year = 1998
Which 1989 has a 1986 of 99?
CREATE TABLE table_name_42 (Id VARCHAR)
SELECT 1989 FROM table_name_42 WHERE 1986 = "99"
What were the San Francisco resident's years in assembly?
CREATE TABLE table_name_54 (years_in_assembly VARCHAR, residence VARCHAR)
SELECT years_in_assembly FROM table_name_54 WHERE residence = "san francisco"
List all FTE middle school teachers in Sunnyvale.
CREATE TABLE table_1414743_1 (fte_teachers VARCHAR, school_level VARCHAR, city VARCHAR)
SELECT fte_teachers FROM table_1414743_1 WHERE school_level = "Middle" AND city = "Sunnyvale"
Name the gloss for [χdəm]
CREATE TABLE table_name_69 (gloss VARCHAR, pronunciation VARCHAR)
SELECT gloss FROM table_name_69 WHERE pronunciation = "[χdəm]"
Which Airline has a Fleet size larger than 17, and a IATA of pr?
CREATE TABLE table_name_98 (airline VARCHAR, fleet_size VARCHAR, iata VARCHAR)
SELECT airline FROM table_name_98 WHERE fleet_size > 17 AND iata = "pr"
What is the venue of the 1990 Asian games?
CREATE TABLE table_name_77 (venue VARCHAR, competition VARCHAR)
SELECT venue FROM table_name_77 WHERE competition = "1990 asian games"
Which tournament had Richard Krajicek as a finalist?
CREATE TABLE table_name_85 (tournament VARCHAR, finalist VARCHAR)
SELECT tournament FROM table_name_85 WHERE finalist = "richard krajicek"
Which category had a year of 1991?
CREATE TABLE table_name_41 (category VARCHAR, year VARCHAR)
SELECT category FROM table_name_41 WHERE year = 1991
With the given loss of 4, what was the number of tries?
CREATE TABLE table_17675675_2 (tries_for VARCHAR, lost VARCHAR)
SELECT COUNT(tries_for) FROM table_17675675_2 WHERE lost = "4"
What is Surface, when Tournament is "Saint Joseph , United States"?
CREATE TABLE table_name_87 (surface VARCHAR, tournament VARCHAR)
SELECT surface FROM table_name_87 WHERE tournament = "saint joseph , united states"
Find the address and staff number of the shops that do not have any happy hour.
CREATE TABLE shop (address VARCHAR, num_of_staff VARCHAR, shop_id VARCHAR); CREATE TABLE happy_hour (address VARCHAR, num_of_staff VARCHAR, shop_id VARCHAR)
SELECT address, num_of_staff FROM shop WHERE NOT shop_id IN (SELECT shop_id FROM happy_hour)
What was the record during the 1973 season?
CREATE TABLE table_name_74 (record VARCHAR, season VARCHAR)
SELECT record FROM table_name_74 WHERE season = 1973
What is Format, when Label is Bronze, when Date is 1982, and when Catalogue is 204 636?
CREATE TABLE table_name_12 (format VARCHAR, catalogue VARCHAR, label VARCHAR, date VARCHAR)
SELECT format FROM table_name_12 WHERE label = "bronze" AND date = "1982" AND catalogue = "204 636"
Which position did the player hold that played for the Philadelphia Flyers in NHL?
CREATE TABLE table_1473672_3 (position VARCHAR, nhl_team VARCHAR)
SELECT position FROM table_1473672_3 WHERE nhl_team = "Philadelphia Flyers"
Which driver was in all rounds as an entrant of Motor Racing Developments?
CREATE TABLE table_name_6 (driver VARCHAR, rounds VARCHAR, entrant VARCHAR)
SELECT driver FROM table_name_6 WHERE rounds = "all" AND entrant = "motor racing developments"
Which position has a School of petal high school?
CREATE TABLE table_name_71 (position VARCHAR, school VARCHAR)
SELECT position FROM table_name_71 WHERE school = "petal high school"
Where was the Ivy League conference tournament?
CREATE TABLE table_21091982_3 (tournament_venue__city_ VARCHAR, conference VARCHAR)
SELECT tournament_venue__city_ FROM table_21091982_3 WHERE conference = "Ivy League"
What was the highest win when there were more than 64 goals scored and a position smaller than 2?
CREATE TABLE table_name_87 (wins INTEGER, goals_scored VARCHAR, position VARCHAR)
SELECT MAX(wins) FROM table_name_87 WHERE goals_scored > 64 AND position < 2
what heat number had a time of 58.44?
CREATE TABLE table_name_49 (heat VARCHAR, time VARCHAR)
SELECT COUNT(heat) FROM table_name_49 WHERE time = "58.44"
Which Score has a Home team of windsor & eton?
CREATE TABLE table_name_30 (score VARCHAR, home_team VARCHAR)
SELECT score FROM table_name_30 WHERE home_team = "windsor & eton"
What was the Tie no when the away team was east thurrock united?
CREATE TABLE table_name_8 (tie_no VARCHAR, away_team VARCHAR)
SELECT tie_no FROM table_name_8 WHERE away_team = "east thurrock united"
How many runners had placings over 8?
CREATE TABLE table_name_34 (runners VARCHAR, placing INTEGER)
SELECT COUNT(runners) FROM table_name_34 WHERE placing > 8
Name the average fall 07 for fall 07 more than 219
CREATE TABLE table_name_34 (fall_07 INTEGER, fall_06 INTEGER)
SELECT AVG(fall_07) FROM table_name_34 WHERE fall_06 > 219
Find the rank of the faculty that the fewest faculties belong to.
CREATE TABLE FACULTY (Rank VARCHAR)
SELECT Rank FROM FACULTY GROUP BY Rank ORDER BY COUNT(*) LIMIT 1
Show all customer ids and the number of cards owned by each customer.
CREATE TABLE Customers_cards (customer_id VARCHAR)
SELECT customer_id, COUNT(*) FROM Customers_cards GROUP BY customer_id
Who played Richmond at home?
CREATE TABLE table_14312471_7 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_14312471_7 WHERE away_team = "Richmond"
Who is the author for the malasaurus?
CREATE TABLE table_name_65 (authors VARCHAR, name VARCHAR)
SELECT authors FROM table_name_65 WHERE name = "malasaurus"
What is the nationality of the player named Kelly Tripucka?
CREATE TABLE table_11545282_19 (nationality VARCHAR, player VARCHAR)
SELECT nationality FROM table_11545282_19 WHERE player = "Kelly Tripucka"
What were the results for the incumbent from Iowa 2 district?
CREATE TABLE table_name_12 (results VARCHAR, district VARCHAR)
SELECT results FROM table_name_12 WHERE district = "iowa 2"
what college has paul seiler as a player?
CREATE TABLE table_name_22 (college VARCHAR, player VARCHAR)
SELECT college FROM table_name_22 WHERE player = "paul seiler"
Tell me the score for international friendly 17 august 2013
CREATE TABLE table_name_70 (score VARCHAR, type VARCHAR, date VARCHAR)
SELECT score FROM table_name_70 WHERE type = "international friendly" AND date = "17 august 2013"
What was the score of the game with away team chelsea on 29 january 1983?
CREATE TABLE table_name_10 (score VARCHAR, date VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_10 WHERE date = "29 january 1983" AND away_team = "chelsea"
What position does Barry Richter play?
CREATE TABLE table_name_57 (position VARCHAR, player VARCHAR)
SELECT position FROM table_name_57 WHERE player = "barry richter"
How many points does Shawn Mceachern with less than 79 goals?
CREATE TABLE table_name_25 (points INTEGER, player VARCHAR, goals VARCHAR)
SELECT SUM(points) FROM table_name_25 WHERE player = "shawn mceachern" AND goals < 79
How many sitting Representatives are there in the New York 10 polling area?
CREATE TABLE table_1342256_32 (incumbent VARCHAR, district VARCHAR)
SELECT COUNT(incumbent) FROM table_1342256_32 WHERE district = "New York 10"
What is the duration for mike walling as the actor?
CREATE TABLE table_name_47 (duration VARCHAR, actor VARCHAR)
SELECT duration FROM table_name_47 WHERE actor = "mike walling"
What is the max speed when the vessel is gallion?
CREATE TABLE table_28132970_5 (max_speed VARCHAR, vessel VARCHAR)
SELECT max_speed FROM table_28132970_5 WHERE vessel = "Gallion"
What is the round number when the record is 15–7–1?
CREATE TABLE table_name_68 (round VARCHAR, record VARCHAR)
SELECT COUNT(round) FROM table_name_68 WHERE record = "15–7–1"
How many PPV values are listed for when television service Sky Cinema 1?
CREATE TABLE table_15887683_5 (ppv VARCHAR, television_service VARCHAR)
SELECT COUNT(ppv) FROM table_15887683_5 WHERE television_service = "Sky Cinema 1"
What is the record when the result was w 52–43?
CREATE TABLE table_name_5 (record VARCHAR, result VARCHAR)
SELECT record FROM table_name_5 WHERE result = "w 52–43"
What is the total for the person with free of 47.667, and technical less than 47.417?
CREATE TABLE table_name_69 (total INTEGER, free VARCHAR, technical VARCHAR)
SELECT SUM(total) FROM table_name_69 WHERE free = 47.667 AND technical < 47.417
Which party was the incumbent from when the cadidates were henry e. barbour (r) 52.1% henry hawson (d) 47.9%? Answer: Democratic
CREATE TABLE table_1346118_5 (party VARCHAR, candidates VARCHAR)
SELECT COUNT(party) FROM table_1346118_5 WHERE candidates = "Henry E. Barbour (R) 52.1% Henry Hawson (D) 47.9%"
Who had the most rebounds in the game against New York?
CREATE TABLE table_name_74 (high_rebounds VARCHAR, opponent VARCHAR)
SELECT high_rebounds FROM table_name_74 WHERE opponent = "new york"
How many decile has a roll less than 20?
CREATE TABLE table_name_6 (decile INTEGER, roll INTEGER)
SELECT AVG(decile) FROM table_name_6 WHERE roll < 20
At what Location was the match Method TKO (punches)?
CREATE TABLE table_name_23 (location VARCHAR, method VARCHAR)
SELECT location FROM table_name_23 WHERE method = "tko (punches)"
How many times was the high assists earl watson (5) and the date of the game was december 2?
CREATE TABLE table_11964154_7 (score VARCHAR, high_assists VARCHAR, date VARCHAR)
SELECT COUNT(score) FROM table_11964154_7 WHERE high_assists = "Earl Watson (5)" AND date = "December 2"
How many goals have Lost larger than 35, and Games smaller than 80?
CREATE TABLE table_name_33 (goals_for VARCHAR, lost VARCHAR, games VARCHAR)
SELECT COUNT(goals_for) FROM table_name_33 WHERE lost > 35 AND games < 80
What is the name of the visitor on January 24?
CREATE TABLE table_name_40 (visitor VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_40 WHERE date = "january 24"
What score has detroit as the home and february 17 as the date?
CREATE TABLE table_name_6 (score VARCHAR, home VARCHAR, date VARCHAR)
SELECT score FROM table_name_6 WHERE home = "detroit" AND date = "february 17"
Name the minoru for block A being koji kanemoto
CREATE TABLE table_name_38 (minoru VARCHAR, block_a VARCHAR)
SELECT minoru FROM table_name_38 WHERE block_a = "koji kanemoto"
what's the total passengers with freight (metric tonnes) being 827
CREATE TABLE table_13836704_9 (total_passengers VARCHAR, freight__metric_tonnes_ VARCHAR)
SELECT total_passengers FROM table_13836704_9 WHERE freight__metric_tonnes_ = 827
Which tournament was Dieter Kindlmann a partner?
CREATE TABLE table_name_51 (tournament VARCHAR, partner VARCHAR)
SELECT tournament FROM table_name_51 WHERE partner = "dieter kindlmann"
Name the Time/Retired when the points were 32.
CREATE TABLE table_name_84 (time_retired VARCHAR, points VARCHAR)
SELECT time_retired FROM table_name_84 WHERE points = "32"
What school had the draft pick of 29?
CREATE TABLE table_name_36 (school VARCHAR, pick VARCHAR)
SELECT school FROM table_name_36 WHERE pick = 29
Which player has 79.62 as the strike rate?
CREATE TABLE table_name_89 (player VARCHAR, strike_rate VARCHAR)
SELECT player FROM table_name_89 WHERE strike_rate = "79.62"
The Home team of Sydney had which ground?
CREATE TABLE table_name_1 (ground VARCHAR, home_team VARCHAR)
SELECT ground FROM table_name_1 WHERE home_team = "sydney"
What is the percentage of all females that are literate people have a percentage of 68.74?
CREATE TABLE table_14598_9 (females___percentage_ VARCHAR, literate_persons___percentage_ VARCHAR)
SELECT females___percentage_ FROM table_14598_9 WHERE literate_persons___percentage_ = "68.74"
What was the venue when the home team was footscray?
CREATE TABLE table_name_81 (venue VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_81 WHERE home_team = "footscray"
What years had 134 orbital flights?
CREATE TABLE table_179174_2 (years VARCHAR, flights VARCHAR)
SELECT years FROM table_179174_2 WHERE flights = "134 Orbital"
What is the platform of the game from 2007?
CREATE TABLE table_name_95 (platform_s_ VARCHAR, year VARCHAR)
SELECT platform_s_ FROM table_name_95 WHERE year = 2007
What is the lowest rank that has university park, pa as the location?
CREATE TABLE table_name_68 (rank INTEGER, location VARCHAR)
SELECT MIN(rank) FROM table_name_68 WHERE location = "university park, pa"
What is the year founded for the team Dinos?
CREATE TABLE table_27599216_6 (founded INTEGER, team VARCHAR)
SELECT MAX(founded) FROM table_27599216_6 WHERE team = "Dinos"
What yacht did Andrew Saies sail on?
CREATE TABLE table_25561560_3 (yacht VARCHAR, skipper VARCHAR)
SELECT yacht FROM table_25561560_3 WHERE skipper = "Andrew Saies"
Who did the most high rebounds in the game played on November 1?
CREATE TABLE table_17326036_5 (high_rebounds VARCHAR, date VARCHAR)
SELECT high_rebounds FROM table_17326036_5 WHERE date = "November 1"
What is the record at Arrowhead Pond of Anaheim, when the loss was Bryzgalov (10–11–1)?
CREATE TABLE table_name_53 (record VARCHAR, arena VARCHAR, loss VARCHAR)
SELECT record FROM table_name_53 WHERE arena = "arrowhead pond of anaheim" AND loss = "bryzgalov (10–11–1)"