answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT COUNT(crowd) FROM table_name_76 WHERE away_team = "fitzroy"
What was the attendance when Fitzroy played as the away team?
CREATE TABLE table_name_76 (crowd VARCHAR, away_team VARCHAR)
SELECT SUM(week) FROM table_name_49 WHERE attendance = 62 OFFSET 233
Name the sum of week with attendance of 62,233
CREATE TABLE table_name_49 (week INTEGER, attendance VARCHAR)
SELECT label FROM table_name_65 WHERE catalog = "cdzap22"
Which label has the catalog CDZAP22?
CREATE TABLE table_name_65 (label VARCHAR, catalog VARCHAR)
SELECT władysławowo_, _poland FROM table_name_83 WHERE world_record = "olympic record" AND marcin_dołęga___pol__ = "olympic standard" AND snatch = "clean & jerk"
What shows for Władysławowo, Poland when the world record shows olympic record, a Marcin Dołęga (POL) is olympic standard, and Snatch is clean & jerk?
CREATE TABLE table_name_83 (władysławowo_ VARCHAR, _poland VARCHAR, snatch VARCHAR, world_record VARCHAR, marcin_dołęga___pol__ VARCHAR)
SELECT date FROM table_name_84 WHERE partner = "lori mcneil" AND score = "6–7(6), 5–7"
On what date did Lori McNeil play as a partner with a score of 6–7(6), 5–7?
CREATE TABLE table_name_84 (date VARCHAR, partner VARCHAR, score VARCHAR)
SELECT tenure FROM table_name_23 WHERE name = "gary david saunders"
What is Gary David Saunders' Tenure?
CREATE TABLE table_name_23 (tenure VARCHAR, name VARCHAR)
SELECT season__number FROM table_15824796_4 WHERE original_air_date = "September 17, 1955"
Which Season originally aired on September 17, 1955
CREATE TABLE table_15824796_4 (season__number VARCHAR, original_air_date VARCHAR)
SELECT party FROM table_name_86 WHERE incumbent = "joseph t. johnson"
Which party was joseph t. johnson in?
CREATE TABLE table_name_86 (party VARCHAR, incumbent VARCHAR)
SELECT COUNT(high_assists) FROM table_15873014_3 WHERE team = "New Jersey"
How many players had the most assists against New Jersey?
CREATE TABLE table_15873014_3 (high_assists VARCHAR, team VARCHAR)
SELECT round FROM table_name_72 WHERE player = "anthony christnovich"
Which Round has a Player of anthony christnovich?
CREATE TABLE table_name_72 (round VARCHAR, player VARCHAR)
SELECT AVG(points) FROM table_name_23 WHERE engine = "cosworth v8" AND year = 1973
What is the average points of a Cosworth v8 engine in 1973.
CREATE TABLE table_name_23 (points INTEGER, engine VARCHAR, year VARCHAR)
SELECT obama_percentage FROM table_20799905_1 WHERE county = "RUTHERFORD"
What percentage did Obama get in Rutherford county?
CREATE TABLE table_20799905_1 (obama_percentage VARCHAR, county VARCHAR)
SELECT iata FROM table_name_1 WHERE country = "united kingdom" AND airport = "ringway airport"
What is the IATA for Ringway Airport in the United Kingdom?
CREATE TABLE table_name_1 (iata VARCHAR, country VARCHAR, airport VARCHAR)
SELECT round FROM table_name_24 WHERE venue = "westpac stadium" AND away = "newcastle jets"
What round was the match at Westpac Stadium that had the Newcastle Jets as the away team?
CREATE TABLE table_name_24 (round VARCHAR, venue VARCHAR, away VARCHAR)
SELECT rev FROM table_1310499_1 WHERE application = "2003-2004 Mustang Cobra"
What is the rev of the 2003-2004 Mustang Cobra?
CREATE TABLE table_1310499_1 (rev VARCHAR, application VARCHAR)
SELECT subject FROM table_name_35 WHERE year = "2007"
Who was the subject for the year of 2007?
CREATE TABLE table_name_35 (subject VARCHAR, year VARCHAR)
SELECT COUNT(total) FROM table_name_40 WHERE bronze = 2
How many totals have 2 for the bronze?
CREATE TABLE table_name_40 (total VARCHAR, bronze VARCHAR)
SELECT being__qualities_ FROM table_name_36 WHERE having__things_ = "language, religions, work, customs, values, norms"
Name the being qualities for having things of language, religions, work, customs, values, norms
CREATE TABLE table_name_36 (being__qualities_ VARCHAR, having__things_ VARCHAR)
SELECT constructor FROM table_name_63 WHERE grid = 2
Who was the Constructor when the Grid was 2?
CREATE TABLE table_name_63 (constructor VARCHAR, grid VARCHAR)
SELECT wins FROM table_name_47 WHERE year > 1987 AND points < 188
How many wins for the year that is later than 1987 and has points less than 188?
CREATE TABLE table_name_47 (wins VARCHAR, year VARCHAR, points VARCHAR)
SELECT date FROM table_name_14 WHERE score = "4-3" AND site_stadium = "reese smith field"
On what day was a game played at Reese Smith Field, with a score of 4-3?
CREATE TABLE table_name_14 (date VARCHAR, score VARCHAR, site_stadium VARCHAR)
SELECT AVG(decile) FROM table_name_62 WHERE authority = "state" AND roll = 888
What is the average decile of the school with a state authority and a roll number of 888?
CREATE TABLE table_name_62 (decile INTEGER, authority VARCHAR, roll VARCHAR)
SELECT tv_network_s_ FROM table_29799700_2 WHERE series_finale = "May 7, 2012"
Which TV network had its series finale on May 7, 2012?
CREATE TABLE table_29799700_2 (tv_network_s_ VARCHAR, series_finale VARCHAR)
SELECT result FROM table_1341577_47 WHERE district = "Virginia 3"
What was the result of the election in the Virginia 3 district?
CREATE TABLE table_1341577_47 (result VARCHAR, district VARCHAR)
SELECT AVG(top_5) FROM table_name_66 WHERE top_25 = 0 AND wins < 0
What is the average value for Top-5, when the value for Top-25 is 0, and the value for Wins is less than 0?
CREATE TABLE table_name_66 (top_5 INTEGER, top_25 VARCHAR, wins VARCHAR)
SELECT 2011 FROM table_name_99 WHERE 2012 = "a" AND tournament = "french open"
What is 2011, when 2012 is "A", and when Tournament is "French Open"?
CREATE TABLE table_name_99 (tournament VARCHAR)
SELECT location FROM table_name_12 WHERE name = "woodburn dragstrip"
What is the Location for the woodburn dragstrip?
CREATE TABLE table_name_12 (location VARCHAR, name VARCHAR)
SELECT opposition FROM table_26847237_3 WHERE score = "37 - 28"
Who is the opposition when the score is 37 - 28?
CREATE TABLE table_26847237_3 (opposition VARCHAR, score VARCHAR)
SELECT distance FROM table_name_16 WHERE event = "breaststroke" AND location = "beijing, chn"
Which Distance has an Event of breaststroke, and a Location of beijing, chn?
CREATE TABLE table_name_16 (distance VARCHAR, event VARCHAR, location VARCHAR)
SELECT T1.course_name, COUNT(*) FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name
What is the name of each course and the corresponding number of student enrollment?
CREATE TABLE Courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE Student_Course_Enrolment (course_id VARCHAR)
SELECT result FROM table_name_76 WHERE round < 7 AND opponent = "melbourne storm"
what is the result when the round is less than 7 and the opponent is melbourne storm?
CREATE TABLE table_name_76 (result VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT to_par FROM table_name_5 WHERE place = "t8" AND country = "argentina"
What is the to par of the player from Argentina with a t8 place?
CREATE TABLE table_name_5 (to_par VARCHAR, place VARCHAR, country VARCHAR)
SELECT opponent FROM table_name_97 WHERE round = "sf" AND result = "0-0"
Who was the opponent of the match in round sf with a result of 0-0?
CREATE TABLE table_name_97 (opponent VARCHAR, round VARCHAR, result VARCHAR)
SELECT player FROM table_name_80 WHERE score = 68 - 71 = 139
What is Player, when Score is "68-71=139"?
CREATE TABLE table_name_80 (player VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_17 WHERE site = "homewood field" AND score = "5-8"
Who was the Opponent at Homewood Field with a Score of 5-8?
CREATE TABLE table_name_17 (opponent VARCHAR, site VARCHAR, score VARCHAR)
SELECT record FROM table_name_75 WHERE "kickoff" = "kickoff"
What is the record which shows Kickoff as kickoff?
CREATE TABLE table_name_75 (record VARCHAR)
SELECT AVG(staterooms) FROM table_name_28 WHERE guests > 210
What is the number of staterooms when guests was larger than 210?
CREATE TABLE table_name_28 (staterooms INTEGER, guests INTEGER)
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)
SELECT asset_acquired_date FROM Assets ORDER BY asset_acquired_date LIMIT 1
When was the first asset acquired?
CREATE TABLE Assets (asset_acquired_date VARCHAR)
SELECT score FROM table_name_54 WHERE home_team = "shrewsbury town"
When the home team was Shrewsbury town, what was the score?
CREATE TABLE table_name_54 (score VARCHAR, home_team VARCHAR)
SELECT bus_width__bits_ FROM table_142573_1 WHERE bandwidth__mb_s_ = 3200
Name the bus width bits when bandwidth mb/s is 3200
CREATE TABLE table_142573_1 (bus_width__bits_ VARCHAR, bandwidth__mb_s_ VARCHAR)
SELECT driver FROM table_name_32 WHERE points < 2 AND grid > 4 AND team = "american spirit team johansson"
Which driver has fewer than 2 points, larger grid that 4 and is on American Spirit Team Johansson?
CREATE TABLE table_name_32 (driver VARCHAR, team VARCHAR, points VARCHAR, grid VARCHAR)
SELECT runner_s__up FROM table_name_87 WHERE margin_of_victory = "6 strokes"
What is Runner(s)-Up when Margin of Victory is 6 Strokes?
CREATE TABLE table_name_87 (runner_s__up VARCHAR, margin_of_victory VARCHAR)
SELECT COUNT(innings) FROM table_23316034_16 WHERE average = "45.65"
If the average is 45.65, what is the total number of innings?
CREATE TABLE table_23316034_16 (innings VARCHAR, average VARCHAR)
SELECT brand_name FROM table_24099628_1 WHERE model__list_ = "4x0"
What is the brand name associated with the model 4x0?
CREATE TABLE table_24099628_1 (brand_name VARCHAR, model__list_ VARCHAR)
SELECT builder FROM table_17607663_1 WHERE br_no = 31779
Who is the builder for br no. 31779?
CREATE TABLE table_17607663_1 (builder VARCHAR, br_no VARCHAR)
SELECT nationality FROM table_name_94 WHERE pick < 33 AND school_club_team = "vanderbilt"
What is the nationality of the player who has a pick lower than 33 and a School/Club Team of Vanderbilt?
CREATE TABLE table_name_94 (nationality VARCHAR, pick VARCHAR, school_club_team VARCHAR)
SELECT MIN(series__number) FROM table_12564633_1 WHERE season__number = 18
What is the series number for Season #18?
CREATE TABLE table_12564633_1 (series__number INTEGER, season__number VARCHAR)
SELECT conversion_from_patent_application FROM table_2279413_1 WHERE country = "Tonga"
In Tonga, what is the conversion from patent application?
CREATE TABLE table_2279413_1 (conversion_from_patent_application VARCHAR, country VARCHAR)
SELECT COUNT(class_aA) FROM table_14747043_1 WHERE school_year = "2002-03"
How many class AA in the year 2002-03
CREATE TABLE table_14747043_1 (class_aA VARCHAR, school_year VARCHAR)
SELECT sponsor FROM table_name_43 WHERE date_introduced = "april 22, 2004"
Who was the sponsor on April 22, 2004?
CREATE TABLE table_name_43 (sponsor VARCHAR, date_introduced VARCHAR)
SELECT result FROM table_name_72 WHERE competition = "2014 fifa world cup qualification" AND score = "2 – 0"
Which Result has a Competition of 2014 fifa world cup qualification, and a Score of 2 – 0?
CREATE TABLE table_name_72 (result VARCHAR, competition VARCHAR, score VARCHAR)
SELECT revised FROM table_name_48 WHERE mccune_reischauer = "yŏn (s) ryŏn (n)"
Tell me the revised of mccune reischauer of yŏn (s) ryŏn (n)
CREATE TABLE table_name_48 (revised VARCHAR, mccune_reischauer VARCHAR)
SELECT position FROM table_name_54 WHERE school_country = "arkansas"
What position does the player from arkansas play?
CREATE TABLE table_name_54 (position VARCHAR, school_country VARCHAR)
SELECT serial_format FROM table_name_71 WHERE issued = 1972
What serial format was issued in 1972?
CREATE TABLE table_name_71 (serial_format VARCHAR, issued VARCHAR)
SELECT COUNT(top_division_titles) FROM table_name_55 WHERE number_of_seasons_in_top_division > 40 AND first_season_of_current_spell_in_top_division = "1943-44" AND number_of_seasons_in_liga_mx > 89
What is the total number of Top division titles for the club that has more than 40 seasons in top division, a First season of current spell in top division of 1943-44, and more than 89 seasons in Liga MX?
CREATE TABLE table_name_55 (top_division_titles VARCHAR, number_of_seasons_in_liga_mx VARCHAR, number_of_seasons_in_top_division VARCHAR, first_season_of_current_spell_in_top_division VARCHAR)
SELECT AVG(draw) FROM table_name_47 WHERE losses < 35 AND matches = 136 AND against < 146
How many draws have less than 35 losses with 136 matches and less than 146 against?
CREATE TABLE table_name_47 (draw INTEGER, against VARCHAR, losses VARCHAR, matches VARCHAR)
SELECT time FROM table_name_72 WHERE team = "kawasaki zx10 1000cc"
What time did team kawasaki zx10 1000cc have?
CREATE TABLE table_name_72 (time VARCHAR, team VARCHAR)
SELECT province FROM table_27369069_1 WHERE stadium_capacity = "4,000"
Which province has the soccer stadium that holds 4,000 people?
CREATE TABLE table_27369069_1 (province VARCHAR, stadium_capacity VARCHAR)
SELECT COUNT(opponents) FROM table_22860698_2 WHERE championship = "Wimbledon (2)"
How many opponents have wimbledon (2) as the championship?
CREATE TABLE table_22860698_2 (opponents VARCHAR, championship VARCHAR)
SELECT segment_a FROM table_name_34 WHERE segment_d = "marble sculptures"
Which items in segment A have a segment D of marble sculptures?
CREATE TABLE table_name_34 (segment_a VARCHAR, segment_d VARCHAR)
SELECT notes FROM table_name_75 WHERE country = "poland"
Poland has what notes?
CREATE TABLE table_name_75 (notes VARCHAR, country VARCHAR)
SELECT SUM(rating) FROM table_name_88 WHERE centre = "helsinki"
Which Rating has a Centre of helsinki?
CREATE TABLE table_name_88 (rating INTEGER, centre VARCHAR)
SELECT barony FROM table_30120547_1 WHERE townland = "Gurraghy"
What is the barony of the Gurraghy townland?
CREATE TABLE table_30120547_1 (barony VARCHAR, townland VARCHAR)
SELECT result FROM table_name_69 WHERE year = 1994 AND award = "song of the year"
What was the result for song of the year award in 1994?
CREATE TABLE table_name_69 (result VARCHAR, year VARCHAR, award VARCHAR)
SELECT MIN(total) FROM table_name_44 WHERE gold < 4
Which Total has a Gold smaller than 4?
CREATE TABLE table_name_44 (total INTEGER, gold INTEGER)
SELECT MAX(car__number) FROM table_name_19 WHERE make = "toyota" AND driver = "mike skinner" AND pos > 3
Which Car # has a Make of toyota, and a Driver of mike skinner, and a Pos larger than 3?
CREATE TABLE table_name_19 (car__number INTEGER, pos VARCHAR, make VARCHAR, driver VARCHAR)
SELECT SUM(pick__number) FROM table_name_20 WHERE position = "sb" AND college = "minnesota"
Can you tell me the sum of Pick # that has the Position of sb, and the College of minnesota?
CREATE TABLE table_name_20 (pick__number INTEGER, position VARCHAR, college VARCHAR)
SELECT format FROM table_name_83 WHERE code = "9 40231-2 (us only)"
What is the format of code 9 40231-2 (us only)?
CREATE TABLE table_name_83 (format VARCHAR, code VARCHAR)
SELECT country FROM table_name_3 WHERE to_par = "+2" AND player = "bernhard langer"
Which country has a to par of +2 for Bernhard Langer?
CREATE TABLE table_name_3 (country VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT event FROM table_name_74 WHERE round < 3 AND method = "no contest (punch after knockdown)"
What event went under 3 rounds and was no contest (punch after knockdown)?
CREATE TABLE table_name_74 (event VARCHAR, round VARCHAR, method VARCHAR)
SELECT opponents FROM table_24901152_4 WHERE championship = "Rome"
Who were the opponents in the Rome championship?
CREATE TABLE table_24901152_4 (opponents VARCHAR, championship VARCHAR)
SELECT SUM(gold) FROM table_name_56 WHERE rank < 2 AND bronze > 8
How many gold medals does the country ranked higher than 2 with more than 8 bronze have?
CREATE TABLE table_name_56 (gold INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT COUNT(weight) FROM table_name_89 WHERE distance = "5 ½ f"
What is the weight number when the distance was 5 ½ f?
CREATE TABLE table_name_89 (weight VARCHAR, distance VARCHAR)
SELECT MIN(grid) FROM table_name_10 WHERE laps = 21 AND manufacturer = "yamaha" AND time = "+18.802"
What is the lowest Grid, when Laps is 21, when Manufacturer is Yamaha, and when Time is +18.802?
CREATE TABLE table_name_10 (grid INTEGER, time VARCHAR, laps VARCHAR, manufacturer VARCHAR)
SELECT location FROM table_1974632_1 WHERE type = "Private/Presbyterian"
where is the private/presbyterian institute
CREATE TABLE table_1974632_1 (location VARCHAR, type VARCHAR)
SELECT race_2 FROM table_15530244_5 WHERE driver = "James Winslow"
Name the race 2 for james winslow
CREATE TABLE table_15530244_5 (race_2 VARCHAR, driver VARCHAR)
SELECT T3.venue FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city JOIN MATCH AS T3 ON T2.match_id = T3.match_id WHERE T1.city = "Nanjing ( Jiangsu )" AND T3.competition = "1994 FIFA World Cup qualification"
What is the venue of the competition "1994 FIFA World Cup qualification" hosted by "Nanjing ( Jiangsu )"?
CREATE TABLE city (city_id VARCHAR, city VARCHAR); CREATE TABLE MATCH (venue VARCHAR, match_id VARCHAR, competition VARCHAR); CREATE TABLE hosting_city (host_city VARCHAR, match_id VARCHAR)
SELECT classification FROM table_2266990_2 WHERE title = "Fish Rap Live!"
What classifications does Fish Rap live! has?
CREATE TABLE table_2266990_2 (classification VARCHAR, title VARCHAR)
SELECT MAX(season__number) FROM table_19632728_1
What was the highest season number?
CREATE TABLE table_19632728_1 (season__number INTEGER)
SELECT AVG(rank) FROM table_name_82 WHERE studio = "20th century fox" AND director = "roland emmerich"
What was the average rank for the film directed by roland emmerich under the studio of 20th century fox?
CREATE TABLE table_name_82 (rank INTEGER, studio VARCHAR, director VARCHAR)
SELECT bronze FROM table_name_71 WHERE year = "2011"
Who received the bronze in 2011?
CREATE TABLE table_name_71 (bronze VARCHAR, year VARCHAR)
SELECT SUM(points) FROM table_name_36 WHERE record = "21–20–6"
Which Points have a Record of 21–20–6?
CREATE TABLE table_name_36 (points INTEGER, record VARCHAR)
SELECT name FROM table_name_1 WHERE a_league = "150 (4)"
Which player has an A-League of 150 (4)?
CREATE TABLE table_name_1 (name VARCHAR, a_league VARCHAR)
SELECT copies_per_particle FROM table_140968_1 WHERE location = "Forms inner shell of the core"
How many copoes per particle are created in the segment that forms inner shell of the core?
CREATE TABLE table_140968_1 (copies_per_particle VARCHAR, location VARCHAR)
SELECT main_presenters FROM table_1053802_1 WHERE local_title = "La Granja"
What is main presenters of La Granja?
CREATE TABLE table_1053802_1 (main_presenters VARCHAR, local_title VARCHAR)
SELECT nation FROM table_name_32 WHERE total < 2 AND bronze < 1 AND silver = 1
What nation has a total less than 2, silver of 1 and bronze less than 1?
CREATE TABLE table_name_32 (nation VARCHAR, silver VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT country FROM table_name_41 WHERE rank = 4
What country is ranked number 4?
CREATE TABLE table_name_41 (country VARCHAR, rank VARCHAR)
SELECT college FROM table_name_79 WHERE hometown = "fort lauderdale, fl"
What college did the player from Fort Lauderdale, FL attend?
CREATE TABLE table_name_79 (college VARCHAR, hometown VARCHAR)
SELECT SUM(wins) FROM table_name_42 WHERE played < 5
What is the sum of Wins, when Played is less than 5?
CREATE TABLE table_name_42 (wins INTEGER, played INTEGER)
SELECT release_date FROM table_20174050_7 WHERE title = "The Way Through the Woods"
If the title is The Way Through The Woods, what is the release date?
CREATE TABLE table_20174050_7 (release_date VARCHAR, title VARCHAR)
SELECT f_laps FROM table_25386974_1 WHERE series = "GP3 series"
How many f/laps did Pedro Nunes have when he was at the gp3 series?
CREATE TABLE table_25386974_1 (f_laps VARCHAR, series VARCHAR)
SELECT AVG(attendance) FROM table_name_51 WHERE home = "motagua"
What was the attendance of the match with motagua as the home team?
CREATE TABLE table_name_51 (attendance INTEGER, home VARCHAR)
SELECT AVG(wins) FROM table_name_12 WHERE poles > 0 AND podiums < 3
What is the average wins of a team with more than 0 ples and less than 3 podiums?
CREATE TABLE table_name_12 (wins INTEGER, poles VARCHAR, podiums VARCHAR)
SELECT contestant FROM table_26427332_17 WHERE city = "Hanover"
who are the participants from hanover?
CREATE TABLE table_26427332_17 (contestant VARCHAR, city VARCHAR)
SELECT visitor FROM table_name_61 WHERE record = "14-10"
Who is the visitor with the 14-10 record?
CREATE TABLE table_name_61 (visitor VARCHAR, record VARCHAR)
SELECT MIN(rank) FROM table_name_67 WHERE year > 1999 AND accolade = "the 100 greatest indie rock albums of all time"
What is the lowest rank for an album after 1999 and an Accolade of the 100 greatest indie rock albums of all time?
CREATE TABLE table_name_67 (rank INTEGER, year VARCHAR, accolade VARCHAR)
SELECT home_team AS score FROM table_name_89 WHERE venue = "lake oval"
What's the home team's score at lake oval?
CREATE TABLE table_name_89 (home_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_24 WHERE venue = "kardinia park"
What away team played at Kardinia Park?
CREATE TABLE table_name_24 (away_team VARCHAR, venue VARCHAR)
SELECT d_48_√ FROM table_name_27 WHERE d_49_√ = "r 9"
What is the D 48 √ with a D 49 √ with r 9?
CREATE TABLE table_name_27 (d_48_√ VARCHAR, d_49_√ VARCHAR)