instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: Which Country that has 600?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (country VARCHAR, money___$__ VARCHAR)
SELECT country FROM table_name_43 WHERE money___$__ = 600
Write a SQL query that answers the following question: What is the to par that has macdonald smith as the player?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_41 WHERE player = "macdonald smith"
Write a SQL query that answers the following question: Which country has t6 as a place and 75-70=145 as the score?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (country VARCHAR, place VARCHAR, score VARCHAR)
SELECT country FROM table_name_9 WHERE place = "t6" AND score = 75 - 70 = 145
Write a SQL query that answers the following question: What is the to par that has jimmy hines as the player?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_46 WHERE player = "jimmy hines"
Write a SQL query that answers the following question: Which score has t3 as the place?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (score VARCHAR, place VARCHAR)
SELECT score FROM table_name_27 WHERE place = "t3"
Write a SQL query that answers the following question: Which place has horton smith as the player?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_10 WHERE player = "horton smith"
Write a SQL query that answers the following question: Which place has United States as the country and Craig Wood as the player?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (place VARCHAR, country VARCHAR, player VARCHAR)
SELECT place FROM table_name_88 WHERE country = "united states" AND player = "craig wood"
Write a SQL query that answers the following question: What was the 2013 finish for the tournament that had a 2007 finish of A?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (Id VARCHAR)
SELECT 2013 FROM table_name_94 WHERE 2007 = "a"
Write a SQL query that answers the following question: What was the 2012 finish in the US Open?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (tournament VARCHAR)
SELECT 2012 FROM table_name_62 WHERE tournament = "us open"
Write a SQL query that answers the following question: Which tournament had a 2010 finish of 4R?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (tournament VARCHAR)
SELECT tournament FROM table_name_42 WHERE 2010 = "4r"
Write a SQL query that answers the following question: What is the qualification for rank of 29 in 1957?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (qual VARCHAR, rank VARCHAR, year VARCHAR)
SELECT qual FROM table_name_70 WHERE rank = "29" AND year = "1957"
Write a SQL query that answers the following question: What is the Place when the To par was +3 and Score was 74-73=147?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (place VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT place FROM table_name_46 WHERE to_par = "+3" AND score = 74 - 73 = 147
Write a SQL query that answers the following question: When the To par is E, what is the Score?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (score VARCHAR, to_par VARCHAR)
SELECT score FROM table_name_62 WHERE to_par = "e"
Write a SQL query that answers the following question: What was Lloyd Mangrum's Score?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_63 WHERE player = "lloyd mangrum"
Write a SQL query that answers the following question: What Dave Douglas' Place?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_66 WHERE player = "dave douglas"
Write a SQL query that answers the following question: What's Chick Harbert's To par?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_21 WHERE player = "chick harbert"
Write a SQL query that answers the following question: What United States Player has a To par of +4 and a Score of 71-77=148?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (player VARCHAR, country VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT player FROM table_name_67 WHERE country = "united states" AND to_par = "+4" AND score = 71 - 77 = 148
Write a SQL query that answers the following question: What is South Korea's to par value?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (to_par VARCHAR, country VARCHAR)
SELECT to_par FROM table_name_69 WHERE country = "south korea"
Write a SQL query that answers the following question: What are Tiger Woods' average earnings?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (money___ INTEGER, player VARCHAR)
SELECT AVG(money___) AS $__ FROM table_name_86 WHERE player = "tiger woods"
Write a SQL query that answers the following question: What's the method for a record of 4-2 and round smaller than 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (method VARCHAR, round VARCHAR, record VARCHAR)
SELECT method FROM table_name_78 WHERE round < 3 AND record = "4-2"
Write a SQL query that answers the following question: Where's the location for the opponent James Zikic and 3 rounds?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (location VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT location FROM table_name_99 WHERE round = 3 AND opponent = "james zikic"
Write a SQL query that answers the following question: Name the spouse for louise of hesse-kassel
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (spouse VARCHAR, name VARCHAR)
SELECT spouse FROM table_name_83 WHERE name = "louise of hesse-kassel"
Write a SQL query that answers the following question: Name the became consort for christian ix spouse
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (became_consort VARCHAR, spouse VARCHAR)
SELECT became_consort FROM table_name_31 WHERE spouse = "christian ix"
Write a SQL query that answers the following question: Name the marriagefor ceased to be consort of 29 september 1898
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (marriage VARCHAR, ceased_to_be_consort VARCHAR)
SELECT marriage FROM table_name_6 WHERE ceased_to_be_consort = "29 september 1898"
Write a SQL query that answers the following question: Tell me the name of the person married to frederick ix
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (name VARCHAR, spouse VARCHAR)
SELECT name FROM table_name_71 WHERE spouse = "frederick ix"
Write a SQL query that answers the following question: Name the birth of the person married 24 may 1935
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (birth VARCHAR, marriage VARCHAR)
SELECT birth FROM table_name_8 WHERE marriage = "24 may 1935"
Write a SQL query that answers the following question: What was the rank of the player in lane 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (rank INTEGER, lane VARCHAR)
SELECT AVG(rank) FROM table_name_73 WHERE lane = 6
Write a SQL query that answers the following question: Name the average year with Laps of 6
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (year INTEGER, laps VARCHAR)
SELECT AVG(year) FROM table_name_11 WHERE laps = 6
Write a SQL query that answers the following question: Which Language has a Number of 553 633?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (language VARCHAR, number VARCHAR)
SELECT language FROM table_name_64 WHERE number = "553 633"
Write a SQL query that answers the following question: Which Males have a percentage of 0.42?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (males VARCHAR, percentage___percentage_ VARCHAR)
SELECT males FROM table_name_76 WHERE percentage___percentage_ = "0.42"
Write a SQL query that answers the following question: What's the Language with a percentage of 6.49?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (language VARCHAR, percentage___percentage_ VARCHAR)
SELECT language FROM table_name_69 WHERE percentage___percentage_ = "6.49"
Write a SQL query that answers the following question: What Number has a Language listed as other?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (number VARCHAR, language VARCHAR)
SELECT number FROM table_name_33 WHERE language = "other"
Write a SQL query that answers the following question: what is the highest gold count when total is more than 3, bronze less than 3, and nation of belarus with silver count more than 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (gold INTEGER, silver VARCHAR, nation VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT MAX(gold) FROM table_name_28 WHERE total > 3 AND bronze < 3 AND nation = "belarus" AND silver > 2
Write a SQL query that answers the following question: with silver count at 0, what is the lowest bronze count?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (bronze INTEGER, silver INTEGER)
SELECT MIN(bronze) FROM table_name_82 WHERE silver < 0
Write a SQL query that answers the following question: what is the gold count with total less than 3 and more than 1 silver?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (gold INTEGER, total VARCHAR, silver VARCHAR)
SELECT MIN(gold) FROM table_name_68 WHERE total < 3 AND silver > 1
Write a SQL query that answers the following question: Who built the ship that is 42.8 m long and was delivered in 2007?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (builder VARCHAR, length VARCHAR, delivery VARCHAR)
SELECT builder FROM table_name_83 WHERE length = "42.8 m" AND delivery = 2007
Write a SQL query that answers the following question: Who was the Human Resources & Operations person between 2003-2004?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (human_resources_ VARCHAR, _operations VARCHAR, year VARCHAR)
SELECT human_resources_ & _operations FROM table_name_14 WHERE year = "2003-2004"
Write a SQL query that answers the following question: Who was in local affairs when the Human Resources & Operations was N. Charles Hamilton?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (local_affairs VARCHAR, human_resources_ VARCHAR, _operations VARCHAR)
SELECT local_affairs FROM table_name_9 WHERE human_resources_ & _operations = "n. charles hamilton"
Write a SQL query that answers the following question: Who was in Human Resources & Operations when David Hornsby was in Academic & University Affairs?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (human_resources_ VARCHAR, _operations VARCHAR, academic_ VARCHAR, _university_affairs VARCHAR)
SELECT human_resources_ & _operations FROM table_name_56 WHERE academic_ & _university_affairs = "david hornsby"
Write a SQL query that answers the following question: Who was in external affairs when Jakki Doyle was in Human Resources & Operations?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (external_affairs VARCHAR, human_resources_ VARCHAR, _operations VARCHAR)
SELECT external_affairs FROM table_name_81 WHERE human_resources_ & _operations = "jakki doyle"
Write a SQL query that answers the following question: Who was in local affairs in 2012-2013?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (local_affairs VARCHAR, year VARCHAR)
SELECT local_affairs FROM table_name_9 WHERE year = "2012-2013"
Write a SQL query that answers the following question: Who was in Academic & University Affairs when Andrew Langille was in local affairs?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (academic_ VARCHAR, _university_affairs VARCHAR, local_affairs VARCHAR)
SELECT academic_ & _university_affairs FROM table_name_72 WHERE local_affairs = "andrew langille"
Write a SQL query that answers the following question: Which Perth's gold coast and Adelaide were yes when Auckland was no?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (perth VARCHAR, auckland VARCHAR, gold_coast VARCHAR, adelaide VARCHAR)
SELECT perth FROM table_name_51 WHERE gold_coast = "yes" AND adelaide = "yes" AND auckland = "no"
Write a SQL query that answers the following question: Which Melbourne had a gold coast and sydney which were yes, but an adelaide that was no?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (melbourne VARCHAR, sydney VARCHAR, gold_coast VARCHAR, adelaide VARCHAR)
SELECT melbourne FROM table_name_59 WHERE gold_coast = "yes" AND adelaide = "no" AND sydney = "yes"
Write a SQL query that answers the following question: Which Adelaide's Melbourne and Perth were yes when Auckland was no?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (adelaide VARCHAR, perth VARCHAR, melbourne VARCHAR, auckland VARCHAR)
SELECT adelaide FROM table_name_20 WHERE melbourne = "yes" AND auckland = "no" AND perth = "yes"
Write a SQL query that answers the following question: Which Sydney's Melbourne was no, when Auckland was yes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (sydney VARCHAR, melbourne VARCHAR, auckland VARCHAR)
SELECT sydney FROM table_name_94 WHERE melbourne = "no" AND auckland = "yes"
Write a SQL query that answers the following question: Which Syndney's Gold coast, Adelaide, Melbourne, and Auckland were all no?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (sydney VARCHAR, auckland VARCHAR, melbourne VARCHAR, gold_coast VARCHAR, adelaide VARCHAR)
SELECT sydney FROM table_name_47 WHERE gold_coast = "no" AND adelaide = "no" AND melbourne = "no" AND auckland = "no"
Write a SQL query that answers the following question: Which Adelaide's Melbourne, Sydney, and Gold Coast were all no?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (adelaide VARCHAR, gold_coast VARCHAR, melbourne VARCHAR, sydney VARCHAR)
SELECT adelaide FROM table_name_30 WHERE melbourne = "no" AND sydney = "no" AND gold_coast = "no"
Write a SQL query that answers the following question: Name the date which has type of plain stage
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (date VARCHAR, type VARCHAR)
SELECT date FROM table_name_2 WHERE type = "plain stage"
Write a SQL query that answers the following question: Name the distance for Course of vittorio veneto to marina romea
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (distance VARCHAR, course VARCHAR)
SELECT distance FROM table_name_3 WHERE course = "vittorio veneto to marina romea"
Write a SQL query that answers the following question: Who was the partner that played a match on a grass court?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (partner VARCHAR, surface VARCHAR)
SELECT partner FROM table_name_52 WHERE surface = "grass"
Write a SQL query that answers the following question: What was the score of the match in which mardy fish was the partner?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (score VARCHAR, partner VARCHAR)
SELECT score FROM table_name_72 WHERE partner = "mardy fish"
Write a SQL query that answers the following question: Who were the opponents in the match that was played on a hard court and had a runner-up outcome?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (opponents VARCHAR, surface VARCHAR, outcome VARCHAR)
SELECT opponents FROM table_name_84 WHERE surface = "hard" AND outcome = "runner-up"
Write a SQL query that answers the following question: What is the time when the opponent is phil collins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (time VARCHAR, opponent VARCHAR)
SELECT time FROM table_name_86 WHERE opponent = "phil collins"
Write a SQL query that answers the following question: what is the total number of rounds when method is tko (punches) and time is 0:40?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (round VARCHAR, method VARCHAR, time VARCHAR)
SELECT COUNT(round) FROM table_name_22 WHERE method = "tko (punches)" AND time = "0:40"
Write a SQL query that answers the following question: what is the method when the time is 0:51?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (method VARCHAR, time VARCHAR)
SELECT method FROM table_name_5 WHERE time = "0:51"
Write a SQL query that answers the following question: what is the time when the event is bellator 89?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (time VARCHAR, event VARCHAR)
SELECT time FROM table_name_15 WHERE event = "bellator 89"
Write a SQL query that answers the following question: Name the average debt as % of value for operating income more than -16 and % change on year being 62
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (debt_as__percentage_of_value INTEGER, _percentage_change_on_year VARCHAR, operating_income__$m_ VARCHAR)
SELECT AVG(debt_as__percentage_of_value) FROM table_name_7 WHERE _percentage_change_on_year = "62" AND operating_income__$m_ > -16
Write a SQL query that answers the following question: Name the country where % change on year is 21 and value is less than 86
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (country VARCHAR, debt_as__percentage_of_value VARCHAR, _percentage_change_on_year VARCHAR)
SELECT country FROM table_name_12 WHERE debt_as__percentage_of_value < 86 AND _percentage_change_on_year = "21"
Write a SQL query that answers the following question: Name the total number of revenue for italy with team of internazionale with operating income less than 27
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (revenue__ VARCHAR, operating_income__$m_ VARCHAR, country VARCHAR, team VARCHAR)
SELECT COUNT(revenue__) AS $m_ FROM table_name_21 WHERE country = "italy" AND team = "internazionale" AND operating_income__$m_ < 27
Write a SQL query that answers the following question: Name the most revenue for operating income more than 27 for hamburg and debt as % of value less than 0
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (revenue__ INTEGER, debt_as__percentage_of_value VARCHAR, operating_income__$m_ VARCHAR, team VARCHAR)
SELECT MAX(revenue__) AS $m_ FROM table_name_92 WHERE operating_income__$m_ > 27 AND team = "hamburg" AND debt_as__percentage_of_value < 0
Write a SQL query that answers the following question: What is the result for an H/A of H and a round value of R6 replay?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (result VARCHAR, h___a VARCHAR, round VARCHAR)
SELECT result FROM table_name_29 WHERE h___a = "h" AND round = "r6 replay"
Write a SQL query that answers the following question: What was the kickoff date for the round value of R4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (kick_off VARCHAR, round VARCHAR)
SELECT kick_off FROM table_name_23 WHERE round = "r4"
Write a SQL query that answers the following question: What country was Henry Picard from?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_22 WHERE player = "henry picard"
Write a SQL query that answers the following question: Name the sum of inversions for opened of april 20, 2002
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (inversions INTEGER, opened VARCHAR)
SELECT SUM(inversions) FROM table_name_89 WHERE opened = "april 20, 2002"
Write a SQL query that answers the following question: Name the opened for spain
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (opened VARCHAR, country VARCHAR)
SELECT opened FROM table_name_59 WHERE country = "spain"
Write a SQL query that answers the following question: Name the status for six flags new england
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (status VARCHAR, park VARCHAR)
SELECT status FROM table_name_29 WHERE park = "six flags new england"
Write a SQL query that answers the following question: Name the to par with money of 200,000 for australia
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (to_par VARCHAR, money___£__ VARCHAR, country VARCHAR)
SELECT to_par FROM table_name_30 WHERE money___£__ = "200,000" AND country = "australia"
Write a SQL query that answers the following question: Name the money for ireland
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (money___£__ VARCHAR, country VARCHAR)
SELECT money___£__ FROM table_name_73 WHERE country = "ireland"
Write a SQL query that answers the following question: Name the money for pádraig harrington
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (money___£__ VARCHAR, player VARCHAR)
SELECT money___£__ FROM table_name_56 WHERE player = "pádraig harrington"
Write a SQL query that answers the following question: Name the to par for score of 69-73-68-70=280
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (to_par VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_84 WHERE score = 69 - 73 - 68 - 70 = 280
Write a SQL query that answers the following question: Name the money for the to par of -6
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (money___£__ VARCHAR, to_par VARCHAR)
SELECT money___£__ FROM table_name_49 WHERE to_par = "-6"
Write a SQL query that answers the following question: On what date or dates did the term with the Centre Party end?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (term_end VARCHAR, party VARCHAR)
SELECT term_end FROM table_name_85 WHERE party = "centre party"
Write a SQL query that answers the following question: When did the term end for the term that had government 27 and Minister Tzachi Hanegbi?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (term_end VARCHAR, governments VARCHAR, minister VARCHAR)
SELECT term_end FROM table_name_72 WHERE governments = "27" AND minister = "tzachi hanegbi"
Write a SQL query that answers the following question: What is the location/state of the race on the Wanneroo raceway?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (location___state VARCHAR, circuit VARCHAR)
SELECT location___state FROM table_name_5 WHERE circuit = "wanneroo raceway"
Write a SQL query that answers the following question: What is the location/state of the Launceston race?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (location___state VARCHAR, race_title VARCHAR)
SELECT location___state FROM table_name_60 WHERE race_title = "launceston"
Write a SQL query that answers the following question: What is the team of winner Dick Johnson?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (team VARCHAR, winner VARCHAR)
SELECT team FROM table_name_55 WHERE winner = "dick johnson"
Write a SQL query that answers the following question: What is the race title of the Oran Park raceway circuit with team jps team bmw?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (race_title VARCHAR, team VARCHAR, circuit VARCHAR)
SELECT race_title FROM table_name_8 WHERE team = "jps team bmw" AND circuit = "oran park raceway"
Write a SQL query that answers the following question: Name the total number of population hervey bay with population woocoo less than 640 and population of maryborough less than 19,257
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (population__hervey_bay_ VARCHAR, population__woocoo_ VARCHAR, population__maryborough_ VARCHAR)
SELECT COUNT(population__hervey_bay_) FROM table_name_94 WHERE population__woocoo_ < 640 AND population__maryborough_ < 19 OFFSET 257
Write a SQL query that answers the following question: Which manufacturer made Shoya Tomizawa's motorcycle?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (manufacturer VARCHAR, rider VARCHAR)
SELECT manufacturer FROM table_name_20 WHERE rider = "shoya tomizawa"
Write a SQL query that answers the following question: How many laps were ridden in the race that had a Time/Retired of +37.351?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (laps VARCHAR, time_retired VARCHAR)
SELECT COUNT(laps) FROM table_name_24 WHERE time_retired = "+37.351"
Write a SQL query that answers the following question: How many laps did Mattia Pasini ride?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (laps INTEGER, rider VARCHAR)
SELECT MIN(laps) FROM table_name_16 WHERE rider = "mattia pasini"
Write a SQL query that answers the following question: What position does the player who has made 244 appearances with a Leeds career of 1981–1989 play?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (position VARCHAR, appearances VARCHAR, leeds_career VARCHAR)
SELECT position FROM table_name_58 WHERE appearances = 244 AND leeds_career = "1981–1989"
Write a SQL query that answers the following question: What position does the Wales player who made more than 167 appearances, had more than 0 goals, and had a Leeds career from 1977–1982 play?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (position VARCHAR, leeds_career VARCHAR, goals VARCHAR, appearances VARCHAR, nationality VARCHAR)
SELECT position FROM table_name_56 WHERE appearances > 167 AND nationality = "wales" AND goals > 0 AND leeds_career = "1977–1982"
Write a SQL query that answers the following question: What is the average number of goals for a player who had a Leeds career from 1960–1964 and made fewer than 120 appearances?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (goals INTEGER, leeds_career VARCHAR, appearances VARCHAR)
SELECT AVG(goals) FROM table_name_68 WHERE leeds_career = "1960–1964" AND appearances < 120
Write a SQL query that answers the following question: Who attended the school in 2008, that Deandria Hill attended in 2005?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (Id VARCHAR)
SELECT 2008 FROM table_name_15 WHERE 2005 = "deandria hill"
Write a SQL query that answers the following question: Who attended the school in 2006, that Jasmine Wilson attended in 2005?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (Id VARCHAR)
SELECT 2006 FROM table_name_70 WHERE 2005 = "jasmine wilson"
Write a SQL query that answers the following question: Who attended the school in 2009, that Lakita Hall attended in 2007?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (Id VARCHAR)
SELECT 2009 FROM table_name_60 WHERE 2007 = "lakita hall"
Write a SQL query that answers the following question: Who attended the school in 2007, that Kiara Spivey attended in 2008?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (Id VARCHAR)
SELECT 2007 FROM table_name_20 WHERE 2008 = "kiara spivey"
Write a SQL query that answers the following question: Who attended the school in 2006, that Whitney Powell attended in 2007?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (Id VARCHAR)
SELECT 2006 FROM table_name_32 WHERE 2007 = "whitney powell"
Write a SQL query that answers the following question: Who attended the school in 2008, that Brikajdri Wilson attended in 2006?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (Id VARCHAR)
SELECT 2008 FROM table_name_42 WHERE 2006 = "brikajdri wilson"
Write a SQL query that answers the following question: What is the lowest rank of a swimmer named Elizabeth Van Welie with a lane larger than 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (rank INTEGER, lane VARCHAR, name VARCHAR)
SELECT MIN(rank) FROM table_name_85 WHERE lane > 5 AND name = "elizabeth van welie"
Write a SQL query that answers the following question: What is the rank of the swimmer with a time of 2:11.83?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (rank VARCHAR, time VARCHAR)
SELECT rank FROM table_name_35 WHERE time = "2:11.83"
Write a SQL query that answers the following question: What is the lowest lane of a swimmer with a time of 2:07.57 and a rank larger than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (lane INTEGER, time VARCHAR, rank VARCHAR)
SELECT MIN(lane) FROM table_name_17 WHERE time = "2:07.57" AND rank > 1
Write a SQL query that answers the following question: What is the rank of the swimmer named Petria Thomas?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (rank VARCHAR, name VARCHAR)
SELECT rank FROM table_name_34 WHERE name = "petria thomas"
Write a SQL query that answers the following question: How many people were in attendance when the group position was 3rd?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (attendance VARCHAR, group_position VARCHAR)
SELECT attendance FROM table_name_56 WHERE group_position = "3rd"
Write a SQL query that answers the following question: What was the final score agains Dynamo Kyiv, when the group position was 1st?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (result_f___a VARCHAR, group_position VARCHAR, opponents VARCHAR)
SELECT result_f___a FROM table_name_39 WHERE group_position = "1st" AND opponents = "dynamo kyiv"
Write a SQL query that answers the following question: What was the average attendance on 18 October 2000?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (attendance INTEGER, date VARCHAR)
SELECT AVG(attendance) FROM table_name_51 WHERE date = "18 october 2000"
Write a SQL query that answers the following question: In 2007, what player won player of the year?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (player VARCHAR, year_s__won VARCHAR)
SELECT player FROM table_name_35 WHERE year_s__won = "2007"
Write a SQL query that answers the following question: What year(s) did Mike Weir win player of the year?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (year_s__won VARCHAR, player VARCHAR)
SELECT year_s__won FROM table_name_45 WHERE player = "mike weir"