instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: Name the sum of points for chassis of brm p160e and year more than 1974
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (points INTEGER, chassis VARCHAR, year VARCHAR)
SELECT SUM(points) FROM table_name_32 WHERE chassis = "brm p160e" AND year > 1974
Write a SQL query that answers the following question: What is the chassis after 1991?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (chassis VARCHAR, year INTEGER)
SELECT chassis FROM table_name_64 WHERE year > 1991
Write a SQL query that answers the following question: What are the average points after 1992?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (points INTEGER, year INTEGER)
SELECT AVG(points) FROM table_name_54 WHERE year > 1992
Write a SQL query that answers the following question: What is the sum of points in 1991, for footwork a11c chassis?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (points INTEGER, year VARCHAR, chassis VARCHAR)
SELECT SUM(points) FROM table_name_29 WHERE year = 1991 AND chassis = "footwork a11c"
Write a SQL query that answers the following question: How many points does an entrant of Martini Racing, the engine of an Alfa Romeo flat-12 a chassis of brabham bt45, and the year 1976 have?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (points VARCHAR, year VARCHAR, chassis VARCHAR, entrant VARCHAR, engine VARCHAR)
SELECT COUNT(points) FROM table_name_43 WHERE entrant = "martini racing" AND engine = "alfa romeo flat-12" AND chassis = "brabham bt45" AND year = 1976
Write a SQL query that answers the following question: Which chassis is from 1974 and was an entrant of Goldie Hexagon racing?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (chassis VARCHAR, year VARCHAR, entrant VARCHAR)
SELECT chassis FROM table_name_35 WHERE year = 1974 AND entrant = "goldie hexagon racing"
Write a SQL query that answers the following question: What is the average points of a Cosworth v8 engine in 1973.
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (points INTEGER, engine VARCHAR, year VARCHAR)
SELECT AVG(points) FROM table_name_23 WHERE engine = "cosworth v8" AND year = 1973
Write a SQL query that answers the following question: Which chassis has an Alfa Romeo flat-12 engine.
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (chassis VARCHAR, engine VARCHAR)
SELECT chassis FROM table_name_76 WHERE engine = "alfa romeo flat-12"
Write a SQL query that answers the following question: What was the score of the game that had an attendance of 32,036?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (score VARCHAR, attendance VARCHAR)
SELECT score FROM table_name_87 WHERE attendance = "32,036"
Write a SQL query that answers the following question: On what date did the result leave the team with a record of 46-34?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_4 WHERE record = "46-34"
Write a SQL query that answers the following question: Name the opponent with round of 1 and time of n/a
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (opponent VARCHAR, round VARCHAR, time VARCHAR)
SELECT opponent FROM table_name_37 WHERE round = "1" AND time = "n/a"
Write a SQL query that answers the following question: Name the record with opponent of christian nielson
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (record VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_71 WHERE opponent = "christian nielson"
Write a SQL query that answers the following question: Name the opponent with decision
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (opponent VARCHAR, method VARCHAR)
SELECT opponent FROM table_name_59 WHERE method = "decision"
Write a SQL query that answers the following question: What was the 3rd place value in 2011?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (year VARCHAR)
SELECT 3 AS rd_place FROM table_name_53 WHERE year = "2011"
Write a SQL query that answers the following question: Name the tries for points against of 583
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (tries_for VARCHAR, points_against VARCHAR)
SELECT tries_for FROM table_name_92 WHERE points_against = "583"
Write a SQL query that answers the following question: Nam the points for when tries for is 91 and played of 22
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (points_for VARCHAR, played VARCHAR, tries_for VARCHAR)
SELECT points_for FROM table_name_73 WHERE played = "22" AND tries_for = "91"
Write a SQL query that answers the following question: Name the drawn for tries for of 42
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (drawn VARCHAR, tries_for VARCHAR)
SELECT drawn FROM table_name_95 WHERE tries_for = "42"
Write a SQL query that answers the following question: Name the Drawn for tries against of 36 and points of 66
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (drawn VARCHAR, tries_against VARCHAR, points VARCHAR)
SELECT drawn FROM table_name_60 WHERE tries_against = "36" AND points = "66"
Write a SQL query that answers the following question: Name the Try bonus with lost of 10
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (try_bonus VARCHAR, lost VARCHAR)
SELECT try_bonus FROM table_name_92 WHERE lost = "10"
Write a SQL query that answers the following question: Name the points for when points against is of 450
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (points_for VARCHAR, points_against VARCHAR)
SELECT points_for FROM table_name_97 WHERE points_against = "450"
Write a SQL query that answers the following question: What was the 1st leg when Team 2 was Aurora?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (team_2 VARCHAR)
SELECT 1 AS st_leg FROM table_name_3 WHERE team_2 = "aurora"
Write a SQL query that answers the following question: What was the 2nd leg when Team 1 was Chicago Croatian?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (team_1 VARCHAR)
SELECT 2 AS nd_leg FROM table_name_57 WHERE team_1 = "chicago croatian"
Write a SQL query that answers the following question: Who was Team 2 when Team 1 was América?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (team_2 VARCHAR, team_1 VARCHAR)
SELECT team_2 FROM table_name_88 WHERE team_1 = "américa"
Write a SQL query that answers the following question: Which nationality do the Montreal Canadiens belong to with a pick# of 25?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (nationality VARCHAR, nhl_team VARCHAR, pick__number VARCHAR)
SELECT nationality FROM table_name_55 WHERE nhl_team = "montreal canadiens" AND pick__number = "25"
Write a SQL query that answers the following question: What is the pick# for the California Golden Seals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (pick__number VARCHAR, nhl_team VARCHAR)
SELECT pick__number FROM table_name_92 WHERE nhl_team = "california golden seals"
Write a SQL query that answers the following question: What was the Goal in Stade Roi Baudouin, Brussels?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (goal INTEGER, venue VARCHAR)
SELECT AVG(goal) FROM table_name_81 WHERE venue = "stade roi baudouin, brussels"
Write a SQL query that answers the following question: What Venue had 2 or more Goals in a Friendly Competition?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (venue VARCHAR, competition VARCHAR, goal VARCHAR)
SELECT venue FROM table_name_48 WHERE competition = "friendly" AND goal > 2
Write a SQL query that answers the following question: Which Site that has a Sex and other data of old male?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (site INTEGER, sex_and_other_data VARCHAR)
SELECT MAX(site) FROM table_name_42 WHERE sex_and_other_data = "old male"
Write a SQL query that answers the following question: What is the age group for figure skating?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (age_groups VARCHAR, sport VARCHAR)
SELECT age_groups FROM table_name_40 WHERE sport = "figure skating"
Write a SQL query that answers the following question: what is the sport when the age group is 21 or younger and the competition name is world youth netball championships?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (sport VARCHAR, age_groups VARCHAR, competition_name VARCHAR)
SELECT sport FROM table_name_58 WHERE age_groups = "21 or younger" AND competition_name = "world youth netball championships"
Write a SQL query that answers the following question: what is the competition name when the age group is 17 or younger for athletics?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (competition_name VARCHAR, age_groups VARCHAR, sport VARCHAR)
SELECT competition_name FROM table_name_42 WHERE age_groups = "17 or younger" AND sport = "athletics"
Write a SQL query that answers the following question: what is the competing entities when the age group is 18 or younger, held every is one year and the sport is table tennis?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (competing_entities VARCHAR, sport VARCHAR, age_groups VARCHAR, held_every VARCHAR)
SELECT competing_entities FROM table_name_37 WHERE age_groups = "18 or younger" AND held_every = "one year" AND sport = "table tennis"
Write a SQL query that answers the following question: What result did Janis Ian have in the episode of top 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (result VARCHAR, episode VARCHAR, original_artist VARCHAR)
SELECT result FROM table_name_9 WHERE episode = "top 3" AND original_artist = "janis ian"
Write a SQL query that answers the following question: What was the result of the singer with the top 8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (result VARCHAR, episode VARCHAR)
SELECT result FROM table_name_39 WHERE episode = "top 8"
Write a SQL query that answers the following question: What song was chosen for the episode with the top 8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (song_choice VARCHAR, episode VARCHAR)
SELECT song_choice FROM table_name_72 WHERE episode = "top 8"
Write a SQL query that answers the following question: Which episode had Hoagy carmichael safe with an order of 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (episode VARCHAR, original_artist VARCHAR, result VARCHAR, order__number VARCHAR)
SELECT episode FROM table_name_10 WHERE result = "safe" AND order__number = "5" AND original_artist = "hoagy carmichael"
Write a SQL query that answers the following question: In what order were the Bee Gees as the artist when it was a result of bottom 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (order__number VARCHAR, result VARCHAR, original_artist VARCHAR)
SELECT order__number FROM table_name_30 WHERE result = "bottom 3" AND original_artist = "bee gees"
Write a SQL query that answers the following question: Name the total number of drawn for danish and mathias
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (draw VARCHAR, language VARCHAR, artist VARCHAR)
SELECT COUNT(draw) FROM table_name_37 WHERE language = "danish" AND artist = "mathias"
Write a SQL query that answers the following question: Name the result for linn nygård
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (result VARCHAR, artist VARCHAR)
SELECT result FROM table_name_63 WHERE artist = "linn nygård"
Write a SQL query that answers the following question: Name the song for draw less than 7 and artists of martin & johannes
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (song VARCHAR, draw VARCHAR, artist VARCHAR)
SELECT song FROM table_name_42 WHERE draw < 7 AND artist = "martin & johannes"
Write a SQL query that answers the following question: Name the NP/NNP for ACDP of 1 and others of 1 and DP/DA of 5
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (np___nnp VARCHAR, dp___da VARCHAR, acdp VARCHAR, others VARCHAR)
SELECT np___nnp FROM table_name_73 WHERE acdp = 1 AND others = 1 AND dp___da = 5
Write a SQL query that answers the following question: Which player won less than $335?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (player VARCHAR, money___$__ INTEGER)
SELECT player FROM table_name_43 WHERE money___$__ < 335
Write a SQL query that answers the following question: What was the place ranking for the player from Australia?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (place VARCHAR, country VARCHAR)
SELECT place FROM table_name_43 WHERE country = "australia"
Write a SQL query that answers the following question: How much money did the player Ed Oliver win?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (money___ INTEGER, player VARCHAR)
SELECT SUM(money___) AS $__ FROM table_name_74 WHERE player = "ed oliver"
Write a SQL query that answers the following question: What competition did Parramatta Eels join after 1982?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (competition VARCHAR, year VARCHAR, opponent VARCHAR)
SELECT competition FROM table_name_54 WHERE year > 1982 AND opponent = "parramatta eels"
Write a SQL query that answers the following question: When did nswrfl has a score of 8-21?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (year VARCHAR, competition VARCHAR, score VARCHAR)
SELECT year FROM table_name_34 WHERE competition = "nswrfl" AND score = "8-21"
Write a SQL query that answers the following question: How many years have less than 28,505 attendance?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (year INTEGER, attendance INTEGER)
SELECT AVG(year) FROM table_name_80 WHERE attendance < 28 OFFSET 505
Write a SQL query that answers the following question: What Date is listed for the Region of France and Catalog of 82876-70291-2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (date VARCHAR, region VARCHAR, catalog VARCHAR)
SELECT date FROM table_name_48 WHERE region = "france" AND catalog = "82876-70291-2"
Write a SQL query that answers the following question: Which Format is listed that has a Region of China?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (format VARCHAR, region VARCHAR)
SELECT format FROM table_name_93 WHERE region = "china"
Write a SQL query that answers the following question: What's the Date for the Label of Bertelsmann Music group and has a Region of Europe?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (date VARCHAR, label VARCHAR, region VARCHAR)
SELECT date FROM table_name_36 WHERE label = "bertelsmann music group" AND region = "europe"
Write a SQL query that answers the following question: How many people attended the Royals game with a score of 17 - 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (attendance INTEGER, opponent VARCHAR, score VARCHAR)
SELECT SUM(attendance) FROM table_name_17 WHERE opponent = "royals" AND score = "17 - 6"
Write a SQL query that answers the following question: What was the result of April 27's game?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_21 WHERE date = "april 27"
Write a SQL query that answers the following question: For the strategy game in 1992, how many players were allowed per console?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (players_per_console VARCHAR, genre VARCHAR, year VARCHAR)
SELECT players_per_console FROM table_name_51 WHERE genre = "strategy" AND year = 1992
Write a SQL query that answers the following question: Which Genre was published by Atari and developed by NuFX in 1991?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (genre VARCHAR, developer VARCHAR, publisher VARCHAR, year VARCHAR)
SELECT genre FROM table_name_72 WHERE publisher = "atari" AND year = 1991 AND developer = "nufx"
Write a SQL query that answers the following question: Which year was the game developed by Music Comp in?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (year VARCHAR, developer VARCHAR)
SELECT year FROM table_name_88 WHERE developer = "music comp"
Write a SQL query that answers the following question: Name the record for august 31
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_65 WHERE date = "august 31"
Write a SQL query that answers the following question: Name the opponent for august 6
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_79 WHERE date = "august 6"
Write a SQL query that answers the following question: Name the opponent with record of 52-58
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_10 WHERE record = "52-58"
Write a SQL query that answers the following question: What Class has a Quantity made of 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (class VARCHAR, quantity_made VARCHAR)
SELECT class FROM table_name_68 WHERE quantity_made = 5
Write a SQL query that answers the following question: What is listed as the Date made with a Quantity made of 13?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (date_made VARCHAR, quantity_made VARCHAR)
SELECT date_made FROM table_name_5 WHERE quantity_made = 13
Write a SQL query that answers the following question: What year shows 4 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (year VARCHAR, points VARCHAR)
SELECT year FROM table_name_65 WHERE points = 4
Write a SQL query that answers the following question: What is the most points when the entrant was Jaguar racing earlier than 2001?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (points INTEGER, entrant VARCHAR, year VARCHAR)
SELECT MAX(points) FROM table_name_25 WHERE entrant = "jaguar racing" AND year < 2001
Write a SQL query that answers the following question: What is the entrant in 1999?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (entrant VARCHAR, year VARCHAR)
SELECT entrant FROM table_name_64 WHERE year = 1999
Write a SQL query that answers the following question: What is the most points when the chassis was Jaguar R3 later than 2002?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (points INTEGER, chassis VARCHAR, year VARCHAR)
SELECT MAX(points) FROM table_name_42 WHERE chassis = "jaguar r3" AND year > 2002
Write a SQL query that answers the following question: What is the sum of skin depth with a resistivity of 1.12 and a relative permeability larger than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (_inches VARCHAR, skin_depth INTEGER, resistivity__10_−6_ohm_inches_ VARCHAR, relative_permeability VARCHAR)
SELECT SUM(skin_depth), _inches FROM table_name_30 WHERE resistivity__10_−6_ohm_inches_ = 1.12 AND relative_permeability > 1
Write a SQL query that answers the following question: How much does Jonathan Bender weigh?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (weight VARCHAR, player VARCHAR)
SELECT weight FROM table_name_2 WHERE player = "jonathan bender"
Write a SQL query that answers the following question: Of those with a height of 7-0, who weighs the most?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (weight INTEGER, height VARCHAR)
SELECT MAX(weight) FROM table_name_6 WHERE height = "7-0"
Write a SQL query that answers the following question: What does DeShawn Stevenson weigh?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (weight INTEGER, player VARCHAR)
SELECT SUM(weight) FROM table_name_52 WHERE player = "deshawn stevenson"
Write a SQL query that answers the following question: Name the highest roll for coed and authority of state integrated with sacred heart school
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (roll INTEGER, name VARCHAR, gender VARCHAR, authority VARCHAR)
SELECT MAX(roll) FROM table_name_96 WHERE gender = "coed" AND authority = "state integrated" AND name = "sacred heart school"
Write a SQL query that answers the following question: What is the displacement of the engine that has a Redline rpm higher than 4750, from 2005?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (displacement VARCHAR, redline__rpm_ VARCHAR, year VARCHAR)
SELECT displacement FROM table_name_29 WHERE redline__rpm_ > 4750 AND year = 2005
Write a SQL query that answers the following question: From what year is the engine with engine code M57D30?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (year VARCHAR, engine_code VARCHAR)
SELECT year FROM table_name_21 WHERE engine_code = "m57d30"
Write a SQL query that answers the following question: What is the average Redline RPM of engines with engine code M57TUD30, made after 2002?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (redline__rpm_ INTEGER, engine_code VARCHAR, year VARCHAR)
SELECT AVG(redline__rpm_) FROM table_name_49 WHERE engine_code = "m57tud30" AND year > 2002
Write a SQL query that answers the following question: What was the result against Beijing Hyundai?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (result_f_a VARCHAR, opponents VARCHAR)
SELECT result_f_a FROM table_name_43 WHERE opponents = "beijing hyundai"
Write a SQL query that answers the following question: Was the game with Kashima antlers at home or away?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (h___a VARCHAR, opponents VARCHAR)
SELECT h___a FROM table_name_86 WHERE opponents = "kashima antlers"
Write a SQL query that answers the following question: What date was the game against Royal Antwerp?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (date VARCHAR, opponents VARCHAR)
SELECT date FROM table_name_87 WHERE opponents = "royal antwerp"
Write a SQL query that answers the following question: What Records Time is 3:38?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (record VARCHAR, time VARCHAR)
SELECT record FROM table_name_19 WHERE time = "3:38"
Write a SQL query that answers the following question: What Country has a number smaller than 56 in 2005 and of 14 in 2006?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (Id VARCHAR)
SELECT COUNT(2004) FROM table_name_47 WHERE 2005 < 56 AND 2006 = 14
Write a SQL query that answers the following question: What Country has a number smaller than 3 in 2004 and larger than 1 in 2005?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (Id VARCHAR)
SELECT COUNT(2006) FROM table_name_31 WHERE 2004 < 3 AND 2005 > 1
Write a SQL query that answers the following question: The building with 48 floors has an address in Las Vegas of what?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (street_address VARCHAR, floors VARCHAR)
SELECT street_address FROM table_name_2 WHERE floors = 48
Write a SQL query that answers the following question: The Palazzo's street address is listed as what?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (street_address VARCHAR, name VARCHAR)
SELECT street_address FROM table_name_73 WHERE name = "the palazzo"
Write a SQL query that answers the following question: What's the title of the song by Winger?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (song_title VARCHAR, artist VARCHAR)
SELECT song_title FROM table_name_83 WHERE artist = "winger"
Write a SQL query that answers the following question: What shows for 3rd place when Runner-up shows as runner-up?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (runner_up VARCHAR)
SELECT 3 AS rd_place FROM table_name_36 WHERE runner_up = "runner-up"
Write a SQL query that answers the following question: What year shows as Runner-up of england (24 pts)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (year VARCHAR, runner_up VARCHAR)
SELECT year FROM table_name_6 WHERE runner_up = "england (24 pts)"
Write a SQL query that answers the following question: What shows for 3rd place when the venue was Pardubice?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (venue VARCHAR)
SELECT 3 AS rd_place FROM table_name_81 WHERE venue = "pardubice"
Write a SQL query that answers the following question: what shows for 3rd place in 1990?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (year VARCHAR)
SELECT 3 AS rd_place FROM table_name_60 WHERE year = "1990"
Write a SQL query that answers the following question: What year was the venue Landshut?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (year VARCHAR, venue VARCHAR)
SELECT year FROM table_name_51 WHERE venue = "landshut"
Write a SQL query that answers the following question: What is the record when Tampa Bay is the visitor?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (record VARCHAR, visitor VARCHAR)
SELECT record FROM table_name_93 WHERE visitor = "tampa bay"
Write a SQL query that answers the following question: What is the date when Joseph is the decision and San Jose is the home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (date VARCHAR, decision VARCHAR, home VARCHAR)
SELECT date FROM table_name_40 WHERE decision = "joseph" AND home = "san jose"
Write a SQL query that answers the following question: What is the date of the match when Detroit is the home team and Colorado is the visiting team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (date VARCHAR, home VARCHAR, visitor VARCHAR)
SELECT date FROM table_name_21 WHERE home = "detroit" AND visitor = "colorado"
Write a SQL query that answers the following question: How many people were in attendance in a week over 4 on December 6, 1981?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (attendance VARCHAR, week VARCHAR, date VARCHAR)
SELECT COUNT(attendance) FROM table_name_76 WHERE week > 4 AND date = "december 6, 1981"
Write a SQL query that answers the following question: Name the least game for october 10 at shibe park
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (game INTEGER, location VARCHAR, date VARCHAR)
SELECT MIN(game) FROM table_name_5 WHERE location = "shibe park" AND date = "october 10"
Write a SQL query that answers the following question: What is the lowest bronze total that has a rank of 1 and more than 34 total medals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (bronze INTEGER, rank VARCHAR, total VARCHAR)
SELECT MIN(bronze) FROM table_name_83 WHERE rank = "1" AND total > 34
Write a SQL query that answers the following question: What is the lowest bronze total that has a silver total of 13 medals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (bronze INTEGER, silver VARCHAR)
SELECT MIN(bronze) FROM table_name_72 WHERE silver = "13"
Write a SQL query that answers the following question: With Appearances larger than 1, what is the Wins for the Reno Aces Team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (wins INTEGER, team VARCHAR, appearances VARCHAR)
SELECT MIN(wins) FROM table_name_45 WHERE team = "reno aces" AND appearances > 1
Write a SQL query that answers the following question: For the Reno Aces, what are the Losses when they had 1 Appearances and a Winning Percentage of 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (losses INTEGER, team VARCHAR, appearances VARCHAR, winning_percentage VARCHAR)
SELECT SUM(losses) FROM table_name_54 WHERE appearances = 1 AND winning_percentage = 1 AND team = "reno aces"
Write a SQL query that answers the following question: In 2009, what Appearances had a Winning Percentage of less than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (appearances INTEGER, season_s_ VARCHAR, winning_percentage VARCHAR)
SELECT AVG(appearances) FROM table_name_30 WHERE season_s_ = "2009" AND winning_percentage < 0
Write a SQL query that answers the following question: What is the chassis for the year of 1969?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (chassis VARCHAR, year VARCHAR)
SELECT chassis FROM table_name_85 WHERE year = 1969
Write a SQL query that answers the following question: Which Occupation has a Rank of 5th, a Gender of M, with a Residence of orono?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (occupation VARCHAR, residence VARCHAR, rank VARCHAR, gender VARCHAR)
SELECT occupation FROM table_name_71 WHERE rank = "5th" AND gender = "m" AND residence = "orono"
Write a SQL query that answers the following question: Which Gender has a Residence of Haliburton?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (gender VARCHAR, residence VARCHAR)
SELECT gender FROM table_name_28 WHERE residence = "haliburton"
Write a SQL query that answers the following question: What's the lowest in Votes with a Rank of 5th, has an Occupation of retired, along with a Riding of Brant?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (votes INTEGER, riding VARCHAR, rank VARCHAR, occupation VARCHAR)
SELECT MIN(votes) FROM table_name_97 WHERE rank = "5th" AND occupation = "retired" AND riding = "brant"