instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: What was the date of the game when the record was 70-74?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_86 WHERE record = "70-74"
Write a SQL query that answers the following question: What player was moving from manchester united?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (name VARCHAR, moving_from VARCHAR)
SELECT name FROM table_name_78 WHERE moving_from = "manchester united"
Write a SQL query that answers the following question: What player costs £210k to transfer?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (name VARCHAR, transfer_fee VARCHAR)
SELECT name FROM table_name_92 WHERE transfer_fee = "£210k"
Write a SQL query that answers the following question: Who is moving during winter from wal?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (moving_from VARCHAR, transfer_window VARCHAR, country VARCHAR)
SELECT moving_from FROM table_name_28 WHERE transfer_window = "winter" AND country = "wal"
Write a SQL query that answers the following question: Which original artist has a Episode of workshop #1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (original_artist VARCHAR, episode VARCHAR)
SELECT original_artist FROM table_name_32 WHERE episode = "workshop #1"
Write a SQL query that answers the following question: Which theme has a Episode of top 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (theme VARCHAR, episode VARCHAR)
SELECT theme FROM table_name_79 WHERE episode = "top 6"
Write a SQL query that answers the following question: Which Theme has a Order # of 9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (theme VARCHAR, order__number VARCHAR)
SELECT theme FROM table_name_5 WHERE order__number = "9"
Write a SQL query that answers the following question: What was the score on August 19?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_65 WHERE date = "august 19"
Write a SQL query that answers the following question: Where the time is 2:46, what is the record?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (record VARCHAR, time VARCHAR)
SELECT record FROM table_name_83 WHERE time = "2:46"
Write a SQL query that answers the following question: What is the Date, when the home team is the NY Rangers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (date VARCHAR, home VARCHAR)
SELECT date FROM table_name_22 WHERE home = "ny rangers"
Write a SQL query that answers the following question: Power of 220kw (299hp) @ 4000 has what torque?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (torque VARCHAR, power VARCHAR)
SELECT torque FROM table_name_38 WHERE power = "220kw (299hp) @ 4000"
Write a SQL query that answers the following question: What is the Displacement that has Power of 220kw (299hp) @ 4000, and a year larger than 2002?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (displacement VARCHAR, year VARCHAR, power VARCHAR)
SELECT displacement FROM table_name_95 WHERE year > 2002 AND power = "220kw (299hp) @ 4000"
Write a SQL query that answers the following question: Displacement of 4.4l (4423cc/269in³) and a Power of 220kw (299hp) @ 4000 belongs to what engine?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (engine VARCHAR, displacement VARCHAR, power VARCHAR)
SELECT engine FROM table_name_21 WHERE displacement = "4.4l (4423cc/269in³)" AND power = "220kw (299hp) @ 4000"
Write a SQL query that answers the following question: What week was the Original artist, the police ?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (week VARCHAR, original_artist VARCHAR)
SELECT week FROM table_name_5 WHERE original_artist = "the police"
Write a SQL query that answers the following question: Which song garnered an advanced result during top 20 week ?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (song_choice VARCHAR, result VARCHAR, week VARCHAR)
SELECT song_choice FROM table_name_38 WHERE result = "advanced" AND week = "top 20"
Write a SQL query that answers the following question: Which Malaysia Satellite tournaments were played after 1998?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (outcome VARCHAR, year VARCHAR, tournament VARCHAR)
SELECT outcome FROM table_name_52 WHERE year > 1998 AND tournament = "malaysia satellite"
Write a SQL query that answers the following question: Who was the runner-up for the Bulgaria Open, before 2007?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (score VARCHAR, tournament VARCHAR, year VARCHAR, outcome VARCHAR)
SELECT score FROM table_name_40 WHERE year < 2007 AND outcome = "runner-up" AND tournament = "bulgaria open"
Write a SQL query that answers the following question: What was the score of the player who played against Wong Choong Hann in the Dutch Open?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (score VARCHAR, tournament VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_47 WHERE tournament = "dutch open" AND opponent = "wong choong hann"
Write a SQL query that answers the following question: What was the outcome of the match against Nguyen Tien Minh in the Bulgaria Open?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (outcome VARCHAR, opponent VARCHAR, tournament VARCHAR)
SELECT outcome FROM table_name_51 WHERE opponent = "nguyen tien minh" AND tournament = "bulgaria open"
Write a SQL query that answers the following question: What was the final score when the New York Jets were the Visiting Team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (final_score VARCHAR, visiting_team VARCHAR)
SELECT final_score FROM table_name_86 WHERE visiting_team = "new york jets"
Write a SQL query that answers the following question: When were the Cleveland Browns the visiting team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (date VARCHAR, visiting_team VARCHAR)
SELECT date FROM table_name_62 WHERE visiting_team = "cleveland browns"
Write a SQL query that answers the following question: Where were the New York Jets visiting?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (stadium VARCHAR, visiting_team VARCHAR)
SELECT stadium FROM table_name_65 WHERE visiting_team = "new york jets"
Write a SQL query that answers the following question: What was the final score in Robert F. Kennedy Memorial Stadium?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (final_score VARCHAR, stadium VARCHAR)
SELECT final_score FROM table_name_26 WHERE stadium = "robert f. kennedy memorial stadium"
Write a SQL query that answers the following question: What was the visiting team on November 12?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (visiting_team VARCHAR, date VARCHAR)
SELECT visiting_team FROM table_name_12 WHERE date = "november 12"
Write a SQL query that answers the following question: In what stadium were the New England Patriots the visiting team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (stadium VARCHAR, visiting_team VARCHAR)
SELECT stadium FROM table_name_13 WHERE visiting_team = "new england patriots"
Write a SQL query that answers the following question: If the games played are smaller than 18, what are the lowest goals conceded?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (goals_conceded INTEGER, played INTEGER)
SELECT MIN(goals_conceded) FROM table_name_72 WHERE played < 18
Write a SQL query that answers the following question: If the place is smaller than 8 and they played more than 18, what is the total number of goals conceded?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (goals_conceded VARCHAR, place VARCHAR, played VARCHAR)
SELECT COUNT(goals_conceded) FROM table_name_54 WHERE place < 8 AND played > 18
Write a SQL query that answers the following question: What is the sum of the place that has less than 2 losses?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (place INTEGER, lost INTEGER)
SELECT SUM(place) FROM table_name_60 WHERE lost < 2
Write a SQL query that answers the following question: What is the smallest width for a frame size of 5k and a height shorter than 2700?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (width INTEGER, frame_size VARCHAR, height VARCHAR)
SELECT MIN(width) FROM table_name_18 WHERE frame_size = "5k" AND height < 2700
Write a SQL query that answers the following question: What was the opponent on August 29?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_57 WHERE date = "august 29"
Write a SQL query that answers the following question: Which team had the attendance of 16,468 and lost?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (loss VARCHAR, attendance VARCHAR)
SELECT loss FROM table_name_61 WHERE attendance = "16,468"
Write a SQL query that answers the following question: What opponent has a loss of Trachsel (10-11)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (opponent VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_12 WHERE loss = "trachsel (10-11)"
Write a SQL query that answers the following question: What was the attendance on August 8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_47 WHERE date = "august 8"
Write a SQL query that answers the following question: Which rapid has a distance in km smaller than 14.2, and a Station of kōmyōji?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (rapid VARCHAR, distance__km_ VARCHAR, station VARCHAR)
SELECT rapid FROM table_name_91 WHERE distance__km_ < 14.2 AND station = "kōmyōji"
Write a SQL query that answers the following question: What is the sum of Other, when the Name is Simon Gillett Category:Articles with hCards, and when the Total is less than 34?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (other INTEGER, name VARCHAR, total VARCHAR)
SELECT SUM(other) FROM table_name_14 WHERE name = "simon gillett category:articles with hcards" AND total < 34
Write a SQL query that answers the following question: What is the sum of the value "League Cup", when the Total is less than 1, and when the League is less than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (league INTEGER, total VARCHAR)
SELECT SUM(league) AS Cup FROM table_name_7 WHERE total < 1 AND league < 0
Write a SQL query that answers the following question: What is the average Total, when the Name is Simon Gillett Category:Articles with hCards, and when the Other is greater than 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (total INTEGER, name VARCHAR, other VARCHAR)
SELECT AVG(total) FROM table_name_60 WHERE name = "simon gillett category:articles with hcards" AND other > 3
Write a SQL query that answers the following question: What is the sum of League Cup, when the Other is less than 1, when the Name is Gareth Farrelly Category:Articles with hCards, and when the League is greater than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (league INTEGER, other VARCHAR, name VARCHAR)
SELECT SUM(league) AS Cup FROM table_name_68 WHERE other < 1 AND name = "gareth farrelly category:articles with hcards" AND league > 1
Write a SQL query that answers the following question: Name the champion for christopher miles runner-up
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (champion VARCHAR, runner_up VARCHAR)
SELECT champion FROM table_name_52 WHERE runner_up = "christopher miles"
Write a SQL query that answers the following question: Name the champion for 2000
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (champion VARCHAR, year VARCHAR)
SELECT champion FROM table_name_52 WHERE year = "2000"
Write a SQL query that answers the following question: Name the location for 1998
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (location VARCHAR, year VARCHAR)
SELECT location FROM table_name_26 WHERE year = "1998"
Write a SQL query that answers the following question: How many gold medals correspond with a total over 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (gold VARCHAR, total INTEGER)
SELECT gold FROM table_name_42 WHERE total > 4
Write a SQL query that answers the following question: What is the sum of gold medals with a total of 12 medals and less than 4 bronze medals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (gold INTEGER, total VARCHAR, bronze VARCHAR)
SELECT SUM(gold) FROM table_name_72 WHERE total = 12 AND bronze < 4
Write a SQL query that answers the following question: What is the smallest number of gold medals corresponding to the total rank with more than 4 bronze medals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (gold INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT MIN(gold) FROM table_name_7 WHERE rank = "total" AND bronze > 4
Write a SQL query that answers the following question: What is the smallest number of bronze medals with more than 4 gold medals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (bronze INTEGER, gold INTEGER)
SELECT MIN(bronze) FROM table_name_7 WHERE gold > 4
Write a SQL query that answers the following question: The candidate with Riding of st. john's south—mount pearl is what gender?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (gender VARCHAR, riding VARCHAR)
SELECT gender FROM table_name_3 WHERE riding = "st. john's south—mount pearl"
Write a SQL query that answers the following question: Which number has a 0.35 percentage?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (number VARCHAR, percentage___percentage_ VARCHAR)
SELECT number FROM table_name_26 WHERE percentage___percentage_ = "0.35"
Write a SQL query that answers the following question: What is the percentage for Russian?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (percentage___percentage_ VARCHAR, language VARCHAR)
SELECT percentage___percentage_ FROM table_name_90 WHERE language = "russian"
Write a SQL query that answers the following question: How many males speak Russian?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (males VARCHAR, language VARCHAR)
SELECT males FROM table_name_3 WHERE language = "russian"
Write a SQL query that answers the following question: Who is the writer for Red Rose Chain LTD?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (writer_s_ VARCHAR, recipient VARCHAR)
SELECT writer_s_ FROM table_name_4 WHERE recipient = "red rose chain ltd"
Write a SQL query that answers the following question: Which producer did Daniel Cormack direct?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (producer_s_ VARCHAR, director_s_ VARCHAR)
SELECT producer_s_ FROM table_name_50 WHERE director_s_ = "daniel cormack"
Write a SQL query that answers the following question: Who produced Laura Tunstall?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (producer_s_ VARCHAR, recipient VARCHAR)
SELECT producer_s_ FROM table_name_91 WHERE recipient = "laura tunstall"
Write a SQL query that answers the following question: Who wrote the film Jehovah's Witness?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (writer_s_ VARCHAR, film VARCHAR)
SELECT writer_s_ FROM table_name_5 WHERE film = "jehovah's witness"
Write a SQL query that answers the following question: When did Hein Vergeer have a distance of 5,000m?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (date VARCHAR, distance VARCHAR)
SELECT date FROM table_name_7 WHERE distance = "5,000m"
Write a SQL query that answers the following question: What were the notes during the distance of Men's Speed Skating?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (notes VARCHAR, distance VARCHAR)
SELECT notes FROM table_name_57 WHERE distance = "men's speed skating"
Write a SQL query that answers the following question: What date has the competition of uefa euro 2012 qualifying?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (date VARCHAR, competition VARCHAR)
SELECT date FROM table_name_77 WHERE competition = "uefa euro 2012 qualifying"
Write a SQL query that answers the following question: What is the Grade that has Turf 1600m?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (grade VARCHAR, priority_entry_rights_to_derby VARCHAR)
SELECT grade FROM table_name_27 WHERE priority_entry_rights_to_derby = "turf 1600m"
Write a SQL query that answers the following question: What is the Priority-entry-rights to Derby in rank 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (priority_entry_rights_to_derby VARCHAR, race_name VARCHAR)
SELECT priority_entry_rights_to_derby FROM table_name_51 WHERE NOT race_name = 4
Write a SQL query that answers the following question: How many Baia Mare have an Electrica North Transylvania under 14.476, Bistrita of 643, and Zalau under 737?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (baia_mare VARCHAR, zalau VARCHAR, electrica_north_transylvania VARCHAR, bistrita VARCHAR)
SELECT COUNT(baia_mare) FROM table_name_59 WHERE electrica_north_transylvania < 14.476 AND bistrita = 643 AND zalau < 737
Write a SQL query that answers the following question: What is the smallest Satu Mare value associated with Baia Mare over 523?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (satu_mare INTEGER, baia_mare INTEGER)
SELECT MIN(satu_mare) FROM table_name_37 WHERE baia_mare > 523
Write a SQL query that answers the following question: Which Word wrap support has a Format of mobipocket?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (word_wrap_support VARCHAR, format VARCHAR)
SELECT word_wrap_support FROM table_name_65 WHERE format = "mobipocket"
Write a SQL query that answers the following question: Which Interactivity support has a Format of fictionbook?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (interactivity_support VARCHAR, format VARCHAR)
SELECT interactivity_support FROM table_name_75 WHERE format = "fictionbook"
Write a SQL query that answers the following question: Which Filename extension has an Interactivity support of no, an Open standard of yes, and an Image support of no?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (filename_extension VARCHAR, image_support VARCHAR, interactivity_support VARCHAR, open_standard VARCHAR)
SELECT filename_extension FROM table_name_64 WHERE interactivity_support = "no" AND open_standard = "yes" AND image_support = "no"
Write a SQL query that answers the following question: Which Filename extension has a Word wrap support of yes, an Open standard of no, and an Interactivity support of yes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (filename_extension VARCHAR, interactivity_support VARCHAR, word_wrap_support VARCHAR, open_standard VARCHAR)
SELECT filename_extension FROM table_name_26 WHERE word_wrap_support = "yes" AND open_standard = "no" AND interactivity_support = "yes"
Write a SQL query that answers the following question: Which Format has an Interactivity support of no, a Word wrap support of yes, an Image support of yes, and an Open standard of yes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (format VARCHAR, open_standard VARCHAR, image_support VARCHAR, interactivity_support VARCHAR, word_wrap_support VARCHAR)
SELECT format FROM table_name_22 WHERE interactivity_support = "no" AND word_wrap_support = "yes" AND image_support = "yes" AND open_standard = "yes"
Write a SQL query that answers the following question: Position of guard, and a Pick # larger than 9 is what highest round?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (round INTEGER, position VARCHAR, pick__number VARCHAR)
SELECT MAX(round) FROM table_name_67 WHERE position = "guard" AND pick__number > 9
Write a SQL query that answers the following question: Pick # smaller than 11, and a Name of von hutchins belongs to what college?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (college VARCHAR, pick__number VARCHAR, name VARCHAR)
SELECT college FROM table_name_55 WHERE pick__number < 11 AND name = "von hutchins"
Write a SQL query that answers the following question: College of idaho, and an Overall smaller than 141 is what average round?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (round INTEGER, college VARCHAR, overall VARCHAR)
SELECT AVG(round) FROM table_name_60 WHERE college = "idaho" AND overall < 141
Write a SQL query that answers the following question: Name of David Kimball, and an Overall smaller than 229 is what highest round?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (round INTEGER, name VARCHAR, overall VARCHAR)
SELECT MAX(round) FROM table_name_51 WHERE name = "david kimball" AND overall < 229
Write a SQL query that answers the following question: How many points did the car with the brm v8 engine have?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (points VARCHAR, engine VARCHAR)
SELECT COUNT(points) FROM table_name_70 WHERE engine = "brm v8"
Write a SQL query that answers the following question: Which chassis has more than 0 points and was before 1966?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (chassis VARCHAR, year VARCHAR, points VARCHAR)
SELECT chassis FROM table_name_59 WHERE year < 1966 AND points > 0
Write a SQL query that answers the following question: How many points did he average in 1964?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (points INTEGER, year VARCHAR)
SELECT AVG(points) FROM table_name_10 WHERE year = 1964
Write a SQL query that answers the following question: Before the year 1963 what was the fewest points the climax v8 engine had?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (points INTEGER, engine VARCHAR, year VARCHAR)
SELECT MIN(points) FROM table_name_22 WHERE engine = "climax v8" AND year < 1963
Write a SQL query that answers the following question: What was the earliest year that had less than 1 point?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (year INTEGER, points INTEGER)
SELECT MIN(year) FROM table_name_85 WHERE points < 1
Write a SQL query that answers the following question: How many were in attendance on October 27, 1963?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (attendance INTEGER, date VARCHAR)
SELECT MAX(attendance) FROM table_name_33 WHERE date = "october 27, 1963"
Write a SQL query that answers the following question: which # / county is correct for year less than 1981 and chalmers as location?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (_number___county VARCHAR, year_joined VARCHAR, location VARCHAR)
SELECT _number___county FROM table_name_90 WHERE year_joined < 1981 AND location = "chalmers"
Write a SQL query that answers the following question: what is the correct year for # / county of 09 cass?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (year_joined VARCHAR, _number___county VARCHAR)
SELECT year_joined FROM table_name_65 WHERE _number___county = "09 cass"
Write a SQL query that answers the following question: what's the mascot for 66 pulaski 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (mascot VARCHAR, _number___county VARCHAR)
SELECT mascot FROM table_name_39 WHERE _number___county = "66 pulaski 2"
Write a SQL query that answers the following question: What is the total bronze with a Silver of 2, and a Gold smaller than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (bronze INTEGER, silver VARCHAR, gold VARCHAR)
SELECT SUM(bronze) FROM table_name_85 WHERE silver = 2 AND gold < 0
Write a SQL query that answers the following question: What is the average total with a Rank larger than 11, a Nation of switzerland, and a Silver smaller than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (total INTEGER, silver VARCHAR, rank VARCHAR, nation VARCHAR)
SELECT AVG(total) FROM table_name_85 WHERE rank > 11 AND nation = "switzerland" AND silver < 0
Write a SQL query that answers the following question: What is the total Gold with a Bronze smaller than 7, a Total of 1, a Nation of cape verde, and a Silver smaller than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (gold INTEGER, silver VARCHAR, nation VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT SUM(gold) FROM table_name_48 WHERE bronze < 7 AND total = 1 AND nation = "cape verde" AND silver < 0
Write a SQL query that answers the following question: How powerful is the model before 1999?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (power VARCHAR, year INTEGER)
SELECT power FROM table_name_58 WHERE year < 1999
Write a SQL query that answers the following question: What displacement is the model in 1999 with a Torque of 280n·m (207lb·ft) @ 1750?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (displacement VARCHAR, year VARCHAR, torque VARCHAR)
SELECT displacement FROM table_name_61 WHERE year = 1999 AND torque = "280n·m (207lb·ft) @ 1750"
Write a SQL query that answers the following question: When is the earliest year with a Power of 90kw (121hp) @ 4000?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (year INTEGER, power VARCHAR)
SELECT MIN(year) FROM table_name_56 WHERE power = "90kw (121hp) @ 4000"
Write a SQL query that answers the following question: When is the earliest year with a Torque of 330n·m (243lb·ft) @ 2000-2500?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (year INTEGER, torque VARCHAR)
SELECT MIN(year) FROM table_name_55 WHERE torque = "330n·m (243lb·ft) @ 2000-2500"
Write a SQL query that answers the following question: What week 14 has the lowest attendance?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (attendance INTEGER, week VARCHAR)
SELECT MIN(attendance) FROM table_name_75 WHERE week = 14
Write a SQL query that answers the following question: What is the highest attendance on September 14, 1986?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (attendance INTEGER, date VARCHAR)
SELECT MAX(attendance) FROM table_name_84 WHERE date = "september 14, 1986"
Write a SQL query that answers the following question: What type is the race with the vicenza to marostica course?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (type VARCHAR, course VARCHAR)
SELECT type FROM table_name_29 WHERE course = "vicenza to marostica"
Write a SQL query that answers the following question: Name the 2005 for 2003 of a and 2011 of 3r
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (Id VARCHAR)
SELECT 2005 FROM table_name_82 WHERE 2003 = "a" AND 2011 = "3r"
Write a SQL query that answers the following question: Name the 2006 with 2003 of a and 2012 of a
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (Id VARCHAR)
SELECT 2006 FROM table_name_1 WHERE 2003 = "a" AND 2012 = "a"
Write a SQL query that answers the following question: Name the 2010 for 2006 of 2r
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (Id VARCHAR)
SELECT 2010 FROM table_name_9 WHERE 2006 = "2r"
Write a SQL query that answers the following question: Name the 2007 for 2005 of a and 003 of a with 2009 of sf
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (Id VARCHAR)
SELECT 2007 FROM table_name_17 WHERE 2005 = "a" AND 2003 = "a" AND 2009 = "sf"
Write a SQL query that answers the following question: Name the 2011 with 2006 of 2r
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (Id VARCHAR)
SELECT 2011 FROM table_name_97 WHERE 2006 = "2r"
Write a SQL query that answers the following question: what was the venue on 7 october 2011?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_11 WHERE date = "7 october 2011"
Write a SQL query that answers the following question: What is the highest number of the match with julio césar vásquez as the opponent?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (number INTEGER, opponent VARCHAR)
SELECT MAX(number) FROM table_name_74 WHERE opponent = "julio césar vásquez"
Write a SQL query that answers the following question: Who was the opponent of the match on 2006-04-08?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_47 WHERE date = "2006-04-08"
Write a SQL query that answers the following question: What is the result of the match with Zab Judah as the opponent?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (result VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_42 WHERE opponent = "zab judah"
Write a SQL query that answers the following question: What is the date of the match with a result of ud 12/12 between Pernell Whitaker and James Mcgirt?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (date VARCHAR, opponent VARCHAR, result VARCHAR, name VARCHAR)
SELECT date FROM table_name_87 WHERE result = "ud 12/12" AND name = "pernell whitaker" AND opponent = "james mcgirt"
Write a SQL query that answers the following question: What score was on 13 June 2004?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_50 WHERE date = "13 june 2004"
Write a SQL query that answers the following question: Who is the rider with less than 50 final position-tours and less than 11 final position-vuelta before 2008?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (rider VARCHAR, year VARCHAR, final_position___tour VARCHAR, final_position___vuelta VARCHAR)
SELECT rider FROM table_name_50 WHERE final_position___tour < 50 AND final_position___vuelta < 11 AND year < 2008