instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: Which institution is located in Reading, PA?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (institution VARCHAR, location VARCHAR)
SELECT institution FROM table_name_44 WHERE location = "reading, pa"
Write a SQL query that answers the following question: What was the nick name for the school established in 1958?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (nickname VARCHAR, established VARCHAR)
SELECT nickname FROM table_name_71 WHERE established = 1958
Write a SQL query that answers the following question: When the grid is under 5 and justin wilson is driving for the team mi-jack conquest racing, what's the highest number of laps driven?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (laps INTEGER, grid VARCHAR, team VARCHAR, driver VARCHAR)
SELECT MAX(laps) FROM table_name_65 WHERE team = "mi-jack conquest racing" AND driver = "justin wilson" AND grid < 5
Write a SQL query that answers the following question: When the team is newman/haas racing and the grid size is 3, what's the time/retired?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (time_retired VARCHAR, team VARCHAR, grid VARCHAR)
SELECT time_retired FROM table_name_8 WHERE team = "newman/haas racing" AND grid = 3
Write a SQL query that answers the following question: What tournament took place on Ground A with 8 rounds?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (tournament VARCHAR, ground VARCHAR, round VARCHAR)
SELECT tournament FROM table_name_80 WHERE ground = "a" AND round = "8"
Write a SQL query that answers the following question: What series had the title rank of various?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (series VARCHAR, title_rank VARCHAR)
SELECT series FROM table_name_20 WHERE title_rank = "various"
Write a SQL query that answers the following question: What is the title rank of the actor who played the character of arthur hastings during series 1-8, 13?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (title_rank VARCHAR, series VARCHAR, character VARCHAR)
SELECT title_rank FROM table_name_7 WHERE series = "1-8, 13" AND character = "arthur hastings"
Write a SQL query that answers the following question: What is the title rank of the actor who played the character of arthur hastings during series 1-8, 13?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (title_rank VARCHAR, series VARCHAR, character VARCHAR)
SELECT title_rank FROM table_name_24 WHERE series = "1-8, 13" AND character = "arthur hastings"
Write a SQL query that answers the following question: What is the title rank of actor pauline moran?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (title_rank VARCHAR, actor VARCHAR)
SELECT title_rank FROM table_name_93 WHERE actor = "pauline moran"
Write a SQL query that answers the following question: Which character had a title rank of various?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (character VARCHAR, title_rank VARCHAR)
SELECT character FROM table_name_4 WHERE title_rank = "various"
Write a SQL query that answers the following question: Who had the highest rebounds of the game with a game number higher than 65 on March 28?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (high_rebounds VARCHAR, game VARCHAR, date VARCHAR)
SELECT high_rebounds FROM table_name_73 WHERE game > 65 AND date = "march 28"
Write a SQL query that answers the following question: WHAT DATE HAD A GAME SMALLER THAN 58, AND FROM BOSTON?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (date VARCHAR, game VARCHAR, team VARCHAR)
SELECT date FROM table_name_57 WHERE game < 58 AND team = "boston"
Write a SQL query that answers the following question: Original airdate for #6 with 1.246 viewers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (original_airdate VARCHAR, nightly_rank VARCHAR, viewers__millions_ VARCHAR)
SELECT original_airdate FROM table_name_73 WHERE nightly_rank = "#6" AND viewers__millions_ = 1.246
Write a SQL query that answers the following question: Rank for viewers larger than 1.244?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (nightly_rank VARCHAR, viewers__millions_ INTEGER)
SELECT nightly_rank FROM table_name_21 WHERE viewers__millions_ > 1.244
Write a SQL query that answers the following question: How many weeks had a Result of w 20–6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (week INTEGER, result VARCHAR)
SELECT SUM(week) FROM table_name_24 WHERE result = "w 20–6"
Write a SQL query that answers the following question: Which Opponent has an Attendance of bye?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (opponent VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_name_76 WHERE attendance = "bye"
Write a SQL query that answers the following question: WHAT IS THE FLAPS WITH PODIUMS OF 24 AND RACES BIGGER THAN 143?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (flaps INTEGER, podiums VARCHAR, races VARCHAR)
SELECT MAX(flaps) FROM table_name_2 WHERE podiums = 24 AND races > 143
Write a SQL query that answers the following question: WHAT ARE THE RACES WHEN FLAPS ARE ZERO, PODIUMS ARE LARGER THAN 0, SEASON IS 2008, AND POLE SMALLER THAN 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (races INTEGER, pole VARCHAR, season VARCHAR, flaps VARCHAR, podiums VARCHAR)
SELECT SUM(races) FROM table_name_93 WHERE flaps = 0 AND podiums > 0 AND season = "2008" AND pole < 1
Write a SQL query that answers the following question: WHAT ARE THE RACES WITH A POLE SMALLER THAN 2 IN 2007?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (races INTEGER, pole VARCHAR, season VARCHAR)
SELECT MIN(races) FROM table_name_93 WHERE pole < 2 AND season = "2007"
Write a SQL query that answers the following question: WHAT ARE THE RACES FOR 2010 WITH FLAPS LARGER THAN 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (races INTEGER, season VARCHAR, flaps VARCHAR)
SELECT MAX(races) FROM table_name_27 WHERE season = "2010" AND flaps > 6
Write a SQL query that answers the following question: What T20 Match has a total of 23?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (t20_matches VARCHAR, total VARCHAR)
SELECT t20_matches FROM table_name_18 WHERE total = "23"
Write a SQL query that answers the following question: What FC Match was played in Darlington?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (fc_matches VARCHAR, location VARCHAR)
SELECT fc_matches FROM table_name_52 WHERE location = "darlington"
Write a SQL query that answers the following question: What T20 match was played in 1979?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (t20_matches VARCHAR, year VARCHAR)
SELECT t20_matches FROM table_name_33 WHERE year = "1979"
Write a SQL query that answers the following question: Which FC match has a total of 24?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (fc_matches VARCHAR, total VARCHAR)
SELECT fc_matches FROM table_name_18 WHERE total = "24"
Write a SQL query that answers the following question: Where was the FC match with a score of 12 played?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (location VARCHAR, fc_matches VARCHAR)
SELECT location FROM table_name_45 WHERE fc_matches = "12"
Write a SQL query that answers the following question: How many oricon's have a romaji title of rakuen -memorial tracks- (maxi-single)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (oricon VARCHAR, romaji_title VARCHAR)
SELECT COUNT(oricon) FROM table_name_13 WHERE romaji_title = "rakuen -memorial tracks- (maxi-single)"
Write a SQL query that answers the following question: What reference is used with the title アイシテル?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (reference VARCHAR, japanese_title VARCHAR)
SELECT reference FROM table_name_39 WHERE japanese_title = "アイシテル"
Write a SQL query that answers the following question: What is the reference for the romani title da.i.su.ki?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (reference VARCHAR, romaji_title VARCHAR)
SELECT reference FROM table_name_4 WHERE romaji_title = "da.i.su.ki"
Write a SQL query that answers the following question: What title to the japanese give the romani title ashita wa ashita no kaze ga fuku?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (japanese_title VARCHAR, romaji_title VARCHAR)
SELECT japanese_title FROM table_name_88 WHERE romaji_title = "ashita wa ashita no kaze ga fuku"
Write a SQL query that answers the following question: Which club was founded after 1998?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (club VARCHAR, founded INTEGER)
SELECT club FROM table_name_49 WHERE founded > 1998
Write a SQL query that answers the following question: Which Tries has a Goal smaller than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (tries INTEGER, goals INTEGER)
SELECT MIN(tries) FROM table_name_5 WHERE goals < 0
Write a SQL query that answers the following question: What was the issue price for the Trumpeter Swan set?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (issue_price VARCHAR, theme VARCHAR)
SELECT issue_price FROM table_name_44 WHERE theme = "trumpeter swan"
Write a SQL query that answers the following question: Who was the artist with a mintage of 40,000 and an issue price of $45.95?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (artist VARCHAR, mintage VARCHAR, issue_price VARCHAR)
SELECT artist FROM table_name_87 WHERE mintage = "40,000" AND issue_price = "45.95"
Write a SQL query that answers the following question: What is the highest number of points a player got during the game on May 25?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (high_points VARCHAR, date VARCHAR)
SELECT high_points FROM table_name_85 WHERE date = "may 25"
Write a SQL query that answers the following question: What is the position of the player who has ongoing first-team goals and currently plays for the Aston Villa club?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (position VARCHAR, first_team_goals VARCHAR, current_club VARCHAR)
SELECT position FROM table_name_79 WHERE first_team_goals = "ongoing" AND current_club = "aston villa"
Write a SQL query that answers the following question: Who is the player who has had 7 first team appearances?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (player VARCHAR, first_team_appearances VARCHAR)
SELECT player FROM table_name_79 WHERE first_team_appearances = "7"
Write a SQL query that answers the following question: What is the name of the club that has ongoing first-team appearances, a midfielder, and whose player is Samir Carruthers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (current_club VARCHAR, player VARCHAR, first_team_appearances VARCHAR, position VARCHAR)
SELECT current_club FROM table_name_28 WHERE first_team_appearances = "ongoing" AND position = "midfielder" AND player = "samir carruthers"
Write a SQL query that answers the following question: How many first-team goals does the team have whose player is Samir Carruthers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (first_team_goals VARCHAR, player VARCHAR)
SELECT first_team_goals FROM table_name_73 WHERE player = "samir carruthers"
Write a SQL query that answers the following question: What position has ongoing first-team appearances, Graham Burke for a player, and whose club is Aston Villa?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (position VARCHAR, player VARCHAR, first_team_appearances VARCHAR, current_club VARCHAR)
SELECT position FROM table_name_47 WHERE first_team_appearances = "ongoing" AND current_club = "aston villa" AND player = "graham burke"
Write a SQL query that answers the following question: Which position has had 7 first-team appearances?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (position VARCHAR, first_team_appearances VARCHAR)
SELECT position FROM table_name_7 WHERE first_team_appearances = "7"
Write a SQL query that answers the following question: What was the theme when the issue price was $508.95?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (theme VARCHAR, issue_price VARCHAR)
SELECT theme FROM table_name_72 WHERE issue_price = "$508.95"
Write a SQL query that answers the following question: What's the mintage when the theme was year of the rabbit?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (mintage VARCHAR, theme VARCHAR)
SELECT mintage FROM table_name_18 WHERE theme = "year of the rabbit"
Write a SQL query that answers the following question: What year was the year of the pig theme?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (year VARCHAR, theme VARCHAR)
SELECT year FROM table_name_43 WHERE theme = "year of the pig"
Write a SQL query that answers the following question: Who was the artist for the year of the snake?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (artist VARCHAR, theme VARCHAR)
SELECT artist FROM table_name_76 WHERE theme = "year of the snake"
Write a SQL query that answers the following question: What is the total Frequency MHz Port Charlotte, Florida, which has an ERP W larger than 10, has?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (frequency_mhz VARCHAR, city_of_license VARCHAR, erp_w VARCHAR)
SELECT COUNT(frequency_mhz) FROM table_name_41 WHERE city_of_license = "port charlotte, florida" AND erp_w > 10
Write a SQL query that answers the following question: What is the call sign for the translator with an ERP W larger than 10?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (call_sign VARCHAR, erp_w INTEGER)
SELECT call_sign FROM table_name_38 WHERE erp_w > 10
Write a SQL query that answers the following question: What is the highest ERP W of the translator with a call sign of w284av?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (erp_w INTEGER, call_sign VARCHAR)
SELECT MAX(erp_w) FROM table_name_94 WHERE call_sign = "w284av"
Write a SQL query that answers the following question: How big was the crowd of the Home team of Collingwood?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (crowd INTEGER, home_team VARCHAR)
SELECT MAX(crowd) FROM table_name_92 WHERE home_team = "collingwood"
Write a SQL query that answers the following question: What was the away team when the home team was south melbourne?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_85 WHERE home_team = "south melbourne"
Write a SQL query that answers the following question: Who was recruited from Calgary?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (player VARCHAR, college VARCHAR)
SELECT player FROM table_name_34 WHERE college = "calgary"
Write a SQL query that answers the following question: What number of wins was ranked higher than 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (wins INTEGER, rank INTEGER)
SELECT SUM(wins) FROM table_name_43 WHERE rank > 5
Write a SQL query that answers the following question: What rank is Miller Barber with more than 11 wins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (rank VARCHAR, wins VARCHAR, player VARCHAR)
SELECT rank FROM table_name_35 WHERE wins > 11 AND player = "miller barber"
Write a SQL query that answers the following question: What was the venue when Collingwood was the home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (venue VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_34 WHERE home_team = "collingwood"
Write a SQL query that answers the following question: What was the largest crowd at vfl park?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (crowd INTEGER, venue VARCHAR)
SELECT MAX(crowd) FROM table_name_75 WHERE venue = "vfl park"
Write a SQL query that answers the following question: How many people were at the game where the home team was South Melbourne?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (crowd VARCHAR, home_team VARCHAR)
SELECT crowd FROM table_name_16 WHERE home_team = "south melbourne"
Write a SQL query that answers the following question: What was the score when the away team was Footscray?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_25 WHERE away_team = "footscray"
Write a SQL query that answers the following question: What was the score when the away team was Collingwood?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_56 WHERE away_team = "collingwood"
Write a SQL query that answers the following question: What was the home team that played at Corio Oval?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_15 WHERE venue = "corio oval"
Write a SQL query that answers the following question: How many goals were scored on November 22, 1994?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (goal INTEGER, date VARCHAR)
SELECT SUM(goal) FROM table_name_13 WHERE date = "november 22, 1994"
Write a SQL query that answers the following question: What was the result of the game with 9 goals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (result VARCHAR, goal VARCHAR)
SELECT result FROM table_name_49 WHERE goal = 9
Write a SQL query that answers the following question: What is the highest number supporting prohibition in British Columbia when the percent opposing is more than 10.8, the percent supporting is less than 72.2, number against is less than 4,756?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (for_prohibition INTEGER, against_prohibition VARCHAR, jurisdiction VARCHAR, percent_against VARCHAR, percent_for VARCHAR)
SELECT MAX(for_prohibition) FROM table_name_43 WHERE percent_against > 10.8 AND percent_for < 72.2 AND jurisdiction = "british columbia" AND against_prohibition < 4 OFFSET 756
Write a SQL query that answers the following question: what is the apparent magnitude of the constellation sculptor
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (apparent_magnitude VARCHAR, constellation VARCHAR)
SELECT COUNT(apparent_magnitude) FROM table_name_24 WHERE constellation = "sculptor"
Write a SQL query that answers the following question: What is the Right ascension of the Object type spiral galaxy that has an Apparent magnitude larger that 12.2
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (right_ascension___j2000__ VARCHAR, object_type VARCHAR, apparent_magnitude VARCHAR)
SELECT right_ascension___j2000__ FROM table_name_15 WHERE object_type = "spiral galaxy" AND apparent_magnitude > 12.2
Write a SQL query that answers the following question: Which Constellation has an Apparent magnitude larger that 7.7, and an NGC number of 7777
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (constellation VARCHAR, apparent_magnitude VARCHAR, ngc_number VARCHAR)
SELECT constellation FROM table_name_60 WHERE apparent_magnitude > 7.7 AND ngc_number = 7777
Write a SQL query that answers the following question: What is the name of the Chassis of Diver Maria Teresa de Filippis in round 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (chassis VARCHAR, rounds VARCHAR, driver VARCHAR)
SELECT chassis FROM table_name_62 WHERE rounds = "1" AND driver = "maria teresa de filippis"
Write a SQL query that answers the following question: How many yards have a Player of james macpherson, and a Long smaller than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (yards VARCHAR, player VARCHAR, long VARCHAR)
SELECT COUNT(yards) FROM table_name_6 WHERE player = "james macpherson" AND long < 1
Write a SQL query that answers the following question: What is the lowest car with more than 122 yards?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (car INTEGER, yards INTEGER)
SELECT MIN(car) FROM table_name_37 WHERE yards > 122
Write a SQL query that answers the following question: What round was Ryan Thang drafted in?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (round INTEGER, player VARCHAR)
SELECT MIN(round) FROM table_name_7 WHERE player = "ryan thang"
Write a SQL query that answers the following question: How many laps did Jeff Burton have when he drove car with a # over 9 and more than 118 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (laps VARCHAR, points VARCHAR, car__number VARCHAR, driver VARCHAR)
SELECT COUNT(laps) FROM table_name_82 WHERE car__number > 9 AND driver = "jeff burton" AND points > 118
Write a SQL query that answers the following question: What was Scott Riggs points when he had more than 400 laps?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (points INTEGER, driver VARCHAR, laps VARCHAR)
SELECT SUM(points) FROM table_name_28 WHERE driver = "scott riggs" AND laps > 400
Write a SQL query that answers the following question: Who drove the dodge with a car # less than 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (driver VARCHAR, car__number VARCHAR, make VARCHAR)
SELECT driver FROM table_name_42 WHERE car__number < 5 AND make = "dodge"
Write a SQL query that answers the following question: What team had a high rebound of perkins (9) and a game smaller than 78?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (team VARCHAR, game VARCHAR, high_rebounds VARCHAR)
SELECT team FROM table_name_39 WHERE game < 78 AND high_rebounds = "perkins (9)"
Write a SQL query that answers the following question: What date were the high assists rondo (5) and the high rebounds rondo (10)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (date VARCHAR, high_assists VARCHAR, high_rebounds VARCHAR)
SELECT date FROM table_name_18 WHERE high_assists = "rondo (5)" AND high_rebounds = "rondo (10)"
Write a SQL query that answers the following question: On the date April 11, what were the high points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (high_points VARCHAR, date VARCHAR)
SELECT high_points FROM table_name_71 WHERE date = "april 11"
Write a SQL query that answers the following question: On the date April 11, what is the total game number?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (game VARCHAR, date VARCHAR)
SELECT COUNT(game) FROM table_name_4 WHERE date = "april 11"
Write a SQL query that answers the following question: What actor made a film in 1957?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (name VARCHAR, year VARCHAR)
SELECT name FROM table_name_30 WHERE year = "1957"
Write a SQL query that answers the following question: What year did Miyoshi Umeki make a film?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (year VARCHAR, name VARCHAR)
SELECT year FROM table_name_25 WHERE name = "miyoshi umeki"
Write a SQL query that answers the following question: What status has a role?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (status VARCHAR)
SELECT status FROM table_name_56 WHERE "role" = "role"
Write a SQL query that answers the following question: what is the earliest round for nominee david mundy?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (round INTEGER, nominees VARCHAR)
SELECT MIN(round) FROM table_name_98 WHERE nominees = "david mundy"
Write a SQL query that answers the following question: what round saw the ground of telstra dome and shaun burgoyne as nominees?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (round INTEGER, ground VARCHAR, nominees VARCHAR)
SELECT MAX(round) FROM table_name_79 WHERE ground = "telstra dome" AND nominees = "shaun burgoyne"
Write a SQL query that answers the following question: What has the lowest number of wins with GA smaller than 39, more than 2 losses, and ties greater than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (wins INTEGER, ties VARCHAR, goals_against VARCHAR, losses VARCHAR)
SELECT MIN(wins) FROM table_name_17 WHERE goals_against < 39 AND losses > 2 AND ties > 0
Write a SQL query that answers the following question: Which team has the most ties with fewer than 4 losses and GA smaller than 20?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (ties INTEGER, losses VARCHAR, goals_against VARCHAR)
SELECT MAX(ties) FROM table_name_56 WHERE losses < 4 AND goals_against < 20
Write a SQL query that answers the following question: How many games did the team lose that played 7 games and has a GA of less than 27?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (losses VARCHAR, games_played VARCHAR, goals_against VARCHAR)
SELECT COUNT(losses) FROM table_name_1 WHERE games_played = 7 AND goals_against < 27
Write a SQL query that answers the following question: what date saw the chicago bears lose in green bay earlier than 1931?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (date VARCHAR, year VARCHAR, loser VARCHAR, location VARCHAR)
SELECT date FROM table_name_12 WHERE loser = "chicago bears" AND location = "green bay" AND year < 1931
Write a SQL query that answers the following question: What is the Away team score for Away team Melbourne?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_89 WHERE away_team = "melbourne"
Write a SQL query that answers the following question: what is the years for the displacement 4.0l (242cid)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (years VARCHAR, displacement VARCHAR)
SELECT years FROM table_name_35 WHERE displacement = "4.0l (242cid)"
Write a SQL query that answers the following question: Which engine has a torgue of lb·ft (n·m)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (engine VARCHAR, torque VARCHAR)
SELECT engine FROM table_name_67 WHERE torque = "lb·ft (n·m)"
Write a SQL query that answers the following question: How many years for the team with under 31 ties and a percentage of 0.5451?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (years VARCHAR, tied VARCHAR, pct VARCHAR)
SELECT years FROM table_name_15 WHERE tied < 31 AND pct = 0.5451
Write a SQL query that answers the following question: How many games tied for the air force with over 57 years participating?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (tied VARCHAR, mountain_west VARCHAR, years VARCHAR)
SELECT COUNT(tied) FROM table_name_69 WHERE mountain_west = "air force" AND years > 57
Write a SQL query that answers the following question: What is the description where the date is 1911?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (description VARCHAR, date VARCHAR)
SELECT description FROM table_name_58 WHERE date = 1911
Write a SQL query that answers the following question: What is the number and name where the date is earlier than 1905?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (number_ VARCHAR, _name VARCHAR, date INTEGER)
SELECT number_ & _name FROM table_name_37 WHERE date < 1905
Write a SQL query that answers the following question: What year was the name mount roskill grammar school?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (years VARCHAR, name VARCHAR)
SELECT years FROM table_name_35 WHERE name = "mount roskill grammar school"
Write a SQL query that answers the following question: When melbourne played as the home team, who did they play?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_41 WHERE home_team = "melbourne"
Write a SQL query that answers the following question: When the home team was geelong, who played as the away team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_80 WHERE home_team = "geelong"
Write a SQL query that answers the following question: If north melbourne played as the home team, who was the away team they played?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_93 WHERE home_team = "north melbourne"
Write a SQL query that answers the following question: When st kilda was playing at home what was the away teams score?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_23 WHERE home_team = "st kilda"
Write a SQL query that answers the following question: What is the production code of the episode before season 8, with a series number less than 31, and aired on September 21, 1995?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (production_code VARCHAR, original_air_date VARCHAR, season__number VARCHAR, series__number VARCHAR)
SELECT production_code FROM table_name_1 WHERE season__number < 8 AND series__number < 31 AND original_air_date = "september 21, 1995"
Write a SQL query that answers the following question: What is the smallest amount of spectators when the away team was Hawthorn?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (crowd INTEGER, away_team VARCHAR)
SELECT MIN(crowd) FROM table_name_93 WHERE away_team = "hawthorn"
Write a SQL query that answers the following question: How many people attended when the away team was Richmond?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (crowd INTEGER, away_team VARCHAR)
SELECT SUM(crowd) FROM table_name_54 WHERE away_team = "richmond"
Write a SQL query that answers the following question: What was the score when the record was 18–14–4 with a toivonen decision?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (score VARCHAR, decision VARCHAR, record VARCHAR)
SELECT score FROM table_name_11 WHERE decision = "toivonen" AND record = "18–14–4"