instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: What is the score of the game with a tie no of 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (score VARCHAR, tie_no VARCHAR)
SELECT score FROM table_name_21 WHERE tie_no = "6"
Write a SQL query that answers the following question: What is the score of the game home team gillingham played on 23 january 1982?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (score VARCHAR, date VARCHAR, home_team VARCHAR)
SELECT score FROM table_name_67 WHERE date = "23 january 1982" AND home_team = "gillingham"
Write a SQL query that answers the following question: What is the tie no of the game that home team huddersfield town played?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (tie_no VARCHAR, home_team VARCHAR)
SELECT tie_no FROM table_name_15 WHERE home_team = "huddersfield town"
Write a SQL query that answers the following question: What is the home team of the game with a 2-0 record?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (home VARCHAR, record VARCHAR)
SELECT home FROM table_name_89 WHERE record = "2-0"
Write a SQL query that answers the following question: What is the score of the game with a 3-0 record?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_67 WHERE record = "3-0"
Write a SQL query that answers the following question: What is the visitor team on April 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (visitor VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_98 WHERE date = "april 4"
Write a SQL query that answers the following question: What is the score of the game with the chicago black hawks as the visitor and a 3-1 record?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (score VARCHAR, visitor VARCHAR, record VARCHAR)
SELECT score FROM table_name_45 WHERE visitor = "chicago black hawks" AND record = "3-1"
Write a SQL query that answers the following question: What is Instant Messaging, when Telephony is "Yes with integrated Sametime"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (instant_messaging VARCHAR, telephony VARCHAR)
SELECT instant_messaging FROM table_name_64 WHERE telephony = "yes with integrated sametime"
Write a SQL query that answers the following question: What is Videoconferencing, when Synchronous Conferencing is "No", when Web Conferencing is "No", and when Faxing is "Yes"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (videoconferencing VARCHAR, faxing VARCHAR, synchronous_conferencing VARCHAR, web_conferencing VARCHAR)
SELECT videoconferencing FROM table_name_24 WHERE synchronous_conferencing = "no" AND web_conferencing = "no" AND faxing = "yes"
Write a SQL query that answers the following question: What is Videoconferencing, when Data Conferencing is "No", and when Web Conferencing is "No"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (videoconferencing VARCHAR, data_conferencing VARCHAR, web_conferencing VARCHAR)
SELECT videoconferencing FROM table_name_82 WHERE data_conferencing = "no" AND web_conferencing = "no"
Write a SQL query that answers the following question: What is Application Sharing, when Web Conferencing is "Web Conferencing"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (application_sharing VARCHAR, web_conferencing VARCHAR)
SELECT application_sharing FROM table_name_40 WHERE web_conferencing = "web conferencing"
Write a SQL query that answers the following question: What is Instant Messaging, when Electronic Meeting System is "Yes", and when Name is "Microsoft Sharepoint"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (instant_messaging VARCHAR, electronic_meeting_system VARCHAR, name VARCHAR)
SELECT instant_messaging FROM table_name_48 WHERE electronic_meeting_system = "yes" AND name = "microsoft sharepoint"
Write a SQL query that answers the following question: What is Instant Messaging, when Telephony is "Yes with integrated Sametime"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (instant_messaging VARCHAR, telephony VARCHAR)
SELECT instant_messaging FROM table_name_26 WHERE telephony = "yes with integrated sametime"
Write a SQL query that answers the following question: What Tournament has an Outcome of winner, and Opponents of eddie dibbs harold solomon?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (tournament VARCHAR, outcome VARCHAR, opponents VARCHAR)
SELECT tournament FROM table_name_78 WHERE outcome = "winner" AND opponents = "eddie dibbs harold solomon"
Write a SQL query that answers the following question: What Partner has a Score of 3–6, 2–6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (partner VARCHAR, score VARCHAR)
SELECT partner FROM table_name_59 WHERE score = "3–6, 2–6"
Write a SQL query that answers the following question: What Tournament has a Partner of tom gorman?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (tournament VARCHAR, partner VARCHAR)
SELECT tournament FROM table_name_65 WHERE partner = "tom gorman"
Write a SQL query that answers the following question: What Outcome has Opponents of bob hewitt frew mcmillan?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (outcome VARCHAR, opponents VARCHAR)
SELECT outcome FROM table_name_2 WHERE opponents = "bob hewitt frew mcmillan"
Write a SQL query that answers the following question: Who was the name of the opposing team on 11/02/1961?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (opposing_teams VARCHAR, date VARCHAR)
SELECT opposing_teams FROM table_name_36 WHERE date = "11/02/1961"
Write a SQL query that answers the following question: Which Opposing team had an Against smaller Than 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (opposing_teams VARCHAR, against INTEGER)
SELECT opposing_teams FROM table_name_14 WHERE against < 5
Write a SQL query that answers the following question: What is the status for 07/01/1961?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (status VARCHAR, date VARCHAR)
SELECT status FROM table_name_91 WHERE date = "07/01/1961"
Write a SQL query that answers the following question: What position does Karl Singer play?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (position VARCHAR, player VARCHAR)
SELECT position FROM table_name_22 WHERE player = "karl singer"
Write a SQL query that answers the following question: Which player is an offensive tackle for the New York Jets?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (player VARCHAR, position VARCHAR, afl_team VARCHAR)
SELECT player FROM table_name_37 WHERE position = "offensive tackle" AND afl_team = "new york jets"
Write a SQL query that answers the following question: What position does Mike Dennis play?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (position VARCHAR, player VARCHAR)
SELECT position FROM table_name_42 WHERE player = "mike dennis"
Write a SQL query that answers the following question: Which AFL team has a pick 4 for the offensive tackle position?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (afl_team VARCHAR, position VARCHAR, pick VARCHAR)
SELECT afl_team FROM table_name_14 WHERE position = "offensive tackle" AND pick = 4
Write a SQL query that answers the following question: From which country was Sodje loaned?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (country VARCHAR, name VARCHAR)
SELECT country FROM table_name_88 WHERE name = "sodje"
Write a SQL query that answers the following question: From which club is player C. Dickinson?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (loan_club VARCHAR, name VARCHAR)
SELECT loan_club FROM table_name_35 WHERE name = "c. dickinson"
Write a SQL query that answers the following question: What is the fate for the Bremen ship?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (fate VARCHAR, ship VARCHAR)
SELECT fate FROM table_name_26 WHERE ship = "bremen"
Write a SQL query that answers the following question: Who is the original operator for the AG Vulcan builder and the Prinzess Irene ship?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (original_operator VARCHAR, builder VARCHAR, ship VARCHAR)
SELECT original_operator FROM table_name_54 WHERE builder = "ag vulcan" AND ship = "prinzess irene"
Write a SQL query that answers the following question: What is the Tonnage that has builder AG Vulcan, and the original operator NDL, and the ship, Prinzess Irene?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (tonnage VARCHAR, ship VARCHAR, builder VARCHAR, original_operator VARCHAR)
SELECT tonnage FROM table_name_9 WHERE builder = "ag vulcan" AND original_operator = "ndl" AND ship = "prinzess irene"
Write a SQL query that answers the following question: Who has a Score of 68-71-70=208?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (player VARCHAR, score VARCHAR)
SELECT player FROM table_name_60 WHERE score = 68 - 71 - 70 = 208
Write a SQL query that answers the following question: Which country has -9 to par with a Score of 70-69-68=207?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (country VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT country FROM table_name_55 WHERE to_par = "-9" AND score = 70 - 69 - 68 = 207
Write a SQL query that answers the following question: What is Tiger Woods' to par?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_5 WHERE player = "tiger woods"
Write a SQL query that answers the following question: Which away team played against Peterborough United, with a tie no of replay?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (away_team VARCHAR, tie_no VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_85 WHERE tie_no = "replay" AND home_team = "peterborough united"
Write a SQL query that answers the following question: What are the lowest matches that have wickets greater than 16, 3/15 as the best, and an econ less than 8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (matches INTEGER, econ VARCHAR, wickets VARCHAR, best VARCHAR)
SELECT MIN(matches) FROM table_name_19 WHERE wickets > 16 AND best = "3/15" AND econ < 8
Write a SQL query that answers the following question: How many econs have 13.76 as the S/Rate, with runs less than 325?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (econ VARCHAR, s_rate VARCHAR, runs VARCHAR)
SELECT COUNT(econ) FROM table_name_27 WHERE s_rate = 13.76 AND runs < 325
Write a SQL query that answers the following question: What is the average wickets that have overs greater than 44, danish kaneria as the player, with an average greater than 13.8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (wickets INTEGER, average VARCHAR, overs VARCHAR, player VARCHAR)
SELECT AVG(wickets) FROM table_name_24 WHERE overs > 44 AND player = "danish kaneria" AND average > 13.8
Write a SQL query that answers the following question: How many 5+/inns have tyron henderson as the player, with wickets less than 21?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (_inns VARCHAR, player VARCHAR, wickets VARCHAR)
SELECT COUNT(5) + _inns FROM table_name_40 WHERE player = "tyron henderson" AND wickets < 21
Write a SQL query that answers the following question: What is the surface when the partner was Robert Haybittel?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (surface VARCHAR, partner VARCHAR)
SELECT surface FROM table_name_42 WHERE partner = "robert haybittel"
Write a SQL query that answers the following question: What was the rating of the episode Wonder Drug?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (ratings__5_capital_cities_ VARCHAR, episode_no VARCHAR)
SELECT ratings__5_capital_cities_ FROM table_name_82 WHERE episode_no = "wonder drug"
Write a SQL query that answers the following question: Who was the winning team on May 12?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (winning_team VARCHAR, date VARCHAR)
SELECT winning_team FROM table_name_77 WHERE date = "may 12"
Write a SQL query that answers the following question: Who was the winning team for circuit zolder?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (winning_team VARCHAR, circuit VARCHAR)
SELECT winning_team FROM table_name_46 WHERE circuit = "circuit zolder"
Write a SQL query that answers the following question: Who was the winning team for round 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (winning_team VARCHAR, round VARCHAR)
SELECT winning_team FROM table_name_1 WHERE round = "3"
Write a SQL query that answers the following question: Who was the winning team on July 13?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (winning_team VARCHAR, date VARCHAR)
SELECT winning_team FROM table_name_11 WHERE date = "july 13"
Write a SQL query that answers the following question: Name the highest Year which has a Venue of narbonne , france?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (year INTEGER, venue VARCHAR)
SELECT MAX(year) FROM table_name_95 WHERE venue = "narbonne , france"
Write a SQL query that answers the following question: Which Competition has a Year larger than 1990 in seville , spain?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (competition VARCHAR, year VARCHAR, venue VARCHAR)
SELECT competition FROM table_name_5 WHERE year > 1990 AND venue = "seville , spain"
Write a SQL query that answers the following question: COunt the Year which has a Venue of latakia , syria?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (year VARCHAR, venue VARCHAR)
SELECT COUNT(year) FROM table_name_71 WHERE venue = "latakia , syria"
Write a SQL query that answers the following question: Which Position has an Event of 4x400 m relay, and a Venue of stuttgart , germany?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (position VARCHAR, event VARCHAR, venue VARCHAR)
SELECT position FROM table_name_93 WHERE event = "4x400 m relay" AND venue = "stuttgart , germany"
Write a SQL query that answers the following question: Which Year has a Competition of european indoor championships, and a Venue of budapest , hungary?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (year INTEGER, competition VARCHAR, venue VARCHAR)
SELECT SUM(year) FROM table_name_80 WHERE competition = "european indoor championships" AND venue = "budapest , hungary"
Write a SQL query that answers the following question: How many rounds did satrio hermanto go with an opc-challenge engine?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (rounds VARCHAR, engine VARCHAR, driver VARCHAR)
SELECT rounds FROM table_name_84 WHERE engine = "opc-challenge" AND driver = "satrio hermanto"
Write a SQL query that answers the following question: How many rounds did frédéric vervisch go?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (rounds VARCHAR, driver VARCHAR)
SELECT rounds FROM table_name_27 WHERE driver = "frédéric vervisch"
Write a SQL query that answers the following question: How many rounds did shirley van der lof go?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (rounds VARCHAR, driver VARCHAR)
SELECT rounds FROM table_name_46 WHERE driver = "shirley van der lof"
Write a SQL query that answers the following question: What c class engine did philipp eng and team hs technik motorsport use?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (engine VARCHAR, driver VARCHAR, class VARCHAR, team VARCHAR)
SELECT engine FROM table_name_2 WHERE class = "c" AND team = "hs technik motorsport" AND driver = "philipp eng"
Write a SQL query that answers the following question: What is the chassis of rahel frey's volkswagen engine?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (chassis VARCHAR, engine VARCHAR, driver VARCHAR)
SELECT chassis FROM table_name_74 WHERE engine = "volkswagen" AND driver = "rahel frey"
Write a SQL query that answers the following question: What is the greatest number of losses when the against is 1465 and there are more than 7 wins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (losses INTEGER, against VARCHAR, wins VARCHAR)
SELECT MAX(losses) FROM table_name_80 WHERE against = 1465 AND wins > 7
Write a SQL query that answers the following question: What is the total of against matches when there are less than 12 wins, less than 0 draws, and Moulamein is the golden river?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (against INTEGER, draws VARCHAR, wins VARCHAR, golden_rivers VARCHAR)
SELECT SUM(against) FROM table_name_36 WHERE wins < 12 AND golden_rivers = "moulamein" AND draws < 0
Write a SQL query that answers the following question: What is the total losses when Hay is the golden river and there are more than 2 byes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (losses VARCHAR, golden_rivers VARCHAR, byes VARCHAR)
SELECT COUNT(losses) FROM table_name_1 WHERE golden_rivers = "hay" AND byes > 2
Write a SQL query that answers the following question: What is the total number of draws when there are 1465 against matches and less than 2 byes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (draws VARCHAR, against VARCHAR, byes VARCHAR)
SELECT COUNT(draws) FROM table_name_76 WHERE against = 1465 AND byes < 2
Write a SQL query that answers the following question: What is the greatest number of losses when there are more than 0 draws and 1390 against matches?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (losses INTEGER, draws VARCHAR, against VARCHAR)
SELECT MAX(losses) FROM table_name_22 WHERE draws > 0 AND against = 1390
Write a SQL query that answers the following question: What is the highest number of wins when there are more than 2 byes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (wins INTEGER, byes INTEGER)
SELECT MAX(wins) FROM table_name_76 WHERE byes > 2
Write a SQL query that answers the following question: Which percent has Wins larger than 72, and a Name of john yovicsin?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (pct INTEGER, wins VARCHAR, name VARCHAR)
SELECT SUM(pct) FROM table_name_70 WHERE wins > 72 AND name = "john yovicsin"
Write a SQL query that answers the following question: How many Ties have Years of 1919–1925, and a Pct larger than 0.734?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (ties INTEGER, years VARCHAR, pct VARCHAR)
SELECT SUM(ties) FROM table_name_75 WHERE years = "1919–1925" AND pct > 0.734
Write a SQL query that answers the following question: Which Pct has Years of 1957–1970, and Wins smaller than 78?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (pct INTEGER, years VARCHAR, wins VARCHAR)
SELECT SUM(pct) FROM table_name_89 WHERE years = "1957–1970" AND wins < 78
Write a SQL query that answers the following question: Which Wins have Years of 1881, and a Pct larger than 0.75?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (wins INTEGER, years VARCHAR, pct VARCHAR)
SELECT AVG(wins) FROM table_name_18 WHERE years = "1881" AND pct > 0.75
Write a SQL query that answers the following question: What's the genre of the song recorded in 1929?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (genre VARCHAR, year_recorded VARCHAR)
SELECT genre FROM table_name_41 WHERE year_recorded = "1929"
Write a SQL query that answers the following question: What's the year inducted for the label of label?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (year_inducted VARCHAR)
SELECT year_inducted FROM table_name_59 WHERE "label" = "label"
Write a SQL query that answers the following question: What genre is the song recorded in 1929?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (genre VARCHAR, year_recorded VARCHAR)
SELECT genre FROM table_name_26 WHERE year_recorded = "1929"
Write a SQL query that answers the following question: What genre is the song recorded in 1926?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (genre VARCHAR, year_recorded VARCHAR)
SELECT genre FROM table_name_56 WHERE year_recorded = "1926"
Write a SQL query that answers the following question: Which Party has a Residence of san diego?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (party VARCHAR, residence VARCHAR)
SELECT party FROM table_name_23 WHERE residence = "san diego"
Write a SQL query that answers the following question: Which Years in Senate has a Years in Assembly of 2010–present, and toni atkins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (years_in_senate VARCHAR, years_in_assembly VARCHAR, name VARCHAR)
SELECT years_in_senate FROM table_name_23 WHERE years_in_assembly = "2010–present" AND name = "toni atkins"
Write a SQL query that answers the following question: Which Party has Years in Senate of —, and Years in Assembly of 2012–present?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (party VARCHAR, years_in_senate VARCHAR, years_in_assembly VARCHAR)
SELECT party FROM table_name_12 WHERE years_in_senate = "—" AND years_in_assembly = "2012–present"
Write a SQL query that answers the following question: Show the Residence whose Name is rich gordon?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (residence VARCHAR, name VARCHAR)
SELECT residence FROM table_name_60 WHERE name = "rich gordon"
Write a SQL query that answers the following question: Which Years in Assembly has a Name of toni atkins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (years_in_assembly VARCHAR, name VARCHAR)
SELECT years_in_assembly FROM table_name_27 WHERE name = "toni atkins"
Write a SQL query that answers the following question: Which Party has Years in Assembly of 2008–present, and a Name of tom ammiano?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (party VARCHAR, years_in_assembly VARCHAR, name VARCHAR)
SELECT party FROM table_name_77 WHERE years_in_assembly = "2008–present" AND name = "tom ammiano"
Write a SQL query that answers the following question: In what year(s) did Raymond Floyd have a total of less than 291 and a To par of +10?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (year_s__won VARCHAR, player VARCHAR, total VARCHAR, to_par VARCHAR)
SELECT year_s__won FROM table_name_34 WHERE total < 291 AND to_par = "+10" AND player = "raymond floyd"
Write a SQL query that answers the following question: What was Jeff Sluman's To par when his total was smaller than 284?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (to_par VARCHAR, total VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_61 WHERE total < 284 AND player = "jeff sluman"
Write a SQL query that answers the following question: What was the finish for Lanny Wadkins of the United States?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (finish VARCHAR, country VARCHAR, player VARCHAR)
SELECT finish FROM table_name_83 WHERE country = "united states" AND player = "lanny wadkins"
Write a SQL query that answers the following question: Which player had a To par of +11?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (player VARCHAR, to_par VARCHAR)
SELECT player FROM table_name_55 WHERE to_par = "+11"
Write a SQL query that answers the following question: From which country was the player whose year(s) won was 1983?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (country VARCHAR, year_s__won VARCHAR)
SELECT country FROM table_name_9 WHERE year_s__won = "1983"
Write a SQL query that answers the following question: What is the total for the player whose finish was t66?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (total VARCHAR, finish VARCHAR)
SELECT total FROM table_name_70 WHERE finish = "t66"
Write a SQL query that answers the following question: What is the type of the locomotive which was delivered in 1857-59?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (type VARCHAR, delivered VARCHAR)
SELECT type FROM table_name_7 WHERE delivered = "1857-59"
Write a SQL query that answers the following question: What is the lowest quantity of the 1b n2 type, which was retired in 1907-12?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (quantity INTEGER, type VARCHAR, retired VARCHAR)
SELECT MIN(quantity) FROM table_name_50 WHERE type = "1b n2" AND retired = "1907-12"
Write a SQL query that answers the following question: What district is Jim Moran the incumbent for.
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_name_40 WHERE incumbent = "jim moran"
Write a SQL query that answers the following question: What was the election result before 2004 where Eric Cantor was the incumbent?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (results VARCHAR, first_elected VARCHAR, incumbent VARCHAR)
SELECT results FROM table_name_61 WHERE first_elected < 2004 AND incumbent = "eric cantor"
Write a SQL query that answers the following question: What is the common English for the Italian word san gallo?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (common_english VARCHAR, italian VARCHAR)
SELECT common_english FROM table_name_50 WHERE italian = "san gallo"
Write a SQL query that answers the following question: What is the italian word for Glarus?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (italian VARCHAR, common_english VARCHAR)
SELECT italian FROM table_name_44 WHERE common_english = "glarus"
Write a SQL query that answers the following question: What is the common english word with the abbr of ai?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (common_english VARCHAR, abbr VARCHAR)
SELECT common_english FROM table_name_81 WHERE abbr = "ai"
Write a SQL query that answers the following question: What is the abbr of argovia?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (abbr VARCHAR, italian VARCHAR)
SELECT abbr FROM table_name_65 WHERE italian = "argovia"
Write a SQL query that answers the following question: What is the french word for fribourg?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (french VARCHAR, common_english VARCHAR)
SELECT french FROM table_name_72 WHERE common_english = "fribourg"
Write a SQL query that answers the following question: What is the abbr for zug?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (abbr VARCHAR, common_english VARCHAR)
SELECT abbr FROM table_name_75 WHERE common_english = "zug"
Write a SQL query that answers the following question: What is the Finish on June 1, 2008?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (finish VARCHAR, date VARCHAR)
SELECT finish FROM table_name_61 WHERE date = "june 1, 2008"
Write a SQL query that answers the following question: What is the Track in Louisville, Kentucky?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (track VARCHAR, location VARCHAR)
SELECT track FROM table_name_56 WHERE location = "louisville, kentucky"
Write a SQL query that answers the following question: What is the Location of the Event on March 30, 2008?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (location VARCHAR, date VARCHAR)
SELECT location FROM table_name_73 WHERE date = "march 30, 2008"
Write a SQL query that answers the following question: What Race has a Purse of $300,000?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (race VARCHAR, purse VARCHAR)
SELECT race FROM table_name_43 WHERE purse = "$300,000"
Write a SQL query that answers the following question: What is the Purse on January 3, 2010?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (purse VARCHAR, date VARCHAR)
SELECT purse FROM table_name_33 WHERE date = "january 3, 2010"
Write a SQL query that answers the following question: What did United States place when the score was 71-70-72-68=281?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (place VARCHAR, country VARCHAR, score VARCHAR)
SELECT place FROM table_name_17 WHERE country = "united states" AND score = 71 - 70 - 72 - 68 = 281
Write a SQL query that answers the following question: What was the average money for United States when Lanny Wadkins played?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (money___ INTEGER, country VARCHAR, player VARCHAR)
SELECT AVG(money___) AS $__ FROM table_name_94 WHERE country = "united states" AND player = "lanny wadkins"
Write a SQL query that answers the following question: What was the to par when the score was 71-70-72-68=281?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (to_par VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_92 WHERE score = 71 - 70 - 72 - 68 = 281
Write a SQL query that answers the following question: What is the away team of the game with an attendance of 117?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (away_team VARCHAR, attendance VARCHAR)
SELECT away_team FROM table_name_58 WHERE attendance = 117
Write a SQL query that answers the following question: Madrid (Stuttgart) tournament with a 1996 of A has this for a Career SR?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (career_sr VARCHAR, tournament VARCHAR)
SELECT career_sr FROM table_name_66 WHERE 1996 = "a" AND tournament = "madrid (stuttgart)"
Write a SQL query that answers the following question: Which election has a conservative first party, Rowland Smith as first member, and Sir Henry Wilmot, Bt as second member?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (election VARCHAR, second_member VARCHAR, first_party VARCHAR, first_member VARCHAR)
SELECT election FROM table_name_11 WHERE first_party = "conservative" AND first_member = "rowland smith" AND second_member = "sir henry wilmot, bt"