answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT attendance FROM table_name_61 WHERE result = "w 28-13"
What was the attendance of the w 28-13 game?
CREATE TABLE table_name_61 (attendance VARCHAR, result VARCHAR)
SELECT score FROM table_name_64 WHERE competition = "2014 fifa world cup qualification (uefa)"
What was the score for the 2014 FIFA World Cup Qualification (UEFA)?
CREATE TABLE table_name_64 (score VARCHAR, competition VARCHAR)
SELECT album FROM table_name_32 WHERE bass = "jay bentley" AND drums = "bobby schayer"
Which album had Jay Bentley on bass and Bobby Schayer on drums?
CREATE TABLE table_name_32 (album VARCHAR, bass VARCHAR, drums VARCHAR)
SELECT callsign FROM table_name_4 WHERE iata = "tr"
Which Callsign has an IATA of tr?
CREATE TABLE table_name_4 (callsign VARCHAR, iata VARCHAR)
SELECT problem_id FROM problems WHERE date_problem_reported < "1978-06-26"
What are the ids of the problems which are reported before 1978-06-26?
CREATE TABLE problems (problem_id VARCHAR, date_problem_reported INTEGER)
SELECT branding FROM table_name_19 WHERE location = "metro manila" AND callsign = "dwbl"
What is the Branding of the Metro Manila Frequency with a Callsign of DWBL?
CREATE TABLE table_name_19 (branding VARCHAR, location VARCHAR, callsign VARCHAR)
SELECT game FROM table_name_47 WHERE road_team = "syracuse" AND result = "96-89"
What is Game, when Road Team is "Syracuse", and when Result is "96-89"?
CREATE TABLE table_name_47 (game VARCHAR, road_team VARCHAR, result VARCHAR)
SELECT attendance FROM table_name_67 WHERE title = "44th"
What is the Attendance number for the title of 44th?
CREATE TABLE table_name_67 (attendance VARCHAR, title VARCHAR)
SELECT MIN(total_matches) FROM table_name_33 WHERE total_w_l_h = "1-2-0"
Which Total matches is the lowest one that has a Total W-L-H of 1-2-0?
CREATE TABLE table_name_33 (total_matches INTEGER, total_w_l_h VARCHAR)
SELECT stadium FROM table_name_86 WHERE runs = "144"
What is the stadium name that has 144 as the runs?
CREATE TABLE table_name_86 (stadium VARCHAR, runs VARCHAR)
SELECT race FROM table_2581397_3 WHERE weight__kg_ = "56.5"
List the weight for 56.5 kilograms.
CREATE TABLE table_2581397_3 (race VARCHAR, weight__kg_ VARCHAR)
SELECT AVG(gold) FROM table_name_26 WHERE bronze = 25 AND rank < 9
How many average gold medals for provinces higher than rank 9 with 25 bronzes?
CREATE TABLE table_name_26 (gold INTEGER, bronze VARCHAR, rank VARCHAR)
SELECT Nationality, Age FROM journalist
What are the nationalities and ages of journalists?
CREATE TABLE journalist (Nationality VARCHAR, Age VARCHAR)
SELECT series FROM table_16279520_1 WHERE release = "3.5"
Under what series was the 3.5 release?
CREATE TABLE table_16279520_1 (series VARCHAR, release VARCHAR)
SELECT date_successor_seated FROM table_225094_4 WHERE reason_for_change = "failure to elect"
Name the date successor seated for failure to elect
CREATE TABLE table_225094_4 (date_successor_seated VARCHAR, reason_for_change VARCHAR)
SELECT result FROM table_name_94 WHERE date = "april 16"
What was the result of the April 16 game?
CREATE TABLE table_name_94 (result VARCHAR, date VARCHAR)
SELECT player FROM table_name_23 WHERE college = "british columbia"
What player was from the British Columbia college?
CREATE TABLE table_name_23 (player VARCHAR, college VARCHAR)
SELECT number_of_electorates__2009_ FROM table_name_61 WHERE name = "badnawar"
What is the number of electorates when the name is badnawar?
CREATE TABLE table_name_61 (number_of_electorates__2009_ VARCHAR, name VARCHAR)
SELECT candidates FROM table_1341577_44 WHERE incumbent = "Lamar S. Smith"
Who were the candidates when Lamar S. Smith was incumbent?
CREATE TABLE table_1341577_44 (candidates VARCHAR, incumbent VARCHAR)
SELECT MAX(attendance) FROM table_name_20 WHERE opponent = "chicago cardinals" AND week > 10
What is the largest crowd size at a match against the Chicago Cardinals after Week 10 of the season?
CREATE TABLE table_name_20 (attendance INTEGER, opponent VARCHAR, week VARCHAR)
SELECT team FROM table_name_56 WHERE college = "lawrence tech"
What's the team of the player who went to lawrence tech?
CREATE TABLE table_name_56 (team VARCHAR, college VARCHAR)
SELECT MAX(year) FROM table_name_68 WHERE winner = "iftiraas"
What is the most recent year that Iftiraas was the winner?
CREATE TABLE table_name_68 (year INTEGER, winner VARCHAR)
SELECT kickoff_[a_] FROM table_name_9 WHERE attendance = "58,120"
Which kickoff had an attendance of 58,120?
CREATE TABLE table_name_9 (kickoff_ VARCHAR, a_ VARCHAR, attendance VARCHAR)
SELECT gauthier FROM table_name_65 WHERE liscumb = "15"
What Gauthier had a 15 Liscumb?
CREATE TABLE table_name_65 (gauthier VARCHAR, liscumb VARCHAR)
SELECT MIN(pl_gp) FROM table_name_18 WHERE pick__number = 235 AND rd__number > 12
What was the PI GP fpr pick# 235 for Rd# larger than 12?
CREATE TABLE table_name_18 (pl_gp INTEGER, pick__number VARCHAR, rd__number VARCHAR)
SELECT name FROM table_name_66 WHERE president = "khamtai siphandon" AND left_office = "1999"
What is Name, when President is Khamtai Siphandon, and when Left Office is 1999?
CREATE TABLE table_name_66 (name VARCHAR, president VARCHAR, left_office VARCHAR)
SELECT tie_no FROM table_name_98 WHERE score = "5–1"
Which Tie has a Score of 5–1?
CREATE TABLE table_name_98 (tie_no VARCHAR, score VARCHAR)
SELECT MIN(lost) FROM table_name_79 WHERE name = "esc holzkirchen" AND played < 14
Which Lost is the lowest one that has a Name of esc holzkirchen, and Played smaller than 14?
CREATE TABLE table_name_79 (lost INTEGER, name VARCHAR, played VARCHAR)
SELECT AVG(week) FROM table_name_26 WHERE date = "november 12, 1989"
What is the average week of a game on November 12, 1989?
CREATE TABLE table_name_26 (week INTEGER, date VARCHAR)
SELECT common_english FROM table_name_81 WHERE abbr = "ai"
What is the common english word with the abbr of ai?
CREATE TABLE table_name_81 (common_english VARCHAR, abbr VARCHAR)
SELECT venue FROM table_name_81 WHERE result = "22-20"
Where was the game with the result of 22-20 played?
CREATE TABLE table_name_81 (venue VARCHAR, result VARCHAR)
SELECT directed_by FROM table_27401228_1 WHERE us_viewers__million_ = "5.86"
Name who directed when the viewers is 5.86
CREATE TABLE table_27401228_1 (directed_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT womens_doubles FROM table_14903881_1 WHERE mens_doubles = "Theodoros Velkos Giorgos Patis"
Name the womens doubles when mens doubles is theodoros velkos giorgos patis
CREATE TABLE table_14903881_1 (womens_doubles VARCHAR, mens_doubles VARCHAR)
SELECT T3.born_state FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id JOIN head AS T3 ON T2.head_id = T3.head_id WHERE T1.name = 'Treasury' INTERSECT SELECT T3.born_state FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id JOIN head AS T3 ON T2.head_id = T3.head_id WHERE T1.name = 'Homeland Security'
List the states where both the secretary of 'Treasury' department and the secretary of 'Homeland Security' were born.
CREATE TABLE management (department_id VARCHAR, head_id VARCHAR); CREATE TABLE head (born_state VARCHAR, head_id VARCHAR); CREATE TABLE department (department_id VARCHAR, name VARCHAR)
SELECT game_site FROM table_name_26 WHERE date = "1990-11-18"
Where was the game on 1990-11-18?
CREATE TABLE table_name_26 (game_site VARCHAR, date VARCHAR)
SELECT week_37 FROM table_23680576_3 WHERE week_33 = "14.3%"
List all week 37 results when week 33 is 14.3%.
CREATE TABLE table_23680576_3 (week_37 VARCHAR, week_33 VARCHAR)
SELECT prefecture FROM table_2518850_4 WHERE high_school_name = "Nihon Bunri"
In what prefecture is Nihon Bunri located?
CREATE TABLE table_2518850_4 (prefecture VARCHAR, high_school_name VARCHAR)
SELECT MIN(cuts_made) FROM table_24747844_2 WHERE player = "Hunter Mahan"
What is the minimum number of cuts made for Hunter Mahan?
CREATE TABLE table_24747844_2 (cuts_made INTEGER, player VARCHAR)
SELECT country FROM table_10236830_4 WHERE actors_name = "Vsevolod Shilovskiy"
Vsevolod Shilovskiy is from what country?
CREATE TABLE table_10236830_4 (country VARCHAR, actors_name VARCHAR)
SELECT director FROM table_name_73 WHERE nomination = "best actor in a leading role"
Tell me the director nominated for best actor in a leading role
CREATE TABLE table_name_73 (director VARCHAR, nomination VARCHAR)
SELECT COUNT(minutes) FROM table_22993636_5 WHERE player = "Chanel Chisholm"
How much time, in minutes, did Chanel Chisholm play?
CREATE TABLE table_22993636_5 (minutes VARCHAR, player VARCHAR)
SELECT opposition FROM table_name_32 WHERE team = "cork"
Who is the opponent when the team is Cork?
CREATE TABLE table_name_32 (opposition VARCHAR, team VARCHAR)
SELECT record FROM table_name_14 WHERE leading_scorer = "rudy gay (20)"
What is the record of the game with Rudy Gay (20) as the leading scorer?
CREATE TABLE table_name_14 (record VARCHAR, leading_scorer VARCHAR)
SELECT COUNT(rank) FROM table_name_62 WHERE player = "bob murphy" AND wins < 4
What is the rank for bob murphy with under 4 wins?
CREATE TABLE table_name_62 (rank VARCHAR, player VARCHAR, wins VARCHAR)
SELECT title FROM table_name_43 WHERE year = "n.m."
What's the title for year n.m.?
CREATE TABLE table_name_43 (title VARCHAR, year VARCHAR)
SELECT peak FROM table_name_14 WHERE height__m_ > 619 AND class = "hewitt" AND prom__m_ = 148
Name the peak for height more than 619 and class of hewitt with prom being 148
CREATE TABLE table_name_14 (peak VARCHAR, prom__m_ VARCHAR, height__m_ VARCHAR, class VARCHAR)
SELECT SUM(hoursperweek), SUM(gamesplayed) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.age < 20
Show total hours per week and number of games played for students under 20.
CREATE TABLE Student (StuID VARCHAR, age INTEGER); CREATE TABLE Sportsinfo (StuID VARCHAR)
SELECT SUM(grid) FROM table_name_87 WHERE laps < 68 AND time_retired = "injection"
What is the total amount of grid when the laps amount was smaller than 68 and the time/retired was injection?
CREATE TABLE table_name_87 (grid INTEGER, laps VARCHAR, time_retired VARCHAR)
SELECT location FROM table_2731431_1 WHERE elevation__m_ = 3798
Which location has an elevation of 3798?
CREATE TABLE table_2731431_1 (location VARCHAR, elevation__m_ VARCHAR)
SELECT 2012 FROM table_name_35 WHERE 2005 = "1r"
WHAT IS THE 2012 WITH 2005 OF 1R?
CREATE TABLE table_name_35 (Id VARCHAR)
SELECT AVG(T1.sales) FROM journal AS T1 JOIN journal_committee AS T2 ON T1.journal_ID = T2.journal_ID WHERE T2.work_type = 'Photo'
What is the average sales of the journals that have an editor whose work type is 'Photo'?
CREATE TABLE journal_committee (journal_ID VARCHAR, work_type VARCHAR); CREATE TABLE journal (sales INTEGER, journal_ID VARCHAR)
SELECT cfl_team FROM table_name_73 WHERE pick__number > 31
Which CFL Team has a Pick # larger than 31?
CREATE TABLE table_name_73 (cfl_team VARCHAR, pick__number INTEGER)
SELECT t1.name FROM bridge AS t1 JOIN architect AS t2 ON t1.architect_id = t2.id WHERE t2.nationality = 'American' ORDER BY t1.length_feet
show the name of all bridges that was designed by american archtect, and sort the result by the bridge feet length.
CREATE TABLE bridge (name VARCHAR, architect_id VARCHAR, length_feet VARCHAR); CREATE TABLE architect (id VARCHAR, nationality VARCHAR)
SELECT AVG(city) FROM table_name_70 WHERE total < 2 AND borough > 0
What average city has a total less than 2, with a borough greater than 0?
CREATE TABLE table_name_70 (city INTEGER, total VARCHAR, borough VARCHAR)
SELECT college_junior_club_team FROM table_name_27 WHERE pick__number = "1"
Which College/junior/club team has a Pick # of 1?
CREATE TABLE table_name_27 (college_junior_club_team VARCHAR, pick__number VARCHAR)
SELECT MIN(pick__number) FROM table_14655757_1
What is the lowest pick number?
CREATE TABLE table_14655757_1 (pick__number INTEGER)
SELECT club FROM table_1676073_12 WHERE points_against = "608"
What clubs had 608 points against?
CREATE TABLE table_1676073_12 (club VARCHAR, points_against VARCHAR)
SELECT venue FROM table_21350934_2 WHERE opponent = "Bradford Bulls" AND date = "06/09/2009"
Which venue has bradford bulls as the opponent on the date of 06/09/2009?
CREATE TABLE table_21350934_2 (venue VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT COUNT(result) FROM table_1289860_2 WHERE background = "Prosecutor"
How many people had a prosecutor background?
CREATE TABLE table_1289860_2 (result VARCHAR, background VARCHAR)
SELECT quarterfinalists FROM table_21584646_10 WHERE runner_up = "Jimmy Connors"
Who are the quarterfinalists for runner-up jimmy connors?
CREATE TABLE table_21584646_10 (quarterfinalists VARCHAR, runner_up VARCHAR)
SELECT strike_rate FROM table_name_97 WHERE matches = "9"
What strike rate is 9 the matches?
CREATE TABLE table_name_97 (strike_rate VARCHAR, matches VARCHAR)
SELECT COUNT(title) FROM table_25716397_1 WHERE written_by = "Joe Toplyn"
How many titles does the episode written by Joe Toplyn have?
CREATE TABLE table_25716397_1 (title VARCHAR, written_by VARCHAR)
SELECT result FROM table_name_78 WHERE year > 1989 AND category = "best supporting actress" AND actor = "samantha morton"
What is the result of Samantha Morton being up for best supporting actress in a year later than 1989?
CREATE TABLE table_name_78 (result VARCHAR, actor VARCHAR, year VARCHAR, category VARCHAR)
SELECT MIN(game) FROM table_name_99 WHERE location = "td waterhouse centre"
What is the earliest game played at the TD Waterhouse Centre?
CREATE TABLE table_name_99 (game INTEGER, location VARCHAR)
SELECT score FROM table_name_64 WHERE player = "david toms"
What is Score, when Player is "David Toms"?
CREATE TABLE table_name_64 (score VARCHAR, player VARCHAR)
SELECT T1.name, T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name = 'Lettice' INTERSECT SELECT T1.name, T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name = 'HMS Atalanta'
List the name and date the battle that has lost the ship named 'Lettice' and the ship named 'HMS Atalanta'
CREATE TABLE ship (lost_in_battle VARCHAR, name VARCHAR); CREATE TABLE battle (name VARCHAR, date VARCHAR, id VARCHAR)
SELECT country FROM table_name_84 WHERE icao = "tjig"
Tell me the country for ICAO of tjig
CREATE TABLE table_name_84 (country VARCHAR, icao VARCHAR)
SELECT away FROM table_name_93 WHERE competition = "uefa cup" AND opponent = "anderlecht"
Which Away has a Competition of uefa cup, and an Opponent of anderlecht?
CREATE TABLE table_name_93 (away VARCHAR, competition VARCHAR, opponent VARCHAR)
SELECT home_team FROM table_name_86 WHERE away_team = "carlton"
What is the name of the home team that played Carlton?
CREATE TABLE table_name_86 (home_team VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_20 WHERE high_assists = "ben gordon (8)"
What date did Ben Gordon (8) have high assists?
CREATE TABLE table_name_20 (date VARCHAR, high_assists VARCHAR)
SELECT incumbent FROM table_name_16 WHERE district = "20th"
Who was the incumbent in the 20th district?
CREATE TABLE table_name_16 (incumbent VARCHAR, district VARCHAR)
SELECT call_sign FROM table_name_26 WHERE frequency = "102.5 fm"
Which Call sign has a Frequency of 102.5 fm?
CREATE TABLE table_name_26 (call_sign VARCHAR, frequency VARCHAR)
SELECT MAX(money___) AS $__ FROM table_name_35 WHERE to_par = "e" AND player = "ernie els"
What is the highest Money ($), when Top Par is E, and when Player is Ernie Els?
CREATE TABLE table_name_35 (money___ INTEGER, to_par VARCHAR, player VARCHAR)
SELECT MIN(attendance) FROM table_name_46 WHERE week = 11
What is the lowest attendance for week 11?
CREATE TABLE table_name_46 (attendance INTEGER, week VARCHAR)
SELECT COUNT(season) FROM table_10753917_1 WHERE driver = "Clay Regazzoni"
How many seasons was clay regazzoni the driver?
CREATE TABLE table_10753917_1 (season VARCHAR, driver VARCHAR)
SELECT tournament FROM table_name_14 WHERE runner_s__up = "howard twitty"
Howard Twitty was the runner-up of what tournament?
CREATE TABLE table_name_14 (tournament VARCHAR, runner_s__up VARCHAR)
SELECT city_of_license FROM table_name_62 WHERE frequency_mhz > 94.1
What city has larger than 94.1 as a frequency?
CREATE TABLE table_name_62 (city_of_license VARCHAR, frequency_mhz INTEGER)
SELECT DISTINCT Country FROM manager
Show the distinct countries of managers.
CREATE TABLE manager (Country VARCHAR)
SELECT SUM(avg_g) FROM table_name_59 WHERE name = "josh freeman" AND loss < 134
Which Avg/G has a Name of josh freeman, and a Loss smaller than 134?
CREATE TABLE table_name_59 (avg_g INTEGER, name VARCHAR, loss VARCHAR)
SELECT sub_parish__sogn_ FROM table_178398_1 WHERE location_of_the_church = "Fortun"
What is the sub-parish of the church located in Fortun?
CREATE TABLE table_178398_1 (sub_parish__sogn_ VARCHAR, location_of_the_church VARCHAR)
SELECT record FROM table_name_49 WHERE date = "dec 10"
Which Record is dated Dec 10?
CREATE TABLE table_name_49 (record VARCHAR, date VARCHAR)
SELECT MIN(laps) FROM table_name_16 WHERE rider = "mattia pasini"
How many laps did Mattia Pasini ride?
CREATE TABLE table_name_16 (laps INTEGER, rider VARCHAR)
SELECT engine FROM table_name_57 WHERE year < 1990 AND chassis = "eurobrun er189"
Name the engine for years before 1990 and chassis of eurobrun er189
CREATE TABLE table_name_57 (engine VARCHAR, year VARCHAR, chassis VARCHAR)
SELECT date FROM table_1140080_2 WHERE rnd = 1
what's the date with rnd  1
CREATE TABLE table_1140080_2 (date VARCHAR, rnd VARCHAR)
SELECT result FROM table_name_14 WHERE h___a = "a" AND kick_off = "1992-10-31 16:00"
What is the result of the match with a H/A of A and a kick off at 1992-10-31 16:00?
CREATE TABLE table_name_14 (result VARCHAR, h___a VARCHAR, kick_off VARCHAR)
SELECT class FROM table_14342367_13 WHERE player = "George W. Gregory"
What was George W. Gregory's class?
CREATE TABLE table_14342367_13 (class VARCHAR, player VARCHAR)
SELECT medal FROM table_name_53 WHERE event = "men's 5000 m"
What medal was won in the men's 5000 m event?
CREATE TABLE table_name_53 (medal VARCHAR, event VARCHAR)
SELECT MIN(money___) AS $__ FROM table_name_96 WHERE player = "jim colbert"
What is the lowest amount of money player jim colbert has?
CREATE TABLE table_name_96 (money___ INTEGER, player VARCHAR)
SELECT total FROM table_150343_3 WHERE country_territory = "Venezuela"
What is Venezuela's total rank?
CREATE TABLE table_150343_3 (total VARCHAR, country_territory VARCHAR)
SELECT venue FROM table_name_16 WHERE result = "1-3"
In what Venue was the Result 1-3?
CREATE TABLE table_name_16 (venue VARCHAR, result VARCHAR)
SELECT winner FROM table_11621799_1 WHERE score = "281 (-6)"
Who was the winner when the score was 281 (-6)?
CREATE TABLE table_11621799_1 (winner VARCHAR, score VARCHAR)
SELECT AVG(against) FROM table_name_24 WHERE losses = 11 AND wins < 5
How many against when losses are 11 and wins are fewer than 5?
CREATE TABLE table_name_24 (against INTEGER, losses VARCHAR, wins VARCHAR)
SELECT finalist FROM table_name_26 WHERE week = "august 6"
For the week of August 6, who is the finalist?
CREATE TABLE table_name_26 (finalist VARCHAR, week VARCHAR)
SELECT director FROM Movie WHERE director <> "null" GROUP BY director HAVING COUNT(*) = 1
What are the names of the directors who made exactly one movie excluding director NULL?
CREATE TABLE Movie (director VARCHAR)
SELECT opponent FROM table_name_28 WHERE results¹ = "1:3"
What Opponent has a Results¹ of 1:3?
CREATE TABLE table_name_28 (opponent VARCHAR, results¹ VARCHAR)
SELECT transfer_window FROM table_name_52 WHERE name = "brown"
What is Brown's transfer window?
CREATE TABLE table_name_52 (transfer_window VARCHAR, name VARCHAR)
SELECT SUM(q_) > _1.4 FROM table_name_51 WHERE q_ > _1.3 = 455 AND q_ > _1.2 < 3 OFFSET 028
What is the total of q > 1.4 when q > 1.3 is 455, and q >1.2 is less than 3,028?
CREATE TABLE table_name_51 (q_ INTEGER)
SELECT college_junior_club_team__league_ FROM table_name_31 WHERE player = "matthew bartkowski"
Which College/Junior/Club Team (league) does Matthew Bartkowski play for?
CREATE TABLE table_name_31 (college_junior_club_team__league_ VARCHAR, player VARCHAR)
SELECT opponents_in_the_final FROM table_2362486_1 WHERE score_in_the_final = "6–4, 2–6, 6–4, 7–6(3)"
Who were the opponents in the final where the score was 6–4, 2–6, 6–4, 7–6(3)?
CREATE TABLE table_2362486_1 (opponents_in_the_final VARCHAR, score_in_the_final VARCHAR)
SELECT player FROM table_22824297_1 WHERE height = "6-5"
Who is every player with a height of 6-5?
CREATE TABLE table_22824297_1 (player VARCHAR, height VARCHAR)