instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: What is the Gaelic name for an area less than 127 in Kintyre?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (gaelic_name VARCHAR, area___ha__ VARCHAR, location VARCHAR)
SELECT gaelic_name FROM table_name_63 WHERE area___ha__ < 127 AND location = "kintyre"
Write a SQL query that answers the following question: What was the score on 7 february 2008?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_42 WHERE date = "7 february 2008"
Write a SQL query that answers the following question: What was the outcome on 13 may 2007?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (outcome VARCHAR, date VARCHAR)
SELECT outcome FROM table_name_80 WHERE date = "13 may 2007"
Write a SQL query that answers the following question: What was the score on 3 may 2009?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_82 WHERE date = "3 may 2009"
Write a SQL query that answers the following question: Name the score for venue of jalan besar, singapore
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (score VARCHAR, venue VARCHAR)
SELECT score FROM table_name_81 WHERE venue = "jalan besar, singapore"
Write a SQL query that answers the following question: Name the score for 2 june 2008
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_97 WHERE date = "2 june 2008"
Write a SQL query that answers the following question: Which Opponent has a Game of 63?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (opponent VARCHAR, game VARCHAR)
SELECT opponent FROM table_name_33 WHERE game = 63
Write a SQL query that answers the following question: which Record has a Score of 1–4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (record VARCHAR, score VARCHAR)
SELECT record FROM table_name_30 WHERE score = "1–4"
Write a SQL query that answers the following question: Which Record has a Points smaller than 62 and a February larger than 16, and a Score of 8–7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (record VARCHAR, score VARCHAR, points VARCHAR, february VARCHAR)
SELECT record FROM table_name_81 WHERE points < 62 AND february > 16 AND score = "8–7"
Write a SQL query that answers the following question: What is the total number of Issues has a End month of oct-80?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (number_of_issues VARCHAR, end_month VARCHAR)
SELECT COUNT(number_of_issues) FROM table_name_60 WHERE end_month = "oct-80"
Write a SQL query that answers the following question: Which Indicia has anEnd month in feb-75?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (indicia VARCHAR, end_month VARCHAR)
SELECT indicia FROM table_name_52 WHERE end_month = "feb-75"
Write a SQL query that answers the following question: Which HAAT has a Channels TV / RF of 31 (psip) 44 (uhf)
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (haat VARCHAR, channels_tv___rf VARCHAR)
SELECT haat FROM table_name_17 WHERE channels_tv___rf = "31 (psip) 44 (uhf)"
Write a SQL query that answers the following question: Which City of license has a Channels TV / RF of 67 ( psip ) 29 ( uhf )
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (city_of_license VARCHAR, channels_tv___rf VARCHAR)
SELECT city_of_license FROM table_name_4 WHERE channels_tv___rf = "67 ( psip ) 29 ( uhf )"
Write a SQL query that answers the following question: Which Station has hagerstown?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (station VARCHAR, city_of_license VARCHAR)
SELECT station FROM table_name_28 WHERE city_of_license = "hagerstown"
Write a SQL query that answers the following question: Which HAAT has 65944?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (haat VARCHAR, facility_id VARCHAR)
SELECT haat FROM table_name_34 WHERE facility_id = 65944
Write a SQL query that answers the following question: Which City of license has a Channels TV / RF of 36 (psip) 36 (uhf)? Question 5
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (city_of_license VARCHAR, channels_tv___rf VARCHAR)
SELECT city_of_license FROM table_name_3 WHERE channels_tv___rf = "36 (psip) 36 (uhf)"
Write a SQL query that answers the following question: What format is dated October 29, 2004?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (format VARCHAR, date VARCHAR)
SELECT format FROM table_name_8 WHERE date = "october 29, 2004"
Write a SQL query that answers the following question: What is the date with the catalogue number ptcd-1015-6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (date VARCHAR, catalogue__number VARCHAR)
SELECT date FROM table_name_59 WHERE catalogue__number = "ptcd-1015-6"
Write a SQL query that answers the following question: What is the label for December 2004?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (label VARCHAR, date VARCHAR)
SELECT label FROM table_name_73 WHERE date = "december 2004"
Write a SQL query that answers the following question: What is the date for Hydra Head Records with a CD format?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (date VARCHAR, label VARCHAR, format VARCHAR)
SELECT date FROM table_name_21 WHERE label = "hydra head records" AND format = "cd"
Write a SQL query that answers the following question: Which country has Hydra Head Records on February 2005?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (country VARCHAR, label VARCHAR, date VARCHAR)
SELECT country FROM table_name_96 WHERE label = "hydra head records" AND date = "february 2005"
Write a SQL query that answers the following question: Which country has Hydra Head Records with a 2lp format?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (country VARCHAR, format VARCHAR, label VARCHAR)
SELECT country FROM table_name_97 WHERE format = "2lp" AND label = "hydra head records"
Write a SQL query that answers the following question: Who rode mad rush?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (jockey VARCHAR, horse VARCHAR)
SELECT jockey FROM table_name_44 WHERE horse = "mad rush"
Write a SQL query that answers the following question: What place was the horse with a barrier of 20 and weighing less than 54 kg
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (placing VARCHAR, weight__kg_ VARCHAR, barrier_ VARCHAR, b_ VARCHAR)
SELECT placing FROM table_name_35 WHERE weight__kg_ < 54 AND barrier_[b_] = "20"
Write a SQL query that answers the following question: What place was the viewed horse?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (placing VARCHAR, horse VARCHAR)
SELECT placing FROM table_name_13 WHERE horse = "viewed"
Write a SQL query that answers the following question: What is the average number of wins of the year with less than 5 top 10s, a winning of $39,190 and less than 2 starts?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (wins INTEGER, starts VARCHAR, top_10 VARCHAR, winnings VARCHAR)
SELECT AVG(wins) FROM table_name_17 WHERE top_10 < 5 AND winnings = "$39,190" AND starts < 2
Write a SQL query that answers the following question: What is the highest number of poles of the year before 1992 with more than 18 starts and winnings of $125,102?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (poles INTEGER, year VARCHAR, starts VARCHAR, winnings VARCHAR)
SELECT MAX(poles) FROM table_name_81 WHERE starts > 18 AND winnings = "$125,102" AND year < 1992
Write a SQL query that answers the following question: Author of stanisław wyspiański, and a Year of 1969 happened in what theatre?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (theatre VARCHAR, author VARCHAR, year VARCHAR)
SELECT theatre FROM table_name_5 WHERE author = "stanisław wyspiański" AND year = 1969
Write a SQL query that answers the following question: Which game did New Jersey Devils played in?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (game VARCHAR, opponent VARCHAR)
SELECT game FROM table_name_54 WHERE opponent = "new jersey devils"
Write a SQL query that answers the following question: What score has a record of 21-25-7-4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_92 WHERE record = "21-25-7-4"
Write a SQL query that answers the following question: What score has a record of 22-28-7-4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_9 WHERE record = "22-28-7-4"
Write a SQL query that answers the following question: What group has 1200 m as the distance?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (group VARCHAR, distance VARCHAR)
SELECT group FROM table_name_82 WHERE distance = "1200 m"
Write a SQL query that answers the following question: What venue has g1 as the group?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (venue VARCHAR, group VARCHAR)
SELECT venue FROM table_name_45 WHERE group = "g1"
Write a SQL query that answers the following question: What's the highest Points with the Team of Tacuary, and has Losses that's smaller than 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (points INTEGER, team VARCHAR, losses VARCHAR)
SELECT MAX(points) FROM table_name_56 WHERE team = "tacuary" AND losses < 4
Write a SQL query that answers the following question: What's the sum of Losses that Scored larger than 15, has Points that's larger than 16, and Played that's larger than 9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (losses INTEGER, played VARCHAR, scored VARCHAR, points VARCHAR)
SELECT SUM(losses) FROM table_name_15 WHERE scored > 15 AND points > 16 AND played > 9
Write a SQL query that answers the following question: What's the highest Played with a Scored of 15, and Draws that's less than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (played INTEGER, scored VARCHAR, draws VARCHAR)
SELECT MAX(played) FROM table_name_80 WHERE scored = 15 AND draws < 1
Write a SQL query that answers the following question: What's the sum of WIns with Draws that's larger than 1, Losses that's smaller than 4, and Conceded of 20?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (wins INTEGER, conceded VARCHAR, draws VARCHAR, losses VARCHAR)
SELECT SUM(wins) FROM table_name_82 WHERE draws > 1 AND losses < 4 AND conceded = 20
Write a SQL query that answers the following question: What's the lowest Position with a Conceded that's larger than 16, Draws of 3, and Losses that's larger than 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (position INTEGER, losses VARCHAR, conceded VARCHAR, draws VARCHAR)
SELECT MIN(position) FROM table_name_6 WHERE conceded > 16 AND draws = 3 AND losses > 3
Write a SQL query that answers the following question: Which processors are supported with a PCI-express of x16: 1 slot x1: 4 slots and the nforce 550 model?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (processors_supported VARCHAR, pci_express VARCHAR, model VARCHAR)
SELECT processors_supported FROM table_name_82 WHERE pci_express = "x16: 1 slot x1: 4 slots" AND model = "nforce 550"
Write a SQL query that answers the following question: What are the processors supported by a ddr2 memory and the nforce 550 model?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (processors_supported VARCHAR, memory VARCHAR, model VARCHAR)
SELECT processors_supported FROM table_name_91 WHERE memory = "ddr2" AND model = "nforce 550"
Write a SQL query that answers the following question: What is the PCI-express with a ddr2 memory and a nforce 520 model?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (pci_express VARCHAR, memory VARCHAR, model VARCHAR)
SELECT pci_express FROM table_name_80 WHERE memory = "ddr2" AND model = "nforce 520"
Write a SQL query that answers the following question: What is the Russian word for wine glass that contains 4.16 fl. oz.?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (russian VARCHAR, us_customary VARCHAR)
SELECT russian FROM table_name_14 WHERE us_customary = "4.16 fl. oz."
Write a SQL query that answers the following question: What are the imperial size for the unit that has a ratio of 1/20?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (imperial VARCHAR, ratio VARCHAR)
SELECT imperial FROM table_name_11 WHERE ratio = "1/20"
Write a SQL query that answers the following question: How big in metric terms is the unit that has a ratio of 1/20?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (metric_value VARCHAR, ratio VARCHAR)
SELECT metric_value FROM table_name_54 WHERE ratio = "1/20"
Write a SQL query that answers the following question: How large in US customary terms is the unit called butylka (vodochnaya)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (us_customary VARCHAR, unit VARCHAR)
SELECT us_customary FROM table_name_33 WHERE unit = "butylka (vodochnaya)"
Write a SQL query that answers the following question: What is the translation of chetvert?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (translation VARCHAR, unit VARCHAR)
SELECT translation FROM table_name_81 WHERE unit = "chetvert"
Write a SQL query that answers the following question: What Russian word translates to bucket?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (russian VARCHAR, translation VARCHAR)
SELECT russian FROM table_name_34 WHERE translation = "bucket"
Write a SQL query that answers the following question: Points larger than 6, and a Results of 522:443 had what lowest matches?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (matches INTEGER, points VARCHAR, results VARCHAR)
SELECT MIN(matches) FROM table_name_44 WHERE points > 6 AND results = "522:443"
Write a SQL query that answers the following question: Loses of 2, and a Pos. smaller than 2 had how many highest matches?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (matches INTEGER, loses VARCHAR, pos VARCHAR)
SELECT MAX(matches) FROM table_name_75 WHERE loses = 2 AND pos < 2
Write a SQL query that answers the following question: What was the outcome when the game was played on clay and on 2 May 2009?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (outcome VARCHAR, surface VARCHAR, date VARCHAR)
SELECT outcome FROM table_name_49 WHERE surface = "clay" AND date = "2 may 2009"
Write a SQL query that answers the following question: What person was played against when the playing surface was hard?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (opponent VARCHAR, surface VARCHAR)
SELECT opponent FROM table_name_42 WHERE surface = "hard"
Write a SQL query that answers the following question: With the score of 6–3, 2–6, [10–8] and played on clay who was the opponent?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (opponent VARCHAR, surface VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_69 WHERE surface = "clay" AND score = "6–3, 2–6, [10–8]"
Write a SQL query that answers the following question: What is the rank of the park in pigeon forge, tennessee in the best food category?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (rank VARCHAR, location VARCHAR, category VARCHAR)
SELECT COUNT(rank) FROM table_name_57 WHERE location = "pigeon forge, tennessee" AND category = "best food"
Write a SQL query that answers the following question: What building is in Shenzhen, have less than 115 floors, and was completed before 2017?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (name VARCHAR, floors VARCHAR, city VARCHAR, completion VARCHAR)
SELECT name FROM table_name_79 WHERE city = "shenzhen" AND completion < 2017 AND floors < 115
Write a SQL query that answers the following question: What is the earliest year having a length of 11:25?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (year INTEGER, length VARCHAR)
SELECT MIN(year) FROM table_name_21 WHERE length = "11:25"
Write a SQL query that answers the following question: What year had a version called Wolf Mix?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (year INTEGER, version VARCHAR)
SELECT AVG(year) FROM table_name_11 WHERE version = "wolf mix"
Write a SQL query that answers the following question: In 1978 what is the NFL team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (nfl_team VARCHAR, draft_year VARCHAR)
SELECT nfl_team FROM table_name_30 WHERE draft_year = 1978
Write a SQL query that answers the following question: Who was the opponent with attendance at 64,002?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (opponent VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_name_87 WHERE attendance = "64,002"
Write a SQL query that answers the following question: What was the highest week with 84,856 in attendance?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (week INTEGER, attendance VARCHAR)
SELECT MAX(week) FROM table_name_96 WHERE attendance = "84,856"
Write a SQL query that answers the following question: What was the record in a week less than 13 on November 9, 2003?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (record VARCHAR, week VARCHAR, date VARCHAR)
SELECT record FROM table_name_69 WHERE week < 13 AND date = "november 9, 2003"
Write a SQL query that answers the following question: On what date was the result w 20-17?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (date VARCHAR, result VARCHAR)
SELECT date FROM table_name_43 WHERE result = "w 20-17"
Write a SQL query that answers the following question: What was the attendance for record 2-0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (attendance VARCHAR, record VARCHAR)
SELECT attendance FROM table_name_52 WHERE record = "2-0"
Write a SQL query that answers the following question: On what date was the game at Lincoln Financial Field?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (date VARCHAR, game_site VARCHAR)
SELECT date FROM table_name_40 WHERE game_site = "lincoln financial field"
Write a SQL query that answers the following question: Which player has a pick of 175?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (player VARCHAR, pick VARCHAR)
SELECT player FROM table_name_58 WHERE pick = 175
Write a SQL query that answers the following question: Zack Jordan has the lowest pick and a round of less than 28?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (pick INTEGER, player VARCHAR, round VARCHAR)
SELECT MIN(pick) FROM table_name_69 WHERE player = "zack jordan" AND round < 28
Write a SQL query that answers the following question: What is the sum of the pick for player roger zatkoff?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (pick INTEGER, player VARCHAR)
SELECT SUM(pick) FROM table_name_24 WHERE player = "roger zatkoff"
Write a SQL query that answers the following question: Which metal has a size that is 26mm (across scallops)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (metal VARCHAR, size VARCHAR)
SELECT metal FROM table_name_56 WHERE size = "26mm (across scallops)"
Write a SQL query that answers the following question: What is the weight with the shape of scalloped, and that is a size of 20mm (across scallops)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (weight VARCHAR, shape VARCHAR, size VARCHAR)
SELECT weight FROM table_name_92 WHERE shape = "scalloped" AND size = "20mm (across scallops)"
Write a SQL query that answers the following question: What is the weight with a denomination that is three paise?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (weight VARCHAR, denomination VARCHAR)
SELECT weight FROM table_name_41 WHERE denomination = "three paise"
Write a SQL query that answers the following question: What is the weight with a denomination that is ten paise?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (weight VARCHAR, denomination VARCHAR)
SELECT weight FROM table_name_53 WHERE denomination = "ten paise"
Write a SQL query that answers the following question: What is the highest number of games drawn, where the games played was less than 7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (drawn INTEGER, games INTEGER)
SELECT MAX(drawn) FROM table_name_86 WHERE games < 7
Write a SQL query that answers the following question: Which October is the lowest one that has an Opponent of washington capitals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (october INTEGER, opponent VARCHAR)
SELECT MIN(october) FROM table_name_38 WHERE opponent = "washington capitals"
Write a SQL query that answers the following question: Which Score has a Game larger than 7, and Points smaller than 14?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (score VARCHAR, game VARCHAR, points VARCHAR)
SELECT score FROM table_name_17 WHERE game > 7 AND points < 14
Write a SQL query that answers the following question: How many Points have an Opponent of @ calgary flames?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (points INTEGER, opponent VARCHAR)
SELECT SUM(points) FROM table_name_77 WHERE opponent = "@ calgary flames"
Write a SQL query that answers the following question: What is the mean number of events where the rank is 1 and there are more than 3 wins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (events INTEGER, rank VARCHAR, wins VARCHAR)
SELECT AVG(events) FROM table_name_50 WHERE rank = 1 AND wins > 3
Write a SQL query that answers the following question: Which Supercopa 1994 has a Team of estudiantes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (supercopa_1994 VARCHAR, team VARCHAR)
SELECT supercopa_1994 FROM table_name_10 WHERE team = "estudiantes"
Write a SQL query that answers the following question: Which CONMEBOL 1994 has a Supercopa 1994 of n/a, and a Recopa 1994 of n/a, and a Team of san lorenzo?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (conmebol_1994 VARCHAR, team VARCHAR, supercopa_1994 VARCHAR, recopa_1994 VARCHAR)
SELECT conmebol_1994 FROM table_name_12 WHERE supercopa_1994 = "n/a" AND recopa_1994 = "n/a" AND team = "san lorenzo"
Write a SQL query that answers the following question: Which Recopa 1994 has a Supercopa 1994 of 1st round, and a Team of argentinos juniors?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (recopa_1994 VARCHAR, supercopa_1994 VARCHAR, team VARCHAR)
SELECT recopa_1994 FROM table_name_54 WHERE supercopa_1994 = "1st round" AND team = "argentinos juniors"
Write a SQL query that answers the following question: Which Team has a Recopa 1994 of n/a and a CONMEBOL 1994 of 1st round?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (team VARCHAR, recopa_1994 VARCHAR, conmebol_1994 VARCHAR)
SELECT team FROM table_name_92 WHERE recopa_1994 = "n/a" AND conmebol_1994 = "1st round"
Write a SQL query that answers the following question: Which Other has a Green of 0, and an Independent of 1, and a Labour smaller than 45, and a Control of labour lose to no overall control?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (other VARCHAR, control VARCHAR, labour VARCHAR, green VARCHAR, independent VARCHAR)
SELECT other FROM table_name_90 WHERE green = 0 AND independent = 1 AND labour < 45 AND control = "labour lose to no overall control"
Write a SQL query that answers the following question: Which Social Democratic Party has a Green smaller than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (social_democratic_party INTEGER, green INTEGER)
SELECT AVG(social_democratic_party) FROM table_name_10 WHERE green < 0
Write a SQL query that answers the following question: When the try bonus was 10 what was the losing bonus?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (losing_bonus VARCHAR, try_bonus VARCHAR)
SELECT losing_bonus FROM table_name_78 WHERE try_bonus = "10"
Write a SQL query that answers the following question: When the losing bonus was 2 what was drawn score?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (drawn VARCHAR, losing_bonus VARCHAR)
SELECT drawn FROM table_name_97 WHERE losing_bonus = "2"
Write a SQL query that answers the following question: If the try bonus was 5 what was the try against score?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (tries_against VARCHAR, try_bonus VARCHAR)
SELECT tries_against FROM table_name_99 WHERE try_bonus = "5"
Write a SQL query that answers the following question: When the tries against is 90 how many points are there?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (points VARCHAR, tries_against VARCHAR)
SELECT points FROM table_name_92 WHERE tries_against = "90"
Write a SQL query that answers the following question: What club has tries against of 75?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (club VARCHAR, tries_against VARCHAR)
SELECT club FROM table_name_58 WHERE tries_against = "75"
Write a SQL query that answers the following question: What is the total number of overall figures when duke was the college and the round was higher than 7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (overall INTEGER, college VARCHAR, round VARCHAR)
SELECT SUM(overall) FROM table_name_99 WHERE college = "duke" AND round > 7
Write a SQL query that answers the following question: Which of the highest pick numbers had a round of less than 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (pick__number INTEGER, round INTEGER)
SELECT MAX(pick__number) FROM table_name_81 WHERE round < 2
Write a SQL query that answers the following question: Which pick number had a round of less than 7, an overall of less than 127, and where the name was Robert Alford?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (pick__number VARCHAR, name VARCHAR, round VARCHAR, overall VARCHAR)
SELECT pick__number FROM table_name_82 WHERE round < 7 AND overall < 127 AND name = "robert alford"
Write a SQL query that answers the following question: Which highest overall figure had Robert Alford as a name and a round of more than 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (overall INTEGER, name VARCHAR, round VARCHAR)
SELECT MAX(overall) FROM table_name_89 WHERE name = "robert alford" AND round > 2
Write a SQL query that answers the following question: What Game site has an Opponent of Miami Dolphins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (game_site VARCHAR, opponent VARCHAR)
SELECT game_site FROM table_name_90 WHERE opponent = "miami dolphins"
Write a SQL query that answers the following question: What's the Lowest Attendance with a Game site of Riverfront Stadium?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (attendance INTEGER, game_site VARCHAR)
SELECT MIN(attendance) FROM table_name_56 WHERE game_site = "riverfront stadium"
Write a SQL query that answers the following question: What's the lowest Attendance for a Week of 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (attendance INTEGER, week VARCHAR)
SELECT MIN(attendance) FROM table_name_3 WHERE week = 2
Write a SQL query that answers the following question: How many bronze medals does South Korea have?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (bronze VARCHAR, nation VARCHAR)
SELECT bronze FROM table_name_20 WHERE nation = "south korea"
Write a SQL query that answers the following question: What is the smallest number of total medals for Georgia with 0 silver and 1 bronze?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (total INTEGER, bronze VARCHAR, silver VARCHAR, nation VARCHAR)
SELECT MIN(total) FROM table_name_87 WHERE silver > 0 AND nation = "georgia" AND bronze < 1
Write a SQL query that answers the following question: What is the lowest year that had foil team as the event at Melbourne?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (year INTEGER, event VARCHAR, venue VARCHAR)
SELECT MIN(year) FROM table_name_7 WHERE event = "foil team" AND venue = "melbourne"
Write a SQL query that answers the following question: What is the number of years that the event was foil team and took place in Los Angeles?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (year VARCHAR, venue VARCHAR, event VARCHAR)
SELECT COUNT(year) FROM table_name_77 WHERE venue = "los angeles" AND event = "foil team"
Write a SQL query that answers the following question: What was the position at the venue of lyon?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (position VARCHAR, venue VARCHAR)
SELECT position FROM table_name_71 WHERE venue = "lyon"
Write a SQL query that answers the following question: What was the position for mauro at the world championships in 1985 during the foil individual event?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (position VARCHAR, year VARCHAR, event VARCHAR, competition VARCHAR)
SELECT position FROM table_name_41 WHERE event = "foil individual" AND competition = "world championships" AND year = 1985
Write a SQL query that answers the following question: What was the playoff status when the head coach was Brent Sutter, the finish was 4th central, and the points were 82?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (playoffs VARCHAR, points VARCHAR, head_coach VARCHAR, finish VARCHAR)
SELECT playoffs FROM table_name_50 WHERE head_coach = "brent sutter" AND finish = "4th central" AND points = "82"