answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT runners_up FROM table_name_75 WHERE venue = "broadwood stadium"
What Runners-up have a Venue in Broadwood Stadium?
CREATE TABLE table_name_75 (runners_up VARCHAR, venue VARCHAR)
SELECT score FROM table_21311525_1 WHERE date = "17/07/2009"
What was the score when the date was 17/07/2009?
CREATE TABLE table_21311525_1 (score VARCHAR, date VARCHAR)
SELECT result FROM table_name_62 WHERE week = 3
What was the Result on Week 3?
CREATE TABLE table_name_62 (result VARCHAR, week VARCHAR)
SELECT year__ceremony_ FROM table_17350255_1 WHERE result = "Not Nominated" AND film_title_used_in_nomination = "My Mother's Teahouse"
What was the year when My Mother's Teahouse was not nominated?
CREATE TABLE table_17350255_1 (year__ceremony_ VARCHAR, result VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT team__number2 FROM table_17282875_3 WHERE team__number1 = "San Lorenzo"
Who played San Lorenzo?
CREATE TABLE table_17282875_3 (team__number2 VARCHAR, team__number1 VARCHAR)
SELECT language FROM table_15887683_8 WHERE television_service = "Fox Business Network"
Name the language for fox business network
CREATE TABLE table_15887683_8 (language VARCHAR, television_service VARCHAR)
SELECT AVG(gold) FROM table_name_62 WHERE total < 14 AND bronze < 1 AND nation = "czech republic"
Name the average gold for czech republic and bronze less than 1 when total is less than 14
CREATE TABLE table_name_62 (gold INTEGER, nation VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT MIN(goal_difference) FROM table_name_1 WHERE position = 7 AND played > 30
What is the lowest Goal Difference, when Position is "7", and when Played is greater than 30?
CREATE TABLE table_name_1 (goal_difference INTEGER, position VARCHAR, played VARCHAR)
SELECT SUM(attendance) FROM table_name_76 WHERE tie_no = 19
How many attended tie number 19?
CREATE TABLE table_name_76 (attendance INTEGER, tie_no VARCHAR)
SELECT rank_by_average FROM table_name_34 WHERE number_of_dances = "1" AND season = "9"
What rank by average has 1 dance on season 9?
CREATE TABLE table_name_34 (rank_by_average VARCHAR, number_of_dances VARCHAR, season VARCHAR)
SELECT institution FROM table_24216139_2 WHERE nickname = "Purple Aces"
Name the institution for purple aces
CREATE TABLE table_24216139_2 (institution VARCHAR, nickname VARCHAR)
SELECT place FROM table_name_23 WHERE score = 67 - 73 - 73 = 213
What was the place when the score was 67-73-73=213?
CREATE TABLE table_name_23 (place VARCHAR, score VARCHAR)
SELECT date FROM table_name_2 WHERE city_location = "cleveland, ohio" AND round = 6
What day was the location Cleveland, Ohio in Round 6?
CREATE TABLE table_name_2 (date VARCHAR, city_location VARCHAR, round VARCHAR)
SELECT player FROM table_name_24 WHERE school = "spring hs (spring, texas)"
who is the player when the school is spring hs (spring, texas)?
CREATE TABLE table_name_24 (player VARCHAR, school VARCHAR)
SELECT points FROM table_name_79 WHERE player = "denis pederson"
How many points did Denis Pederson have?
CREATE TABLE table_name_79 (points VARCHAR, player VARCHAR)
SELECT incumbent FROM table_1341973_3 WHERE district = "Alabama 6"
Who is the incumbent in the Alabama 6 voting district?
CREATE TABLE table_1341973_3 (incumbent VARCHAR, district VARCHAR)
SELECT genre FROM table_name_44 WHERE year = "2012 (16th)"
What is the genre for the year 2012 (16th)?
CREATE TABLE table_name_44 (genre VARCHAR, year VARCHAR)
SELECT events FROM table_name_7 WHERE rank = 1
Which events have a Rank of 1?
CREATE TABLE table_name_7 (events VARCHAR, rank VARCHAR)
SELECT playoffs FROM table_12002388_1 WHERE reg_season = "1st, Southern"
What playoff result happened during the season in which they finished 1st, southern?
CREATE TABLE table_12002388_1 (playoffs VARCHAR, reg_season VARCHAR)
SELECT name FROM table_name_84 WHERE heat = 4 AND rank < 23 AND result = "55.91"
What is the Name of the Player with a Rank of 23 or less, Heat of 4 and Result of 55.91?
CREATE TABLE table_name_84 (name VARCHAR, result VARCHAR, heat VARCHAR, rank VARCHAR)
SELECT Major, COUNT(*) FROM Student GROUP BY Major HAVING COUNT(Major) BETWEEN 2 AND 30
Which major has between 2 and 30 number of students? List major and the number of students.
CREATE TABLE Student (Major VARCHAR)
SELECT playoffs FROM table_12002388_1 WHERE league = "APSL" AND year = 1992
What was the playoff result for theteam in the apsl in 1992?
CREATE TABLE table_12002388_1 (playoffs VARCHAR, league VARCHAR, year VARCHAR)
SELECT COUNT(week) FROM table_name_59 WHERE attendance = 48 OFFSET 667
What week had attendance of 48,667?
CREATE TABLE table_name_59 (week VARCHAR, attendance VARCHAR)
SELECT score FROM table_name_76 WHERE tie_no = "23"
What was the score for the match with tie number 23?
CREATE TABLE table_name_76 (score VARCHAR, tie_no VARCHAR)
SELECT built FROM table_name_22 WHERE fuel__trans = "diesel-electric"
What is the manufacturer, found under the Built column, that made locomotives with a Fuel/Trans of diesel-electric?
CREATE TABLE table_name_22 (built VARCHAR, fuel__trans VARCHAR)
SELECT release_date FROM table_1681535_1 WHERE notes = "Bonus interview with Peter Purves"
What is the release date of the bonus interview with Peter Purves?
CREATE TABLE table_1681535_1 (release_date VARCHAR, notes VARCHAR)
SELECT prr_class FROM table_name_80 WHERE wheel_arrangement = "c-c" AND total_produced < 15
What is the PRR class for wheel arrangement c-c and total less than 15?
CREATE TABLE table_name_80 (prr_class VARCHAR, wheel_arrangement VARCHAR, total_produced VARCHAR)
SELECT media_debut FROM table_26615633_3 WHERE species = "Asian black bear"
what is the media debut for the asian black bear?
CREATE TABLE table_26615633_3 (media_debut VARCHAR, species VARCHAR)
SELECT ppv FROM table_15887683_4 WHERE television_service = "Sky Calcio 6 HD"
Does the sky calcio 6 hd have PPV?
CREATE TABLE table_15887683_4 (ppv VARCHAR, television_service VARCHAR)
SELECT date FROM table_name_50 WHERE location = "warsaw" AND year = 1929
Tell me the date for warsaw 1929
CREATE TABLE table_name_50 (date VARCHAR, location VARCHAR, year VARCHAR)
SELECT mixed_doubles FROM table_2486023_1 WHERE year = 1991
Who played Mixed Doubles in 1991?
CREATE TABLE table_2486023_1 (mixed_doubles VARCHAR, year VARCHAR)
SELECT director FROM table_name_60 WHERE language = "romanian"
Who directed the Romanian film?
CREATE TABLE table_name_60 (director VARCHAR, language VARCHAR)
SELECT name FROM table_name_72 WHERE championship > 2 AND total > 4 AND fa_cup > 0
Which Name has a Championship larger than 2, and a Total larger than 4, and an FA Cup larger than 0?
CREATE TABLE table_name_72 (name VARCHAR, fa_cup VARCHAR, championship VARCHAR, total VARCHAR)
SELECT COUNT(total) FROM table_name_9 WHERE championship < 2 AND league_cup > 1
What i the total number of championships less than 2, and a league cup larger than 1?
CREATE TABLE table_name_9 (total VARCHAR, championship VARCHAR, league_cup VARCHAR)
SELECT _number FROM table_28195898_1 WHERE production_code = "4ABB07"
What is the season 4 # for the production code of 4abb07?
CREATE TABLE table_28195898_1 (_number VARCHAR, production_code VARCHAR)
SELECT future_stock FROM table_17839_1 WHERE map_colour = "Green"
When green is the map colour what is the future stock?
CREATE TABLE table_17839_1 (future_stock VARCHAR, map_colour VARCHAR)
SELECT margin_of_victory FROM table_name_25 WHERE year > 1994 AND to_par = "–14" AND score = 69 - 67 - 69 - 69 = 274
Which Margin of victory has a Year larger than 1994, and a To par of –14, and a Score of 69-67-69-69=274?
CREATE TABLE table_name_25 (margin_of_victory VARCHAR, year VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT competition FROM table_name_10 WHERE year < 2006 AND venue = "svk nitra"
What are the competitions that occurred before 2006 in SVK Nitra?
CREATE TABLE table_name_10 (competition VARCHAR, year VARCHAR, venue VARCHAR)
SELECT class FROM table_name_33 WHERE quantity < 5 AND gwr_nos = "1322–1323"
Which class is smaller than 5 and the GWR is 1322–1323?
CREATE TABLE table_name_33 (class VARCHAR, quantity VARCHAR, gwr_nos VARCHAR)
SELECT length FROM table_name_63 WHERE class = "all" AND date = "march 18"
Name the length for all class and date of march 18
CREATE TABLE table_name_63 (length VARCHAR, class VARCHAR, date VARCHAR)
SELECT school FROM table_1984697_85 WHERE size = 604
Name the school/s with is size of 604.
CREATE TABLE table_1984697_85 (school VARCHAR, size VARCHAR)
SELECT home FROM table_name_34 WHERE date = "april 14"
Where was the home court on April 14?
CREATE TABLE table_name_34 (home VARCHAR, date VARCHAR)
SELECT freq_currently FROM table_name_7 WHERE frequency = "0 684"
Which freq currently has 0 684?
CREATE TABLE table_name_7 (freq_currently VARCHAR, frequency VARCHAR)
SELECT directed_by FROM table_27988559_1 WHERE no_in_season = 2
Who directed episode 2 of the season?
CREATE TABLE table_27988559_1 (directed_by VARCHAR, no_in_season VARCHAR)
SELECT isin FROM table_21692771_1 WHERE amount_issued_[€] = "223,000,000"
What is the ISIN that has an amount issued of 223,000,000?
CREATE TABLE table_21692771_1 (isin VARCHAR, amount_issued_ VARCHAR, € VARCHAR)
SELECT record FROM table_name_96 WHERE visitor = "mavericks"
Name the record when the visitor is mavericks
CREATE TABLE table_name_96 (record VARCHAR, visitor VARCHAR)
SELECT MIN(silver) FROM table_name_86 WHERE total < 10 AND gold > 1
Total smaller than 10, and a Gold larger than 1 then what is the lowest silver?
CREATE TABLE table_name_86 (silver INTEGER, total VARCHAR, gold VARCHAR)
SELECT COUNT(gold_medals) FROM table_name_3 WHERE ensemble = "mandarins" AND bronze_medals > 1
When the Mandarins won more than 1 bronze medals, how many gold medals did they win?
CREATE TABLE table_name_3 (gold_medals VARCHAR, ensemble VARCHAR, bronze_medals VARCHAR)
SELECT years FROM table_name_82 WHERE engine = "5.7l hemi v8"
what is the years for engin 5.7l hemi v8?
CREATE TABLE table_name_82 (years VARCHAR, engine VARCHAR)
SELECT COUNT(population) FROM table_name_62 WHERE county = "stockholm county" AND municipality = "danderyd municipality" AND code < 162
What is the population of Danderyd municipality in Stockholm County with a code lower than 162?
CREATE TABLE table_name_62 (population VARCHAR, code VARCHAR, county VARCHAR, municipality VARCHAR)
SELECT SUM(2013) FROM table_name_99 WHERE 2010 = 5 AND country = "russia" AND 2012 < 4
What is the sum of participants in 2013 for Russia when there were 5 in 2010 and less than 4 in 2012?
CREATE TABLE table_name_99 (country VARCHAR)
SELECT party FROM table_name_36 WHERE candidate = "grech louis grech"
Which party's candidate is Grech Louis Grech?
CREATE TABLE table_name_36 (party VARCHAR, candidate VARCHAR)
SELECT MAX(average_attendance) FROM table_name_12 WHERE _number_of_home_games = 9
What was the Average Attendance during the Year in which there were 9 Home Games?
CREATE TABLE table_name_12 (average_attendance INTEGER, _number_of_home_games VARCHAR)
SELECT name FROM table_name_50 WHERE area = "kennedy bay"
Which name has an Area of kennedy bay?
CREATE TABLE table_name_50 (name VARCHAR, area VARCHAR)
SELECT constructor FROM table_2911781_3 WHERE grand_prix = "Belgian grand_prix"
What was the constructor in the Belgian Grand Prix round?
CREATE TABLE table_2911781_3 (constructor VARCHAR, grand_prix VARCHAR)
SELECT date FROM table_name_77 WHERE week = 3
What date is week 3?
CREATE TABLE table_name_77 (date VARCHAR, week VARCHAR)
SELECT SUM(lost) FROM table_name_10 WHERE points > 21 AND draw = 2
What is the total value for Lost, when the value for Points is greater than 21, and when the value for Draw is 2?
CREATE TABLE table_name_10 (lost INTEGER, points VARCHAR, draw VARCHAR)
SELECT nationality FROM table_name_98 WHERE round = "9"
In round 9 what was the nationality?
CREATE TABLE table_name_98 (nationality VARCHAR, round VARCHAR)
SELECT streak FROM table_name_74 WHERE game > 8 AND date = "nov 22"
What was the streak for the game after 8 on Nov 22?
CREATE TABLE table_name_74 (streak VARCHAR, game VARCHAR, date VARCHAR)
SELECT COUNT(money___) AS $__ FROM table_name_14 WHERE to_par = "e"
How much money has a to par of E?
CREATE TABLE table_name_14 (money___ VARCHAR, to_par VARCHAR)
SELECT SUM(points) FROM table_name_29 WHERE opponent = "@ new jersey devils" AND game > 7
What is the total Points for the Opponent of @ New Jersey Devils and a Game bigger than 7?
CREATE TABLE table_name_29 (points INTEGER, opponent VARCHAR, game VARCHAR)
SELECT MAX(gold) FROM table_name_40 WHERE rank = "7" AND bronze < 0
What is the most gold when the rank is 7 and bronze is less than 0?
CREATE TABLE table_name_40 (gold INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT AVG(votes) FROM table_name_22 WHERE party = "one london"
Name the average votes for one london
CREATE TABLE table_name_22 (votes INTEGER, party VARCHAR)
SELECT attendance FROM table_name_99 WHERE away = "hispano"
What was the attendance for the game with an away team of Hispano?
CREATE TABLE table_name_99 (attendance VARCHAR, away VARCHAR)
SELECT state_rank_by_revenue FROM table_21926985_2 WHERE revenue__$billions__2012_estimate = "6.8"
What is the state rank of the company with 6.8 billion in revenue?
CREATE TABLE table_21926985_2 (state_rank_by_revenue VARCHAR, revenue__$billions__2012_estimate VARCHAR)
SELECT student_capacity, gender FROM dorm WHERE dorm_name LIKE '%Donor%'
Find the capacity and gender type of the dorm whose name has substring ‘Donor’.
CREATE TABLE dorm (student_capacity VARCHAR, gender VARCHAR, dorm_name VARCHAR)
SELECT holding FROM table_name_56 WHERE component = "customers"
What is the holding of the customers?
CREATE TABLE table_name_56 (holding VARCHAR, component VARCHAR)
SELECT MIN(goals_against) FROM table_name_97 WHERE lost > 27
What is the fewest goals against for teams with more than 27 losses?
CREATE TABLE table_name_97 (goals_against INTEGER, lost INTEGER)
SELECT 2008 FROM table_name_15 WHERE 2005 = "deandria hill"
Who attended the school in 2008, that Deandria Hill attended in 2005?
CREATE TABLE table_name_15 (Id VARCHAR)
SELECT score FROM table_name_56 WHERE game < 66
What was the score at the game earlier than 66?
CREATE TABLE table_name_56 (score VARCHAR, game INTEGER)
SELECT directed_by FROM table_11075747_3 WHERE written_by = "Tommy Thompson"
Who directed the second episode of "The Homecoming" which was written by Tommy Thompson?
CREATE TABLE table_11075747_3 (directed_by VARCHAR, written_by VARCHAR)
SELECT position FROM table_20170644_5 WHERE cfl_team = "Montreal Alouettes"
What position(s) drafted by the montreal alouettes?
CREATE TABLE table_20170644_5 (position VARCHAR, cfl_team VARCHAR)
SELECT MAX(winners) FROM table_name_44 WHERE rank > 7 AND third < 1
Which Winners is the highest one that has a Rank larger than 7, and a Third smaller than 1?
CREATE TABLE table_name_44 (winners INTEGER, rank VARCHAR, third VARCHAR)
SELECT season_no FROM table_28081876_6 WHERE production_code = 401
What season number was assigned to the episode identified with the production code 401?
CREATE TABLE table_28081876_6 (season_no VARCHAR, production_code VARCHAR)
SELECT SUM(reg_gp) FROM table_name_28 WHERE player = "peter andersson" AND pick__number < 143
What is the sum of every REG GP that Peter Andersson played as a pick# less than 143?
CREATE TABLE table_name_28 (reg_gp INTEGER, player VARCHAR, pick__number VARCHAR)
SELECT home_team FROM table_name_42 WHERE away_team = "collingwood"
What home team played Collingwood as the away team?
CREATE TABLE table_name_42 (home_team VARCHAR, away_team VARCHAR)
SELECT COUNT(year) FROM table_name_18 WHERE record = "39-31"
Name the total number of years for a 39-31 record
CREATE TABLE table_name_18 (year VARCHAR, record VARCHAR)
SELECT MIN(capacity) FROM table_name_11 WHERE first_season_in_segunda_división = 2013 AND top_division_titles > 0
What is the smallest capacity for a First season in Segunda División of 2013, and Top division titles larger than 0?
CREATE TABLE table_name_11 (capacity INTEGER, first_season_in_segunda_división VARCHAR, top_division_titles VARCHAR)
SELECT place FROM table_name_40 WHERE player = "payne stewart"
Which place is payne stewart, the player in?
CREATE TABLE table_name_40 (place VARCHAR, player VARCHAR)
SELECT attendance FROM table_name_56 WHERE kickoff_time = "cbs 1:00pm" AND week < 8 AND date = "september 15, 2002"
How many people attended the game with a kickoff time of cbs 1:00pm, in a week earlier than 8, on September 15, 2002?
CREATE TABLE table_name_56 (attendance VARCHAR, date VARCHAR, kickoff_time VARCHAR, week VARCHAR)
SELECT AVG(gold) FROM table_name_47 WHERE nation = "netherlands" AND bronze > 4
What is the average number of gold medals the netherlands got when they had more than 4 bronze medals?
CREATE TABLE table_name_47 (gold INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT indicia FROM table_name_52 WHERE end_month = "feb-75"
Which Indicia has anEnd month in feb-75?
CREATE TABLE table_name_52 (indicia VARCHAR, end_month VARCHAR)
SELECT bowl_game FROM table_name_77 WHERE conference_matchups = "ohio state vs. texas"
Which bowl game had a conference matchup of Ohio State vs. Texas?
CREATE TABLE table_name_77 (bowl_game VARCHAR, conference_matchups VARCHAR)
SELECT COUNT(victory_margin__in_lengths_) FROM table_16689920_1 WHERE date = "8/3/08"
With a date of 8/3/08, what was the length of the victory margin?
CREATE TABLE table_16689920_1 (victory_margin__in_lengths_ VARCHAR, date VARCHAR)
SELECT stadium FROM table_name_28 WHERE week > 15
What was the stadium that held that game after week 15?
CREATE TABLE table_name_28 (stadium VARCHAR, week INTEGER)
SELECT annual_change FROM table_name_31 WHERE rank < 3 AND capacity_in_use = "78.4%"
In which yearly change was there a capacity of 78.4% and a rank smaller than 3?
CREATE TABLE table_name_31 (annual_change VARCHAR, rank VARCHAR, capacity_in_use VARCHAR)
SELECT MAX(catches) FROM table_26041144_16
What is the catches maximum number?
CREATE TABLE table_26041144_16 (catches INTEGER)
SELECT m_r_romaja FROM table_160510_5 WHERE region = "Kwanbuk"
Name the m r romaja for kwanbuk
CREATE TABLE table_160510_5 (m_r_romaja VARCHAR, region VARCHAR)
SELECT nationality FROM table_name_14 WHERE pick > 21 AND college_high_school_club = "college of the sequoias"
What is the nationality of the player with a pick larger than 21 from the College of the Sequoias?
CREATE TABLE table_name_14 (nationality VARCHAR, pick VARCHAR, college_high_school_club VARCHAR)
SELECT MIN(silver) FROM table_name_98 WHERE bronze = 1 AND rank < 2 AND gold > 4
what is the least silver when bronze is 1, rank is less than 2 and gold is more than 4?
CREATE TABLE table_name_98 (silver INTEGER, gold VARCHAR, bronze VARCHAR, rank VARCHAR)
SELECT COUNT(avg) FROM table_name_89 WHERE yards > 20 AND player = "darrius heyward-bey" AND long < 80
What is Darrius Heyward-Bey's average with more than 20 yards and less than 80 long?
CREATE TABLE table_name_89 (avg VARCHAR, long VARCHAR, yards VARCHAR, player VARCHAR)
SELECT MAX(attendance) FROM table_name_54 WHERE home = "djurgårdens if" AND round = 53
Which Attendance has a Home of djurgårdens if, and a Round of 53?
CREATE TABLE table_name_54 (attendance INTEGER, home VARCHAR, round VARCHAR)
SELECT score FROM table_name_76 WHERE player = "raymond floyd"
Can you tell me the Score that has the Player of raymond floyd?
CREATE TABLE table_name_76 (score VARCHAR, player VARCHAR)
SELECT date FROM table_name_54 WHERE record = "66-38"
What was the date of the game when the record was 66-38?
CREATE TABLE table_name_54 (date VARCHAR, record VARCHAR)
SELECT COUNT(a_score) FROM table_name_54 WHERE b_score > 9.05 AND total < 16.525
What is the A Score when the B Score is more than 9.05, and the total is less than 16.525?
CREATE TABLE table_name_54 (a_score VARCHAR, b_score VARCHAR, total VARCHAR)
SELECT COUNT(rider) FROM table_29218221_2 WHERE tues_31_may = "18' 55.91 124.236mph"
What is the number of riders that had a Tues 31 May time of 18' 55.91 124.236mph?
CREATE TABLE table_29218221_2 (rider VARCHAR, tues_31_may VARCHAR)
SELECT SUM(pick) FROM table_name_95 WHERE year = 2009 AND round < 2 AND nba_club = "denver nuggets"
What is the sum for the pick of the year 2009, and a round smaller than 2 and an NBA Club Denver Nuggets?
CREATE TABLE table_name_95 (pick INTEGER, nba_club VARCHAR, year VARCHAR, round VARCHAR)
SELECT COUNT(silver) FROM table_name_97 WHERE gold = 2
How many silver metals are possessed by countries with 2 gold medals?
CREATE TABLE table_name_97 (silver VARCHAR, gold VARCHAR)
SELECT COUNT(total) FROM table_26375386_20 WHERE vote_percentage = "15.0%"
How many times was the vote percentage 15.0%?
CREATE TABLE table_26375386_20 (total VARCHAR, vote_percentage VARCHAR)
SELECT player FROM table_name_79 WHERE score = 75 - 68 - 70 = 213
Who is the player with a 75-68-70=213 score?
CREATE TABLE table_name_79 (player VARCHAR, score VARCHAR)