instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: What is the diameter for 1997 when longitude is 212.0e and latitude is 47.0n?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (diameter__km_ INTEGER, latitude VARCHAR, year_named VARCHAR, longitude VARCHAR)
SELECT MIN(diameter__km_) FROM table_name_50 WHERE year_named = 1997 AND longitude = "212.0e" AND latitude = "47.0n"
Write a SQL query that answers the following question: What's the latitude when the longitude is 152.0e later than 1997?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (latitude VARCHAR, year_named VARCHAR, longitude VARCHAR)
SELECT latitude FROM table_name_66 WHERE year_named > 1997 AND longitude = "152.0e"
Write a SQL query that answers the following question: What's the diameter when longitude is 105.0e before 2003?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (diameter__km_ INTEGER, longitude VARCHAR, year_named VARCHAR)
SELECT SUM(diameter__km_) FROM table_name_42 WHERE longitude = "105.0e" AND year_named < 2003
Write a SQL query that answers the following question: What's the average year for the name aida-wedo dorsa with a diameter less than 450?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (year_named INTEGER, name VARCHAR, diameter__km_ VARCHAR)
SELECT AVG(year_named) FROM table_name_16 WHERE name = "aida-wedo dorsa" AND diameter__km_ < 450
Write a SQL query that answers the following question: What's the total diameter when longitude is 357.8e later than 1985?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (diameter__km_ VARCHAR, longitude VARCHAR, year_named VARCHAR)
SELECT COUNT(diameter__km_) FROM table_name_60 WHERE longitude = "357.8e" AND year_named > 1985
Write a SQL query that answers the following question: In what year was Lesli Margherita nominated?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (year INTEGER, nominee VARCHAR)
SELECT SUM(year) FROM table_name_90 WHERE nominee = "lesli margherita"
Write a SQL query that answers the following question: Who was nominated for Best Theatre Choreographer?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (nominee VARCHAR, category VARCHAR)
SELECT nominee FROM table_name_18 WHERE category = "best theatre choreographer"
Write a SQL query that answers the following question: What hometown was FR Year, and ha Brown's Gymnastics club?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (hometown VARCHAR, year VARCHAR, club VARCHAR)
SELECT hometown FROM table_name_20 WHERE year = "fr" AND club = "brown's gymnastics"
Write a SQL query that answers the following question: What year was Asi Peko?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (year VARCHAR, name VARCHAR)
SELECT year FROM table_name_60 WHERE name = "asi peko"
Write a SQL query that answers the following question: What is the height for the Oakville Gymnastics Club?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (height VARCHAR, club VARCHAR)
SELECT height FROM table_name_96 WHERE club = "oakville gymnastics club"
Write a SQL query that answers the following question: when was the loan ended when the loan club is spartak moscow?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (ended VARCHAR, loan_club VARCHAR)
SELECT ended FROM table_name_98 WHERE loan_club = "spartak moscow"
Write a SQL query that answers the following question: What is the loan start source when the loan club is fulham?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (start_source VARCHAR, loan_club VARCHAR)
SELECT start_source FROM table_name_42 WHERE loan_club = "fulham"
Write a SQL query that answers the following question: When was the loan started when the coutry is eng, the loan club is sunderland and the end source is south wales echo?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (started VARCHAR, end_source VARCHAR, country VARCHAR, loan_club VARCHAR)
SELECT started FROM table_name_23 WHERE country = "eng" AND loan_club = "sunderland" AND end_source = "south wales echo"
Write a SQL query that answers the following question: when was the loan ended when the country is ghana?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (ended VARCHAR, country VARCHAR)
SELECT ended FROM table_name_37 WHERE country = "ghana"
Write a SQL query that answers the following question: what is the loan club with the start source is bbc sport and started on 9 february?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (loan_club VARCHAR, start_source VARCHAR, started VARCHAR)
SELECT loan_club FROM table_name_28 WHERE start_source = "bbc sport" AND started = "9 february"
Write a SQL query that answers the following question: what is the start source when started on 2 february?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (start_source VARCHAR, started VARCHAR)
SELECT start_source FROM table_name_47 WHERE started = "2 february"
Write a SQL query that answers the following question: What is the lowest Finished, when Post is less than 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (finished INTEGER, post INTEGER)
SELECT MIN(finished) FROM table_name_70 WHERE post < 2
Write a SQL query that answers the following question: What is Owner, when Finished is less than 15, when Trainer is "Steve Asmussen", and when Horse is "Z Fortune"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (owner VARCHAR, horse VARCHAR, finished VARCHAR, trainer VARCHAR)
SELECT owner FROM table_name_77 WHERE finished < 15 AND trainer = "steve asmussen" AND horse = "z fortune"
Write a SQL query that answers the following question: What is the Time/ Behind, when Jockey is "Jose Lezcano"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (time__behind VARCHAR, jockey VARCHAR)
SELECT time__behind FROM table_name_44 WHERE jockey = "jose lezcano"
Write a SQL query that answers the following question: What is Jockey, when Post is 12?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (jockey VARCHAR, post VARCHAR)
SELECT jockey FROM table_name_53 WHERE post = 12
Write a SQL query that answers the following question: What is the total number of Post, when Trainer is "Steve Asmussen", and when Time/ Behind is 19 ½?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (post VARCHAR, trainer VARCHAR, time__behind VARCHAR)
SELECT COUNT(post) FROM table_name_22 WHERE trainer = "steve asmussen" AND time__behind = "19 ½"
Write a SQL query that answers the following question: What is Jockey, when Horse is "Eight Belles"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (jockey VARCHAR, horse VARCHAR)
SELECT jockey FROM table_name_74 WHERE horse = "eight belles"
Write a SQL query that answers the following question: Who is the team captain of Regenboogstadion?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (team_captain VARCHAR, stadium VARCHAR)
SELECT team_captain FROM table_name_42 WHERE stadium = "regenboogstadion"
Write a SQL query that answers the following question: Who is the current manager of the team located in tubize?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (current_manager VARCHAR, location VARCHAR)
SELECT current_manager FROM table_name_15 WHERE location = "tubize"
Write a SQL query that answers the following question: Where is the location of the team with a current manager of Ariel Jacobs?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (location VARCHAR, current_manager VARCHAR)
SELECT location FROM table_name_17 WHERE current_manager = "ariel jacobs"
Write a SQL query that answers the following question: What was the victory margin for a finish of 1st with a rider of Kent Desormeaux, with a time of 1:35.66?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (victory_margin__in_lengths_ VARCHAR, time VARCHAR, finish VARCHAR, jockey VARCHAR)
SELECT victory_margin__in_lengths_ FROM table_name_74 WHERE finish = "1st" AND jockey = "kent desormeaux" AND time = "1:35.66"
Write a SQL query that answers the following question: What was the time of the Kentucky Derby?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (time VARCHAR, race VARCHAR)
SELECT time FROM table_name_79 WHERE race = "kentucky derby"
Write a SQL query that answers the following question: What was the finish of the Kentucky Derby?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (finish VARCHAR, race VARCHAR)
SELECT finish FROM table_name_32 WHERE race = "kentucky derby"
Write a SQL query that answers the following question: Which race had a finish of 1st at Saratoga Race Course?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (race VARCHAR, finish VARCHAR, track VARCHAR)
SELECT race FROM table_name_60 WHERE finish = "1st" AND track = "saratoga race course"
Write a SQL query that answers the following question: Who was the player in 1981?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (player VARCHAR, year VARCHAR)
SELECT player FROM table_name_67 WHERE year = "1981"
Write a SQL query that answers the following question: What is the team for 1976?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (team VARCHAR, year VARCHAR)
SELECT team FROM table_name_67 WHERE year = "1976"
Write a SQL query that answers the following question: What is the opponent for the date of august 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_75 WHERE date = "august 5"
Write a SQL query that answers the following question: What is the result for the date of august 23?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_83 WHERE date = "august 23"
Write a SQL query that answers the following question: When the opponent is houston oilers what is the result?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (result VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_27 WHERE opponent = "houston oilers"
Write a SQL query that answers the following question: Which Goals Against has a Drawn larger than 9, a Lost larger than 15, a Position of 24, and a Played smaller than 46?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (goals_against INTEGER, played VARCHAR, position VARCHAR, drawn VARCHAR, lost VARCHAR)
SELECT AVG(goals_against) FROM table_name_50 WHERE drawn > 9 AND lost > 15 AND position = 24 AND played < 46
Write a SQL query that answers the following question: Which Points 2 has Drawn of 15, a Position larger than 20, and a Goals For smaller than 45?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (points_2 INTEGER, goals_for VARCHAR, drawn VARCHAR, position VARCHAR)
SELECT SUM(points_2) FROM table_name_35 WHERE drawn = 15 AND position > 20 AND goals_for < 45
Write a SQL query that answers the following question: Which Goals For has a Position larger than 2, a Lost larger than 18, a Team of matlock town, and a Goals Against larger than 79?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (goals_for INTEGER, goals_against VARCHAR, team VARCHAR, position VARCHAR, lost VARCHAR)
SELECT MAX(goals_for) FROM table_name_74 WHERE position > 2 AND lost > 18 AND team = "matlock town" AND goals_against > 79
Write a SQL query that answers the following question: Which Points 2 has a Goal Average 1 larger than 1.17, a Goals Against larger than 48, and a Position larger than 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (points_2 INTEGER, position VARCHAR, goal_average_1 VARCHAR, goals_against VARCHAR)
SELECT SUM(points_2) FROM table_name_64 WHERE goal_average_1 > 1.17 AND goals_against > 48 AND position > 6
Write a SQL query that answers the following question: What is the 1986 value with A in 1991 and A in 1987?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (Id VARCHAR)
SELECT 1986 FROM table_name_17 WHERE 1991 = "a" AND 1987 = "a"
Write a SQL query that answers the following question: What is the 1995 value with A in 1986 and 2r in 1992?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (Id VARCHAR)
SELECT 1995 FROM table_name_29 WHERE 1986 = "a" AND 1992 = "2r"
Write a SQL query that answers the following question: What is the 1989 value with F in 1990?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (Id VARCHAR)
SELECT 1989 FROM table_name_95 WHERE 1990 = "f"
Write a SQL query that answers the following question: What is the 1987 value of the 1994 atp masters series?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (Id VARCHAR)
SELECT 1987 FROM table_name_45 WHERE 1994 = "atp masters series"
Write a SQL query that answers the following question: What is the lowest round that a pick had a position of ls?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (round INTEGER, position VARCHAR)
SELECT MIN(round) FROM table_name_26 WHERE position = "ls"
Write a SQL query that answers the following question: What was the sum of the rounds for the player who had a position of LS and an overall draft pick bigger than 230?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (round INTEGER, position VARCHAR, overall VARCHAR)
SELECT SUM(round) FROM table_name_10 WHERE position = "ls" AND overall > 230
Write a SQL query that answers the following question: WHAT IS THE VENUE ON MARCH 28, 2008?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_34 WHERE date = "march 28, 2008"
Write a SQL query that answers the following question: How many were in Attendance on October 8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (attendance VARCHAR, date VARCHAR)
SELECT COUNT(attendance) FROM table_name_65 WHERE date = "october 8"
Write a SQL query that answers the following question: What is the Location of the Game on October 8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (location VARCHAR, date VARCHAR)
SELECT location FROM table_name_73 WHERE date = "october 8"
Write a SQL query that answers the following question: What is the nationality for the player with over 64 goals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (nat VARCHAR, goals INTEGER)
SELECT nat FROM table_name_56 WHERE goals > 64
Write a SQL query that answers the following question: What was the score of the game where Philadelphia was the visitor?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (score VARCHAR, visitor VARCHAR)
SELECT score FROM table_name_84 WHERE visitor = "philadelphia"
Write a SQL query that answers the following question: What are the average spectators from the Group H Round?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (spectators INTEGER, round VARCHAR)
SELECT AVG(spectators) FROM table_name_60 WHERE round = "group h"
Write a SQL query that answers the following question: Can you tell me the Manufacturer that has the Rider of stefan bradl?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (manufacturer VARCHAR, rider VARCHAR)
SELECT manufacturer FROM table_name_5 WHERE rider = "stefan bradl"
Write a SQL query that answers the following question: Can you tell me the highest Grid that has the Time of +15.532, and the Laps larger than 23?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (grid INTEGER, time VARCHAR, laps VARCHAR)
SELECT MAX(grid) FROM table_name_70 WHERE time = "+15.532" AND laps > 23
Write a SQL query that answers the following question: Can you tell me the sum of Grid that has the Time of +6.355, and the Laps larger than 23?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (grid INTEGER, time VARCHAR, laps VARCHAR)
SELECT SUM(grid) FROM table_name_7 WHERE time = "+6.355" AND laps > 23
Write a SQL query that answers the following question: What is Time, when Location is "Savannah, Georgia , United States"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (time VARCHAR, location VARCHAR)
SELECT time FROM table_name_63 WHERE location = "savannah, georgia , united states"
Write a SQL query that answers the following question: What is the total number of Round(s), when Time is "N/A", when Location is "Alabama , United States", and when Record is "1-2-0"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (round VARCHAR, record VARCHAR, time VARCHAR, location VARCHAR)
SELECT COUNT(round) FROM table_name_53 WHERE time = "n/a" AND location = "alabama , united states" AND record = "1-2-0"
Write a SQL query that answers the following question: Which Retitled as/Same has a Last Aired larger than 1982, and a Show of we got it made?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (retitled_as_same VARCHAR, last_aired VARCHAR, show VARCHAR)
SELECT retitled_as_same FROM table_name_99 WHERE last_aired > 1982 AND show = "we got it made"
Write a SQL query that answers the following question: Which New/Returning/Same Network has a Last Aired of 1982?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (new_returning_same_network VARCHAR, last_aired VARCHAR)
SELECT new_returning_same_network FROM table_name_29 WHERE last_aired = 1982
Write a SQL query that answers the following question: Which New/Returning/Same Network has a Previous Network of nbc, and a Show of blockbusters?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (new_returning_same_network VARCHAR, previous_network VARCHAR, show VARCHAR)
SELECT new_returning_same_network FROM table_name_12 WHERE previous_network = "nbc" AND show = "blockbusters"
Write a SQL query that answers the following question: Which New/Returning/Same Network has a Retitled as/Same of same, and a Last Aired larger than 1984?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (new_returning_same_network VARCHAR, retitled_as_same VARCHAR, last_aired VARCHAR)
SELECT new_returning_same_network FROM table_name_8 WHERE retitled_as_same = "same" AND last_aired > 1984
Write a SQL query that answers the following question: Which Last Aired has a Retitled as/Same of classic concentration?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (last_aired VARCHAR, retitled_as_same VARCHAR)
SELECT last_aired FROM table_name_57 WHERE retitled_as_same = "classic concentration"
Write a SQL query that answers the following question: How many rounds had a race name of anglia tv trophy?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (round VARCHAR, name VARCHAR)
SELECT COUNT(round) FROM table_name_25 WHERE name = "anglia tv trophy"
Write a SQL query that answers the following question: What circuit was the race named international trophy raced at by the winning driver eliseo salazar?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (circuit VARCHAR, winning_driver VARCHAR, name VARCHAR)
SELECT circuit FROM table_name_63 WHERE winning_driver = "eliseo salazar" AND name = "international trophy"
Write a SQL query that answers the following question: What circuit did emilio de villota win on at the pace petroleum trophy?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (circuit VARCHAR, winning_driver VARCHAR, name VARCHAR)
SELECT circuit FROM table_name_62 WHERE winning_driver = "emilio de villota" AND name = "pace petroleum trophy"
Write a SQL query that answers the following question: What is the to par of the player from the United States with a t6 place and a score of 70-73-68-73=284?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (to_par VARCHAR, country VARCHAR, place VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_22 WHERE country = "united states" AND place = "t6" AND score = 70 - 73 - 68 - 73 = 284
Write a SQL query that answers the following question: Who is the player from Australia with a to par of +5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (player VARCHAR, to_par VARCHAR, country VARCHAR)
SELECT player FROM table_name_7 WHERE to_par = "+5" AND country = "australia"
Write a SQL query that answers the following question: What is the highest amount of money a player with a score of 69-71-71-73=284 has?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (money___ INTEGER, score VARCHAR)
SELECT MAX(money___) AS $__ FROM table_name_76 WHERE score = 69 - 71 - 71 - 73 = 284
Write a SQL query that answers the following question: What is the time of the match with 3 rounds and a 9-3 record?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (time VARCHAR, round VARCHAR, record VARCHAR)
SELECT time FROM table_name_52 WHERE round = 3 AND record = "9-3"
Write a SQL query that answers the following question: What is the method of the match with a win res., 1 round, and a 3-2 record?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (method VARCHAR, record VARCHAR, res VARCHAR, round VARCHAR)
SELECT method FROM table_name_44 WHERE res = "win" AND round = 1 AND record = "3-2"
Write a SQL query that answers the following question: Who was the sports agent who finished 9th?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (name VARCHAR, finish VARCHAR, occupation VARCHAR)
SELECT name FROM table_name_61 WHERE finish = "9th" AND occupation = "sports agent"
Write a SQL query that answers the following question: What is the lowest score that wes ellis got?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (score INTEGER, player VARCHAR)
SELECT MIN(score) FROM table_name_81 WHERE player = "wes ellis"
Write a SQL query that answers the following question: What was the score for the player from the United states that was +1 to par?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (score VARCHAR, to_par VARCHAR, country VARCHAR)
SELECT score FROM table_name_64 WHERE to_par = "+1" AND country = "united states"
Write a SQL query that answers the following question: Who was the player who placed t10?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (player VARCHAR, place VARCHAR)
SELECT player FROM table_name_4 WHERE place = "t10"
Write a SQL query that answers the following question: How far to par did ed furgol from the United States get when he scored less than 72 and was placed at t3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (to_par VARCHAR, player VARCHAR, place VARCHAR, country VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_93 WHERE country = "united states" AND score < 72 AND place = "t3" AND player = "ed furgol"
Write a SQL query that answers the following question: What game was played at Philadelphia?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (game INTEGER, team VARCHAR)
SELECT AVG(game) FROM table_name_36 WHERE team = "philadelphia"
Write a SQL query that answers the following question: What is the sum of share with a rating larger than 1.2, a 3 rank timeslot, and 6.07 million viewers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (share INTEGER, viewers__millions_ VARCHAR, rating VARCHAR, rank__timeslot_ VARCHAR)
SELECT SUM(share) FROM table_name_42 WHERE rating > 1.2 AND rank__timeslot_ = 3 AND viewers__millions_ = 6.07
Write a SQL query that answers the following question: What is the average week rank with 1.2 ratings, less than 1.94 million viewers, and a night rank less than 11?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (rank__week_ INTEGER, rank__night_ VARCHAR, rating VARCHAR, viewers__millions_ VARCHAR)
SELECT AVG(rank__week_) FROM table_name_53 WHERE rating = 1.2 AND viewers__millions_ < 1.94 AND rank__night_ < 11
Write a SQL query that answers the following question: what is the round when the college is syracuse and the pick is less than 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (round INTEGER, college VARCHAR, pick VARCHAR)
SELECT AVG(round) FROM table_name_94 WHERE college = "syracuse" AND pick < 3
Write a SQL query that answers the following question: what is the position when the pick is more than 2, the overall is more than 28 and the college is nebraska?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (position VARCHAR, college VARCHAR, pick VARCHAR, overall VARCHAR)
SELECT position FROM table_name_51 WHERE pick > 2 AND overall > 28 AND college = "nebraska"
Write a SQL query that answers the following question: what is the pick when the college is arkansas and the overall is more than 316?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (pick INTEGER, college VARCHAR, overall VARCHAR)
SELECT MAX(pick) FROM table_name_33 WHERE college = "arkansas" AND overall > 316
Write a SQL query that answers the following question: what is the lowest overall when the pick is less than 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (overall INTEGER, pick INTEGER)
SELECT MIN(overall) FROM table_name_92 WHERE pick < 2
Write a SQL query that answers the following question: what is the round when the college is north carolina and the overall is more than 124?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (round INTEGER, college VARCHAR, overall VARCHAR)
SELECT SUM(round) FROM table_name_68 WHERE college = "north carolina" AND overall > 124
Write a SQL query that answers the following question: October 28, 2001 was what week of the season?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (week VARCHAR, date VARCHAR)
SELECT week FROM table_name_98 WHERE date = "october 28, 2001"
Write a SQL query that answers the following question: What was the result of week 11?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (result VARCHAR, week VARCHAR)
SELECT result FROM table_name_1 WHERE week = 11
Write a SQL query that answers the following question: What was the date of a week larger than 16?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (date VARCHAR, week INTEGER)
SELECT date FROM table_name_55 WHERE week > 16
Write a SQL query that answers the following question: November 25, 2001 was what week of the season?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (week VARCHAR, date VARCHAR)
SELECT COUNT(week) FROM table_name_52 WHERE date = "november 25, 2001"
Write a SQL query that answers the following question: Which Wheels has Built smaller than 1958, a Location of york, and a Railway of nsr?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (wheels VARCHAR, railway VARCHAR, built VARCHAR, location VARCHAR)
SELECT wheels FROM table_name_31 WHERE built < 1958 AND location = "york" AND railway = "nsr"
Write a SQL query that answers the following question: Which Built has a Builder of brel crewe?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (built INTEGER, builder VARCHAR)
SELECT AVG(built) FROM table_name_74 WHERE builder = "brel crewe"
Write a SQL query that answers the following question: Which Railway has a Location of shildon, and an ObjectNumber of 1978-7006?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (railway VARCHAR, location VARCHAR, objectnumber VARCHAR)
SELECT railway FROM table_name_52 WHERE location = "shildon" AND objectnumber = "1978-7006"
Write a SQL query that answers the following question: Which Railway has a Location of shildon, and an ObjectNumber of 1975-7022?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (railway VARCHAR, location VARCHAR, objectnumber VARCHAR)
SELECT railway FROM table_name_58 WHERE location = "shildon" AND objectnumber = "1975-7022"
Write a SQL query that answers the following question: Which Location has an ObjectNumber of 2005-7698?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (location VARCHAR, objectnumber VARCHAR)
SELECT location FROM table_name_71 WHERE objectnumber = "2005-7698"
Write a SQL query that answers the following question: What is the Club during the Years 1995–1996?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (club VARCHAR, years VARCHAR)
SELECT club FROM table_name_28 WHERE years = "1995–1996"
Write a SQL query that answers the following question: In what Years was the Player in MF Position?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (years VARCHAR, position VARCHAR)
SELECT years FROM table_name_71 WHERE position = "mf"
Write a SQL query that answers the following question: What is the 2nd leg of the 1st team in the 2007 uefa intertoto cup?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (team__number1 VARCHAR)
SELECT 2 AS nd_leg FROM table_name_72 WHERE team__number1 = "2007 uefa intertoto cup"
Write a SQL query that answers the following question: What is the 2nd leg of dinamo minsk team #2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (team__number2 VARCHAR)
SELECT 2 AS nd_leg FROM table_name_20 WHERE team__number2 = "dinamo minsk"
Write a SQL query that answers the following question: What is the 2nd leg of the second team in the 2007 uefa intertoto cup?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (team__number2 VARCHAR)
SELECT 2 AS nd_leg FROM table_name_78 WHERE team__number2 = "2007 uefa intertoto cup"
Write a SQL query that answers the following question: What is the status of the 10 against?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (status VARCHAR, against VARCHAR)
SELECT status FROM table_name_93 WHERE against = 10
Write a SQL query that answers the following question: Who was the opposing team in the test match?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (opposing_team VARCHAR, status VARCHAR)
SELECT opposing_team FROM table_name_76 WHERE status = "test match"
Write a SQL query that answers the following question: Where was the 05/09/1973 venue?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_63 WHERE date = "05/09/1973"
Write a SQL query that answers the following question: Which Overall has a Position of te, and a Round larger than 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (overall INTEGER, position VARCHAR, round VARCHAR)
SELECT AVG(overall) FROM table_name_82 WHERE position = "te" AND round > 5
Write a SQL query that answers the following question: Which Position has a Round larger than 14, and an Overall smaller than 419?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (position VARCHAR, round VARCHAR, overall VARCHAR)
SELECT position FROM table_name_70 WHERE round > 14 AND overall < 419