text
stringlengths
114
1.06k
### question: What is the largest crowd for any game where Footscray is the home team? ### answer: SELECT MAX(crowd) FROM table_name_9 WHERE home_team = "footscray" ### context: CREATE TABLE table_name_9 (crowd INTEGER, home_team VARCHAR)
### question: What is the maximum number of draws when the diff is smaller than 186, points are fewer than 12 and games played fewer than 6? ### answer: SELECT MAX(drawn) FROM table_name_86 WHERE diff < 186 AND points < 12 AND played < 6 ### context: CREATE TABLE table_name_86 (drawn INTEGER, played VARCHAR, diff VARCH...
### question: What is the average diff when games played are more than 6? ### answer: SELECT AVG(diff) FROM table_name_84 WHERE played > 6 ### context: CREATE TABLE table_name_84 (diff INTEGER, played INTEGER)
### question: What is the highest draws when more than 6 are played and the points against are 54? ### answer: SELECT MAX(drawn) FROM table_name_92 WHERE against = 54 AND played > 6 ### context: CREATE TABLE table_name_92 (drawn INTEGER, against VARCHAR, played VARCHAR)
### question: What is the maximum number of points against when the team has more than 0 losses and plays fewer than 6 games? ### answer: SELECT MAX(against) FROM table_name_18 WHERE lost > 0 AND played < 6 ### context: CREATE TABLE table_name_18 (against INTEGER, lost VARCHAR, played VARCHAR)
### question: What is the number of games played for the team with 12 points and an against smaller than 52? ### answer: SELECT AVG(played) FROM table_name_59 WHERE points = 12 AND against < 52 ### context: CREATE TABLE table_name_59 (played INTEGER, points VARCHAR, against VARCHAR)
### question: What is the lowest average parish size with 47.2% of adherents and 4,936 regular attendees? ### answer: SELECT MIN(average_parish_size) FROM table_name_25 WHERE _percentage_of_adherents = "47.2%" AND regular_attendees > 4 OFFSET 936 ### context: CREATE TABLE table_name_25 (average_parish_size INTEGER, _pe...
### question: What is the average regular number of attendees that has 79 parishes? ### answer: SELECT AVG(regular_attendees) FROM table_name_36 WHERE parishes = 79 ### context: CREATE TABLE table_name_36 (regular_attendees INTEGER, parishes VARCHAR)
### question: Which Grand Prix has the Circuit of Lille? ### answer: SELECT name FROM table_name_20 WHERE circuit = "lille" ### context: CREATE TABLE table_name_20 (name VARCHAR, circuit VARCHAR)
### question: Which winning driver of the Roussillon Grand Prix had an Alfa Romeo? ### answer: SELECT winning_driver FROM table_name_53 WHERE winning_constructor = "alfa romeo" AND name = "roussillon grand prix" ### context: CREATE TABLE table_name_53 (winning_driver VARCHAR, winning_constructor VARCHAR, name VARCHAR)
### question: Which Constructor won the Roussillon Grand Prix? ### answer: SELECT winning_constructor FROM table_name_95 WHERE name = "roussillon grand prix" ### context: CREATE TABLE table_name_95 (winning_constructor VARCHAR, name VARCHAR)
### question: Which Driver won the Circuit of Rio de Janeiro? ### answer: SELECT winning_driver FROM table_name_13 WHERE circuit = "rio de janeiro" ### context: CREATE TABLE table_name_13 (winning_driver VARCHAR, circuit VARCHAR)
### question: What day did the VFL pay MCG? ### answer: SELECT date FROM table_name_90 WHERE venue = "mcg" ### context: CREATE TABLE table_name_90 (date VARCHAR, venue VARCHAR)
### question: What was November 4, 1973 attendance? ### answer: SELECT attendance FROM table_name_64 WHERE date = "november 4, 1973" ### context: CREATE TABLE table_name_64 (attendance VARCHAR, date VARCHAR)
### question: What is the number of laps with a Constructor of renault, and a driver of jacques villeneuve? ### answer: SELECT laps FROM table_name_73 WHERE constructor = "renault" AND driver = "jacques villeneuve" ### context: CREATE TABLE table_name_73 (laps VARCHAR, constructor VARCHAR, driver VARCHAR)
### question: What is the time/retired for grid 3? ### answer: SELECT time_retired FROM table_name_19 WHERE grid = 3 ### context: CREATE TABLE table_name_19 (time_retired VARCHAR, grid VARCHAR)
### question: What is the time/retired for grid 8? ### answer: SELECT time_retired FROM table_name_95 WHERE grid = 8 ### context: CREATE TABLE table_name_95 (time_retired VARCHAR, grid VARCHAR)
### question: What is the time/retired for a grid larger than 11, laps larger than 41, and nick heidfeld? ### answer: SELECT time_retired FROM table_name_32 WHERE grid > 11 AND laps > 41 AND driver = "nick heidfeld" ### context: CREATE TABLE table_name_32 (time_retired VARCHAR, driver VARCHAR, grid VARCHAR, laps VARCHA...
### question: Who was the driver with less than 53 laps, Grid larger than 17, and a Time/Retired of spin? ### answer: SELECT driver FROM table_name_3 WHERE laps < 53 AND grid > 17 AND time_retired = "spin" ### context: CREATE TABLE table_name_3 (driver VARCHAR, time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
### question: Who has won $98,860? ### answer: SELECT driver FROM table_name_97 WHERE winnings = "$98,860" ### context: CREATE TABLE table_name_97 (driver VARCHAR, winnings VARCHAR)
### question: What team is travelling to play Hawthorn? ### answer: SELECT away_team FROM table_name_17 WHERE home_team = "hawthorn" ### context: CREATE TABLE table_name_17 (away_team VARCHAR, home_team VARCHAR)
### question: What is the smallest crowd at the Victoria Park Venue? ### answer: SELECT MIN(crowd) FROM table_name_94 WHERE venue = "victoria park" ### context: CREATE TABLE table_name_94 (crowd INTEGER, venue VARCHAR)
### question: What is the score given by the Home team Geelong? ### answer: SELECT home_team AS score FROM table_name_37 WHERE home_team = "geelong" ### context: CREATE TABLE table_name_37 (home_team VARCHAR)
### question: What is the largest crowd at arden street oval? ### answer: SELECT MAX(crowd) FROM table_name_87 WHERE venue = "arden street oval" ### context: CREATE TABLE table_name_87 (crowd INTEGER, venue VARCHAR)
### question: What is the home side's score at western oval? ### answer: SELECT home_team AS score FROM table_name_23 WHERE venue = "western oval" ### context: CREATE TABLE table_name_23 (home_team VARCHAR, venue VARCHAR)
### question: What venue is in the state of Connecticut? ### answer: SELECT venue FROM table_name_90 WHERE state = "connecticut" ### context: CREATE TABLE table_name_90 (venue VARCHAR, state VARCHAR)
### question: What venue is in the city of Durham? ### answer: SELECT venue FROM table_name_95 WHERE city = "durham" ### context: CREATE TABLE table_name_95 (venue VARCHAR, city VARCHAR)
### question: In what state is the Thomas Assembly Center located? ### answer: SELECT state FROM table_name_5 WHERE venue = "thomas assembly center" ### context: CREATE TABLE table_name_5 (state VARCHAR, venue VARCHAR)
### question: What venue is located in Indiana and hosted at Purdue University? ### answer: SELECT venue FROM table_name_54 WHERE state = "indiana" AND host = "purdue university" ### context: CREATE TABLE table_name_54 (venue VARCHAR, state VARCHAR, host VARCHAR)
### question: What city is located in Oklahoma? ### answer: SELECT city FROM table_name_67 WHERE state = "oklahoma" ### context: CREATE TABLE table_name_67 (city VARCHAR, state VARCHAR)
### question: In what city is the United Spirit Arena located? ### answer: SELECT city FROM table_name_20 WHERE venue = "united spirit arena" ### context: CREATE TABLE table_name_20 (city VARCHAR, venue VARCHAR)
### question: What was the result when they had their bye week? ### answer: SELECT result FROM table_name_84 WHERE date = "bye" ### context: CREATE TABLE table_name_84 (result VARCHAR, date VARCHAR)
### question: What was the attendance of the Browns' September 7, 1953 game? ### answer: SELECT attendance FROM table_name_78 WHERE date = "september 7, 1953" ### context: CREATE TABLE table_name_78 (attendance VARCHAR, date VARCHAR)
### question: When was the Browns' game that over 36,796 attended? ### answer: SELECT date FROM table_name_74 WHERE attendance > 36 OFFSET 796 ### context: CREATE TABLE table_name_74 (date VARCHAR, attendance INTEGER)
### question: What Young rider classification has a Stage of 18? ### answer: SELECT young_rider_classification FROM table_name_3 WHERE stage = "18" ### context: CREATE TABLE table_name_3 (young_rider_classification VARCHAR, stage VARCHAR)
### question: Who has a Team classification of la vie claire, a stage of 20, a General classification of greg lemond? ### answer: SELECT winner FROM table_name_80 WHERE team_classification = "la vie claire" AND general_classification = "greg lemond" AND stage = "20" ### context: CREATE TABLE table_name_80 (winner VARCH...
### question: What is the classification with a Team classification of la vie claire and a Stage of 12? ### answer: SELECT general_classification FROM table_name_62 WHERE team_classification = "la vie claire" AND stage = "12" ### context: CREATE TABLE table_name_62 (general_classification VARCHAR, team_classification V...
### question: What is guido bontempi's general classification when he has a stage of 6? ### answer: SELECT general_classification FROM table_name_51 WHERE winner = "guido bontempi" AND stage = "6" ### context: CREATE TABLE table_name_51 (general_classification VARCHAR, winner VARCHAR, stage VARCHAR)
### question: What is Ludo Peeters' team classification? ### answer: SELECT team_classification FROM table_name_74 WHERE winner = "ludo peeters" ### context: CREATE TABLE table_name_74 (team_classification VARCHAR, winner VARCHAR)
### question: Which date had less than 3 goals and a result of (w) 2-0? ### answer: SELECT date FROM table_name_23 WHERE goals < 3 AND result = "(w) 2-0" ### context: CREATE TABLE table_name_23 (date VARCHAR, goals VARCHAR, result VARCHAR)
### question: On what date was a match held at MCG? ### answer: SELECT date FROM table_name_50 WHERE venue = "mcg" ### context: CREATE TABLE table_name_50 (date VARCHAR, venue VARCHAR)
### question: When Fitzroy are the away team, what is the average crowd size? ### answer: SELECT AVG(crowd) FROM table_name_65 WHERE away_team = "fitzroy" ### context: CREATE TABLE table_name_65 (crowd INTEGER, away_team VARCHAR)
### question: What is footscray's away team score? ### answer: SELECT away_team AS score FROM table_name_66 WHERE home_team = "footscray" ### context: CREATE TABLE table_name_66 (away_team VARCHAR, home_team VARCHAR)
### question: What is the record of Jeremija Sanders' opponent? ### answer: SELECT record FROM table_name_37 WHERE opponent = "jeremija sanders" ### context: CREATE TABLE table_name_37 (record VARCHAR, opponent VARCHAR)
### question: What is the average number of tries that has a start larger than 32, is a player of seremaia bai that also has a conversion score larger than 47? ### answer: SELECT AVG(tries) FROM table_name_22 WHERE start > 32 AND player = "seremaia bai" AND conv > 47 ### context: CREATE TABLE table_name_22 (tries INTEG...
### question: For the player fero lasagavibau who has the lowest start? ### answer: SELECT MIN(start) FROM table_name_71 WHERE player = "fero lasagavibau" ### context: CREATE TABLE table_name_71 (start INTEGER, player VARCHAR)
### question: Who was the opponent when Raphael was 4-0? ### answer: SELECT opponent FROM table_name_11 WHERE record = "4-0" ### context: CREATE TABLE table_name_11 (opponent VARCHAR, record VARCHAR)
### question: What was the average round when he had a 3-0 record? ### answer: SELECT AVG(round) FROM table_name_18 WHERE record = "3-0" ### context: CREATE TABLE table_name_18 (round INTEGER, record VARCHAR)
### question: What was the location when he had a 2-0 record? ### answer: SELECT location FROM table_name_41 WHERE record = "2-0" ### context: CREATE TABLE table_name_41 (location VARCHAR, record VARCHAR)
### question: What was the result when he went 1 round against jeremy beck? ### answer: SELECT res FROM table_name_4 WHERE round = 1 AND opponent = "jeremy beck" ### context: CREATE TABLE table_name_4 (res VARCHAR, round VARCHAR, opponent VARCHAR)
### question: What was the result of the game in halifax? ### answer: SELECT result FROM table_name_34 WHERE city = "halifax" ### context: CREATE TABLE table_name_34 (result VARCHAR, city VARCHAR)
### question: What stadium is located in Halifax? ### answer: SELECT stadium FROM table_name_48 WHERE city = "halifax" ### context: CREATE TABLE table_name_48 (stadium VARCHAR, city VARCHAR)
### question: What day did they play in salford? ### answer: SELECT date FROM table_name_56 WHERE city = "salford" ### context: CREATE TABLE table_name_56 (date VARCHAR, city VARCHAR)
### question: What was the earliest week the team played the chicago cardinals in front of less than 25,312? ### answer: SELECT MIN(week) FROM table_name_12 WHERE opponent = "chicago cardinals" AND attendance < 25 OFFSET 312 ### context: CREATE TABLE table_name_12 (week INTEGER, opponent VARCHAR, attendance VARCHAR)
### question: What day did they play on week 4? ### answer: SELECT date FROM table_name_25 WHERE week = 4 ### context: CREATE TABLE table_name_25 (date VARCHAR, week VARCHAR)
### question: What was the attendance during the week 1 match? ### answer: SELECT attendance FROM table_name_2 WHERE week = 1 ### context: CREATE TABLE table_name_2 (attendance VARCHAR, week VARCHAR)
### question: During what week was the match on November 10, 1963? ### answer: SELECT AVG(week) FROM table_name_37 WHERE date = "november 10, 1963" ### context: CREATE TABLE table_name_37 (week INTEGER, date VARCHAR)
### question: What was the result of the match on December 1, 1963? ### answer: SELECT result FROM table_name_43 WHERE date = "december 1, 1963" ### context: CREATE TABLE table_name_43 (result VARCHAR, date VARCHAR)
### question: What day is hawthorn the away side? ### answer: SELECT date FROM table_name_23 WHERE away_team = "hawthorn" ### context: CREATE TABLE table_name_23 (date VARCHAR, away_team VARCHAR)
### question: What is the average crowd size for games with north melbourne as the away side? ### answer: SELECT AVG(crowd) FROM table_name_22 WHERE away_team = "north melbourne" ### context: CREATE TABLE table_name_22 (crowd INTEGER, away_team VARCHAR)
### question: How many forms have less than 18 pages? ### answer: SELECT COUNT(form) FROM table_name_72 WHERE pages < 18 ### context: CREATE TABLE table_name_72 (form VARCHAR, pages INTEGER)
### question: What is the sum of forms with greater than 17 pages and a total of $1,801,154? ### answer: SELECT SUM(form) FROM table_name_70 WHERE pages > 17 AND total_assets = "$1,801,154" ### context: CREATE TABLE table_name_70 (form INTEGER, pages VARCHAR, total_assets VARCHAR)
### question: Which venue hosted South Melbourne? ### answer: SELECT venue FROM table_name_50 WHERE away_team = "south melbourne" ### context: CREATE TABLE table_name_50 (venue VARCHAR, away_team VARCHAR)
### question: What was the scored of the Away team that played against Richmond? ### answer: SELECT away_team AS score FROM table_name_83 WHERE home_team = "richmond" ### context: CREATE TABLE table_name_83 (away_team VARCHAR, home_team VARCHAR)
### question: What is the result week 6? ### answer: SELECT result FROM table_name_44 WHERE week = 6 ### context: CREATE TABLE table_name_44 (result VARCHAR, week VARCHAR)
### question: How many goals did sture mårtensson score? ### answer: SELECT goals FROM table_name_98 WHERE name = "sture mårtensson" ### context: CREATE TABLE table_name_98 (goals VARCHAR, name VARCHAR)
### question: How many goals for the player with 2 caps at degerfors if? ### answer: SELECT goals FROM table_name_47 WHERE caps = 2 AND club = "degerfors if" ### context: CREATE TABLE table_name_47 (goals VARCHAR, caps VARCHAR, club VARCHAR)
### question: What catalog came out after 2000? ### answer: SELECT catalog FROM table_name_23 WHERE year > 2000 ### context: CREATE TABLE table_name_23 (catalog VARCHAR, year INTEGER)
### question: What was the attendance on week 7? ### answer: SELECT attendance FROM table_name_26 WHERE week = 7 ### context: CREATE TABLE table_name_26 (attendance VARCHAR, week VARCHAR)
### question: What opponent did they have a bye result against before week 14? ### answer: SELECT opponent FROM table_name_19 WHERE result = "bye" AND week < 14 ### context: CREATE TABLE table_name_19 (opponent VARCHAR, result VARCHAR, week VARCHAR)
### question: Which home team has an Away team of fitzroy? ### answer: SELECT home_team FROM table_name_73 WHERE away_team = "fitzroy" ### context: CREATE TABLE table_name_73 (home_team VARCHAR, away_team VARCHAR)
### question: What was North Melbourne's score when they were the home team? ### answer: SELECT home_team AS score FROM table_name_82 WHERE home_team = "north melbourne" ### context: CREATE TABLE table_name_82 (home_team VARCHAR)
### question: What was Richmond's score as the home team? ### answer: SELECT home_team AS score FROM table_name_38 WHERE home_team = "richmond" ### context: CREATE TABLE table_name_38 (home_team VARCHAR)
### question: Who was the opponent when Richmond played as the home team? ### answer: SELECT away_team FROM table_name_56 WHERE home_team = "richmond" ### context: CREATE TABLE table_name_56 (away_team VARCHAR, home_team VARCHAR)
### question: What was the attendance at the Kardinia Park game? ### answer: SELECT crowd FROM table_name_25 WHERE venue = "kardinia park" ### context: CREATE TABLE table_name_25 (crowd VARCHAR, venue VARCHAR)
### question: What was the score of the team North Melbourne played at Arden Street Oval? ### answer: SELECT away_team AS score FROM table_name_75 WHERE home_team = "north melbourne" ### context: CREATE TABLE table_name_75 (away_team VARCHAR, home_team VARCHAR)
### question: What date did the game at Arden Street Oval take place? ### answer: SELECT date FROM table_name_12 WHERE venue = "arden street oval" ### context: CREATE TABLE table_name_12 (date VARCHAR, venue VARCHAR)
### question: What is the date of the game with 36,766 fans? ### answer: SELECT date FROM table_name_98 WHERE crowd > 36 OFFSET 766 ### context: CREATE TABLE table_name_98 (date VARCHAR, crowd INTEGER)
### question: Which higher secondary school listing has the lowest total and an Aided amount larger than 14? ### answer: SELECT MIN(total) FROM table_name_41 WHERE institution = "higher secondary school" AND aided > 14 ### context: CREATE TABLE table_name_41 (total INTEGER, institution VARCHAR, aided VARCHAR)
### question: Which Institution has a Total smaller than 13, a Government amount of 1, and an Aided amount of 0? ### answer: SELECT institution FROM table_name_99 WHERE total < 13 AND government = 1 AND aided = 0 ### context: CREATE TABLE table_name_99 (institution VARCHAR, aided VARCHAR, total VARCHAR, government VARC...
### question: Which IATA is associated with China and an ICAO of ZSPD? ### answer: SELECT iata FROM table_name_59 WHERE country = "china" AND icao = "zspd" ### context: CREATE TABLE table_name_59 (iata VARCHAR, country VARCHAR, icao VARCHAR)
### question: Which airport is associated with Macau? ### answer: SELECT airport FROM table_name_71 WHERE city = "macau" ### context: CREATE TABLE table_name_71 (airport VARCHAR, city VARCHAR)
### question: What is the IATA for Nanjing? ### answer: SELECT iata FROM table_name_85 WHERE city = "nanjing" ### context: CREATE TABLE table_name_85 (iata VARCHAR, city VARCHAR)
### question: Which airport has an ICAO of RCKH? ### answer: SELECT airport FROM table_name_81 WHERE icao = "rckh" ### context: CREATE TABLE table_name_81 (airport VARCHAR, icao VARCHAR)
### question: Which airport has an IATA of TYN? ### answer: SELECT airport FROM table_name_52 WHERE iata = "tyn" ### context: CREATE TABLE table_name_52 (airport VARCHAR, iata VARCHAR)
### question: Which country contains the Shanghai Pudong International airport? ### answer: SELECT country FROM table_name_41 WHERE airport = "shanghai pudong international airport" ### context: CREATE TABLE table_name_41 (country VARCHAR, airport VARCHAR)
### question: What was Footscray's score when it played as the home team? ### answer: SELECT home_team AS score FROM table_name_2 WHERE home_team = "footscray" ### context: CREATE TABLE table_name_2 (home_team VARCHAR)
### question: hat was Hawthorn's score as the away team? ### answer: SELECT away_team AS score FROM table_name_83 WHERE away_team = "hawthorn" ### context: CREATE TABLE table_name_83 (away_team VARCHAR)
### question: What was the Outcome against Opponent in the Final Carlos Kirmayr? ### answer: SELECT outcome FROM table_name_41 WHERE opponent_in_the_final = "carlos kirmayr" ### context: CREATE TABLE table_name_41 (outcome VARCHAR, opponent_in_the_final VARCHAR)
### question: What was the Score in the Final against Opponent in the Final Manuel Orantes, prior to 1978? ### answer: SELECT score_in_the_final FROM table_name_35 WHERE date < 1978 AND opponent_in_the_final = "manuel orantes" ### context: CREATE TABLE table_name_35 (score_in_the_final VARCHAR, date VARCHAR, opponent_i...
### question: Against Opponent in the Final Ivan Lendl, on a Surface of clay, with an Outcome of runner-up, where was the Championship? ### answer: SELECT championship FROM table_name_89 WHERE outcome = "runner-up" AND surface = "clay" AND opponent_in_the_final = "ivan lendl" ### context: CREATE TABLE table_name_89 (ch...
### question: What is the earliest Date on a Surface of clay in a Championship in Linz, Austria? ### answer: SELECT MIN(date) FROM table_name_15 WHERE surface = "clay" AND championship = "linz, austria" ### context: CREATE TABLE table_name_15 (date INTEGER, surface VARCHAR, championship VARCHAR)
### question: Who playes the sport of athletics? ### answer: SELECT sportsperson FROM table_name_36 WHERE sport = "athletics" ### context: CREATE TABLE table_name_36 (sportsperson VARCHAR, sport VARCHAR)
### question: What team has a year listed of 2008? ### answer: SELECT team FROM table_name_75 WHERE year = 2008 ### context: CREATE TABLE table_name_75 (team VARCHAR, year VARCHAR)
### question: What venue was the game played in when the away team was fitzroy? ### answer: SELECT venue FROM table_name_42 WHERE away_team = "fitzroy" ### context: CREATE TABLE table_name_42 (venue VARCHAR, away_team VARCHAR)
### question: What is the film type for the movie Sanctuary? ### answer: SELECT type FROM table_name_35 WHERE name = "sanctuary" ### context: CREATE TABLE table_name_35 (type VARCHAR, name VARCHAR)
### question: What different types are there with a CC License of by-nc-sa 2.5? ### answer: SELECT type FROM table_name_25 WHERE cc_license = "by-nc-sa 2.5" ### context: CREATE TABLE table_name_25 (type VARCHAR, cc_license VARCHAR)
### question: What are the open source movies with planned releases in 2013? ### answer: SELECT open_source_movie FROM table_name_67 WHERE planned_release = "2013" ### context: CREATE TABLE table_name_67 (open_source_movie VARCHAR, planned_release VARCHAR)
### question: What was the lowest rank by average of a couple who had an average of 23 and a total of 115? ### answer: SELECT MIN(rank_by_average) FROM table_name_99 WHERE average = 23 AND total = 115 ### context: CREATE TABLE table_name_99 (rank_by_average INTEGER, average VARCHAR, total VARCHAR)
### question: What is the colonized date for Michigan? ### answer: SELECT colonized FROM table_name_92 WHERE state = "michigan" ### context: CREATE TABLE table_name_92 (colonized VARCHAR, state VARCHAR)