instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: Who is the driver for the Entract of Enrico Platé?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (driver VARCHAR, entrant VARCHAR)
SELECT driver FROM table_name_80 WHERE entrant = "enrico platé"
Write a SQL query that answers the following question: Which of the entrants had Luigi Fagioli as a driver?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (entrant VARCHAR, driver VARCHAR)
SELECT entrant FROM table_name_79 WHERE driver = "luigi fagioli"
Write a SQL query that answers the following question: Who is the driver whose Constructor was Era, and whose entrant was T.A.S.O. Mathieson?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (driver VARCHAR, constructor VARCHAR, entrant VARCHAR)
SELECT driver FROM table_name_94 WHERE constructor = "era" AND entrant = "t.a.s.o. mathieson"
Write a SQL query that answers the following question: Which chassis had Rounds of 7, and an Entrant of Ecurie Rosier?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (chassis VARCHAR, rounds VARCHAR, entrant VARCHAR)
SELECT chassis FROM table_name_15 WHERE rounds = "7" AND entrant = "ecurie rosier"
Write a SQL query that answers the following question: Who is the winner constructor with driver riccardo patrese?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (winning_constructor VARCHAR, winning_driver VARCHAR)
SELECT winning_constructor FROM table_name_79 WHERE winning_driver = "riccardo patrese"
Write a SQL query that answers the following question: What is the highest round on 5 april?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (round INTEGER, date VARCHAR)
SELECT MAX(round) FROM table_name_42 WHERE date = "5 april"
Write a SQL query that answers the following question: Which date was hermanos rodríguez the location?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (date VARCHAR, location VARCHAR)
SELECT date FROM table_name_37 WHERE location = "hermanos rodríguez"
Write a SQL query that answers the following question: Name the record for may 3
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_92 WHERE date = "may 3"
Write a SQL query that answers the following question: Name the total number in attendance for may 1
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (attendance VARCHAR, date VARCHAR)
SELECT COUNT(attendance) FROM table_name_68 WHERE date = "may 1"
Write a SQL query that answers the following question: Name the loss on may 29
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (loss VARCHAR, date VARCHAR)
SELECT loss FROM table_name_20 WHERE date = "may 29"
Write a SQL query that answers the following question: How many cuts were made when there weren't any wins but had a top-5 of 1 and a top 10 larger than 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (cuts_made INTEGER, top_10 VARCHAR, wins VARCHAR, top_5 VARCHAR)
SELECT SUM(cuts_made) FROM table_name_62 WHERE wins < 1 AND top_5 = 1 AND top_10 > 4
Write a SQL query that answers the following question: Which college has a Player of shabazz muhammad?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (college VARCHAR, player VARCHAR)
SELECT college FROM table_name_36 WHERE player = "shabazz muhammad"
Write a SQL query that answers the following question: How tall is nerlens noel?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (height VARCHAR, player VARCHAR)
SELECT height FROM table_name_11 WHERE player = "nerlens noel"
Write a SQL query that answers the following question: Who is from flower mound, tx?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (player VARCHAR, hometown VARCHAR)
SELECT player FROM table_name_47 WHERE hometown = "flower mound, tx"
Write a SQL query that answers the following question: Where is shabazz muhammad from?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (hometown VARCHAR, player VARCHAR)
SELECT hometown FROM table_name_58 WHERE player = "shabazz muhammad"
Write a SQL query that answers the following question: What was the opponent for july 21?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_35 WHERE date = "july 21"
Write a SQL query that answers the following question: What was the record on july 24?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_95 WHERE date = "july 24"
Write a SQL query that answers the following question: Who constructed the car with a grid under 15, 77 laps, and a Time/Retired of + 0.771?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (constructor VARCHAR, time_retired VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT constructor FROM table_name_77 WHERE grid < 15 AND laps = 77 AND time_retired = "+ 0.771"
Write a SQL query that answers the following question: What is the average grid for damon hill with over 74 laps?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (grid INTEGER, laps VARCHAR, driver VARCHAR)
SELECT AVG(grid) FROM table_name_29 WHERE laps > 74 AND driver = "damon hill"
Write a SQL query that answers the following question: Which position has a School/club team of jacksonville?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (pos VARCHAR, school_club_team VARCHAR)
SELECT pos FROM table_name_81 WHERE school_club_team = "jacksonville"
Write a SQL query that answers the following question: How many rounds have a Pick of 13?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (round INTEGER, pick VARCHAR)
SELECT SUM(round) FROM table_name_21 WHERE pick = 13
Write a SQL query that answers the following question: How many rounds have School/club team of pan american?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (round INTEGER, school_club_team VARCHAR)
SELECT SUM(round) FROM table_name_91 WHERE school_club_team = "pan american"
Write a SQL query that answers the following question: What is the chassis when there is 25 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (chassis VARCHAR, points VARCHAR)
SELECT chassis FROM table_name_41 WHERE points = "25"
Write a SQL query that answers the following question: How many points were there before 1979 with a ferrari 312b2 chassis?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (points VARCHAR, year VARCHAR, chassis VARCHAR)
SELECT points FROM table_name_3 WHERE year < 1979 AND chassis = "ferrari 312b2"
Write a SQL query that answers the following question: What year were there 29 (32) points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (year VARCHAR, points VARCHAR)
SELECT year FROM table_name_3 WHERE points = "29 (32)"
Write a SQL query that answers the following question: What result occurs when the round is 4 leg 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (result VARCHAR, round VARCHAR)
SELECT result FROM table_name_87 WHERE round = "4 leg 2"
Write a SQL query that answers the following question: What did fitzroy score at their home game?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_98 WHERE home_team = "fitzroy"
Write a SQL query that answers the following question: Which away team played at western oval?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_16 WHERE venue = "western oval"
Write a SQL query that answers the following question: Which surface had Yew-Ming Si as a partner?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (surface VARCHAR, partner VARCHAR)
SELECT surface FROM table_name_83 WHERE partner = "yew-ming si"
Write a SQL query that answers the following question: What was the result of rank 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (result VARCHAR, rank VARCHAR)
SELECT result FROM table_name_73 WHERE rank = 1
Write a SQL query that answers the following question: What type has a date of 1 june?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (type VARCHAR, date VARCHAR)
SELECT type FROM table_name_70 WHERE date = "1 june"
Write a SQL query that answers the following question: What was the date with a hilly stage?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (date VARCHAR, type VARCHAR)
SELECT date FROM table_name_16 WHERE type = "hilly stage"
Write a SQL query that answers the following question: What is the name of the winner on 18 may?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (winner VARCHAR, date VARCHAR)
SELECT winner FROM table_name_21 WHERE date = "18 may"
Write a SQL query that answers the following question: What date was moena to aprica the course?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (date VARCHAR, course VARCHAR)
SELECT date FROM table_name_13 WHERE course = "moena to aprica"
Write a SQL query that answers the following question: What is the name of the winner with a type of plain stage and a Course of nola to sora?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (winner VARCHAR, type VARCHAR, course VARCHAR)
SELECT winner FROM table_name_35 WHERE type = "plain stage" AND course = "nola to sora"
Write a SQL query that answers the following question: Which sign has a red border and a warning sign?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (text_symbol VARCHAR, border VARCHAR, type_of_sign VARCHAR)
SELECT text_symbol FROM table_name_68 WHERE border = "red" AND type_of_sign = "warning"
Write a SQL query that answers the following question: Which sign had a yellow background and a triangular shape?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (border VARCHAR, background_colour VARCHAR, shape VARCHAR)
SELECT border FROM table_name_86 WHERE background_colour = "yellow" AND shape = "triangular"
Write a SQL query that answers the following question: Which sign has a red border?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (text_symbol VARCHAR, border VARCHAR)
SELECT text_symbol FROM table_name_42 WHERE border = "red"
Write a SQL query that answers the following question: Which color is the background of the mandatory instructions?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (background_colour VARCHAR, type_of_sign VARCHAR)
SELECT background_colour FROM table_name_43 WHERE type_of_sign = "mandatory instructions"
Write a SQL query that answers the following question: What is the color of the background of the white border and sign of information?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (background_colour VARCHAR, border VARCHAR, type_of_sign VARCHAR)
SELECT background_colour FROM table_name_25 WHERE border = "white" AND type_of_sign = "information"
Write a SQL query that answers the following question: What is the average total of Italy and has a bronze larger than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (total INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT AVG(total) FROM table_name_56 WHERE nation = "italy" AND bronze > 1
Write a SQL query that answers the following question: What amount of Gold does Russia have and have a rank larger than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (gold INTEGER, nation VARCHAR, rank VARCHAR)
SELECT SUM(gold) FROM table_name_8 WHERE nation = "russia" AND rank > 1
Write a SQL query that answers the following question: What is the sum of the ranks with a total of 1 and silver less than 0.
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (rank INTEGER, total VARCHAR, silver VARCHAR)
SELECT SUM(rank) FROM table_name_83 WHERE total = 1 AND silver < 0
Write a SQL query that answers the following question: Which Player is linebacker and has a pick larger than 28?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (player VARCHAR, position VARCHAR, pick VARCHAR)
SELECT player FROM table_name_69 WHERE position = "linebacker" AND pick > 28
Write a SQL query that answers the following question: What was the lowest round that Melvin Johnson played?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (round INTEGER, player VARCHAR)
SELECT MIN(round) FROM table_name_99 WHERE player = "melvin johnson"
Write a SQL query that answers the following question: Who was the runner-up at the South Florida Semi-Finalist #1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (runner_up VARCHAR, semi_finalist__number1 VARCHAR)
SELECT runner_up FROM table_name_96 WHERE semi_finalist__number1 = "south florida"
Write a SQL query that answers the following question: Who was the Champion in Snellville, GA in 2006?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (champion VARCHAR, location VARCHAR, year VARCHAR)
SELECT champion FROM table_name_46 WHERE location = "snellville, ga" AND year = "2006"
Write a SQL query that answers the following question: Who won when Elon was the runner-up?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (champion VARCHAR, runner_up VARCHAR)
SELECT champion FROM table_name_53 WHERE runner_up = "elon"
Write a SQL query that answers the following question: What year saw a score of 8-5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (year VARCHAR, score VARCHAR)
SELECT year FROM table_name_9 WHERE score = "8-5"
Write a SQL query that answers the following question: Who was the Semi-Finalist #2 in 2007?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (semi_finalist__number2 VARCHAR, year VARCHAR)
SELECT semi_finalist__number2 FROM table_name_59 WHERE year = "2007"
Write a SQL query that answers the following question: Who was the Semi-Finalist #2 in 2001?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (semi_finalist__number2 VARCHAR, year VARCHAR)
SELECT semi_finalist__number2 FROM table_name_26 WHERE year = "2001"
Write a SQL query that answers the following question: What tournament is in Arizona?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (tournament VARCHAR, location VARCHAR)
SELECT tournament FROM table_name_70 WHERE location = "arizona"
Write a SQL query that answers the following question: Which away team had a crowd bigger than 21,000?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (away_team VARCHAR, crowd INTEGER)
SELECT away_team FROM table_name_60 WHERE crowd > 21 OFFSET 000
Write a SQL query that answers the following question: What is the rank for points less than 166.96, and a Places of 166?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (rank INTEGER, points VARCHAR, places VARCHAR)
SELECT AVG(rank) FROM table_name_88 WHERE points < "166".96 AND places = "166"
Write a SQL query that answers the following question: What is the rank for more than 120.44 points in East Germany and a SP+FS of 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (rank VARCHAR, points VARCHAR, nation VARCHAR, sp VARCHAR, fs VARCHAR)
SELECT COUNT(rank) FROM table_name_21 WHERE points > 120.44 AND nation = "east germany" AND sp + fs = 3
Write a SQL query that answers the following question: What is the rank when 233 shows for places and SP+FS smaller than 27?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (rank VARCHAR, places VARCHAR, sp VARCHAR, fs VARCHAR)
SELECT COUNT(rank) FROM table_name_94 WHERE places = "233" AND sp + fs < 27
Write a SQL query that answers the following question: What is the average SP+FS for Denise Biellmann, and a Rank larger than 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (fs VARCHAR, sp INTEGER, name VARCHAR, rank VARCHAR)
SELECT AVG(sp) + fs FROM table_name_14 WHERE name = "denise biellmann" AND rank > 5
Write a SQL query that answers the following question: What is the number of points for east germany, and a Places of 88?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (points INTEGER, nation VARCHAR, places VARCHAR)
SELECT SUM(points) FROM table_name_84 WHERE nation = "east germany" AND places = "88"
Write a SQL query that answers the following question: what is the years for engin 5.7l hemi v8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (years VARCHAR, engine VARCHAR)
SELECT years FROM table_name_82 WHERE engine = "5.7l hemi v8"
Write a SQL query that answers the following question: what is the years when the notes is laredo, limited, overland and the engine is 5.7l hemi v8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (years VARCHAR, notes VARCHAR, engine VARCHAR)
SELECT years FROM table_name_51 WHERE notes = "laredo, limited, overland" AND engine = "5.7l hemi v8"
Write a SQL query that answers the following question: what is the torque when the notes are laredo, limited, overland and the engine is 5.7l hemi v8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (torque VARCHAR, notes VARCHAR, engine VARCHAR)
SELECT torque FROM table_name_69 WHERE notes = "laredo, limited, overland" AND engine = "5.7l hemi v8"
Write a SQL query that answers the following question: Who drove the ferrari that went 57 laps?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (driver VARCHAR, constructor VARCHAR, laps VARCHAR)
SELECT driver FROM table_name_21 WHERE constructor = "ferrari" AND laps = 57
Write a SQL query that answers the following question: What place did R. Wenzel, who was active after 1934, have?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (place INTEGER, name VARCHAR, until VARCHAR)
SELECT SUM(place) FROM table_name_7 WHERE name = "r. wenzel" AND until > 1934
Write a SQL query that answers the following question: What's the time for a round of n/a when the opponent is mikhail ilyukhin?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (time VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT time FROM table_name_75 WHERE round = "n/a" AND opponent = "mikhail ilyukhin"
Write a SQL query that answers the following question: What is the pole position of the Portuguese Grand Prix?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (pole_position VARCHAR, grand_prix VARCHAR)
SELECT pole_position FROM table_name_54 WHERE grand_prix = "portuguese grand prix"
Write a SQL query that answers the following question: What is the pole position of the grand prix with 1 round?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (pole_position VARCHAR, round VARCHAR)
SELECT pole_position FROM table_name_93 WHERE round = 1
Write a SQL query that answers the following question: What is the pole position of the Hungarian Grand Prix?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (pole_position VARCHAR, grand_prix VARCHAR)
SELECT pole_position FROM table_name_41 WHERE grand_prix = "hungarian grand prix"
Write a SQL query that answers the following question: What is the pole position of the Belgian Grand Prix?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (pole_position VARCHAR, grand_prix VARCHAR)
SELECT pole_position FROM table_name_27 WHERE grand_prix = "belgian grand prix"
Write a SQL query that answers the following question: What is the grand prix with Gerhard Berger as the fastest lap and Michael Schumacher as the pole position?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (grand_prix VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR)
SELECT grand_prix FROM table_name_50 WHERE fastest_lap = "gerhard berger" AND pole_position = "michael schumacher"
Write a SQL query that answers the following question: Tell me the declination for consellaion of ophiuchus and apparent magnitude less than 8.6 with right ascension of 16h47m14.5s
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (declination___j2000__ VARCHAR, right_ascension___j2000__ VARCHAR, constellation VARCHAR, apparent_magnitude VARCHAR)
SELECT declination___j2000__ FROM table_name_55 WHERE constellation = "ophiuchus" AND apparent_magnitude < 8.6 AND right_ascension___j2000__ = "16h47m14.5s"
Write a SQL query that answers the following question: Tell me the right ascensuon for object type of globular cluster and apparent magnitude of 8.5 and NGC number of 6273
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (right_ascension___j2000__ VARCHAR, ngc_number VARCHAR, object_type VARCHAR, apparent_magnitude VARCHAR)
SELECT right_ascension___j2000__ FROM table_name_2 WHERE object_type = "globular cluster" AND apparent_magnitude = 8.5 AND ngc_number = 6273
Write a SQL query that answers the following question: When was the game played where St Kilda was the home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_4 WHERE home_team = "st kilda"
Write a SQL query that answers the following question: What was the home team score with an away team of Melbourne?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_65 WHERE away_team = "melbourne"
Write a SQL query that answers the following question: Which away team played the home team of Footscray?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_56 WHERE home_team = "footscray"
Write a SQL query that answers the following question: How old was the conservative party member that left the house in 2001?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (age_on_leaving VARCHAR, political_party VARCHAR, left_house VARCHAR)
SELECT age_on_leaving FROM table_name_43 WHERE political_party = "conservative" AND left_house = "2001"
Write a SQL query that answers the following question: What was the lowest Attendance for the Staples Center Arena when the Points were over 14?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (attendance INTEGER, points VARCHAR, arena VARCHAR)
SELECT MIN(attendance) FROM table_name_21 WHERE points > 14 AND arena = "staples center"
Write a SQL query that answers the following question: Name the leading scorer for 12 january 2008
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (leading_scorer VARCHAR, date VARCHAR)
SELECT leading_scorer FROM table_name_40 WHERE date = "12 january 2008"
Write a SQL query that answers the following question: Name the record for 21 january 2008
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_4 WHERE date = "21 january 2008"
Write a SQL query that answers the following question: what is the date when the away team is melbourne?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_48 WHERE away_team = "melbourne"
Write a SQL query that answers the following question: What is the score for the home team for the venue glenferrie oval?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_57 WHERE venue = "glenferrie oval"
Write a SQL query that answers the following question: What was South Melbourne's score when they played as the away team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_5 WHERE away_team = "south melbourne"
Write a SQL query that answers the following question: What was the attendance for the North Melbourne's home game?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (crowd VARCHAR, home_team VARCHAR)
SELECT crowd FROM table_name_31 WHERE home_team = "north melbourne"
Write a SQL query that answers the following question: What is the name of the venue where home team st kilda played?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (venue VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_83 WHERE home_team = "st kilda"
Write a SQL query that answers the following question: What is the home team score that played away team carlton?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_60 WHERE away_team = "carlton"
Write a SQL query that answers the following question: When the Year is smaller than 2004, and Mike Joy is the Lap-by-lap, what are the Ratings?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (ratings VARCHAR, year VARCHAR, lap_by_lap VARCHAR)
SELECT ratings FROM table_name_86 WHERE year < 2004 AND lap_by_lap = "mike joy"
Write a SQL query that answers the following question: Which Network has Bill Weber for the Lap-by-lap?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (network VARCHAR, lap_by_lap VARCHAR)
SELECT network FROM table_name_90 WHERE lap_by_lap = "bill weber"
Write a SQL query that answers the following question: Who was the Pre-Race Host when Mike Joy was the Lap-by-lap in the Year 2005?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (pre_race_host VARCHAR, lap_by_lap VARCHAR, year VARCHAR)
SELECT pre_race_host FROM table_name_87 WHERE lap_by_lap = "mike joy" AND year = 2005
Write a SQL query that answers the following question: How many Years have Ratings of 10.9/23?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (year VARCHAR, ratings VARCHAR)
SELECT COUNT(year) FROM table_name_7 WHERE ratings = "10.9/23"
Write a SQL query that answers the following question: What is the home team of lake oval's score?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_57 WHERE venue = "lake oval"
Write a SQL query that answers the following question: When was victoria park used as a venue?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_18 WHERE venue = "victoria park"
Write a SQL query that answers the following question: Which date has an Away team of fitzroy?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_67 WHERE away_team = "fitzroy"
Write a SQL query that answers the following question: What is the largest crowd for a Home team of carlton?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (crowd INTEGER, home_team VARCHAR)
SELECT MAX(crowd) FROM table_name_96 WHERE home_team = "carlton"
Write a SQL query that answers the following question: When the Away team is melbourne, what's the lowest Crowd attended?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (crowd INTEGER, away_team VARCHAR)
SELECT MIN(crowd) FROM table_name_42 WHERE away_team = "melbourne"
Write a SQL query that answers the following question: When the Away team is essendon, what's the Home team score?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_99 WHERE away_team = "essendon"
Write a SQL query that answers the following question: If the Venue is brunswick street oval, what date was the game played ?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_81 WHERE venue = "brunswick street oval"
Write a SQL query that answers the following question: Name the first for countries of trinidad and tobago for hutchinson for years before 2004
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (first VARCHAR, year VARCHAR, country VARCHAR, last VARCHAR)
SELECT first FROM table_name_39 WHERE country = "trinidad and tobago" AND last = "hutchinson" AND year < 2004
Write a SQL query that answers the following question: Name the sport for canada in 2004
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (sport VARCHAR, country VARCHAR, year VARCHAR)
SELECT sport FROM table_name_40 WHERE country = "canada" AND year = 2004
Write a SQL query that answers the following question: Name the last for softball before 2000
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (last VARCHAR, year VARCHAR, sport VARCHAR)
SELECT last FROM table_name_95 WHERE year < 2000 AND sport = "softball"
Write a SQL query that answers the following question: Name the sum of year for swimming and first of mike
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (year INTEGER, sport VARCHAR, first VARCHAR)
SELECT SUM(year) FROM table_name_68 WHERE sport = "swimming" AND first = "mike"
Write a SQL query that answers the following question: Name the sport for puerto rico and year of 2000
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (sport VARCHAR, country VARCHAR, year VARCHAR)
SELECT sport FROM table_name_44 WHERE country = "puerto rico" AND year = 2000