question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
How many Points have Goals against of 35, and less than 13 losses?
CREATE TABLE table_name_45 (points INTEGER, goals_against VARCHAR, losses VARCHAR)
SELECT SUM(points) FROM table_name_45 WHERE goals_against = 35 AND losses < 13
How many points have Goals for smaller than 33, and Draws larger than 9?
CREATE TABLE table_name_43 (points INTEGER, goals_for VARCHAR, draws VARCHAR)
SELECT SUM(points) FROM table_name_43 WHERE goals_for < 33 AND draws > 9
Which Goal Difference has 13 Wins, and a Position of 3, and Played smaller than 30?
CREATE TABLE table_name_10 (goal_difference INTEGER, played VARCHAR, wins VARCHAR, position VARCHAR)
SELECT AVG(goal_difference) FROM table_name_10 WHERE wins = 13 AND position = 3 AND played < 30
On which date was the opponent ireland and the status Five Nations?
CREATE TABLE table_name_67 (date VARCHAR, status VARCHAR, opposing_teams VARCHAR)
SELECT date FROM table_name_67 WHERE status = "five nations" AND opposing_teams = "ireland"
Which venue had a status of five nations, an against larger than 12 and took place on 15/02/1975?
CREATE TABLE table_name_59 (venue VARCHAR, date VARCHAR, status VARCHAR, against VARCHAR)
SELECT venue FROM table_name_59 WHERE status = "five nations" AND against > 12 AND date = "15/02/1975"
WHat status had an against larger than 6 and a date of 01/02/1975?
CREATE TABLE table_name_30 (status VARCHAR, against VARCHAR, date VARCHAR)
SELECT status FROM table_name_30 WHERE against > 6 AND date = "01/02/1975"
What is the highest week for the San Diego Chargers with an attendance that is less than 53,455?
CREATE TABLE table_name_53 (week INTEGER, opponent VARCHAR, attendance VARCHAR)
SELECT MAX(week) FROM table_name_53 WHERE opponent = "san diego chargers" AND attendance < 53 OFFSET 455
What is the highest attendance for December 3, 1972 after week 12?
CREATE TABLE table_name_30 (attendance INTEGER, date VARCHAR, week VARCHAR)
SELECT MAX(attendance) FROM table_name_30 WHERE date = "december 3, 1972" AND week > 12
What is Score, when Competition is "ECQG5", and when Venue is "Hampden Park , Glasgow (H)"?
CREATE TABLE table_name_18 (score VARCHAR, competition VARCHAR, venue VARCHAR)
SELECT score FROM table_name_18 WHERE competition = "ecqg5" AND venue = "hampden park , glasgow (h)"
What is Score, when Competition is "Friendly", and when Date is "30 April"?
CREATE TABLE table_name_46 (score VARCHAR, competition VARCHAR, date VARCHAR)
SELECT score FROM table_name_46 WHERE competition = "friendly" AND date = "30 april"
What is Venue, when Date is "7 September"?
CREATE TABLE table_name_45 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_45 WHERE date = "7 september"
What was the nationality for the player with 33 goals?
CREATE TABLE table_name_65 (nationality VARCHAR, goals VARCHAR)
SELECT nationality FROM table_name_65 WHERE goals = 33
What was the nationality of the player ranking 3?
CREATE TABLE table_name_13 (nationality VARCHAR, ranking VARCHAR)
SELECT nationality FROM table_name_13 WHERE ranking = "3"
What is the total population of the district of Klang, with an area larger than 636?
CREATE TABLE table_name_23 (district VARCHAR, area__km_2__ VARCHAR)
SELECT COUNT(2010 AS _population) FROM table_name_23 WHERE district = "klang" AND area__km_2__ > 636
Which Fate has a Tonnage of 7,217?
CREATE TABLE table_name_15 (fate VARCHAR, tonnage VARCHAR)
SELECT fate FROM table_name_15 WHERE tonnage = "7,217"
Which Fate has a Nationality of united kingdom, and a Tonnage of 1,809?
CREATE TABLE table_name_4 (fate VARCHAR, nationality VARCHAR, tonnage VARCHAR)
SELECT fate FROM table_name_4 WHERE nationality = "united kingdom" AND tonnage = "1,809"
Name Nationality is on 6 july 1942?
CREATE TABLE table_name_83 (nationality VARCHAR, date VARCHAR)
SELECT nationality FROM table_name_83 WHERE date = "6 july 1942"
Name Tonnage on 27 september 1941 and a Ship of hmsspringbank?
CREATE TABLE table_name_81 (tonnage VARCHAR, date VARCHAR, ship VARCHAR)
SELECT tonnage FROM table_name_81 WHERE date = "27 september 1941" AND ship = "hmsspringbank"
Which Tonnage is on 25 july 1942?
CREATE TABLE table_name_66 (tonnage VARCHAR, date VARCHAR)
SELECT tonnage FROM table_name_66 WHERE date = "25 july 1942"
What place is player leo diegel?
CREATE TABLE table_name_38 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_38 WHERE player = "leo diegel"
How much money does player horton smith have?
CREATE TABLE table_name_62 (money___$__ VARCHAR, player VARCHAR)
SELECT money___$__ FROM table_name_62 WHERE player = "horton smith"
How much money does the player with a score of 74-71-76-76=297 have?
CREATE TABLE table_name_5 (money___$__ VARCHAR, score VARCHAR)
SELECT money___$__ FROM table_name_5 WHERE score = 74 - 71 - 76 - 76 = 297
What is the sum of the to par with a 76-77-74-75=302 score?
CREATE TABLE table_name_88 (to_par INTEGER, score VARCHAR)
SELECT SUM(to_par) FROM table_name_88 WHERE score = 76 - 77 - 74 - 75 = 302
Who is the player with a t8 place and a 74-74-76-77=301 score?
CREATE TABLE table_name_16 (player VARCHAR, place VARCHAR, score VARCHAR)
SELECT player FROM table_name_16 WHERE place = "t8" AND score = 74 - 74 - 76 - 77 = 301
What country has a 14 to par?
CREATE TABLE table_name_66 (country VARCHAR, to_par VARCHAR)
SELECT country FROM table_name_66 WHERE to_par = 14
What is the score if Millwall is the Home Team?
CREATE TABLE table_name_18 (score VARCHAR, home_team VARCHAR)
SELECT score FROM table_name_18 WHERE home_team = "millwall"
What is the Away team with Newcastle United as the Home team?
CREATE TABLE table_name_42 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_42 WHERE home_team = "newcastle united"
What is the Score on 27 Jan 1990 with an Away Team of Queens Park Rangers?
CREATE TABLE table_name_71 (score VARCHAR, date VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_71 WHERE date = "27 jan 1990" AND away_team = "queens park rangers"
If the Away Team is Arsenal what is the Score?
CREATE TABLE table_name_47 (score VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_47 WHERE away_team = "arsenal"
What is the score for 4-1?
CREATE TABLE table_name_9 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_9 WHERE record = "4-1"
What is the Population of the Rural Community
CREATE TABLE table_name_75 (population VARCHAR, status VARCHAR)
SELECT population FROM table_name_75 WHERE status = "rural community"
What is the Area km 2 with a Census Ranking of 1,773 of 5,008?
CREATE TABLE table_name_56 (area_km_2 INTEGER, census_ranking VARCHAR)
SELECT SUM(area_km_2) FROM table_name_56 WHERE census_ranking = "1,773 of 5,008"
With an Area km 2 of less than 130.68, what is McAdam's Population?
CREATE TABLE table_name_54 (population INTEGER, area_km_2 VARCHAR, official_name VARCHAR)
SELECT SUM(population) FROM table_name_54 WHERE area_km_2 < 130.68 AND official_name = "mcadam"
Which home had a record of 2-4?
CREATE TABLE table_name_73 (home VARCHAR, record VARCHAR)
SELECT home FROM table_name_73 WHERE record = "2-4"
Who was the visitor for Chicago Black Hawks on May 6?
CREATE TABLE table_name_7 (visitor VARCHAR, home VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_7 WHERE home = "chicago black hawks" AND date = "may 6"
What day was the visitor Chicago Black Hawks and the record 0-2?
CREATE TABLE table_name_16 (date VARCHAR, visitor VARCHAR, record VARCHAR)
SELECT date FROM table_name_16 WHERE visitor = "chicago black hawks" AND record = "0-2"
What is the total number of Round with a Method of submission (ankle lock), a Location of tokyo, japan, and a Record of 13-5-2?
CREATE TABLE table_name_84 (round INTEGER, record VARCHAR, method VARCHAR, location VARCHAR)
SELECT SUM(round) FROM table_name_84 WHERE method = "submission (ankle lock)" AND location = "tokyo, japan" AND record = "13-5-2"
Which Nation has Silver smaller than 16, Bronze larger than 6, and Gold of 2?
CREATE TABLE table_name_77 (nation VARCHAR, gold VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT nation FROM table_name_77 WHERE silver < 16 AND bronze > 6 AND gold = 2
Which Gold has a Nation of south korea (kor), and Bronze smaller than 65?
CREATE TABLE table_name_83 (gold INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT AVG(gold) FROM table_name_83 WHERE nation = "south korea (kor)" AND bronze < 65
Which Total has Gold of 2?
CREATE TABLE table_name_60 (total INTEGER, gold VARCHAR)
SELECT MAX(total) FROM table_name_60 WHERE gold = 2
Which Total has Gold smaller than 12, and a Nation of hong kong (hkg)?
CREATE TABLE table_name_43 (total INTEGER, gold VARCHAR, nation VARCHAR)
SELECT MAX(total) FROM table_name_43 WHERE gold < 12 AND nation = "hong kong (hkg)"
Which Gold has a Total of 721?
CREATE TABLE table_name_18 (gold INTEGER, total VARCHAR)
SELECT AVG(gold) FROM table_name_18 WHERE total = 721
What is the 2007-08 season at Stadio Silvio Piola?
CREATE TABLE table_name_75 (stadium VARCHAR)
SELECT 2007 AS _08_season FROM table_name_75 WHERE stadium = "stadio silvio piola"
What is the To par of the T6 Place Player with a Score of 68-69-70=207?
CREATE TABLE table_name_77 (to_par VARCHAR, place VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_77 WHERE place = "t6" AND score = 68 - 69 - 70 = 207
What is the Country of the T8 Place Player with a Score of 70-67-71=208?
CREATE TABLE table_name_60 (country VARCHAR, place VARCHAR, score VARCHAR)
SELECT country FROM table_name_60 WHERE place = "t8" AND score = 70 - 67 - 71 = 208
What is Peter Jacobsen's Place?
CREATE TABLE table_name_8 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_8 WHERE player = "peter jacobsen"
What is the To par of the Player with a Score of 71-69-68=208?
CREATE TABLE table_name_25 (to_par VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_25 WHERE score = 71 - 69 - 68 = 208
What is the To par of the Player from Argentina?
CREATE TABLE table_name_39 (to_par VARCHAR, country VARCHAR)
SELECT to_par FROM table_name_39 WHERE country = "argentina"
which Points has Wins smaller than 2?
CREATE TABLE table_name_41 (points INTEGER, wins INTEGER)
SELECT MIN(points) FROM table_name_41 WHERE wins < 2
Which Wins has a Draws smaller than 3, and Points of 26?
CREATE TABLE table_name_79 (wins INTEGER, draws VARCHAR, points VARCHAR)
SELECT AVG(wins) FROM table_name_79 WHERE draws < 3 AND points = 26
Which Games played has a Points of 6, and Goals scored larger than 12?
CREATE TABLE table_name_83 (games_played INTEGER, points VARCHAR, goals_scored VARCHAR)
SELECT MAX(games_played) FROM table_name_83 WHERE points = 6 AND goals_scored > 12
Which Goals scored has Points larger than 26 and Wins larger than 11?
CREATE TABLE table_name_79 (goals_scored INTEGER, points VARCHAR, wins VARCHAR)
SELECT SUM(goals_scored) FROM table_name_79 WHERE points > 26 AND wins > 11
Which Loses has Points smaller than 6?
CREATE TABLE table_name_38 (loses INTEGER, points INTEGER)
SELECT AVG(loses) FROM table_name_38 WHERE points < 6
Which Goals conceded has Points of 6 and Draws larger than 0?
CREATE TABLE table_name_10 (goals_conceded INTEGER, points VARCHAR, draws VARCHAR)
SELECT MAX(goals_conceded) FROM table_name_10 WHERE points = 6 AND draws > 0
What round did the spartak moscow club play?
CREATE TABLE table_name_12 (round VARCHAR, club VARCHAR)
SELECT round FROM table_name_12 WHERE club = "spartak moscow"
What is the total number of Wickets with a 26.13 average?
CREATE TABLE table_name_8 (wickets VARCHAR, average VARCHAR)
SELECT COUNT(wickets) FROM table_name_8 WHERE average = 26.13
What is the total rank for player Delyone Borden with more than 15 wickets?
CREATE TABLE table_name_71 (rank INTEGER, player VARCHAR, wickets VARCHAR)
SELECT SUM(rank) FROM table_name_71 WHERE player = "delyone borden" AND wickets > 15
What are the total number of Wickets that ranger higher than 5?
CREATE TABLE table_name_22 (wickets VARCHAR, rank INTEGER)
SELECT COUNT(wickets) FROM table_name_22 WHERE rank > 5
What was the career of the rank higher than 1, with an average less than 36.13 and 15 wickets, and player George O'Brien?
CREATE TABLE table_name_71 (career VARCHAR, player VARCHAR, wickets VARCHAR, rank VARCHAR, average VARCHAR)
SELECT career FROM table_name_71 WHERE rank > 1 AND average < 36.13 AND wickets = 15 AND player = "george o'brien"
What is the highest rank for less than 15 Wickets?
CREATE TABLE table_name_22 (rank INTEGER, wickets INTEGER)
SELECT MAX(rank) FROM table_name_22 WHERE wickets < 15
What is the grid with a +0.180 time?
CREATE TABLE table_name_67 (grid VARCHAR, time VARCHAR)
SELECT grid FROM table_name_67 WHERE time = "+0.180"
What is the sum of laps of the honda cbr1000rr bike, which has a time of +16.569?
CREATE TABLE table_name_33 (laps INTEGER, bike VARCHAR, time VARCHAR)
SELECT SUM(laps) FROM table_name_33 WHERE bike = "honda cbr1000rr" AND time = "+16.569"
What is the time of the honda cbr1000rr bike, which has less than 25 laps?
CREATE TABLE table_name_49 (time VARCHAR, laps VARCHAR, bike VARCHAR)
SELECT time FROM table_name_49 WHERE laps < 25 AND bike = "honda cbr1000rr"
What date has a loan expires date of end of the season, and a Position of mf?
CREATE TABLE table_name_87 (date VARCHAR, loan_expires VARCHAR, position VARCHAR)
SELECT date FROM table_name_87 WHERE loan_expires = "end of the season" AND position = "mf"
What player that has a Position of df, and Loaned to is Stoke City?
CREATE TABLE table_name_89 (player VARCHAR, position VARCHAR, loaned_to VARCHAR)
SELECT player FROM table_name_89 WHERE position = "df" AND loaned_to = "stoke city"
What loan expires date has a Date of 29 december 2003?
CREATE TABLE table_name_6 (loan_expires VARCHAR, date VARCHAR)
SELECT loan_expires FROM table_name_6 WHERE date = "29 december 2003"
What shows for loaned to when the loan expires end of the season, Francis Jeffers is the player?
CREATE TABLE table_name_37 (loaned_to VARCHAR, loan_expires VARCHAR, player VARCHAR)
SELECT loaned_to FROM table_name_37 WHERE loan_expires = "end of the season" AND player = "francis jeffers"
What player loaned to of Leeds United?
CREATE TABLE table_name_29 (player VARCHAR, loaned_to VARCHAR)
SELECT player FROM table_name_29 WHERE loaned_to = "leeds united"
What was the 1st leg when team 1 was apoel?
CREATE TABLE table_name_79 (team_1 VARCHAR)
SELECT 1 AS st_leg FROM table_name_79 WHERE team_1 = "apoel"
What was team 2 when team 1 was omonia?
CREATE TABLE table_name_9 (team_2 VARCHAR, team_1 VARCHAR)
SELECT team_2 FROM table_name_9 WHERE team_1 = "omonia"
What was the lowest total of medals won by Croatia?
CREATE TABLE table_name_12 (total INTEGER, nation VARCHAR)
SELECT MIN(total) FROM table_name_12 WHERE nation = "croatia"
Which Goals have Apps smaller than 1?
CREATE TABLE table_name_41 (goals INTEGER, apps INTEGER)
SELECT AVG(goals) FROM table_name_41 WHERE apps < 1
Which National team has a Year of total?
CREATE TABLE table_name_6 (national_team VARCHAR, year VARCHAR)
SELECT national_team FROM table_name_6 WHERE year = "total"
How many Goals have a National team of england, and Apps smaller than 6, and a Year of 2012?
CREATE TABLE table_name_78 (goals INTEGER, year VARCHAR, national_team VARCHAR, apps VARCHAR)
SELECT SUM(goals) FROM table_name_78 WHERE national_team = "england" AND apps < 6 AND year = "2012"
Which National team has a Club of arsenal, and Apps smaller than 4, and a Year of 2010?
CREATE TABLE table_name_95 (national_team VARCHAR, year VARCHAR, club VARCHAR, apps VARCHAR)
SELECT national_team FROM table_name_95 WHERE club = "arsenal" AND apps < 4 AND year = "2010"
Which champion has a Group Stage LLWS in Russellville?
CREATE TABLE table_name_16 (champion VARCHAR, llws VARCHAR, city VARCHAR)
SELECT champion FROM table_name_16 WHERE llws = "group stage" AND city = "russellville"
What is the record of the champion in 2008?
CREATE TABLE table_name_85 (record VARCHAR, year VARCHAR)
SELECT record FROM table_name_85 WHERE year = 2008
What nation was number 1 and had a total larger than 5?
CREATE TABLE table_name_6 (nation VARCHAR, total VARCHAR, rank VARCHAR)
SELECT nation FROM table_name_6 WHERE total > 5 AND rank = "1"
How many bronzes had a rank of 10 and 0 gold?
CREATE TABLE table_name_9 (bronze INTEGER, rank VARCHAR, gold VARCHAR)
SELECT SUM(bronze) FROM table_name_9 WHERE rank = "10" AND gold < 0
Hold many gold had more than 16 bronzes?
CREATE TABLE table_name_72 (gold VARCHAR, bronze INTEGER)
SELECT COUNT(gold) FROM table_name_72 WHERE bronze > 16
What is the lowest amount of gold for more than 16 silver?
CREATE TABLE table_name_14 (gold INTEGER, silver INTEGER)
SELECT MIN(gold) FROM table_name_14 WHERE silver > 16
What is the average population of the township having land of 35.666sqmi and GEO ID over 3807364500?
CREATE TABLE table_name_36 (pop__2010_ INTEGER, land___sqmi__ VARCHAR, geo_id VARCHAR)
SELECT AVG(pop__2010_) FROM table_name_36 WHERE land___sqmi__ = 35.666 AND geo_id > 3807364500
What is the average 2010 population having longitude over -102.353035, latitude over 46.937841, and 0.034 sqmi of water?
CREATE TABLE table_name_30 (pop__2010_ INTEGER, water__sqmi_ VARCHAR, longitude VARCHAR, latitude VARCHAR)
SELECT AVG(pop__2010_) FROM table_name_30 WHERE longitude > -102.353035 AND latitude > 46.937841 AND water__sqmi_ = 0.034
What is the highest 2010 population having GEO ID of 3802763220 and longitude over -98.936777?
CREATE TABLE table_name_58 (pop__2010_ INTEGER, geo_id VARCHAR, longitude VARCHAR)
SELECT MAX(pop__2010_) FROM table_name_58 WHERE geo_id = 3802763220 AND longitude > -98.936777
What is the smallest amount of water having landmass over 34.864 sqmi, in Pierce township, with a GEO ID over 3800362460?
CREATE TABLE table_name_2 (water__sqmi_ INTEGER, geo_id VARCHAR, land___sqmi__ VARCHAR, township VARCHAR)
SELECT MIN(water__sqmi_) FROM table_name_2 WHERE land___sqmi__ > 34.864 AND township = "pierce" AND geo_id > 3800362460
Which Tally has a County of limerick, and a Rank larger than 1?
CREATE TABLE table_name_3 (tally VARCHAR, county VARCHAR, rank VARCHAR)
SELECT tally FROM table_name_3 WHERE county = "limerick" AND rank > 1
Which Bronze has a Silver of 15, and a Total smaller than 54?
CREATE TABLE table_name_23 (bronze INTEGER, silver VARCHAR, total VARCHAR)
SELECT MIN(bronze) FROM table_name_23 WHERE silver = 15 AND total < 54
How many Bronzes have a Rank of 9, and a Silver larger than 2?
CREATE TABLE table_name_5 (bronze INTEGER, rank VARCHAR, silver VARCHAR)
SELECT SUM(bronze) FROM table_name_5 WHERE rank = "9" AND silver > 2
How many totals have a Silver of 40, and a Gold smaller than 39?
CREATE TABLE table_name_21 (total VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT COUNT(total) FROM table_name_21 WHERE silver = 40 AND gold < 39
Who's the opponent with a time of 3:24?
CREATE TABLE table_name_32 (opponent VARCHAR, time VARCHAR)
SELECT opponent FROM table_name_32 WHERE time = "3:24"
What's the record that had an opponent of Krzysztof Soszynski and a time of 4:00?
CREATE TABLE table_name_64 (record VARCHAR, time VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_64 WHERE time = "4:00" AND opponent = "krzysztof soszynski"
What's the time of IFL: Championship Final?
CREATE TABLE table_name_98 (time VARCHAR, event VARCHAR)
SELECT time FROM table_name_98 WHERE event = "ifl: championship final"
Which FA Cup Apps have League Apps of 21?
CREATE TABLE table_name_28 (fa_cup_apps VARCHAR, league_apps VARCHAR)
SELECT fa_cup_apps FROM table_name_28 WHERE league_apps = "21"
Which Name has a League Cup Goals of 0, and League Apps of 1?
CREATE TABLE table_name_75 (name VARCHAR, league_cup_goals VARCHAR, league_apps VARCHAR)
SELECT name FROM table_name_75 WHERE league_cup_goals = 0 AND league_apps = "1"
Which Total Goals have a League Cup Goals larger than 0, and FA Cup Goals larger than 0?
CREATE TABLE table_name_82 (total_goals INTEGER, league_cup_goals VARCHAR, fa_cup_goals VARCHAR)
SELECT AVG(total_goals) FROM table_name_82 WHERE league_cup_goals > 0 AND fa_cup_goals > 0
Which Total Goals have Total Apps of 42 (3), and League Goals smaller than 1?
CREATE TABLE table_name_10 (total_goals INTEGER, total_apps VARCHAR, league_goals VARCHAR)
SELECT MAX(total_goals) FROM table_name_10 WHERE total_apps = "42 (3)" AND league_goals < 1
What is the lowest rank for the team that raced a time of 6:17.62 and a notes of sa/b?
CREATE TABLE table_name_87 (rank INTEGER, notes VARCHAR, time VARCHAR)
SELECT MIN(rank) FROM table_name_87 WHERE notes = "sa/b" AND time = "6:17.62"
What country has a rank of 3 and notes of r?
CREATE TABLE table_name_97 (country VARCHAR, notes VARCHAR, rank VARCHAR)
SELECT country FROM table_name_97 WHERE notes = "r" AND rank = 3
What conference includes the Indians?
CREATE TABLE table_name_40 (conference_joined VARCHAR, mascot VARCHAR)
SELECT conference_joined FROM table_name_40 WHERE mascot = "indians"
What is the location for Lakewood Park Christian?
CREATE TABLE table_name_81 (location VARCHAR, school VARCHAR)
SELECT location FROM table_name_81 WHERE school = "lakewood park christian"