answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT home_team FROM table_name_52 WHERE venue = "western oval"
CREATE TABLE table_name_52 (home_team VARCHAR, venue VARCHAR)
What team owns the Venue of western oval?
SELECT home_team AS score FROM table_name_1 WHERE venue = "victoria park"
CREATE TABLE table_name_1 (home_team VARCHAR, venue VARCHAR)
What did the Victoria park home team score?
SELECT COUNT(crowd) FROM table_name_98 WHERE home_team = "geelong"
CREATE TABLE table_name_98 (crowd VARCHAR, home_team VARCHAR)
What was the crowd size when geelong played home?
SELECT MAX(attendance) FROM table_name_99 WHERE venue = "td banknorth garden" AND series = "montreal leads 3-1"
CREATE TABLE table_name_99 (attendance INTEGER, venue VARCHAR, series VARCHAR)
Name the most that attendend when the venue was td banknorth garden and the series of montreal leads 3-1
SELECT decision FROM table_name_14 WHERE visitor = "boston bruins"
CREATE TABLE table_name_14 (decision VARCHAR, visitor VARCHAR)
Name the decision for boston bruins visitor
SELECT AVG(total) FROM table_name_67 WHERE nation = "egypt" AND gold < 2
CREATE TABLE table_name_67 (total INTEGER, nation VARCHAR, gold VARCHAR)
What is the average total medals Egypt, who has less than 2 gold, has?
SELECT COUNT(gold) FROM table_name_49 WHERE nation = "egypt" AND silver < 0
CREATE TABLE table_name_49 (gold VARCHAR, nation VARCHAR, silver VARCHAR)
What is the total number of gold medals Egypt, who has less than 0 silver, has?
SELECT MAX(gold) FROM table_name_76 WHERE silver < 3 AND bronze > 5
CREATE TABLE table_name_76 (gold INTEGER, silver VARCHAR, bronze VARCHAR)
What is the highest gold a team with less than 3 silver and more than 5 bronze medals has?
SELECT rank FROM table_name_2 WHERE bronze = 1 AND gold = 0
CREATE TABLE table_name_2 (rank VARCHAR, bronze VARCHAR, gold VARCHAR)
What is the rank of the team with 1 bronze and 0 gold medals?
SELECT AVG(_percentage_of_pop) FROM table_name_17 WHERE country__or_dependent_territory_ = "tunisia" AND average_relative_annual_growth___percentage_ < 1.03
CREATE TABLE table_name_17 (_percentage_of_pop INTEGER, country__or_dependent_territory_ VARCHAR, average_relative_annual_growth___percentage_ VARCHAR)
What is the average % of population Tunisia, which has an average relative annual growth smaller than 1.03?
SELECT home_team FROM table_name_45 WHERE venue = "kardinia park"
CREATE TABLE table_name_45 (home_team VARCHAR, venue VARCHAR)
Who was the home team at Kardinia Park?
SELECT home_team AS score FROM table_name_15 WHERE home_team = "footscray"
CREATE TABLE table_name_15 (home_team VARCHAR)
What was Footscray's score as the home team?
SELECT date FROM table_name_17 WHERE home = "suns"
CREATE TABLE table_name_17 (date VARCHAR, home VARCHAR)
On what date was there a competition in which the home team was the Suns?
SELECT leading_scorer FROM table_name_41 WHERE visitor = "suns"
CREATE TABLE table_name_41 (leading_scorer VARCHAR, visitor VARCHAR)
In the competition in which the visiting team was the Suns, who was the leading scorer?
SELECT record FROM table_name_11 WHERE home = "mavericks"
CREATE TABLE table_name_11 (record VARCHAR, home VARCHAR)
What was the record in the competition in which the home team was the Mavericks?
SELECT AVG(year) FROM table_name_33 WHERE movie = "rangam"
CREATE TABLE table_name_33 (year INTEGER, movie VARCHAR)
What's the average year a Rangam movie came out?
SELECT song_title FROM table_name_84 WHERE movie = "amma cheppindi"
CREATE TABLE table_name_84 (song_title VARCHAR, movie VARCHAR)
What was the name of the song in Amma Cheppindi?
SELECT AVG(year) FROM table_name_12 WHERE movie = "thuppakki"
CREATE TABLE table_name_12 (year INTEGER, movie VARCHAR)
What was the average year that Thuppakki movies came out?
SELECT SUM(games_played) FROM table_name_89 WHERE goals_scored = "2"
CREATE TABLE table_name_89 (games_played INTEGER, goals_scored VARCHAR)
How many games had 2 goals scored?
SELECT result FROM table_name_74 WHERE week = 11
CREATE TABLE table_name_74 (result VARCHAR, week VARCHAR)
What was the result week 11?
SELECT COUNT(democratic_votes) FROM table_name_21 WHERE other_votes < 18 AND _percentage_of_r_votes = "52.63% ANd_votes_since_1856 < 38"
CREATE TABLE table_name_21 (democratic_votes VARCHAR, other_votes VARCHAR, _percentage_of_r_votes VARCHAR)
Name the total number of democratic votes when the other votes are less than 18 and the percentage of R votes are 52.63% and votes since 1856 less than 38
SELECT date FROM table_name_14 WHERE opponent = "panathinaikos"
CREATE TABLE table_name_14 (date VARCHAR, opponent VARCHAR)
On what Date was the Opponent Panathinaikos?
SELECT SUM(crowd) FROM table_name_57 WHERE home_team = "st kilda"
CREATE TABLE table_name_57 (crowd INTEGER, home_team VARCHAR)
How many people attended games with st kilda as the home side?
SELECT home_team FROM table_name_32 WHERE crowd > 32 OFFSET 485
CREATE TABLE table_name_32 (home_team VARCHAR, crowd INTEGER)
Who is the home team when the crowd is over 32,485?
SELECT AVG(floors) FROM table_name_40 WHERE city = "mecca" AND rank < 12
CREATE TABLE table_name_40 (floors INTEGER, city VARCHAR, rank VARCHAR)
What is the average number of floors for buildings in mecca ranked above 12?
SELECT city FROM table_name_87 WHERE rank < 5 AND name = "lamar tower 1"
CREATE TABLE table_name_87 (city VARCHAR, rank VARCHAR, name VARCHAR)
What city is the lamar tower 1, ranked above 5?
SELECT city FROM table_name_33 WHERE floors > 57
CREATE TABLE table_name_33 (city VARCHAR, floors INTEGER)
What city has a building with over 57 floors?
SELECT COUNT(laps) FROM table_name_32 WHERE driver = "antônio pizzonia"
CREATE TABLE table_name_32 (laps VARCHAR, driver VARCHAR)
How many laps did antônio pizzonia do?
SELECT constructor FROM table_name_99 WHERE time_retired = "handling"
CREATE TABLE table_name_99 (constructor VARCHAR, time_retired VARCHAR)
What is the constructor for time/retired of handling?
SELECT away_team AS score FROM table_name_71 WHERE venue = "windy hill"
CREATE TABLE table_name_71 (away_team VARCHAR, venue VARCHAR)
What was the away team's score at windy hill?
SELECT MAX(round) FROM table_name_59 WHERE nationality = "sweden" AND position = "right wing"
CREATE TABLE table_name_59 (round INTEGER, nationality VARCHAR, position VARCHAR)
What is the highest round of a player from Sweden who plays right wing?
SELECT position FROM table_name_81 WHERE round < 4 AND overall = "17"
CREATE TABLE table_name_81 (position VARCHAR, round VARCHAR, overall VARCHAR)
What is the position of a player from a round less than 4 and an overall of 17?
SELECT AVG(round) FROM table_name_23 WHERE overall = "138"
CREATE TABLE table_name_23 (round INTEGER, overall VARCHAR)
What is the average round of a player with an overall of 138?
SELECT player FROM table_name_77 WHERE nationality = "sweden" AND round > 3
CREATE TABLE table_name_77 (player VARCHAR, nationality VARCHAR, round VARCHAR)
Who is the player from Sweden from a round after 3?
SELECT nationality FROM table_name_52 WHERE club_team = "linköpings hc (se)"
CREATE TABLE table_name_52 (nationality VARCHAR, club_team VARCHAR)
What is the nationality of a player from linköpings hc (se)?
SELECT crowd FROM table_name_17 WHERE home_team = "st kilda"
CREATE TABLE table_name_17 (crowd VARCHAR, home_team VARCHAR)
What is the crowd size for st kilda as the home team?
SELECT SUM(pages) FROM table_name_36 WHERE translated_title = "thistle among roses"
CREATE TABLE table_name_36 (pages INTEGER, translated_title VARCHAR)
I want the sum of pages for thistle among roses
SELECT manager FROM table_name_3 WHERE fund = "fmc corporation pension fund"
CREATE TABLE table_name_3 (manager VARCHAR, fund VARCHAR)
Who is the manager for FMC Corporation pension fund?
SELECT position FROM table_name_28 WHERE character = "frank tripp"
CREATE TABLE table_name_28 (position VARCHAR, character VARCHAR)
What was the position of Frank Tripp?
SELECT final_episode FROM table_name_72 WHERE episodes_credited = 187
CREATE TABLE table_name_72 (final_episode VARCHAR, episodes_credited VARCHAR)
What was the final episode credited of 187?
SELECT class FROM table_name_66 WHERE no_built = 55
CREATE TABLE table_name_66 (class VARCHAR, no_built VARCHAR)
Which class at 55 built?
SELECT loco_nos FROM table_name_80 WHERE class = "e3"
CREATE TABLE table_name_80 (loco_nos VARCHAR, class VARCHAR)
What is the Loco Nos of the e3 class?
SELECT SUM(crowd) FROM table_name_17 WHERE venue = "junction oval"
CREATE TABLE table_name_17 (crowd INTEGER, venue VARCHAR)
How many people attended Junction Oval?
SELECT home_team AS score FROM table_name_97 WHERE away_team = "fitzroy"
CREATE TABLE table_name_97 (home_team VARCHAR, away_team VARCHAR)
What was the score of the team that played against Fitzroy?
SELECT stadium FROM table_name_7 WHERE city = "melfi"
CREATE TABLE table_name_7 (stadium VARCHAR, city VARCHAR)
What is the name of the stadium for the city of melfi?
SELECT SUM(capacity) FROM table_name_96 WHERE stadium = "pasquale ianniello"
CREATE TABLE table_name_96 (capacity INTEGER, stadium VARCHAR)
What is the total capacity for the stadium of pasquale ianniello?
SELECT city FROM table_name_25 WHERE airport = "jaffna airport"
CREATE TABLE table_name_25 (city VARCHAR, airport VARCHAR)
What city is Jaffna Airport in?
SELECT city FROM table_name_84 WHERE icao = "tba"
CREATE TABLE table_name_84 (city VARCHAR, icao VARCHAR)
Which city has an ICAO of TBA?
SELECT player FROM table_name_99 WHERE college = "wyoming"
CREATE TABLE table_name_99 (player VARCHAR, college VARCHAR)
Which player went to the College of Wyoming?
SELECT MIN(crowd) FROM table_name_6 WHERE away_team = "richmond"
CREATE TABLE table_name_6 (crowd INTEGER, away_team VARCHAR)
What was the smallest crowd at a game when Richmond was the away team?
SELECT home_team FROM table_name_80 WHERE crowd > 24 OFFSET 520
CREATE TABLE table_name_80 (home_team VARCHAR, crowd INTEGER)
Who was the home team at the game that had a crowd of over 24,520?
SELECT COUNT(since) FROM table_name_24 WHERE name = "belletti"
CREATE TABLE table_name_24 (since VARCHAR, name VARCHAR)
Name the total number of since for belletti
SELECT MAX(goals) FROM table_name_7 WHERE nat = "ita" AND transfer_fee = "youth system"
CREATE TABLE table_name_7 (goals INTEGER, nat VARCHAR, transfer_fee VARCHAR)
Name the highest goals for youth system and ita
SELECT time_retired FROM table_name_84 WHERE grid > 3 AND driver = "eddie irvine"
CREATE TABLE table_name_84 (time_retired VARCHAR, grid VARCHAR, driver VARCHAR)
What is the time/retired for eddie irvine with a grid of greater than 3?
SELECT SUM(laps) FROM table_name_99 WHERE grid > 17 AND time_retired = "collision"
CREATE TABLE table_name_99 (laps INTEGER, grid VARCHAR, time_retired VARCHAR)
How many laps had a grid of greater than 17 and retired due to collision?
SELECT MAX(silver) FROM table_name_15 WHERE nation = "south korea" AND gold < 1
CREATE TABLE table_name_15 (silver INTEGER, nation VARCHAR, gold VARCHAR)
How many silvers for south korea with under 1 gold medal?
SELECT MAX(gold) FROM table_name_25 WHERE nation = "uganda" AND total < 3
CREATE TABLE table_name_25 (gold INTEGER, nation VARCHAR, total VARCHAR)
How many golds for uganda with under 3 total medals?
SELECT COUNT(bronze) FROM table_name_78 WHERE rank < 7 AND gold < 3 AND total < 10
CREATE TABLE table_name_78 (bronze VARCHAR, total VARCHAR, rank VARCHAR, gold VARCHAR)
How many bronzes for nations ranked above 7, under 3 golds, and under 10 total medals?
SELECT week FROM table_name_82 WHERE result = "l 24-10"
CREATE TABLE table_name_82 (week VARCHAR, result VARCHAR)
Which week has a result showing L 24-10?
SELECT week FROM table_name_85 WHERE kickoff_[a_] = "1:00" AND record = "4-5-1"
CREATE TABLE table_name_85 (week VARCHAR, record VARCHAR, kickoff_ VARCHAR, a_ VARCHAR)
Which week has a Kickoff time of 1:00 with a record of 4-5-1?
SELECT week FROM table_name_58 WHERE record = "5-7-1"
CREATE TABLE table_name_58 (week VARCHAR, record VARCHAR)
Which week has a record of 5-7-1?
SELECT opponent FROM table_name_79 WHERE game_site = "metropolitan stadium"
CREATE TABLE table_name_79 (opponent VARCHAR, game_site VARCHAR)
Who is the opponent on the game that will be played at metropolitan stadium?
SELECT away_team AS score FROM table_name_85 WHERE venue = "kardinia park"
CREATE TABLE table_name_85 (away_team VARCHAR, venue VARCHAR)
What did the away team score at Kardinia Park?
SELECT away_team AS score FROM table_name_38 WHERE venue = "junction oval"
CREATE TABLE table_name_38 (away_team VARCHAR, venue VARCHAR)
What was the away team's score in Junction Oval?
SELECT away_team AS score FROM table_name_24 WHERE venue = "moorabbin oval"
CREATE TABLE table_name_24 (away_team VARCHAR, venue VARCHAR)
What did the away team score at Moorabbin Oval?
SELECT constructor FROM table_name_56 WHERE time_retired = "engine" AND laps > 50
CREATE TABLE table_name_56 (constructor VARCHAR, time_retired VARCHAR, laps VARCHAR)
Who constructed the car that has a Time/Retired of engine, and over 50 laps?
SELECT time_retired FROM table_name_30 WHERE laps < 75 AND grid < 15 AND driver = "ronnie peterson"
CREATE TABLE table_name_30 (time_retired VARCHAR, driver VARCHAR, laps VARCHAR, grid VARCHAR)
What is the time/retired for ronnie peterson with under 75 laps and a grid under 15?
SELECT location FROM table_name_74 WHERE owgr_points > 6 AND winner = "ryu hyun-woo"
CREATE TABLE table_name_74 (location VARCHAR, owgr_points VARCHAR, winner VARCHAR)
What is the location of the tournament with more than 6 OWGR points and Ryu Hyun-Woo as the winner?
SELECT away_team FROM table_name_24 WHERE venue = "arden street oval"
CREATE TABLE table_name_24 (away_team VARCHAR, venue VARCHAR)
Who was the away team at Arden Street Oval?
SELECT team FROM table_name_10 WHERE assists > 118 AND rank < 2
CREATE TABLE table_name_10 (team VARCHAR, assists VARCHAR, rank VARCHAR)
I want the team with assists greater than 118 and rank less than 2
SELECT region FROM table_name_25 WHERE rank = 5
CREATE TABLE table_name_25 (region VARCHAR, rank VARCHAR)
What region has a 5 rank?
SELECT mountain_peak FROM table_name_29 WHERE mountain_range = "spanish peaks"
CREATE TABLE table_name_29 (mountain_peak VARCHAR, mountain_range VARCHAR)
Which mountain peak has spanish peaks?
SELECT date FROM table_name_83 WHERE home_team = "essendon"
CREATE TABLE table_name_83 (date VARCHAR, home_team VARCHAR)
What date did Essendon play as the home team?
SELECT MAX(crowd) FROM table_name_27 WHERE venue = "windy hill"
CREATE TABLE table_name_27 (crowd INTEGER, venue VARCHAR)
What was the attendance at Windy Hill?
SELECT MIN(crowd) FROM table_name_83 WHERE venue = "vfl park"
CREATE TABLE table_name_83 (crowd INTEGER, venue VARCHAR)
What was the smallest crowd of vfl park?
SELECT away_team AS score FROM table_name_40 WHERE venue = "kardinia park"
CREATE TABLE table_name_40 (away_team VARCHAR, venue VARCHAR)
What was the away team score at kardinia park?
SELECT away_team FROM table_name_63 WHERE home_team = "north melbourne"
CREATE TABLE table_name_63 (away_team VARCHAR, home_team VARCHAR)
Who was the away team at the home game of north melbourne?
SELECT AVG(yards__red_tees_) FROM table_name_27 WHERE hole = "1" AND par__white_tees_ > 4
CREATE TABLE table_name_27 (yards__red_tees_ INTEGER, hole VARCHAR, par__white_tees_ VARCHAR)
What is the average number of yards on a red tee that has a hole of 1 and a par above 4?
SELECT bronze FROM table_name_9 WHERE nation = "netherlands"
CREATE TABLE table_name_9 (bronze VARCHAR, nation VARCHAR)
How many bronzes did netherlands win?
SELECT nation FROM table_name_13 WHERE total = 6
CREATE TABLE table_name_13 (nation VARCHAR, total VARCHAR)
What is the nation for 6 total?
SELECT bronze FROM table_name_50 WHERE total > 2 AND gold = "1" AND silver = "4"
CREATE TABLE table_name_50 (bronze VARCHAR, silver VARCHAR, total VARCHAR, gold VARCHAR)
What is the bronze when silver is 4 and gold is 1 and the total is more than 2
SELECT gold FROM table_name_20 WHERE nation = "netherlands"
CREATE TABLE table_name_20 (gold VARCHAR, nation VARCHAR)
Tell me the gold for netherlands
SELECT away_team AS score FROM table_name_58 WHERE home_team = "richmond"
CREATE TABLE table_name_58 (away_team VARCHAR, home_team VARCHAR)
Which Away team score has a Home team of richmond?
SELECT home_team AS score FROM table_name_72 WHERE away_team = "carlton"
CREATE TABLE table_name_72 (home_team VARCHAR, away_team VARCHAR)
Which Home team score has an Away team of carlton?
SELECT SUM(no_in_series) FROM table_name_38 WHERE director = "jefferson kibbee" AND production_code = "2398191"
CREATE TABLE table_name_38 (no_in_series INTEGER, director VARCHAR, production_code VARCHAR)
What is the total series numbers that is directed by Jefferson Kibbee and has a production code of 2398191?
SELECT 1 AS st_edition FROM table_name_77 WHERE episode = "4"
CREATE TABLE table_name_77 (episode VARCHAR)
What is the 1st Edition for the Episode 4?
SELECT 1 AS st_edition FROM table_name_16 WHERE episode = "11"
CREATE TABLE table_name_16 (episode VARCHAR)
What is the 1st Edition for Episode 11?
SELECT 3 AS rd_edition FROM table_name_90 WHERE episode = "4"
CREATE TABLE table_name_90 (episode VARCHAR)
What is the 3rd Edition for Episode 4?
SELECT home_team FROM table_name_25 WHERE crowd > 4 OFFSET 000
CREATE TABLE table_name_25 (home_team VARCHAR, crowd INTEGER)
Which home teams had crowds larger than 4,000?
SELECT date FROM table_name_31 WHERE venue = "western oval"
CREATE TABLE table_name_31 (date VARCHAR, venue VARCHAR)
I want to know the date for western oval venue
SELECT declination___j2000__ FROM table_name_34 WHERE right_ascension___j2000__ = "11h53m41.9s"
CREATE TABLE table_name_34 (declination___j2000__ VARCHAR, right_ascension___j2000__ VARCHAR)
What is the declination with a right ascension of 11h53m41.9s?
SELECT 1 AS st_leg FROM table_name_58 WHERE team_1 = "chelsea"
CREATE TABLE table_name_58 (team_1 VARCHAR)
What is the 1st leg when team 1 is Chelsea?
SELECT away_team AS score FROM table_name_32 WHERE away_team = "fitzroy"
CREATE TABLE table_name_32 (away_team VARCHAR)
What was the away team score, when the away team was Fitzroy?
SELECT home_team FROM table_name_70 WHERE away_team = "melbourne"
CREATE TABLE table_name_70 (home_team VARCHAR, away_team VARCHAR)
What is the name of the home team when the away team was Melbourne?
SELECT home_team FROM table_name_50 WHERE venue = "emcg"
CREATE TABLE table_name_50 (home_team VARCHAR, venue VARCHAR)
What is the name of the home team that has a venue called EMCG?
SELECT venue FROM table_name_5 WHERE away_team = "melbourne"
CREATE TABLE table_name_5 (venue VARCHAR, away_team VARCHAR)
What is the name of the venue where the game played had an away team of Melbourne?
SELECT AVG(lost) FROM table_name_33 WHERE diff > -16 AND points = 19 AND against > 24
CREATE TABLE table_name_33 (lost INTEGER, against VARCHAR, diff VARCHAR, points VARCHAR)
What is the average number lost with a difference of -16, 19 points, and more than 24 against?
SELECT MAX(lost) FROM table_name_79 WHERE points = 25
CREATE TABLE table_name_79 (lost INTEGER, points VARCHAR)
What is the highest number of losses with 25 points?
SELECT SUM(diff) FROM table_name_48 WHERE drawn = 9 AND played > 18
CREATE TABLE table_name_48 (diff INTEGER, drawn VARCHAR, played VARCHAR)
What is the sum of the difference for 9 draws and over 18 played?
SELECT MIN(drawn) FROM table_name_36 WHERE lost < 2
CREATE TABLE table_name_36 (drawn INTEGER, lost INTEGER)
What is the lowest number drawn with less than 2 lost?