instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: What position is Sal Martinez?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (position VARCHAR, player VARCHAR)
SELECT position FROM table_name_32 WHERE player = "sal martinez"
Write a SQL query that answers the following question: Who constructed the car that has a Time/Retired of +2:06.0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (constructor VARCHAR, time_retired VARCHAR)
SELECT constructor FROM table_name_67 WHERE time_retired = "+2:06.0"
Write a SQL query that answers the following question: What is the lap total for the grid under 15 that retired due to transmission?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (laps INTEGER, grid VARCHAR, time_retired VARCHAR)
SELECT SUM(laps) FROM table_name_65 WHERE grid < 15 AND time_retired = "transmission"
Write a SQL query that answers the following question: Who constructed juan manuel fangio's car with over 76 laps and a grid under 10?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (constructor VARCHAR, driver VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT constructor FROM table_name_47 WHERE grid < 10 AND laps > 76 AND driver = "juan manuel fangio"
Write a SQL query that answers the following question: what is the sum of laps when grid is less than 20 and johnny herbert is driving?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (laps INTEGER, grid VARCHAR, driver VARCHAR)
SELECT SUM(laps) FROM table_name_29 WHERE grid < 20 AND driver = "johnny herbert"
Write a SQL query that answers the following question: who is the driver for the car constructed by ferrari with a time/retired of +1:06.683?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (driver VARCHAR, constructor VARCHAR, time_retired VARCHAR)
SELECT driver FROM table_name_43 WHERE constructor = "ferrari" AND time_retired = "+1:06.683"
Write a SQL query that answers the following question: who is the driver when grid is 11?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (driver VARCHAR, grid VARCHAR)
SELECT driver FROM table_name_81 WHERE grid = 11
Write a SQL query that answers the following question: Who was the opponent with a score of 30-12?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (opponent VARCHAR, result VARCHAR)
SELECT opponent FROM table_name_72 WHERE result = "30-12"
Write a SQL query that answers the following question: Who was the opponent with a score of 40-20?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (opponent VARCHAR, result VARCHAR)
SELECT opponent FROM table_name_89 WHERE result = "40-20"
Write a SQL query that answers the following question: When did Geelong play as the away team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_31 WHERE away_team = "geelong"
Write a SQL query that answers the following question: What is the total capacity (MW) of the farm that is noted as being under construction?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (capacity__mw_ VARCHAR, notes VARCHAR)
SELECT COUNT(capacity__mw_) FROM table_name_17 WHERE notes = "under construction"
Write a SQL query that answers the following question: Which state is Tehachapi Pass Wind Farm located in?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (state_province VARCHAR, wind_farm VARCHAR)
SELECT state_province FROM table_name_72 WHERE wind_farm = "tehachapi pass wind farm"
Write a SQL query that answers the following question: Which wind farm is in the USA and is noted as having multiple farms?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (wind_farm VARCHAR, country VARCHAR, notes VARCHAR)
SELECT wind_farm FROM table_name_58 WHERE country = "usa" AND notes = "multiple farms"
Write a SQL query that answers the following question: What special notes are included for the windfarm with a capacity (MW) of 343?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (notes VARCHAR, capacity__mw_ VARCHAR)
SELECT notes FROM table_name_86 WHERE capacity__mw_ = 343
Write a SQL query that answers the following question: What is the total capacity (MW) of the windfarm located in the state/province of Gansu?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (capacity__mw_ INTEGER, state_province VARCHAR)
SELECT SUM(capacity__mw_) FROM table_name_72 WHERE state_province = "gansu"
Write a SQL query that answers the following question: In the game held at Arden Street Oval, what was the score of the home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_23 WHERE venue = "arden street oval"
Write a SQL query that answers the following question: How many people in total have attended games at Kardinia Park?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (crowd INTEGER, venue VARCHAR)
SELECT SUM(crowd) FROM table_name_93 WHERE venue = "kardinia park"
Write a SQL query that answers the following question: Which game at Arden Street Oval had the lowest attendance?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (crowd INTEGER, venue VARCHAR)
SELECT MIN(crowd) FROM table_name_96 WHERE venue = "arden street oval"
Write a SQL query that answers the following question: Where was the game against the away team Footscray held?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_49 WHERE away_team = "footscray"
Write a SQL query that answers the following question: What is the average number of points for clubs that have played more than 42 times?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (points INTEGER, played INTEGER)
SELECT AVG(points) FROM table_name_96 WHERE played > 42
Write a SQL query that answers the following question: What is the total number of goals scored against clubs that have played more than 42 times?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (goals_against VARCHAR, played INTEGER)
SELECT COUNT(goals_against) FROM table_name_68 WHERE played > 42
Write a SQL query that answers the following question: On which date did Geelong play at home?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_74 WHERE home_team = "geelong"
Write a SQL query that answers the following question: Which home team has a venue of windy hill?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_32 WHERE venue = "windy hill"
Write a SQL query that answers the following question: If essendon is the home team, what venue did they play at?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (venue VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_87 WHERE home_team = "essendon"
Write a SQL query that answers the following question: When the home team is richmond, what was the away team playing?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_3 WHERE home_team = "richmond"
Write a SQL query that answers the following question: When was the lock with 10 caps born?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (date_of_birth__age_ VARCHAR, position VARCHAR, caps VARCHAR)
SELECT date_of_birth__age_ FROM table_name_20 WHERE position = "lock" AND caps = 10
Write a SQL query that answers the following question: What were the laps of driver Jean-Christophe Boullion?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (laps VARCHAR, driver VARCHAR)
SELECT laps FROM table_name_41 WHERE driver = "jean-christophe boullion"
Write a SQL query that answers the following question: What Playoffs were held during the years of 2007-08?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (playoffs VARCHAR, year VARCHAR)
SELECT playoffs FROM table_name_70 WHERE year = "2007-08"
Write a SQL query that answers the following question: On which date did Richmond play as an away team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_4 WHERE away_team = "richmond"
Write a SQL query that answers the following question: What away team did Melbourne play as the home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_61 WHERE home_team = "melbourne"
Write a SQL query that answers the following question: Which chapter was founded later than 2012?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (chapter VARCHAR, founding_date INTEGER)
SELECT chapter FROM table_name_14 WHERE founding_date > 2012
Write a SQL query that answers the following question: What is the chapter in Lubbock?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (chapter VARCHAR, city VARCHAR)
SELECT chapter FROM table_name_65 WHERE city = "lubbock"
Write a SQL query that answers the following question: What was the highest Interview score from a contestant who had a swimsuit score of 8.857 and an Average score over 9.097?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (interview INTEGER, swimsuit VARCHAR, average VARCHAR)
SELECT MAX(interview) FROM table_name_66 WHERE swimsuit = 8.857 AND average > 9.097
Write a SQL query that answers the following question: What year has a Top 25 of 0, and a Earnings ($) larger than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (year VARCHAR, top_25 VARCHAR, earnings__$_ VARCHAR)
SELECT year FROM table_name_26 WHERE top_25 = 0 AND earnings__$_ > 0
Write a SQL query that answers the following question: What is the highest Top 25 with a Money list rank of 232 and Cuts smaller than 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (top_25 INTEGER, money_list_rank VARCHAR, cuts_made VARCHAR)
SELECT MAX(top_25) FROM table_name_53 WHERE money_list_rank = "232" AND cuts_made < 2
Write a SQL query that answers the following question: What is the smallest Earnings that has a Money list rank of 6 and Starts smaller than 22?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (earnings__ INTEGER, money_list_rank VARCHAR, starts VARCHAR)
SELECT MIN(earnings__) AS $_ FROM table_name_93 WHERE money_list_rank = "6" AND starts < 22
Write a SQL query that answers the following question: What is the highest number of Cuts made that has a Top 10 smaller than 8 and Wins larger than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (cuts_made INTEGER, top_10 VARCHAR, wins VARCHAR)
SELECT MAX(cuts_made) FROM table_name_47 WHERE top_10 < 8 AND wins > 0
Write a SQL query that answers the following question: How many Starts that have Cuts made of 2, Top 25 larger than 0, and Earnings ($) smaller than 338,067?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (starts VARCHAR, earnings__$_ VARCHAR, cuts_made VARCHAR, top_25 VARCHAR)
SELECT COUNT(starts) FROM table_name_66 WHERE cuts_made = 2 AND top_25 > 0 AND earnings__$_ < 338 OFFSET 067
Write a SQL query that answers the following question: Which event was in round 1, resulted in a win, and a record of 15-4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (event VARCHAR, record VARCHAR, round VARCHAR, res VARCHAR)
SELECT event FROM table_name_70 WHERE round = 1 AND res = "win" AND record = "15-4"
Write a SQL query that answers the following question: What is the result when the time was 5:00 and a record of 14-4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (res VARCHAR, time VARCHAR, record VARCHAR)
SELECT res FROM table_name_43 WHERE time = "5:00" AND record = "14-4"
Write a SQL query that answers the following question: How many wins did Ayr United have?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (wins VARCHAR, club VARCHAR)
SELECT wins FROM table_name_79 WHERE club = "ayr united"
Write a SQL query that answers the following question: When was the final loss of the club last won in 2001 and has a total of 3 wins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (last_final_lost VARCHAR, wins VARCHAR, last_win VARCHAR)
SELECT last_final_lost FROM table_name_84 WHERE wins = "3" AND last_win = "2001"
Write a SQL query that answers the following question: When was the last win for the club that had a final loss in 2011?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (last_win VARCHAR, last_final_lost VARCHAR)
SELECT last_win FROM table_name_34 WHERE last_final_lost = "2011"
Write a SQL query that answers the following question: How many wins did the 8 time runner-up have?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (wins VARCHAR, runners_up VARCHAR)
SELECT wins FROM table_name_33 WHERE runners_up = "8"
Write a SQL query that answers the following question: How many wins did the club have with the last win in 2000?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (wins VARCHAR, last_win VARCHAR)
SELECT wins FROM table_name_42 WHERE last_win = "2000"
Write a SQL query that answers the following question: What are the carries of the player Jeremiah Pope?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (car INTEGER, player VARCHAR)
SELECT SUM(car) FROM table_name_83 WHERE player = "jeremiah pope"
Write a SQL query that answers the following question: What was the largest crowd that was in attendance for fitzroy?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (crowd INTEGER, home_team VARCHAR)
SELECT MAX(crowd) FROM table_name_58 WHERE home_team = "fitzroy"
Write a SQL query that answers the following question: Who plays g position for the st. louis bombers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (player VARCHAR, team VARCHAR, position VARCHAR)
SELECT player FROM table_name_69 WHERE team = "st. louis bombers" AND position = "g"
Write a SQL query that answers the following question: Who plays f position for depauw?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (player VARCHAR, position VARCHAR, college VARCHAR)
SELECT player FROM table_name_15 WHERE position = "f" AND college = "depauw"
Write a SQL query that answers the following question: What position does the saint louis player play?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (position VARCHAR, college VARCHAR)
SELECT position FROM table_name_39 WHERE college = "saint louis"
Write a SQL query that answers the following question: Who plays for sam houston state?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (player VARCHAR, college VARCHAR)
SELECT player FROM table_name_79 WHERE college = "sam houston state"
Write a SQL query that answers the following question: How many positions have Points of 30-8 and more than 25 goals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (position VARCHAR, points VARCHAR, goals_for VARCHAR)
SELECT COUNT(position) FROM table_name_73 WHERE points = "30-8" AND goals_for > 25
Write a SQL query that answers the following question: What is the lowest play with ue figueres club and a goal difference more than 16?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (played INTEGER, club VARCHAR, goal_difference VARCHAR)
SELECT MIN(played) FROM table_name_41 WHERE club = "ue figueres" AND goal_difference > 16
Write a SQL query that answers the following question: How many played have 8 wins and more than 58 goals against?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (played VARCHAR, wins VARCHAR, goals_against VARCHAR)
SELECT COUNT(played) FROM table_name_20 WHERE wins = 8 AND goals_against > 58
Write a SQL query that answers the following question: What is withdrawn with a GSR Class of 296?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (withdrawn VARCHAR, gsr_class VARCHAR)
SELECT withdrawn FROM table_name_72 WHERE gsr_class = "296"
Write a SQL query that answers the following question: What Inchicore Class has a GSR Class of 235?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (inchicore_class VARCHAR, gsr_class VARCHAR)
SELECT inchicore_class FROM table_name_4 WHERE gsr_class = "235"
Write a SQL query that answers the following question: What Inchicore Class has a GSWR Class smaller than 268, and a Type of 0-4-2t?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (inchicore_class VARCHAR, gswr_class VARCHAR, type VARCHAR)
SELECT inchicore_class FROM table_name_60 WHERE gswr_class < 268 AND type = "0-4-2t"
Write a SQL query that answers the following question: Which GSWR Class is from 1893?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (gswr_class VARCHAR, year VARCHAR)
SELECT gswr_class FROM table_name_80 WHERE year = "1893"
Write a SQL query that answers the following question: On the episode that had a run time of 24:57, how many million viewers were there?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (viewers__in_millions_ VARCHAR, run_time VARCHAR)
SELECT viewers__in_millions_ FROM table_name_5 WHERE run_time = "24:57"
Write a SQL query that answers the following question: What year had a record of 4-21?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (year VARCHAR, record VARCHAR)
SELECT year FROM table_name_32 WHERE record = "4-21"
Write a SQL query that answers the following question: What regular season had a record of 16-12?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (reg_season VARCHAR, record VARCHAR)
SELECT reg_season FROM table_name_7 WHERE record = "16-12"
Write a SQL query that answers the following question: What is the regular season info that had a record of 20-10?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (reg_season VARCHAR, record VARCHAR)
SELECT reg_season FROM table_name_87 WHERE record = "20-10"
Write a SQL query that answers the following question: Tell me the 1st leg for asfa rabat
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (team__number1 VARCHAR)
SELECT 1 AS st_leg FROM table_name_9 WHERE team__number1 = "asfa rabat"
Write a SQL query that answers the following question: Tell me the 2nd leg for alemannia aachen
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (team__number1 VARCHAR)
SELECT 2 AS nd_leg FROM table_name_61 WHERE team__number1 = "alemannia aachen"
Write a SQL query that answers the following question: Tell me the 1st leg for antwerp bc
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (team__number2 VARCHAR)
SELECT 1 AS st_leg FROM table_name_10 WHERE team__number2 = "antwerp bc"
Write a SQL query that answers the following question: Tell me the team 2 for handelsministerium vienna
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (team__number2 VARCHAR, team__number1 VARCHAR)
SELECT team__number2 FROM table_name_78 WHERE team__number1 = "handelsministerium vienna"
Write a SQL query that answers the following question: On what date did the away team Melbourne play?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_83 WHERE away_team = "melbourne"
Write a SQL query that answers the following question: What home team played the away team South Melbourne?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_56 WHERE away_team = "south melbourne"
Write a SQL query that answers the following question: Which is the largest area in Greenville County, by square mile?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (area__sq_mi_ INTEGER, county VARCHAR)
SELECT MAX(area__sq_mi_) FROM table_name_88 WHERE county = "greenville county"
Write a SQL query that answers the following question: Which is the total number in the 2010 Census in Oconee County where the area in square miles was less than 674?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (county VARCHAR, area__sq_mi_ VARCHAR)
SELECT SUM(2010 AS _census_population) FROM table_name_9 WHERE county = "oconee county" AND area__sq_mi_ < 674
Write a SQL query that answers the following question: Which Particle has a Rest mass MeV/c 2 of 1192.642(24)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (particle VARCHAR, rest_mass_mev___c_2 VARCHAR)
SELECT particle FROM table_name_61 WHERE rest_mass_mev___c_2 = "1192.642(24)"
Write a SQL query that answers the following question: Which Particle has an Isospin I of 1 and Commonly decays to p + + π 0 or n 0 + π +?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (particle VARCHAR, isospin_i VARCHAR, commonly_decays_to VARCHAR)
SELECT particle FROM table_name_41 WHERE isospin_i = "1" AND commonly_decays_to = "p + + π 0 or n 0 + π +"
Write a SQL query that answers the following question: When the Makeup is u s s and the Spin (Parity) J P of 3⁄2 +, what is the Rest mass MeV/C2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (rest_mass_mev___c_2 VARCHAR, makeup VARCHAR, spin___parity___j_p VARCHAR)
SELECT rest_mass_mev___c_2 FROM table_name_58 WHERE makeup = "u s s" AND spin___parity___j_p = "3⁄2 +"
Write a SQL query that answers the following question: Which Particle has an Isospin I of 1⁄2, and a Symbol of ξ ∗0 (1530)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (particle VARCHAR, isospin_i VARCHAR, symbol VARCHAR)
SELECT particle FROM table_name_37 WHERE isospin_i = "1⁄2" AND symbol = "ξ ∗0 (1530)"
Write a SQL query that answers the following question: Which Particle has a Makeup of d s s and a Spin (Parity) J P of 3⁄2 +?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (particle VARCHAR, makeup VARCHAR, spin___parity___j_p VARCHAR)
SELECT particle FROM table_name_85 WHERE makeup = "d s s" AND spin___parity___j_p = "3⁄2 +"
Write a SQL query that answers the following question: Which Particle has a Rest mass MeV/c 2 of 1383.7±1.0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (particle VARCHAR, rest_mass_mev___c_2 VARCHAR)
SELECT particle FROM table_name_11 WHERE rest_mass_mev___c_2 = "1383.7±1.0"
Write a SQL query that answers the following question: What was the title of Ashanti's 2003 rap song?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (title VARCHAR, year VARCHAR, genre VARCHAR)
SELECT title FROM table_name_83 WHERE year = 2003 AND genre = "rap"
Write a SQL query that answers the following question: How many tries did the player Paul Sykes take when he earned 0 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (tries INTEGER, player VARCHAR, points VARCHAR)
SELECT MAX(tries) FROM table_name_49 WHERE player = "paul sykes" AND points > 0
Write a SQL query that answers the following question: Mike Forshaw had 0 goals and 28 points. What is his position?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (position VARCHAR, player VARCHAR, goals VARCHAR, points VARCHAR)
SELECT position FROM table_name_74 WHERE goals = 0 AND points = 28 AND player = "mike forshaw"
Write a SQL query that answers the following question: How big is the Venue of Brunswick Street Oval?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (crowd INTEGER, venue VARCHAR)
SELECT SUM(crowd) FROM table_name_47 WHERE venue = "brunswick street oval"
Write a SQL query that answers the following question: What is the Away Team score of North Melbourne?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_24 WHERE away_team = "north melbourne"
Write a SQL query that answers the following question: What was the number of Personal Staff Units Killed?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (killed VARCHAR, unit VARCHAR)
SELECT killed FROM table_name_55 WHERE unit = "personal staff"
Write a SQL query that answers the following question: What was the Complement of Artillery Corps Units that had 0 off 0 men Killed or Wounded?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (complement VARCHAR, unit VARCHAR, killed VARCHAR, wounded VARCHAR)
SELECT complement FROM table_name_53 WHERE killed = "0 off 0 men" AND wounded = "0 off 0 men" AND unit = "artillery corps"
Write a SQL query that answers the following question: How many were Wounded while in a Unit with a Complement of 83 off 9 Men?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (wounded VARCHAR, complement VARCHAR)
SELECT wounded FROM table_name_79 WHERE complement = "83 off 9 men"
Write a SQL query that answers the following question: How many of the Royal Waggon Train Unit were Missing while having a Killed of 0 off 0 men and a Wounded of 0 off 0 men?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (missing VARCHAR, unit VARCHAR, killed VARCHAR, wounded VARCHAR)
SELECT missing FROM table_name_89 WHERE killed = "0 off 0 men" AND wounded = "0 off 0 men" AND unit = "royal waggon train"
Write a SQL query that answers the following question: How many were Wounded in the Artillery Corps unit while having 0 off 0 men Killed?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (wounded VARCHAR, killed VARCHAR, unit VARCHAR)
SELECT wounded FROM table_name_24 WHERE killed = "0 off 0 men" AND unit = "artillery corps"
Write a SQL query that answers the following question: What suface during the game that had Yevgeny Kafelnikov as an opponent?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (surface VARCHAR, opponent VARCHAR)
SELECT surface FROM table_name_38 WHERE opponent = "yevgeny kafelnikov"
Write a SQL query that answers the following question: What was the earliest week that the Storm played the San Jose Sabercats?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (week INTEGER, opponent VARCHAR)
SELECT MIN(week) FROM table_name_63 WHERE opponent = "san jose sabercats"
Write a SQL query that answers the following question: How many were in attendance when the score was † 4–4 †?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (attendance VARCHAR, score VARCHAR)
SELECT attendance FROM table_name_33 WHERE score = "† 4–4 †"
Write a SQL query that answers the following question: How many people were watching when Livingston was the runner-up?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (attendance VARCHAR, runner_up VARCHAR)
SELECT attendance FROM table_name_95 WHERE runner_up = "livingston"
Write a SQL query that answers the following question: what average grid has laps larger than 52 and contains the driver of andrea de adamich?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (grid INTEGER, laps VARCHAR, driver VARCHAR)
SELECT AVG(grid) FROM table_name_36 WHERE laps > 52 AND driver = "andrea de adamich"
Write a SQL query that answers the following question: what's the highest lap that contains the driver of graham hill and a grid that is larger than 18?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT MAX(laps) FROM table_name_34 WHERE driver = "graham hill" AND grid > 18
Write a SQL query that answers the following question: what's the average grid that has a time/retired piston and laps smaller than 15?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT AVG(grid) FROM table_name_81 WHERE time_retired = "piston" AND laps < 15
Write a SQL query that answers the following question: Who is the tuner after season 2004 with Gaurav Gill as the driver, Team MRF, and Mai governing body?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (tuner VARCHAR, governing_body VARCHAR, team VARCHAR, season VARCHAR, driver VARCHAR)
SELECT tuner FROM table_name_86 WHERE season > 2004 AND driver = "gaurav gill" AND team = "team mrf" AND governing_body = "mai"
Write a SQL query that answers the following question: Who is the driver in season 2003 with a tuner of N. Leelakrishnan and a Mai governing body?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (driver VARCHAR, season VARCHAR, tuner VARCHAR, governing_body VARCHAR)
SELECT driver FROM table_name_37 WHERE tuner = "n. leelakrishnan" AND governing_body = "mai" AND season = 2003
Write a SQL query that answers the following question: Who is the turner on Team MRF?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (tuner VARCHAR, team VARCHAR)
SELECT tuner FROM table_name_23 WHERE team = "mrf"
Write a SQL query that answers the following question: What is the earliest season with driver Farad Bathena?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (season INTEGER, driver VARCHAR)
SELECT MIN(season) FROM table_name_34 WHERE driver = "farad bathena"
Write a SQL query that answers the following question: Which Major League Soccer team for the 2005 season has the lowest goals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (goals INTEGER, league VARCHAR, season VARCHAR)
SELECT MIN(goals) FROM table_name_63 WHERE league = "major league soccer" AND season = "2005"
Write a SQL query that answers the following question: What are the average apps for the Major League Soccer team club for the Seattle Sounders FC that has goals less than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (apps INTEGER, goals VARCHAR, league VARCHAR, club VARCHAR)
SELECT AVG(apps) FROM table_name_43 WHERE league = "major league soccer" AND club = "seattle sounders fc" AND goals < 0
Write a SQL query that answers the following question: Which Icelandic has a Danish of blåt/blå?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (icelandic VARCHAR, danish VARCHAR)
SELECT icelandic FROM table_name_59 WHERE danish = "blåt/blå"