instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: What is the Attendance on 11/10/1928?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_42 WHERE date = "11/10/1928"
Write a SQL query that answers the following question: Who was the Winner at Campbelltown Sports Stadium?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (winner VARCHAR, venue VARCHAR)
SELECT winner FROM table_name_74 WHERE venue = "campbelltown sports stadium"
Write a SQL query that answers the following question: When Sydney Roosters won with a Crown of more than 7,426, what was the Venue?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (venue VARCHAR, winner VARCHAR, crowd VARCHAR)
SELECT venue FROM table_name_74 WHERE winner = "sydney roosters" AND crowd > 7 OFFSET 426
Write a SQL query that answers the following question: What was the second leg score from the group stage on matchday 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (second_leg VARCHAR, phase VARCHAR, round VARCHAR)
SELECT second_leg FROM table_name_35 WHERE phase = "group stage" AND round = "matchday 5"
Write a SQL query that answers the following question: what year did enrique alciati make a statue
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (year_erected VARCHAR, artist VARCHAR)
SELECT year_erected FROM table_name_51 WHERE artist = "enrique alciati"
Write a SQL query that answers the following question: what artist cam from uruguay
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (artist VARCHAR, country VARCHAR)
SELECT artist FROM table_name_81 WHERE country = "uruguay"
Write a SQL query that answers the following question: When did mika heinonen susanna dahlberg win mixed doubles?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (year INTEGER, mixed_doubles VARCHAR)
SELECT AVG(year) FROM table_name_55 WHERE mixed_doubles = "mika heinonen susanna dahlberg"
Write a SQL query that answers the following question: Score of 0–3 (11–21, 14–21) had what outcome?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (outcome VARCHAR, score VARCHAR)
SELECT outcome FROM table_name_32 WHERE score = "0–3 (11–21, 14–21)"
Write a SQL query that answers the following question: Venue of thessaloniki (without participation) had what score?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (score VARCHAR, venue VARCHAR)
SELECT score FROM table_name_99 WHERE venue = "thessaloniki (without participation)"
Write a SQL query that answers the following question: Outcome of 13, and a Year of 2007 happened in what venue?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (venue VARCHAR, outcome VARCHAR, year VARCHAR)
SELECT venue FROM table_name_51 WHERE outcome = "13" AND year = "2007"
Write a SQL query that answers the following question: Which Eruptions have a Location of pacific ring of fire, and a Volcanic Explosivity Index of 6, and a Country of peru?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (eruptions VARCHAR, country VARCHAR, location VARCHAR, volcanic_explosivity_index VARCHAR)
SELECT eruptions FROM table_name_51 WHERE location = "pacific ring of fire" AND volcanic_explosivity_index = "6" AND country = "peru"
Write a SQL query that answers the following question: How many fatalities does Italy have?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (fatalities VARCHAR, country VARCHAR)
SELECT fatalities FROM table_name_50 WHERE country = "italy"
Write a SQL query that answers the following question: How many years have a Location of pacific ring of fire, and Eruptions of pinatubo?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (year INTEGER, location VARCHAR, eruptions VARCHAR)
SELECT SUM(year) FROM table_name_22 WHERE location = "pacific ring of fire" AND eruptions = "pinatubo"
Write a SQL query that answers the following question: What is the Standings of Eintracht Braunschweig?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (standings VARCHAR, champions VARCHAR)
SELECT standings FROM table_name_28 WHERE champions = "eintracht braunschweig"
Write a SQL query that answers the following question: Year larger than 2001 has what average points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (points INTEGER, year INTEGER)
SELECT AVG(points) FROM table_name_92 WHERE year > 2001
Write a SQL query that answers the following question: Team of Honda and a point total of 238 is what highest year?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (year INTEGER, team VARCHAR, points VARCHAR)
SELECT MAX(year) FROM table_name_69 WHERE team = "honda" AND points = 238
Write a SQL query that answers the following question: Wins of 0 involves what team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (team VARCHAR, wins VARCHAR)
SELECT team FROM table_name_96 WHERE wins = 0
Write a SQL query that answers the following question: what player has a pick of 5
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (player VARCHAR, pick VARCHAR)
SELECT player FROM table_name_75 WHERE pick = 5
Write a SQL query that answers the following question: Which District has a First elected of 1858, and a Result of retired republican gain, and an Incumbent of william millward?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (district VARCHAR, incumbent VARCHAR, first_elected VARCHAR, result VARCHAR)
SELECT district FROM table_name_2 WHERE first_elected = 1858 AND result = "retired republican gain" AND incumbent = "william millward"
Write a SQL query that answers the following question: Which Result has a District of pennsylvania 13?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (result VARCHAR, district VARCHAR)
SELECT result FROM table_name_5 WHERE district = "pennsylvania 13"
Write a SQL query that answers the following question: Which First elected is the lowest one that has an Incumbent of william stewart?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (first_elected INTEGER, incumbent VARCHAR)
SELECT MIN(first_elected) FROM table_name_9 WHERE incumbent = "william stewart"
Write a SQL query that answers the following question: Who was the Player when College/Junior/Club Team (League) was regina pats (whl)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (player VARCHAR, college_junior_club_team__league_ VARCHAR)
SELECT player FROM table_name_24 WHERE college_junior_club_team__league_ = "regina pats (whl)"
Write a SQL query that answers the following question: What is the date of the game with an attendance larger than 62,491?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (date VARCHAR, attendance INTEGER)
SELECT date FROM table_name_55 WHERE attendance > 62 OFFSET 491
Write a SQL query that answers the following question: What is the attendance of the game on week 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (attendance VARCHAR, week VARCHAR)
SELECT attendance FROM table_name_10 WHERE week = 4
Write a SQL query that answers the following question: How many extra points are there that Herrnstein had with less than 2 touchdowns and less than 0 field goals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (extra_points INTEGER, field_goals VARCHAR, touchdowns VARCHAR, player VARCHAR)
SELECT AVG(extra_points) FROM table_name_35 WHERE touchdowns < 2 AND player = "herrnstein" AND field_goals < 0
Write a SQL query that answers the following question: How many touchdowns are there that has field goals less than 0 and 0 extra points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (touchdowns INTEGER, extra_points VARCHAR, field_goals VARCHAR)
SELECT SUM(touchdowns) FROM table_name_53 WHERE extra_points = 0 AND field_goals < 0
Write a SQL query that answers the following question: How many field goals are there that have 8 touchdowns and more than 49 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (field_goals INTEGER, touchdowns VARCHAR, points VARCHAR)
SELECT SUM(field_goals) FROM table_name_91 WHERE touchdowns = 8 AND points > 49
Write a SQL query that answers the following question: What's the number of touchdowns that Snow made that had 0 field goals, more than 5 points, and more than 0 extra points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (touchdowns INTEGER, extra_points VARCHAR, player VARCHAR, points VARCHAR, field_goals VARCHAR)
SELECT MIN(touchdowns) FROM table_name_66 WHERE points > 5 AND field_goals = 0 AND player = "snow" AND extra_points > 0
Write a SQL query that answers the following question: For an IATA of MLE, what is the ICAO?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (icao VARCHAR, iata VARCHAR)
SELECT icao FROM table_name_21 WHERE iata = "mle"
Write a SQL query that answers the following question: For an ICAO of VCCT, what is the IATA?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (iata VARCHAR, icao VARCHAR)
SELECT iata FROM table_name_66 WHERE icao = "vcct"
Write a SQL query that answers the following question: Which city has an ICAO of VCCJ?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (city VARCHAR, icao VARCHAR)
SELECT city FROM table_name_96 WHERE icao = "vccj"
Write a SQL query that answers the following question: Which ICAO is found in Vavuniya?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (icao VARCHAR, city VARCHAR)
SELECT icao FROM table_name_97 WHERE city = "vavuniya"
Write a SQL query that answers the following question: Which country has Weerawila Airport?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (country VARCHAR, airport VARCHAR)
SELECT country FROM table_name_76 WHERE airport = "weerawila airport"
Write a SQL query that answers the following question: Which opponent has april 1 as the date?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_39 WHERE date = "april 1"
Write a SQL query that answers the following question: What opponent has tomko (1-1) as a loss?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (opponent VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_24 WHERE loss = "tomko (1-1)"
Write a SQL query that answers the following question: What opponent has 8-10 as the record?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_76 WHERE record = "8-10"
Write a SQL query that answers the following question: Whcih was the Class AAA in school year 2006-07?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (class_aAA VARCHAR, school_year VARCHAR)
SELECT class_aAA FROM table_name_85 WHERE school_year = "2006-07"
Write a SQL query that answers the following question: What team was class AA in years 1994-95?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (class_aA VARCHAR, school_year VARCHAR)
SELECT class_aA FROM table_name_52 WHERE school_year = "1994-95"
Write a SQL query that answers the following question: Who was Class AA in School Year 1994-95?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (class_aA VARCHAR, school_year VARCHAR)
SELECT class_aA FROM table_name_26 WHERE school_year = "1994-95"
Write a SQL query that answers the following question: What's the date of the game that has the Bulls as a visiting team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (date VARCHAR, visitor VARCHAR)
SELECT date FROM table_name_48 WHERE visitor = "bulls"
Write a SQL query that answers the following question: What is the average game number that took place after February 13 against the Toronto Maple Leafs and more than 47 points were scored?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (game INTEGER, points VARCHAR, february VARCHAR, opponent VARCHAR)
SELECT AVG(game) FROM table_name_3 WHERE february > 13 AND opponent = "toronto maple leafs" AND points > 47
Write a SQL query that answers the following question: Who was the opponent at the game at Sullivan Stadium before week 11?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (opponent VARCHAR, week VARCHAR, game_site VARCHAR)
SELECT opponent FROM table_name_30 WHERE week < 11 AND game_site = "sullivan stadium"
Write a SQL query that answers the following question: What is the years coached by the person with a win percentage of 0.667 and 380 losses?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (years VARCHAR, pct VARCHAR, lost VARCHAR)
SELECT years FROM table_name_25 WHERE pct = 0.667 AND lost = 380
Write a SQL query that answers the following question: What is the average percent for the coach from 1905 and more than 7 losses?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (pct INTEGER, years VARCHAR, lost VARCHAR)
SELECT AVG(pct) FROM table_name_97 WHERE years = "1905" AND lost > 7
Write a SQL query that answers the following question: How many percentages have 20 losses and more than 1 season?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (pct VARCHAR, lost VARCHAR, seasons VARCHAR)
SELECT COUNT(pct) FROM table_name_17 WHERE lost = 20 AND seasons > 1
Write a SQL query that answers the following question: What home has February 10 as the date?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (home VARCHAR, date VARCHAR)
SELECT home FROM table_name_67 WHERE date = "february 10"
Write a SQL query that answers the following question: What date has ny islanders as the visitor?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (date VARCHAR, visitor VARCHAR)
SELECT date FROM table_name_66 WHERE visitor = "ny islanders"
Write a SQL query that answers the following question: What score has February 10 as the date?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_57 WHERE date = "february 10"
Write a SQL query that answers the following question: Name the course for 24 july
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (course VARCHAR, date VARCHAR)
SELECT course FROM table_name_29 WHERE date = "24 july"
Write a SQL query that answers the following question: Name the course for team time trial
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (course VARCHAR, type VARCHAR)
SELECT course FROM table_name_58 WHERE type = "team time trial"
Write a SQL query that answers the following question: Name the winner for rest day for 13 july
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (winner VARCHAR, course VARCHAR, date VARCHAR)
SELECT winner FROM table_name_98 WHERE course = "rest day" AND date = "13 july"
Write a SQL query that answers the following question: Shawn Michaels entered the elimination chamber in what position?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (entered INTEGER, wrestler VARCHAR)
SELECT SUM(entered) FROM table_name_86 WHERE wrestler = "shawn michaels"
Write a SQL query that answers the following question: Who Eliminated Kurt Angle?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (eliminated_by VARCHAR, wrestler VARCHAR)
SELECT eliminated_by FROM table_name_49 WHERE wrestler = "kurt angle"
Write a SQL query that answers the following question: Who Eliminated Kane?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (eliminated_by VARCHAR, wrestler VARCHAR)
SELECT eliminated_by FROM table_name_63 WHERE wrestler = "kane"
Write a SQL query that answers the following question: What is the sum of all gold medals for Algeria when total medals is less than 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (gold INTEGER, nation VARCHAR, total VARCHAR)
SELECT SUM(gold) FROM table_name_98 WHERE nation = "algeria" AND total < 3
Write a SQL query that answers the following question: what is the population of Valencia, Spain?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (population INTEGER, country VARCHAR, urban_area VARCHAR)
SELECT AVG(population) FROM table_name_56 WHERE country = "spain" AND urban_area = "valencia"
Write a SQL query that answers the following question: which year holds rank 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (year INTEGER, rank VARCHAR)
SELECT MAX(year) FROM table_name_89 WHERE rank = "2"
Write a SQL query that answers the following question: with name meridian condominiums what is number of floors?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (floors INTEGER, name VARCHAR)
SELECT AVG(floors) FROM table_name_19 WHERE name = "meridian condominiums"
Write a SQL query that answers the following question: with rank of 31 what is the year?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (year VARCHAR, rank VARCHAR)
SELECT COUNT(year) FROM table_name_48 WHERE rank = "31"
Write a SQL query that answers the following question: What was the date of the match against the visiting team, Toronto?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (date VARCHAR, visitor VARCHAR)
SELECT date FROM table_name_78 WHERE visitor = "toronto"
Write a SQL query that answers the following question: Who played the home team during the game on January 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (home VARCHAR, date VARCHAR)
SELECT home FROM table_name_56 WHERE date = "january 6"
Write a SQL query that answers the following question: What was the cougars record during the game where Boston were the visitors?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (record VARCHAR, visitor VARCHAR)
SELECT record FROM table_name_88 WHERE visitor = "boston"
Write a SQL query that answers the following question: What's the lowest Drawn that has a Lost that's less than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (drawn INTEGER, lost INTEGER)
SELECT MIN(drawn) FROM table_name_1 WHERE lost < 0
Write a SQL query that answers the following question: What's the total Lost with Games that's less than 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (lost INTEGER, games INTEGER)
SELECT SUM(lost) FROM table_name_23 WHERE games < 4
Write a SQL query that answers the following question: What's the total of Games with a Lost that's larger than 2, and has Points that's smaller than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (games INTEGER, lost VARCHAR, points VARCHAR)
SELECT SUM(games) FROM table_name_75 WHERE lost > 2 AND points < 0
Write a SQL query that answers the following question: What's the Lost average that has a Drawn less than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (lost INTEGER, drawn INTEGER)
SELECT AVG(lost) FROM table_name_19 WHERE drawn < 0
Write a SQL query that answers the following question: What record has @ ottawa senators as the opponent?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (record VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_93 WHERE opponent = "@ ottawa senators"
Write a SQL query that answers the following question: What game has 28 points, and tampa bay lightning as the opponent?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (game VARCHAR, points VARCHAR, opponent VARCHAR)
SELECT game FROM table_name_50 WHERE points = 28 AND opponent = "tampa bay lightning"
Write a SQL query that answers the following question: What is the average points that have a December less than 6, with a game greater than 26?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (points INTEGER, december VARCHAR, game VARCHAR)
SELECT AVG(points) FROM table_name_17 WHERE december < 6 AND game > 26
Write a SQL query that answers the following question: Who was the opponent at the game with a loss of Sele (0-1)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (opponent VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_36 WHERE loss = "sele (0-1)"
Write a SQL query that answers the following question: Record of 42–16–8, and a March larger than 5 has what average points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (points INTEGER, record VARCHAR, march VARCHAR)
SELECT AVG(points) FROM table_name_95 WHERE record = "42–16–8" AND march > 5
Write a SQL query that answers the following question: Points smaller than 96, and a Record of 43–16–8 belongs to what game?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (game VARCHAR, points VARCHAR, record VARCHAR)
SELECT game FROM table_name_30 WHERE points < 96 AND record = "43–16–8"
Write a SQL query that answers the following question: Game smaller than 70, and a Record of 43–16–8 is what opponent?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (opponent VARCHAR, game VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_39 WHERE game < 70 AND record = "43–16–8"
Write a SQL query that answers the following question: Record of 44–18–8 involves which score?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_95 WHERE record = "44–18–8"
Write a SQL query that answers the following question: Which college is Kellen Davis from?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (college VARCHAR, player VARCHAR)
SELECT college FROM table_name_44 WHERE player = "kellen davis"
Write a SQL query that answers the following question: Which round's position is according to official website?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (round VARCHAR, position VARCHAR)
SELECT round FROM table_name_30 WHERE position = "according to official website"
Write a SQL query that answers the following question: Which position's round was 3 when pick was 70?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (position VARCHAR, round VARCHAR, pick VARCHAR)
SELECT position FROM table_name_29 WHERE round = "3" AND pick = "70"
Write a SQL query that answers the following question: Which pick's round was 5 when Kellen Davis was a player?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (pick VARCHAR, round VARCHAR, player VARCHAR)
SELECT pick FROM table_name_40 WHERE round = "5" AND player = "kellen davis"
Write a SQL query that answers the following question: Which college's pick was 14?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (college VARCHAR, pick VARCHAR)
SELECT college FROM table_name_86 WHERE pick = "14"
Write a SQL query that answers the following question: Which Rec has an Average smaller than 32, and a Touchdown smaller than 3, and an Opponent of oregon state?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (rec INTEGER, opponent VARCHAR, average VARCHAR, s_touchdown VARCHAR)
SELECT SUM(rec) FROM table_name_95 WHERE average < 32 AND s_touchdown < 3 AND opponent = "oregon state"
Write a SQL query that answers the following question: Which rec has Yards of 192, and a Touchdown smaller than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (rec INTEGER, yards VARCHAR, s_touchdown VARCHAR)
SELECT AVG(rec) FROM table_name_52 WHERE yards = 192 AND s_touchdown < 1
Write a SQL query that answers the following question: Which Opponent has Yards smaller than 197, and an Average smaller than 32, and a Year of 1966?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (opponent VARCHAR, year VARCHAR, yards VARCHAR, average VARCHAR)
SELECT opponent FROM table_name_95 WHERE yards < 197 AND average < 32 AND year = 1966
Write a SQL query that answers the following question: How many Touchdowns have a rec of 10, and an Opponent of oregon state, and an Average smaller than 19.7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (s_touchdown VARCHAR, average VARCHAR, rec VARCHAR, opponent VARCHAR)
SELECT COUNT(s_touchdown) FROM table_name_57 WHERE rec = 10 AND opponent = "oregon state" AND average < 19.7
Write a SQL query that answers the following question: Which Points have an Opponent of @ atlanta thrashers, and a Game smaller than 28?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (points INTEGER, opponent VARCHAR, game VARCHAR)
SELECT SUM(points) FROM table_name_2 WHERE opponent = "@ atlanta thrashers" AND game < 28
Write a SQL query that answers the following question: How many Points have a Game smaller than 37, and a Score of 2–3, and a December of 13?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (points VARCHAR, december VARCHAR, game VARCHAR, score VARCHAR)
SELECT COUNT(points) FROM table_name_98 WHERE game < 37 AND score = "2–3" AND december = 13
Write a SQL query that answers the following question: Which Game is the highest one that has a Score of 3–2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (game INTEGER, score VARCHAR)
SELECT MAX(game) FROM table_name_92 WHERE score = "3–2"
Write a SQL query that answers the following question: What spans were built in 1896?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (spans VARCHAR, built VARCHAR)
SELECT spans FROM table_name_73 WHERE built = "1896"
Write a SQL query that answers the following question: Who has a length of 71 ft?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (name VARCHAR, length__ft_ VARCHAR)
SELECT name FROM table_name_21 WHERE length__ft_ = 71
Write a SQL query that answers the following question: Where was the county of rockingham?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (location VARCHAR, county VARCHAR)
SELECT location FROM table_name_98 WHERE county = "rockingham"
Write a SQL query that answers the following question: What is the propulsion for the RB 04 earlier than 1962?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (propulsion VARCHAR, year VARCHAR, name VARCHAR)
SELECT propulsion FROM table_name_79 WHERE year < 1962 AND name = "rb 04"
Write a SQL query that answers the following question: What is the name of the anti-ship missile that had a turbojet propulsion that was launched by a surface, sub after 1985?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (name VARCHAR, launched_by VARCHAR, propulsion VARCHAR, year VARCHAR)
SELECT name FROM table_name_96 WHERE propulsion = "turbojet" AND year > 1985 AND launched_by = "surface, sub"
Write a SQL query that answers the following question: What country had an anti-ship missile that had a solid rocket propulsion?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (country VARCHAR, propulsion VARCHAR)
SELECT country FROM table_name_96 WHERE propulsion = "solid rocket"
Write a SQL query that answers the following question: How many seats in 2001 with a quantity greater than 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (number_of_seats VARCHAR, year VARCHAR, quantity VARCHAR)
SELECT COUNT(number_of_seats) FROM table_name_17 WHERE year = "2001" AND quantity > 4
Write a SQL query that answers the following question: What make and model of the diesel vehicle with a high floor type, bike capacity less than 3, and a quantity of 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (make_and_model VARCHAR, quantity VARCHAR, bicycle_capacity† VARCHAR, fuel_propulsion VARCHAR, floor_type VARCHAR)
SELECT make_and_model FROM table_name_67 WHERE fuel_propulsion = "diesel" AND floor_type = "high" AND bicycle_capacity† < 3 AND quantity = 4
Write a SQL query that answers the following question: What score has nashville predators as the opponent?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (score VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_91 WHERE opponent = "nashville predators"
Write a SQL query that answers the following question: What are the average points that have december 27?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (points INTEGER, december VARCHAR)
SELECT AVG(points) FROM table_name_36 WHERE december = 27
Write a SQL query that answers the following question: What record has points greater than 39, with 38 as the game?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (record VARCHAR, points VARCHAR, game VARCHAR)
SELECT record FROM table_name_1 WHERE points > 39 AND game = 38
Write a SQL query that answers the following question: What is the Stuffit ability that has a gzip of yes, ISO/CD images of no and LHA/LZH of no?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (stuffit VARCHAR, lha_lzh VARCHAR, gzip VARCHAR, iso_cd_image VARCHAR)
SELECT stuffit FROM table_name_75 WHERE gzip = "yes" AND iso_cd_image = "no" AND lha_lzh = "no"
Write a SQL query that answers the following question: What is the gzip value associated with a stuffit of no, bzip2 of no, and LHA.LZH of no?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (gzip VARCHAR, lha_lzh VARCHAR, stuffit VARCHAR, bzip2 VARCHAR)
SELECT gzip FROM table_name_90 WHERE stuffit = "no" AND bzip2 = "no" AND lha_lzh = "no"
Write a SQL query that answers the following question: What is the StuffitX value that has a Stuffit of unknown, LHA/LZH of yes, and unknown ISO/CD image?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (stuffit VARCHAR, iso_cd_image VARCHAR, lha_lzh VARCHAR)
SELECT stuffit AS X FROM table_name_26 WHERE stuffit = "unknown" AND lha_lzh = "yes" AND iso_cd_image = "unknown"