instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: Which Office has a Democratic ticket of herbert h. lehman?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (office VARCHAR, democratic_ticket VARCHAR)
SELECT office FROM table_name_88 WHERE democratic_ticket = "herbert h. lehman"
Write a SQL query that answers the following question: Who's the Socialist ticket with a Socialist Labor ticket of charles m. carlson?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (socialist_ticket VARCHAR, socialist_labor_ticket VARCHAR)
SELECT socialist_ticket FROM table_name_89 WHERE socialist_labor_ticket = "charles m. carlson"
Write a SQL query that answers the following question: Which bowl game has a season greater than 2008, with new orleans, Louisiana as the location?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (bowl_game VARCHAR, season VARCHAR, location VARCHAR)
SELECT bowl_game FROM table_name_47 WHERE season > 2008 AND location = "new orleans, louisiana"
Write a SQL query that answers the following question: What result has 1947 sun bowl as the bowl game?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (result VARCHAR, bowl_game VARCHAR)
SELECT result FROM table_name_81 WHERE bowl_game = "1947 sun bowl"
Write a SQL query that answers the following question: What result has texas longhorns as the opponent?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (result VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_47 WHERE opponent = "texas longhorns"
Write a SQL query that answers the following question: What location has 51,212 as the attendance?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (location VARCHAR, attendance VARCHAR)
SELECT location FROM table_name_60 WHERE attendance = "51,212"
Write a SQL query that answers the following question: Which Pictorials is on 5-01?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (pictorials VARCHAR, date VARCHAR)
SELECT pictorials FROM table_name_40 WHERE date = "5-01"
Write a SQL query that answers the following question: Which Cover model has a Pictorials of brande roderick-pmoy, naked news?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (cover_model VARCHAR, pictorials VARCHAR)
SELECT cover_model FROM table_name_56 WHERE pictorials = "brande roderick-pmoy, naked news"
Write a SQL query that answers the following question: which Cover model has a Centerfold model of jennifer walcott?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (cover_model VARCHAR, centerfold_model VARCHAR)
SELECT cover_model FROM table_name_77 WHERE centerfold_model = "jennifer walcott"
Write a SQL query that answers the following question: Which Centerfold model has a Cover model of irina voronina?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (centerfold_model VARCHAR, cover_model VARCHAR)
SELECT centerfold_model FROM table_name_81 WHERE cover_model = "irina voronina"
Write a SQL query that answers the following question: Which Centerfold model has a Date of 3-01?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (centerfold_model VARCHAR, date VARCHAR)
SELECT centerfold_model FROM table_name_54 WHERE date = "3-01"
Write a SQL query that answers the following question: What is the score on 15 Aug with a 17:30 time?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (score VARCHAR, date VARCHAR, time VARCHAR)
SELECT score FROM table_name_66 WHERE date = "15 aug" AND time = "17:30"
Write a SQL query that answers the following question: What is the total number of round values that had opponents named Paul Sutherland?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (round VARCHAR, opponent VARCHAR)
SELECT COUNT(round) FROM table_name_93 WHERE opponent = "paul sutherland"
Write a SQL query that answers the following question: Which opponent led to a record of 10-6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_94 WHERE record = "10-6"
Write a SQL query that answers the following question: Which method led to a record of 9-4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (method VARCHAR, record VARCHAR)
SELECT method FROM table_name_61 WHERE record = "9-4"
Write a SQL query that answers the following question: What song had an index of m6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (song VARCHAR, index VARCHAR)
SELECT song FROM table_name_68 WHERE index = "m6"
Write a SQL query that answers the following question: For which song was the score 6.5 + 6.0 + 6.0 + 5.5 = 24.0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (song VARCHAR, score VARCHAR)
SELECT song FROM table_name_25 WHERE score = 6.5 + 6.0 + 6.0 + 5.5 = 24.0
Write a SQL query that answers the following question: When the played number is less than 8 and against is 23, what is the least amount of points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (points INTEGER, against VARCHAR, played VARCHAR)
SELECT MIN(points) FROM table_name_76 WHERE against = 23 AND played < 8
Write a SQL query that answers the following question: When the corinthians have a position of less than 5, what is the average against?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (against INTEGER, position VARCHAR, team VARCHAR)
SELECT AVG(against) FROM table_name_58 WHERE position < 5 AND team = "corinthians"
Write a SQL query that answers the following question: What position has less than 6 Points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (position VARCHAR, points INTEGER)
SELECT COUNT(position) FROM table_name_63 WHERE points < 6
Write a SQL query that answers the following question: What is the number of against when the difference is 10 and played is greater than 8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (against VARCHAR, difference VARCHAR, played VARCHAR)
SELECT COUNT(against) FROM table_name_3 WHERE difference = "10" AND played > 8
Write a SQL query that answers the following question: What was the stake president when the organized date is April 18, 1965?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (stake VARCHAR, organized VARCHAR)
SELECT stake AS President FROM table_name_77 WHERE organized = "april 18, 1965"
Write a SQL query that answers the following question: What is the name of the award given for the category Mercury Prize?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (award VARCHAR, category VARCHAR)
SELECT award FROM table_name_58 WHERE category = "mercury prize"
Write a SQL query that answers the following question: How many years has the Mercury Prize award been given?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (year VARCHAR, award VARCHAR)
SELECT COUNT(year) FROM table_name_47 WHERE award = "mercury prize"
Write a SQL query that answers the following question: For how many years has the Mercury Prize been awarded?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (year VARCHAR, award VARCHAR)
SELECT COUNT(year) FROM table_name_71 WHERE award = "mercury prize"
Write a SQL query that answers the following question: In what year, prior to 2009, was the Mercury Prize awarded?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (result VARCHAR, year VARCHAR, award VARCHAR)
SELECT result FROM table_name_50 WHERE year < 2009 AND award = "mercury prize"
Write a SQL query that answers the following question: What is the lowest Points when against is 50, and there are less than 20 played?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (points INTEGER, against VARCHAR, played VARCHAR)
SELECT MIN(points) FROM table_name_80 WHERE against = 50 AND played < 20
Write a SQL query that answers the following question: What is the average Position with less than 57 against and the team is Juventus?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (position INTEGER, against VARCHAR, team VARCHAR)
SELECT AVG(position) FROM table_name_19 WHERE against < 57 AND team = "juventus"
Write a SQL query that answers the following question: What is the highest Position when the against is less than 41, and lost is more than 7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (position INTEGER, against VARCHAR, lost VARCHAR)
SELECT MAX(position) FROM table_name_23 WHERE against < 41 AND lost > 7
Write a SQL query that answers the following question: What is the average Lost when there are 57 against?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (lost INTEGER, against VARCHAR)
SELECT AVG(lost) FROM table_name_42 WHERE against = 57
Write a SQL query that answers the following question: What is the lowest Lost for são paulo railway, Points more than 21?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (lost INTEGER, team VARCHAR, points VARCHAR)
SELECT MIN(lost) FROM table_name_46 WHERE team = "são paulo railway" AND points > 21
Write a SQL query that answers the following question: What unit is in Mongolia?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (unit VARCHAR, location VARCHAR)
SELECT unit FROM table_name_29 WHERE location = "mongolia"
Write a SQL query that answers the following question: What unit is in Argentina?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (unit VARCHAR, location VARCHAR)
SELECT unit FROM table_name_94 WHERE location = "argentina"
Write a SQL query that answers the following question: What name is located in China?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (name VARCHAR, location VARCHAR)
SELECT name FROM table_name_8 WHERE location = "china"
Write a SQL query that answers the following question: What unit is located in China and has Zhou Zhang as an author?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (unit VARCHAR, location VARCHAR, authors VARCHAR)
SELECT unit FROM table_name_53 WHERE location = "china" AND authors = "zhou zhang"
Write a SQL query that answers the following question: What kind of Manufacturer has a Laps smaller than 20 and a Grid of 21
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (manufacturer VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT manufacturer FROM table_name_54 WHERE laps < 20 AND grid = 21
Write a SQL query that answers the following question: Which Airline has a Fleet size larger than 17, and a IATA of pr?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (airline VARCHAR, fleet_size VARCHAR, iata VARCHAR)
SELECT airline FROM table_name_98 WHERE fleet_size > 17 AND iata = "pr"
Write a SQL query that answers the following question: Which ICAO has a Fleet size of 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (icao VARCHAR, fleet_size VARCHAR)
SELECT icao FROM table_name_96 WHERE fleet_size = 2
Write a SQL query that answers the following question: What is the of Fleet size with a IATA of pr, and a Commenced operations smaller than 1941?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (fleet_size INTEGER, iata VARCHAR, commenced_operations VARCHAR)
SELECT SUM(fleet_size) FROM table_name_4 WHERE iata = "pr" AND commenced_operations < 1941
Write a SQL query that answers the following question: Which ICAO has a Commenced operations larger than 2011?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (icao VARCHAR, commenced_operations INTEGER)
SELECT icao FROM table_name_72 WHERE commenced_operations > 2011
Write a SQL query that answers the following question: What is the Status with an Author that is woodruff?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (status VARCHAR, authors VARCHAR)
SELECT status FROM table_name_31 WHERE authors = "woodruff"
Write a SQL query that answers the following question: What is the highest Pick # when the CFL Team is the Toronto Argonauts?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (pick__number INTEGER, cfl_team VARCHAR)
SELECT MAX(pick__number) FROM table_name_95 WHERE cfl_team = "toronto argonauts"
Write a SQL query that answers the following question: What is the CFL Team with #48 as the pick number?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (cfl_team VARCHAR, pick__number VARCHAR)
SELECT cfl_team FROM table_name_98 WHERE pick__number = 48
Write a SQL query that answers the following question: What is the College with a Position of db, and the CFL Team was Winnipeg Blue Bombers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (college VARCHAR, position VARCHAR, cfl_team VARCHAR)
SELECT college FROM table_name_59 WHERE position = "db" AND cfl_team = "winnipeg blue bombers"
Write a SQL query that answers the following question: What is the CFL Team with Will Grant?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (cfl_team VARCHAR, player VARCHAR)
SELECT cfl_team FROM table_name_32 WHERE player = "will grant"
Write a SQL query that answers the following question: What is the latest year of a gratitude type mission with 99 in the entourage?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (year INTEGER, number_in_entourage VARCHAR, mission_type VARCHAR)
SELECT MAX(year) FROM table_name_60 WHERE number_in_entourage = "99" AND mission_type = "gratitude"
Write a SQL query that answers the following question: Who was the lead envoy of the mission with the Ryūkyūan King shō eki?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (lead_envoy VARCHAR, ryūkyūan_king VARCHAR)
SELECT lead_envoy FROM table_name_62 WHERE ryūkyūan_king = "shō eki"
Write a SQL query that answers the following question: Who was the lead envoy of the congratulation mission in 1718 with the Ryūkyūan King shō kei?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (lead_envoy VARCHAR, year VARCHAR, ryūkyūan_king VARCHAR, mission_type VARCHAR)
SELECT lead_envoy FROM table_name_10 WHERE ryūkyūan_king = "shō kei" AND mission_type = "congratulation" AND year = 1718
Write a SQL query that answers the following question: Who was the lead envoy with the Ryūkyūan King shō kō?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (lead_envoy VARCHAR, ryūkyūan_king VARCHAR)
SELECT lead_envoy FROM table_name_44 WHERE ryūkyūan_king = "shō kō"
Write a SQL query that answers the following question: On 10/20/1979*, who was the Opponent?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_59 WHERE date = "10/20/1979*"
Write a SQL query that answers the following question: What is the average Attendance at a game with a Result of w 30-23?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (attendance INTEGER, result VARCHAR)
SELECT AVG(attendance) FROM table_name_16 WHERE result = "w 30-23"
Write a SQL query that answers the following question: What is the lowest Attendance at a game with the Result of w 25-17?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (attendance INTEGER, result VARCHAR)
SELECT MIN(attendance) FROM table_name_58 WHERE result = "w 25-17"
Write a SQL query that answers the following question: What is Score, when Leading Scorer is Tyrone Hill , 20 Points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (score VARCHAR, leading_scorer VARCHAR)
SELECT score FROM table_name_6 WHERE leading_scorer = "tyrone hill , 20 points"
Write a SQL query that answers the following question: What is Home, when Score is 103-93?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (home VARCHAR, score VARCHAR)
SELECT home FROM table_name_95 WHERE score = "103-93"
Write a SQL query that answers the following question: What is Attendance, when Home is Cleveland, and when Date is January 30?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (attendance VARCHAR, home VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_74 WHERE home = "cleveland" AND date = "january 30"
Write a SQL query that answers the following question: What is Leading Scorer, when Attendance is Gund Arena 20,562, and when Record is 20-10?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (leading_scorer VARCHAR, attendance VARCHAR, record VARCHAR)
SELECT leading_scorer FROM table_name_65 WHERE attendance = "gund arena 20,562" AND record = "20-10"
Write a SQL query that answers the following question: What is Score, when Date is January 12?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_37 WHERE date = "january 12"
Write a SQL query that answers the following question: What is Score, when Attendance is Gund Arena 20,562, and when Date is January 27?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (score VARCHAR, attendance VARCHAR, date VARCHAR)
SELECT score FROM table_name_33 WHERE attendance = "gund arena 20,562" AND date = "january 27"
Write a SQL query that answers the following question: What is the sum of Top-10(s), when Cuts made is less than 10, and when Top-5 is less than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (top_10 INTEGER, cuts_made VARCHAR, top_5 VARCHAR)
SELECT SUM(top_10) FROM table_name_95 WHERE cuts_made < 10 AND top_5 < 0
Write a SQL query that answers the following question: What is the lowest Top-25, when Events is 10, and when Wins is greater than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (top_25 INTEGER, events VARCHAR, wins VARCHAR)
SELECT MIN(top_25) FROM table_name_31 WHERE events = 10 AND wins > 0
Write a SQL query that answers the following question: What is the lowest Top-5, when Top-25 is less than 4, and when Cuts made is less than 7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (top_5 INTEGER, top_25 VARCHAR, cuts_made VARCHAR)
SELECT MIN(top_5) FROM table_name_33 WHERE top_25 < 4 AND cuts_made < 7
Write a SQL query that answers the following question: What is the Height of Junior Meghan Austin?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (height VARCHAR, year VARCHAR, name VARCHAR)
SELECT height FROM table_name_59 WHERE year = "junior" AND name = "meghan austin"
Write a SQL query that answers the following question: What is Martina Wood's Position?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (position VARCHAR, name VARCHAR)
SELECT position FROM table_name_46 WHERE name = "martina wood"
Write a SQL query that answers the following question: What is the Name of the Player from Charlotte, NC?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (name VARCHAR, home_town VARCHAR)
SELECT name FROM table_name_91 WHERE home_town = "charlotte, nc"
Write a SQL query that answers the following question: What is 6-2 Martina Wood's Position?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (position VARCHAR, height VARCHAR, name VARCHAR)
SELECT position FROM table_name_52 WHERE height = "6-2" AND name = "martina wood"
Write a SQL query that answers the following question: What is the Position of the Player from Temple Hills, MD?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (position VARCHAR, home_town VARCHAR)
SELECT position FROM table_name_86 WHERE home_town = "temple hills, md"
Write a SQL query that answers the following question: What is the Name of the Junior from Fayetteville, NC?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (name VARCHAR, year VARCHAR, home_town VARCHAR)
SELECT name FROM table_name_69 WHERE year = "junior" AND home_town = "fayetteville, nc"
Write a SQL query that answers the following question: What rank has jo angel (wa) as the player?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (rank VARCHAR, player VARCHAR)
SELECT rank FROM table_name_47 WHERE player = "jo angel (wa)"
Write a SQL query that answers the following question: What average has 1 as rhe rank?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (average VARCHAR, rank VARCHAR)
SELECT average FROM table_name_61 WHERE rank = "1"
Write a SQL query that answers the following question: What rank has andy bichel (qld) as the player?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (rank VARCHAR, player VARCHAR)
SELECT rank FROM table_name_80 WHERE player = "andy bichel (qld)"
Write a SQL query that answers the following question: What is the average that has 2 for the rank?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (average VARCHAR, rank VARCHAR)
SELECT average FROM table_name_3 WHERE rank = "2"
Write a SQL query that answers the following question: What playee has 24.21 as the average?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (player VARCHAR, average VARCHAR)
SELECT player FROM table_name_46 WHERE average = "24.21"
Write a SQL query that answers the following question: What is the average that has 441 as wicket?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (average VARCHAR, s_wicket VARCHAR)
SELECT average FROM table_name_31 WHERE s_wicket = "441"
Write a SQL query that answers the following question: What was the year Elected of Republican Incumbent Dave Reichert?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (elected VARCHAR, party VARCHAR, incumbent VARCHAR)
SELECT elected FROM table_name_31 WHERE party = "republican" AND incumbent = "dave reichert"
Write a SQL query that answers the following question: What were the Results in the Washington 2 District?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (results VARCHAR, district VARCHAR)
SELECT results FROM table_name_73 WHERE district = "washington 2"
Write a SQL query that answers the following question: What is the 2008 Candidates Elected before 1994 with Incumbent Jim McDermott?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (elected VARCHAR, incumbent VARCHAR)
SELECT 2008 AS _candidates FROM table_name_18 WHERE elected < 1994 AND incumbent = "jim mcdermott"
Write a SQL query that answers the following question: Who is the Incumbent with Results of 68% 32%?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (incumbent VARCHAR, results VARCHAR)
SELECT incumbent FROM table_name_1 WHERE results = "68% 32%"
Write a SQL query that answers the following question: What District had Republican Incumbent Cathy McMorris?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (district VARCHAR, party VARCHAR, incumbent VARCHAR)
SELECT district FROM table_name_75 WHERE party = "republican" AND incumbent = "cathy mcmorris"
Write a SQL query that answers the following question: What was Italy's highest total when there were less than 4 bronze and 1 gold?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (total INTEGER, nation VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT MAX(total) FROM table_name_29 WHERE bronze < 4 AND gold = 1 AND nation = "italy"
Write a SQL query that answers the following question: How many totals had more than 4 bronze?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (total INTEGER, bronze INTEGER)
SELECT SUM(total) FROM table_name_93 WHERE bronze > 4
Write a SQL query that answers the following question: What was Austria's lowest total when the gold was more than 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (total INTEGER, nation VARCHAR, gold VARCHAR)
SELECT MIN(total) FROM table_name_84 WHERE nation = "austria" AND gold > 3
Write a SQL query that answers the following question: What are the years won when the to par is +5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (year_s__won VARCHAR, to_par VARCHAR)
SELECT year_s__won FROM table_name_76 WHERE to_par = "+5"
Write a SQL query that answers the following question: What is the average total for Tiger Woods?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (total INTEGER, player VARCHAR)
SELECT AVG(total) FROM table_name_26 WHERE player = "tiger woods"
Write a SQL query that answers the following question: Which country had a total of 295?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (country VARCHAR, total VARCHAR)
SELECT country FROM table_name_46 WHERE total = 295
Write a SQL query that answers the following question: What is the finish when the to par is +18?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (finish VARCHAR, to_par VARCHAR)
SELECT finish FROM table_name_18 WHERE to_par = "+18"
Write a SQL query that answers the following question: How many total No Results occured when the team had less than 46 wins and more than 16 matches?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (no_result INTEGER, matches VARCHAR, wins VARCHAR)
SELECT SUM(no_result) FROM table_name_63 WHERE matches > 16 AND wins < 46
Write a SQL query that answers the following question: When the team had more than 46 wins, what were the average losses?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (losses INTEGER, wins INTEGER)
SELECT AVG(losses) FROM table_name_13 WHERE wins > 46
Write a SQL query that answers the following question: How many total No Results are recorded for less than 6 wins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (no_result VARCHAR, wins INTEGER)
SELECT COUNT(no_result) FROM table_name_21 WHERE wins < 6
Write a SQL query that answers the following question: What Interview subject was on a Date that is 11-92?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (interview_subject VARCHAR, date VARCHAR)
SELECT interview_subject FROM table_name_42 WHERE date = "11-92"
Write a SQL query that answers the following question: What is the lowest game number with Aris Thessaloniki with points smaller than 120?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (games INTEGER, team VARCHAR, points VARCHAR)
SELECT MIN(games) FROM table_name_70 WHERE team = "aris thessaloniki" AND points < 120
Write a SQL query that answers the following question: What is the game average that has a rank larger than 2 with team Olympiacos and points larger than 113?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (games INTEGER, points VARCHAR, rank VARCHAR, team VARCHAR)
SELECT AVG(games) FROM table_name_76 WHERE rank > 2 AND team = "olympiacos" AND points > 113
Write a SQL query that answers the following question: Which result was there when the opponents were the Buffalo Bills?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (result VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_14 WHERE opponent = "buffalo bills"
Write a SQL query that answers the following question: What was the Purse ($) total for Iowa?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (purse__ VARCHAR, location VARCHAR)
SELECT COUNT(purse__) AS $__ FROM table_name_88 WHERE location = "iowa"
Write a SQL query that answers the following question: When did the Score of 195 (-21) happen?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_4 WHERE score = "195 (-21)"
Write a SQL query that answers the following question: When did Scott Hoch (2) win?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (date VARCHAR, winner VARCHAR)
SELECT date FROM table_name_78 WHERE winner = "scott hoch (2)"
Write a SQL query that answers the following question: What team placed second during the season where Western Australia placed fifth, South Australia placed sixth, and Tasmania placed fourth?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (second VARCHAR, fourth VARCHAR, fifth VARCHAR, sixth VARCHAR)
SELECT second FROM table_name_2 WHERE fifth = "western australia" AND sixth = "south australia" AND fourth = "tasmania"
Write a SQL query that answers the following question: What team placed sixth during the season where Western Australia placed fourth and Tasmania placed first?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (sixth VARCHAR, fourth VARCHAR, first VARCHAR)
SELECT sixth FROM table_name_91 WHERE fourth = "western australia" AND first = "tasmania"
Write a SQL query that answers the following question: What team placed sixth during the season where Tasmania placed second and Western Australia placed fourth?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (sixth VARCHAR, second VARCHAR, fourth VARCHAR)
SELECT sixth FROM table_name_70 WHERE second = "tasmania" AND fourth = "western australia"
Write a SQL query that answers the following question: What team placed fifth during the season where Victoria placed second, Tasmania placed first, and South Australia placed sixth?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (fifth VARCHAR, sixth VARCHAR, second VARCHAR, first VARCHAR)
SELECT fifth FROM table_name_96 WHERE second = "victoria" AND first = "tasmania" AND sixth = "south australia"
Write a SQL query that answers the following question: What is the smallest number of losses for a position greater than 2 with 4 points and more than 2 draws?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (lost INTEGER, drawn VARCHAR, position VARCHAR, points VARCHAR)
SELECT MIN(lost) FROM table_name_4 WHERE position > 2 AND points = 4 AND drawn > 2