instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: If a person does 3 chin-up reps, what grade do they obtain?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (grade VARCHAR, chin_up__reps_ VARCHAR)
SELECT grade FROM table_name_43 WHERE chin_up__reps_ = "3"
Write a SQL query that answers the following question: How many seconds is a shuttle run that give 2 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (shuttle_run__sec_ VARCHAR, points VARCHAR)
SELECT shuttle_run__sec_ FROM table_name_54 WHERE points = 2
Write a SQL query that answers the following question: Tell me the outgoing manager for resigned and replaced by manolo villanova for real zaragoza
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (outgoing_manager VARCHAR, replaced_by VARCHAR, manner_of_departure VARCHAR, team VARCHAR)
SELECT outgoing_manager FROM table_name_29 WHERE manner_of_departure = "resigned" AND team = "real zaragoza" AND replaced_by = "manolo villanova"
Write a SQL query that answers the following question: Name the replaced by for racing santander
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (replaced_by VARCHAR, team VARCHAR)
SELECT replaced_by FROM table_name_64 WHERE team = "racing santander"
Write a SQL query that answers the following question: What Grid had 14 laps completed?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (grid INTEGER, laps VARCHAR)
SELECT AVG(grid) FROM table_name_64 WHERE laps = 14
Write a SQL query that answers the following question: What is the lowest Grid with 25 laps manufactured by Honda with a time of +54.103?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (grid INTEGER, time_retired VARCHAR, laps VARCHAR, manufacturer VARCHAR)
SELECT MIN(grid) FROM table_name_91 WHERE laps = 25 AND manufacturer = "honda" AND time_retired = "+54.103"
Write a SQL query that answers the following question: How many laps were timed at +1:02.315?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (laps VARCHAR, time_retired VARCHAR)
SELECT COUNT(laps) FROM table_name_75 WHERE time_retired = "+1:02.315"
Write a SQL query that answers the following question: What is the points ranking of Chicago Fire?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (pts_rank VARCHAR, club VARCHAR)
SELECT pts_rank FROM table_name_73 WHERE club = "chicago fire"
Write a SQL query that answers the following question: Who is the opponent with a time of 1:16?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (opponent VARCHAR, time VARCHAR)
SELECT opponent FROM table_name_58 WHERE time = "1:16"
Write a SQL query that answers the following question: What round has a method of submission?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (round VARCHAR, method VARCHAR)
SELECT round FROM table_name_64 WHERE method = "submission"
Write a SQL query that answers the following question: Which competition did he win on August 15, 2012?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (competition VARCHAR, result VARCHAR, date VARCHAR)
SELECT competition FROM table_name_54 WHERE result = "win" AND date = "august 15, 2012"
Write a SQL query that answers the following question: Where was the competition on August 15, 2012?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_60 WHERE date = "august 15, 2012"
Write a SQL query that answers the following question: When was the competition that had a score of 3-0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_34 WHERE score = "3-0"
Write a SQL query that answers the following question: What was the result of the UEFA Euro 2008 Qualifying competition?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (result VARCHAR, competition VARCHAR)
SELECT result FROM table_name_97 WHERE competition = "uefa euro 2008 qualifying"
Write a SQL query that answers the following question: What nationality is Steven Anthony?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (nationality VARCHAR, player VARCHAR)
SELECT nationality FROM table_name_88 WHERE player = "steven anthony"
Write a SQL query that answers the following question: What is the highest pick number from Slovakia?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (pick__number INTEGER, nationality VARCHAR)
SELECT MAX(pick__number) FROM table_name_51 WHERE nationality = "slovakia"
Write a SQL query that answers the following question: What is the lowest pick number for the Russian Major League?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (pick__number INTEGER, league_from VARCHAR)
SELECT MIN(pick__number) FROM table_name_70 WHERE league_from = "russian major league"
Write a SQL query that answers the following question: What team is from the Russian Major League?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (position VARCHAR, league_from VARCHAR)
SELECT position FROM table_name_21 WHERE league_from = "russian major league"
Write a SQL query that answers the following question: Which league has a pick number larger than 204 from Canada and LW as the position?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (league_from VARCHAR, position VARCHAR, pick__number VARCHAR, nationality VARCHAR)
SELECT league_from FROM table_name_61 WHERE pick__number > 204 AND nationality = "canada" AND position = "lw"
Write a SQL query that answers the following question: Who is the player from Aurillac?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (player VARCHAR, club_province VARCHAR)
SELECT player FROM table_name_49 WHERE club_province = "aurillac"
Write a SQL query that answers the following question: what is the points when the rank is more than 1 and the places is 33?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (points VARCHAR, rank VARCHAR, places VARCHAR)
SELECT points FROM table_name_69 WHERE rank > 1 AND places = 33
Write a SQL query that answers the following question: what is the highest rank for east germany with points of 128.98 and places less than 70?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (rank INTEGER, places VARCHAR, nation VARCHAR, points VARCHAR)
SELECT MAX(rank) FROM table_name_40 WHERE nation = "east germany" AND points = 128.98 AND places < 70
Write a SQL query that answers the following question: what is the points for rank 12?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (points INTEGER, rank VARCHAR)
SELECT SUM(points) FROM table_name_13 WHERE rank = 12
Write a SQL query that answers the following question: What is the average PI GP when the pick is smaller tha 70 and the reg GP is 97?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (pl_gp INTEGER, reg_gp VARCHAR, pick__number VARCHAR)
SELECT AVG(pl_gp) FROM table_name_32 WHERE reg_gp = 97 AND pick__number < 70
Write a SQL query that answers the following question: Name the gloss for [χdəm]
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (gloss VARCHAR, pronunciation VARCHAR)
SELECT gloss FROM table_name_69 WHERE pronunciation = "[χdəm]"
Write a SQL query that answers the following question: Name the realization for 'to be, to do'
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (realization VARCHAR, gloss VARCHAR)
SELECT realization FROM table_name_71 WHERE gloss = "'to be, to do'"
Write a SQL query that answers the following question: What is the lowest number of places for Sherri Baier / Robin Cowan when ranked lower than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (places INTEGER, name VARCHAR, rank VARCHAR)
SELECT MIN(places) FROM table_name_70 WHERE name = "sherri baier / robin cowan" AND rank < 1
Write a SQL query that answers the following question: What platform is nds4droid on for the nintendo ds?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (platform VARCHAR, system VARCHAR, name VARCHAR)
SELECT platform FROM table_name_97 WHERE system = "nintendo ds" AND name = "nds4droid"
Write a SQL query that answers the following question: Who has a license of proprietary (available on inquiry)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (name VARCHAR, license VARCHAR)
SELECT name FROM table_name_67 WHERE license = "proprietary (available on inquiry)"
Write a SQL query that answers the following question: What platform is nds4droid on for the nintendo ds with a license of gpl v2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (platform VARCHAR, name VARCHAR, system VARCHAR, license VARCHAR)
SELECT platform FROM table_name_93 WHERE system = "nintendo ds" AND license = "gpl v2" AND name = "nds4droid"
Write a SQL query that answers the following question: What system has a current version of 1.4e?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (system VARCHAR, current_version VARCHAR)
SELECT system FROM table_name_65 WHERE current_version = "1.4e"
Write a SQL query that answers the following question: Who has a licence of gpl v2 and a current version of 0.9.9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (name VARCHAR, license VARCHAR, current_version VARCHAR)
SELECT name FROM table_name_92 WHERE license = "gpl v2" AND current_version = "0.9.9"
Write a SQL query that answers the following question: What was the performance length of the 1999 season in bydgoszcz, poland?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (performance VARCHAR, season VARCHAR, place VARCHAR)
SELECT performance FROM table_name_11 WHERE season = 1999 AND place = "bydgoszcz, poland"
Write a SQL query that answers the following question: What were the performance lengths in the 3000 m events in and after 2003?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (performance VARCHAR, season VARCHAR, discipline VARCHAR)
SELECT performance FROM table_name_49 WHERE season > 2003 AND discipline = "3000 m"
Write a SQL query that answers the following question: How many seasons took place in santiago de chile, chile?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (season VARCHAR, place VARCHAR)
SELECT COUNT(season) FROM table_name_19 WHERE place = "santiago de chile, chile"
Write a SQL query that answers the following question: During which Season did the may 11, 2002 event take place?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (season VARCHAR, date VARCHAR)
SELECT season FROM table_name_90 WHERE date = "may 11, 2002"
Write a SQL query that answers the following question: What is the average round for players from california?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (round INTEGER, college VARCHAR)
SELECT AVG(round) FROM table_name_16 WHERE college = "california"
Write a SQL query that answers the following question: What's the Nationality of Round 8 Vancouver Canucks NHL Team of Swift Current Broncos (WHL)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (nationality VARCHAR, round VARCHAR, nhl_team VARCHAR, college_junior_club_team__league_ VARCHAR)
SELECT nationality FROM table_name_12 WHERE nhl_team = "vancouver canucks" AND college_junior_club_team__league_ = "swift current broncos (whl)" AND round = 8
Write a SQL query that answers the following question: When the Away team of essendon was playing, what was the Home team's score?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_62 WHERE away_team = "essendon"
Write a SQL query that answers the following question: For the Venue of western oval, what's the Away team playing?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_71 WHERE venue = "western oval"
Write a SQL query that answers the following question: Who was the opponent on week 7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (opponent VARCHAR, week VARCHAR)
SELECT opponent FROM table_name_82 WHERE week = "7"
Write a SQL query that answers the following question: Who was the opponent on week 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (opponent VARCHAR, week VARCHAR)
SELECT opponent FROM table_name_4 WHERE week = "5"
Write a SQL query that answers the following question: Who was the leading scorer of the game that had a score of 107–97?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (leading_scorer VARCHAR, score VARCHAR)
SELECT leading_scorer FROM table_name_26 WHERE score = "107–97"
Write a SQL query that answers the following question: Who was the visiting team when the Suns were the home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (visitor VARCHAR, home VARCHAR)
SELECT visitor FROM table_name_39 WHERE home = "suns"
Write a SQL query that answers the following question: What is the average number of ties for the Detroit Lions team when they have fewer than 5 wins, fewer than 3 losses, and a win percentage of 0.800?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (ties INTEGER, team VARCHAR, win_pct VARCHAR, losses VARCHAR, wins VARCHAR)
SELECT AVG(ties) FROM table_name_63 WHERE losses < 3 AND wins < 5 AND win_pct = "0.800" AND team = "detroit lions"
Write a SQL query that answers the following question: What is the most recent year in which the score was 4–6, 6–3, 7–5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (year INTEGER, score VARCHAR)
SELECT MAX(year) FROM table_name_91 WHERE score = "4–6, 6–3, 7–5"
Write a SQL query that answers the following question: Which player has a height of 6-7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (player VARCHAR, height VARCHAR)
SELECT player FROM table_name_5 WHERE height = "6-7"
Write a SQL query that answers the following question: What is the NBA draft result of the player from Washington, DC?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (nba_draft VARCHAR, hometown VARCHAR)
SELECT nba_draft FROM table_name_97 WHERE hometown = "washington, dc"
Write a SQL query that answers the following question: What is the NBA draft result of the player from the College of Kansas?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (nba_draft VARCHAR, college VARCHAR)
SELECT nba_draft FROM table_name_48 WHERE college = "kansas"
Write a SQL query that answers the following question: Who is the player from La Costa Canyon High School?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (player VARCHAR, school VARCHAR)
SELECT player FROM table_name_79 WHERE school = "la costa canyon high school"
Write a SQL query that answers the following question: How tall is the player from Nacogdoches High School?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (height VARCHAR, school VARCHAR)
SELECT height FROM table_name_28 WHERE school = "nacogdoches high school"
Write a SQL query that answers the following question: What is the school of the player from Dallas, TX?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (school VARCHAR, hometown VARCHAR)
SELECT school FROM table_name_47 WHERE hometown = "dallas, tx"
Write a SQL query that answers the following question: What is the result for world group, consolation round?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (result VARCHAR, competition VARCHAR)
SELECT result FROM table_name_31 WHERE competition = "world group, consolation round"
Write a SQL query that answers the following question: How many attended tie number 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (attendance INTEGER, tie_no VARCHAR)
SELECT SUM(attendance) FROM table_name_47 WHERE tie_no = "1"
Write a SQL query that answers the following question: How many attended tie number 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (attendance INTEGER, tie_no VARCHAR)
SELECT MAX(attendance) FROM table_name_97 WHERE tie_no = "3"
Write a SQL query that answers the following question: What is the hometown for tre madden?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (hometown VARCHAR, player VARCHAR)
SELECT hometown FROM table_name_68 WHERE player = "tre madden"
Write a SQL query that answers the following question: What is the hometown for the player that is defensive back and went to alabama?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (hometown VARCHAR, position VARCHAR, college VARCHAR)
SELECT hometown FROM table_name_20 WHERE position = "defensive back" AND college = "alabama"
Write a SQL query that answers the following question: What is the college for the player that went to ridge community high school and is defensive back?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (college VARCHAR, position VARCHAR, school VARCHAR)
SELECT college FROM table_name_19 WHERE position = "defensive back" AND school = "ridge community high school"
Write a SQL query that answers the following question: What is the sum of Year with a Type of informal, and a Location with justus lipsius building, brussels, and a Date with 23 may?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (year INTEGER, date VARCHAR, type VARCHAR, location VARCHAR)
SELECT SUM(year) FROM table_name_77 WHERE type = "informal" AND location = "justus lipsius building, brussels" AND date = "23 may"
Write a SQL query that answers the following question: What is the Type with a Location with justus lipsius building, brussels, and a Year of 2012, and a President with herman van rompuy (1st term), and a Date with 23 may?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (type VARCHAR, date VARCHAR, president VARCHAR, location VARCHAR, year VARCHAR)
SELECT type FROM table_name_59 WHERE location = "justus lipsius building, brussels" AND year = 2012 AND president = "herman van rompuy (1st term)" AND date = "23 may"
Write a SQL query that answers the following question: What is the President with a Location of justus lipsius building, brussels, and a Type with scheduled, and a Year larger than 2011, and a Date with 18–19 october?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (president VARCHAR, date VARCHAR, year VARCHAR, location VARCHAR, type VARCHAR)
SELECT president FROM table_name_22 WHERE location = "justus lipsius building, brussels" AND type = "scheduled" AND year > 2011 AND date = "18–19 october"
Write a SQL query that answers the following question: What is the Location with a Year larger than 2011, and a President with herman van rompuy (2nd term), and a Date of 28–29 june, and a Type with scheduled?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (location VARCHAR, type VARCHAR, date VARCHAR, year VARCHAR, president VARCHAR)
SELECT location FROM table_name_63 WHERE year > 2011 AND president = "herman van rompuy (2nd term)" AND date = "28–29 june" AND type = "scheduled"
Write a SQL query that answers the following question: What is the President with a Year larger than 2011, and a Date with 23 may?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (president VARCHAR, year VARCHAR, date VARCHAR)
SELECT president FROM table_name_31 WHERE year > 2011 AND date = "23 may"
Write a SQL query that answers the following question: What is the Type with a Year larger than 2010, and a Location with justus lipsius building, brussels, and a President of herman van rompuy (2nd term), and a Date with 28–29 june?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (type VARCHAR, date VARCHAR, president VARCHAR, year VARCHAR, location VARCHAR)
SELECT type FROM table_name_96 WHERE year > 2010 AND location = "justus lipsius building, brussels" AND president = "herman van rompuy (2nd term)" AND date = "28–29 june"
Write a SQL query that answers the following question: What competition has a goal number of 13?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (competition VARCHAR, goal VARCHAR)
SELECT competition FROM table_name_49 WHERE goal = 13
Write a SQL query that answers the following question: What is the total of yards when asst. is 19, totaltk is 60 and sack is more than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (yards INTEGER, sack VARCHAR, asst VARCHAR, totaltk VARCHAR)
SELECT SUM(yards) FROM table_name_60 WHERE asst = 19 AND totaltk = 60 AND sack > 0
Write a SQL query that answers the following question: what is the total sack for mike green when fumr is less than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (sack INTEGER, player VARCHAR, fumr VARCHAR)
SELECT SUM(sack) FROM table_name_40 WHERE player = "mike green" AND fumr < 0
Write a SQL query that answers the following question: what is the total sack when totaltk is 1 and asst. is more than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (sack INTEGER, totaltk VARCHAR, asst VARCHAR)
SELECT SUM(sack) FROM table_name_86 WHERE totaltk = 1 AND asst > 0
Write a SQL query that answers the following question: what is the total number of tackles when fumr is 0, totaltk is 54 and yards is less than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (tackles VARCHAR, yards VARCHAR, fumr VARCHAR, totaltk VARCHAR)
SELECT COUNT(tackles) FROM table_name_21 WHERE fumr = 0 AND totaltk = 54 AND yards < 0
Write a SQL query that answers the following question: what is the sum of totaltk when yards is less than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (totaltk INTEGER, yards INTEGER)
SELECT SUM(totaltk) FROM table_name_9 WHERE yards < 0
Write a SQL query that answers the following question: What class is after 1973 with 41 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (class VARCHAR, year VARCHAR, points VARCHAR)
SELECT class FROM table_name_45 WHERE year > 1973 AND points = 41
Write a SQL query that answers the following question: How many wins for bikes with under 54 points, team yamaha, a 250cc bike, and before 1977?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (wins VARCHAR, year VARCHAR, class VARCHAR, points VARCHAR, team VARCHAR)
SELECT COUNT(wins) FROM table_name_90 WHERE points < 54 AND team = "yamaha" AND class = "250cc" AND year < 1977
Write a SQL query that answers the following question: What distance did giovanni lombardi win after stage 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (distance VARCHAR, stage VARCHAR, winner VARCHAR)
SELECT distance FROM table_name_10 WHERE stage > 5 AND winner = "giovanni lombardi"
Write a SQL query that answers the following question: Who is the GC leader at ávila - segovia?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (gc_leader VARCHAR, course VARCHAR)
SELECT gc_leader FROM table_name_51 WHERE course = "ávila - segovia"
Write a SQL query that answers the following question: How many grids have less than 41 laps and a Driver of pedro de la rosa?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (grid VARCHAR, laps VARCHAR, driver VARCHAR)
SELECT COUNT(grid) FROM table_name_11 WHERE laps < 41 AND driver = "pedro de la rosa"
Write a SQL query that answers the following question: Which Time/Retired has a Grid smaller than 3, and a Driver of mika häkkinen?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (time_retired VARCHAR, grid VARCHAR, driver VARCHAR)
SELECT time_retired FROM table_name_58 WHERE grid < 3 AND driver = "mika häkkinen"
Write a SQL query that answers the following question: What are toranosuke takagi's average laps?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (laps INTEGER, driver VARCHAR)
SELECT AVG(laps) FROM table_name_14 WHERE driver = "toranosuke takagi"
Write a SQL query that answers the following question: Which grid has a Time/Retired of +5.004?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (grid INTEGER, time_retired VARCHAR)
SELECT MIN(grid) FROM table_name_95 WHERE time_retired = "+5.004"
Write a SQL query that answers the following question: What was the score of the game on November 9 when Atlanta was the visiting team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (score VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT score FROM table_name_73 WHERE visitor = "atlanta" AND date = "november 9"
Write a SQL query that answers the following question: What was the score of the home game at Tampa Bay?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (score VARCHAR, home VARCHAR)
SELECT score FROM table_name_56 WHERE home = "tampa bay"
Write a SQL query that answers the following question: What was the date of the game where Ottawa was the home team and Atlanta is the visiting team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (date VARCHAR, visitor VARCHAR, home VARCHAR)
SELECT date FROM table_name_32 WHERE visitor = "atlanta" AND home = "ottawa"
Write a SQL query that answers the following question: I want the result for team of giants
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (result VARCHAR, team VARCHAR)
SELECT result FROM table_name_39 WHERE team = "giants"
Write a SQL query that answers the following question: Tell me the pitcher on september 6, 2006
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (pitcher VARCHAR, date VARCHAR)
SELECT pitcher FROM table_name_8 WHERE date = "september 6, 2006"
Write a SQL query that answers the following question: I want the date for rockies
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (date VARCHAR, team VARCHAR)
SELECT date FROM table_name_66 WHERE team = "rockies"
Write a SQL query that answers the following question: I want the date for aníbal sánchez
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (date VARCHAR, pitcher VARCHAR)
SELECT date FROM table_name_58 WHERE pitcher = "aníbal sánchez"
Write a SQL query that answers the following question: I want the result for team of giants
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (result VARCHAR, team VARCHAR)
SELECT result FROM table_name_63 WHERE team = "giants"
Write a SQL query that answers the following question: I want the site for september 29, 2013
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (site VARCHAR, date VARCHAR)
SELECT site FROM table_name_51 WHERE date = "september 29, 2013"
Write a SQL query that answers the following question: When the apparent magnitude is 10.5, what is the right ascension?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (right_ascension___j2000__ VARCHAR, apparent_magnitude VARCHAR)
SELECT right_ascension___j2000__ FROM table_name_71 WHERE apparent_magnitude = 10.5
Write a SQL query that answers the following question: Which livery is from 1919?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (livery VARCHAR, date VARCHAR)
SELECT livery FROM table_name_57 WHERE date = "1919"
Write a SQL query that answers the following question: Of the games with a record of 80-81, what was the highest attendance?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (attendance INTEGER, record VARCHAR)
SELECT MAX(attendance) FROM table_name_89 WHERE record = "80-81"
Write a SQL query that answers the following question: How many entries have a HK viewers of 2.23 million, and a Rank below 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (peak VARCHAR, hk_viewers VARCHAR, rank VARCHAR)
SELECT COUNT(peak) FROM table_name_34 WHERE hk_viewers = "2.23 million" AND rank > 2
Write a SQL query that answers the following question: What premiere has a finale of less than 41, peak less than 40, average above 31, and a Chinese title of 學警雄心?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (premiere VARCHAR, chinese_title VARCHAR, average VARCHAR, finale VARCHAR, peak VARCHAR)
SELECT premiere FROM table_name_95 WHERE finale < 41 AND peak < 40 AND average > 31 AND chinese_title = "學警雄心"
Write a SQL query that answers the following question: What is the high average that has a Finale larger than 35, a HK viewers of 2.12 million, and a Peak larger than 40?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (average INTEGER, peak VARCHAR, finale VARCHAR, hk_viewers VARCHAR)
SELECT MAX(average) FROM table_name_36 WHERE finale > 35 AND hk_viewers = "2.12 million" AND peak > 40
Write a SQL query that answers the following question: What is the score for the home team when the venue is Junction Oval?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_96 WHERE venue = "junction oval"
Write a SQL query that answers the following question: What is the lowest crowd number at the venue MCG?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (crowd INTEGER, venue VARCHAR)
SELECT MIN(crowd) FROM table_name_73 WHERE venue = "mcg"
Write a SQL query that answers the following question: Name the average round for jacksonville
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (round INTEGER, place VARCHAR)
SELECT AVG(round) FROM table_name_89 WHERE place = "jacksonville"
Write a SQL query that answers the following question: I want the standing for january 29 and finished of 3rd and total points less than 248
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (standing VARCHAR, date VARCHAR, total_points VARCHAR, finished VARCHAR)
SELECT standing FROM table_name_59 WHERE total_points < 248 AND finished = "3rd" AND date = "january 29"
Write a SQL query that answers the following question: What was the result and score of the game on February 22?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_5 WHERE date = "february 22"
Write a SQL query that answers the following question: What is the largest Rd# for a PI GP greater than 0 and a Reg GP less than 62?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (rd__number INTEGER, pl_gp VARCHAR, reg_gp VARCHAR)
SELECT MAX(rd__number) FROM table_name_20 WHERE pl_gp > 0 AND reg_gp < 62
Write a SQL query that answers the following question: Which team has a Reg GP over 62?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (team__league_ VARCHAR, reg_gp INTEGER)
SELECT team__league_ FROM table_name_12 WHERE reg_gp > 62