instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: What is the name of gao chiappe meng o'connor wang cheng liu?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (name VARCHAR, authors VARCHAR)
SELECT name FROM table_name_99 WHERE authors = "gao chiappe meng o'connor wang cheng liu"
Write a SQL query that answers the following question: Where has a Name of zhongornis?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (location VARCHAR, name VARCHAR)
SELECT location FROM table_name_84 WHERE name = "zhongornis"
Write a SQL query that answers the following question: Which Notes has Authors of zhou clarke zhang?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (notes VARCHAR, authors VARCHAR)
SELECT notes FROM table_name_40 WHERE authors = "zhou clarke zhang"
Write a SQL query that answers the following question: What was the ranking of Beirasar Rosalía, the year they played 32 games?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (rank INTEGER, team VARCHAR, games VARCHAR)
SELECT MAX(rank) FROM table_name_6 WHERE team = "beirasar rosalía" AND games < 32
Write a SQL query that answers the following question: How many points did Antwain Barbour score in the year he played 39 games?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (points INTEGER, name VARCHAR, games VARCHAR)
SELECT SUM(points) FROM table_name_12 WHERE name = "antwain barbour" AND games < 39
Write a SQL query that answers the following question: What team was Paolo Quinteros on?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (team VARCHAR, name VARCHAR)
SELECT team FROM table_name_59 WHERE name = "paolo quinteros"
Write a SQL query that answers the following question: Was the record of 8-1 (1) a win or a loss?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (res VARCHAR, record VARCHAR)
SELECT res FROM table_name_10 WHERE record = "8-1 (1)"
Write a SQL query that answers the following question: In what event was the technical decision (split) method used?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (event VARCHAR, method VARCHAR)
SELECT event FROM table_name_8 WHERE method = "technical decision (split)"
Write a SQL query that answers the following question: What are the average play-offs that have an FA Cup greater than 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (play_offs INTEGER, fa_cup INTEGER)
SELECT AVG(play_offs) FROM table_name_9 WHERE fa_cup > 3
Write a SQL query that answers the following question: How many totals have a play-off less than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (total VARCHAR, play_offs INTEGER)
SELECT COUNT(total) FROM table_name_47 WHERE play_offs < 0
Write a SQL query that answers the following question: Which league has an FA cup greater than 0, with a total greater than 21?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (league VARCHAR, fa_cup VARCHAR, total VARCHAR)
SELECT league FROM table_name_76 WHERE fa_cup > 0 AND total > 21
Write a SQL query that answers the following question: What is the highest play-offs that have stevenage borough as the club, and a total greater than 21?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (play_offs INTEGER, club VARCHAR, total VARCHAR)
SELECT MAX(play_offs) FROM table_name_64 WHERE club = "stevenage borough" AND total > 21
Write a SQL query that answers the following question: What is the tournament in 2012 results that has a 2003 results of 2r and played at Wimbledon?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (tournament VARCHAR)
SELECT 2012 FROM table_name_6 WHERE 2003 = "2r" AND tournament = "wimbledon"
Write a SQL query that answers the following question: What results in 2012 also has 2013 results of 2r and the tournament was Wimbledon?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (tournament VARCHAR)
SELECT 2012 FROM table_name_65 WHERE 2013 = "2r" AND tournament = "wimbledon"
Write a SQL query that answers the following question: What is the results from 2003 that has a 2012 result of 1r and a 2004 result of 2r and from the Australian Open?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (tournament VARCHAR)
SELECT 2003 FROM table_name_67 WHERE 2012 = "1r" AND 2004 = "2r" AND tournament = "australian open"
Write a SQL query that answers the following question: What is the name of the tournament that has the results of 2003 2r and 2004 1r?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (tournament VARCHAR)
SELECT tournament FROM table_name_25 WHERE 2003 = "2r" AND 2004 = "1r"
Write a SQL query that answers the following question: What is the results in 2004 that has a 2013 result of 2r?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (Id VARCHAR)
SELECT 2004 FROM table_name_72 WHERE 2013 = "2r"
Write a SQL query that answers the following question: What is the result from 2003 from the US Open?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (tournament VARCHAR)
SELECT 2003 FROM table_name_80 WHERE tournament = "us open"
Write a SQL query that answers the following question: What is the height of the player born on June 24, 1964, with a weight over 84 kg?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (height__cm_ INTEGER, weight__kg_ VARCHAR, birthdate VARCHAR)
SELECT AVG(height__cm_) FROM table_name_21 WHERE weight__kg_ > 84 AND birthdate = "june 24, 1964"
Write a SQL query that answers the following question: On what date was the player from Melrose, Massachusetts born?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (birthdate VARCHAR, birthplace VARCHAR)
SELECT birthdate FROM table_name_54 WHERE birthplace = "melrose, massachusetts"
Write a SQL query that answers the following question: What is Date, when Event is Billabong Pro?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (date VARCHAR, event VARCHAR)
SELECT date FROM table_name_34 WHERE event = "billabong pro"
Write a SQL query that answers the following question: What is Location, when Date is December 8-December 20?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (location VARCHAR, date VARCHAR)
SELECT location FROM table_name_74 WHERE date = "december 8-december 20"
Write a SQL query that answers the following question: What is Runner-up, when Event is Mancora Peru Classic?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (runner_up VARCHAR, event VARCHAR)
SELECT runner_up FROM table_name_87 WHERE event = "mancora peru classic"
Write a SQL query that answers the following question: What is Event, when Date is August 20-August 27?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (event VARCHAR, date VARCHAR)
SELECT event FROM table_name_72 WHERE date = "august 20-august 27"
Write a SQL query that answers the following question: What is Date when Runner-up is Sofía Mulánovich ( per )?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (date VARCHAR, runner_up VARCHAR)
SELECT date FROM table_name_92 WHERE runner_up = "sofía mulánovich ( per )"
Write a SQL query that answers the following question: What is Country, when Event is Rip Curl Women's Pro?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (country VARCHAR, event VARCHAR)
SELECT country FROM table_name_67 WHERE event = "rip curl women's pro"
Write a SQL query that answers the following question: What is the highest win percentage when there were 23 losses?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (win_percentage INTEGER, losses VARCHAR)
SELECT MAX(win_percentage) FROM table_name_18 WHERE losses = 23
Write a SQL query that answers the following question: Which finish had a win percentage that was more than 0.598 and also had less than 53 wins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (finish VARCHAR, win_percentage VARCHAR, wins VARCHAR)
SELECT finish FROM table_name_41 WHERE win_percentage > 0.598 AND wins < 53
Write a SQL query that answers the following question: What is the 2007 Team with player Deshaun Foster?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (player VARCHAR)
SELECT 2007 AS _team FROM table_name_30 WHERE player = "deshaun foster"
Write a SQL query that answers the following question: What is the Free Agent Type for player bryant johnson?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (free_agent_type VARCHAR, player VARCHAR)
SELECT free_agent_type FROM table_name_2 WHERE player = "bryant johnson"
Write a SQL query that answers the following question: What is the High assists with a Date that is march 31?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (high_assists VARCHAR, date VARCHAR)
SELECT high_assists FROM table_name_39 WHERE date = "march 31"
Write a SQL query that answers the following question: What is the Score with a Date that is march 12?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_93 WHERE date = "march 12"
Write a SQL query that answers the following question: What is the lowest silver that has a bronze greater than 1, a gold less than 2, and a total less than 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (silver INTEGER, total VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT MIN(silver) FROM table_name_73 WHERE bronze > 1 AND gold < 2 AND total < 2
Write a SQL query that answers the following question: What average rank that has a silver less than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (rank INTEGER, silver INTEGER)
SELECT AVG(rank) FROM table_name_41 WHERE silver < 0
Write a SQL query that answers the following question: How many silver have 4 as the total with a bronze less than 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (silver VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT COUNT(silver) FROM table_name_42 WHERE total = 4 AND bronze < 2
Write a SQL query that answers the following question: How many totals have a rank greater than 4, czech Republic as the nation, and a bronze greater than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (total INTEGER, bronze VARCHAR, rank VARCHAR, nation VARCHAR)
SELECT SUM(total) FROM table_name_6 WHERE rank > 4 AND nation = "czech republic" AND bronze > 0
Write a SQL query that answers the following question: What average total has a gold greater than 0, and a silver greater than 0, with a bronze greater than 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (total INTEGER, bronze VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT AVG(total) FROM table_name_9 WHERE gold > 0 AND silver > 0 AND bronze > 2
Write a SQL query that answers the following question: Which country has an Indigenous mining production 2006 of 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (country VARCHAR, indigenous_mining_production_2006 VARCHAR)
SELECT country FROM table_name_26 WHERE indigenous_mining_production_2006 = "0"
Write a SQL query that answers the following question: What is the sum of Silver when the total is less than 6, the rank is 6 and the Bulgaria is the nation?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (silver INTEGER, nation VARCHAR, total VARCHAR, rank VARCHAR)
SELECT SUM(silver) FROM table_name_19 WHERE total < "6" AND rank = "6" AND nation = "bulgaria"
Write a SQL query that answers the following question: What nation has a bronze of 2 with a total less than 5 and rank of 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (nation VARCHAR, rank VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT nation FROM table_name_84 WHERE bronze = 2 AND total < 5 AND rank = "6"
Write a SQL query that answers the following question: What is the lowest Total for rank 3 with more than 4 gold?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (total INTEGER, rank VARCHAR, gold VARCHAR)
SELECT MIN(total) FROM table_name_13 WHERE rank = "3" AND gold > 4
Write a SQL query that answers the following question: What is the lowest Total for Italy with less than 0 silver?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (total INTEGER, nation VARCHAR, silver VARCHAR)
SELECT MIN(total) FROM table_name_32 WHERE nation = "italy" AND silver < 0
Write a SQL query that answers the following question: What is the Nation with less than 1 silver, and the total is 1, and bronze is less than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (nation VARCHAR, bronze VARCHAR, silver VARCHAR, total VARCHAR)
SELECT nation FROM table_name_81 WHERE silver < 1 AND total = 1 AND bronze = 0
Write a SQL query that answers the following question: What number has 2002-2003 as the season?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (number VARCHAR, season VARCHAR)
SELECT number FROM table_name_32 WHERE season = "2002-2003"
Write a SQL query that answers the following question: What position has 2008 as the season?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (position VARCHAR, season VARCHAR)
SELECT position FROM table_name_11 WHERE season = "2008"
Write a SQL query that answers the following question: What name has 50 as the number?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (name VARCHAR, number VARCHAR)
SELECT name FROM table_name_54 WHERE number = "50"
Write a SQL query that answers the following question: What number has 2008 as the season?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (number VARCHAR, season VARCHAR)
SELECT number FROM table_name_38 WHERE season = "2008"
Write a SQL query that answers the following question: What name has 8 as the number?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (name VARCHAR, number VARCHAR)
SELECT name FROM table_name_5 WHERE number = "8"
Write a SQL query that answers the following question: What position has ronjay buenafe as the name?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (position VARCHAR, name VARCHAR)
SELECT position FROM table_name_16 WHERE name = "ronjay buenafe"
Write a SQL query that answers the following question: What was the lowest long with 26 yards?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (long INTEGER, yards VARCHAR)
SELECT MIN(long) FROM table_name_51 WHERE yards = 26
Write a SQL query that answers the following question: What was the highest average when Fuml was 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (avg INTEGER, fuml INTEGER)
SELECT MAX(avg) FROM table_name_57 WHERE fuml < 0
Write a SQL query that answers the following question: What is the highest run currently since the last title in 2010, and a season in Esiliiga larger than 10?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (current_run_since INTEGER, last_title VARCHAR, seasons_in_esiliiga VARCHAR)
SELECT MAX(current_run_since) FROM table_name_12 WHERE last_title = "2010" AND seasons_in_esiliiga > 10
Write a SQL query that answers the following question: What is the 2012 season in Esiliiga more than 4, and more than 0 titles?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (seasons_in_esiliiga VARCHAR, titles VARCHAR)
SELECT 2012 FROM table_name_87 WHERE seasons_in_esiliiga > 4 AND titles > 0
Write a SQL query that answers the following question: What 20-29 was in season 2008?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (season VARCHAR)
SELECT 20 AS _29 FROM table_name_69 WHERE season = "2008"
Write a SQL query that answers the following question: What were the lowest amount of points for season 1994?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (points INTEGER, season VARCHAR)
SELECT MIN(points) FROM table_name_33 WHERE season = "1994"
Write a SQL query that answers the following question: Which 20-29 had a season of 1997?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (season VARCHAR)
SELECT 20 AS _29 FROM table_name_11 WHERE season = "1997"
Write a SQL query that answers the following question: What is the Postion, when the Name is Rod Paavola?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (position VARCHAR, name VARCHAR)
SELECT position FROM table_name_27 WHERE name = "rod paavola"
Write a SQL query that answers the following question: What is the total number of Jersey #, when the Position is W, and when the Birthdate is 17 October 1932?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (jersey__number VARCHAR, position VARCHAR, birthdate VARCHAR)
SELECT COUNT(jersey__number) FROM table_name_56 WHERE position = "w" AND birthdate = "17 october 1932"
Write a SQL query that answers the following question: What is the Birthplace, when the Name is Bob Mcvey?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (birthplace VARCHAR, name VARCHAR)
SELECT birthplace FROM table_name_76 WHERE name = "bob mcvey"
Write a SQL query that answers the following question: What is the Name, when the Position is W, and when the Jersey # is 11?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (name VARCHAR, position VARCHAR, jersey__number VARCHAR)
SELECT name FROM table_name_73 WHERE position = "w" AND jersey__number = 11
Write a SQL query that answers the following question: What is the Postion, when the Club/Team is Warroad Lakers, and when the Name is Roger Christian?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (position VARCHAR, club_team VARCHAR, name VARCHAR)
SELECT position FROM table_name_13 WHERE club_team = "warroad lakers" AND name = "roger christian"
Write a SQL query that answers the following question: What home has 122-28 as the score?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (home VARCHAR, score VARCHAR)
SELECT home FROM table_name_96 WHERE score = "122-28"
Write a SQL query that answers the following question: What ground has etobicoke kangaroos as the home?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (ground VARCHAR, home VARCHAR)
SELECT ground FROM table_name_88 WHERE home = "etobicoke kangaroos"
Write a SQL query that answers the following question: What time has humber college north as the ground, and toronto downtown dingos as the home?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (time VARCHAR, ground VARCHAR, home VARCHAR)
SELECT time FROM table_name_58 WHERE ground = "humber college north" AND home = "toronto downtown dingos"
Write a SQL query that answers the following question: What score has Toronto Eagles as the home?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (score VARCHAR, home VARCHAR)
SELECT score FROM table_name_57 WHERE home = "toronto eagles"
Write a SQL query that answers the following question: What date has high park demons as the away?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (date VARCHAR, away VARCHAR)
SELECT date FROM table_name_15 WHERE away = "high park demons"
Write a SQL query that answers the following question: What away has toronto downtown dingos as the home?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (away VARCHAR, home VARCHAR)
SELECT away FROM table_name_71 WHERE home = "toronto downtown dingos"
Write a SQL query that answers the following question: Who was the winner from the Rip Curl Pro Search?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (winner VARCHAR, event VARCHAR)
SELECT winner FROM table_name_71 WHERE event = "rip curl pro search"
Write a SQL query that answers the following question: What was the location of the tournament held in Spain?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (location VARCHAR, country VARCHAR)
SELECT location FROM table_name_56 WHERE country = "spain"
Write a SQL query that answers the following question: What was the date of the tournament held in Indonesia?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (date VARCHAR, country VARCHAR)
SELECT date FROM table_name_23 WHERE country = "indonesia"
Write a SQL query that answers the following question: What is the average Lost when the difference is - 3, and a Played is less than 10?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (lost INTEGER, difference VARCHAR, played VARCHAR)
SELECT AVG(lost) FROM table_name_21 WHERE difference = "- 3" AND played < 10
Write a SQL query that answers the following question: What is the Position when the Drawn is less than 2, with a Difference of 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (position VARCHAR, drawn VARCHAR, difference VARCHAR)
SELECT position FROM table_name_65 WHERE drawn < "2" AND difference = "2"
Write a SQL query that answers the following question: What is the sum of Against when the drawn is less than 2, the position is more than 8, and the lost is more than 6.
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (against INTEGER, lost VARCHAR, drawn VARCHAR, position VARCHAR)
SELECT SUM(against) FROM table_name_35 WHERE drawn < 2 AND position > 8 AND lost > 6
Write a SQL query that answers the following question: What is the Difference with a position of less than 3, and, 17 points.
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (difference VARCHAR, position VARCHAR, points VARCHAR)
SELECT difference FROM table_name_57 WHERE position < 3 AND points = 17
Write a SQL query that answers the following question: What is the average Top-5, when Tournament is U.S. Open, and when Cuts Made is greater than 10?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (top_5 INTEGER, tournament VARCHAR, cuts_made VARCHAR)
SELECT AVG(top_5) FROM table_name_72 WHERE tournament = "u.s. open" AND cuts_made > 10
Write a SQL query that answers the following question: What is the sum of Events, when Top-10 is 7, and when Top-5 is greater than 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (events INTEGER, top_10 VARCHAR, top_5 VARCHAR)
SELECT SUM(events) FROM table_name_80 WHERE top_10 = 7 AND top_5 > 4
Write a SQL query that answers the following question: What is the sum of Top-5, when Tournament is Totals, and when Events is greater than 86?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (top_5 INTEGER, tournament VARCHAR, events VARCHAR)
SELECT SUM(top_5) FROM table_name_68 WHERE tournament = "totals" AND events > 86
Write a SQL query that answers the following question: What is the average Top-10, when Wins is less than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (top_10 INTEGER, wins INTEGER)
SELECT AVG(top_10) FROM table_name_37 WHERE wins < 0
Write a SQL query that answers the following question: What is the total number of Top-25, when Events is greater than 86?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (top_25 VARCHAR, events INTEGER)
SELECT COUNT(top_25) FROM table_name_65 WHERE events > 86
Write a SQL query that answers the following question: What 2011 has 4r as the 2008?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (Id VARCHAR)
SELECT 2011 FROM table_name_68 WHERE 2008 = "4r"
Write a SQL query that answers the following question: What 2007 has wimbledon as the tournament?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (tournament VARCHAR)
SELECT 2007 FROM table_name_88 WHERE tournament = "wimbledon"
Write a SQL query that answers the following question: What 2006 has 1r as the 2007?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (Id VARCHAR)
SELECT 2006 FROM table_name_74 WHERE 2007 = "1r"
Write a SQL query that answers the following question: What tournament has q2 as the 2004?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (tournament VARCHAR)
SELECT tournament FROM table_name_66 WHERE 2004 = "q2"
Write a SQL query that answers the following question: What 2009 has grand slam tournaments of 2008?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (Id VARCHAR)
SELECT 2009 FROM table_name_43 WHERE 2008 = "grand slam tournaments"
Write a SQL query that answers the following question: What 2006 has 0-0 as the 2011?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (Id VARCHAR)
SELECT 2006 FROM table_name_29 WHERE 2011 = "0-0"
Write a SQL query that answers the following question: What is the Lineup from a Match that is 27?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (lineup VARCHAR, match VARCHAR)
SELECT lineup FROM table_name_12 WHERE match = "27"
Write a SQL query that answers the following question: What is the date for Orangeville?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (date VARCHAR, name VARCHAR)
SELECT date FROM table_name_56 WHERE name = "orangeville"
Write a SQL query that answers the following question: Who is the builder with a works number of 2534?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (builder VARCHAR, works_number VARCHAR)
SELECT builder FROM table_name_16 WHERE works_number = "2534"
Write a SQL query that answers the following question: Who is the name with a works number of 809?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (name VARCHAR, works_number VARCHAR)
SELECT name FROM table_name_49 WHERE works_number = "809"
Write a SQL query that answers the following question: In early 1873, Owen sound had what works number?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (works_number VARCHAR, date VARCHAR, name VARCHAR)
SELECT works_number FROM table_name_39 WHERE date = "early 1873" AND name = "owen sound"
Write a SQL query that answers the following question: What was the name for the locomotive with a type of 2-8-0 and a number of 20?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (name VARCHAR, type VARCHAR, number VARCHAR)
SELECT name FROM table_name_23 WHERE type = "2-8-0" AND number = 20
Write a SQL query that answers the following question: What is the Year won for the player with a larger than 4 To par and less the 157 Total?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (year_won VARCHAR, to_par VARCHAR, total VARCHAR)
SELECT year_won FROM table_name_4 WHERE to_par > 4 AND total < 157
Write a SQL query that answers the following question: What is the Total for the Player who won after 1983 with less than 4 To par?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (total INTEGER, to_par VARCHAR, year_won VARCHAR)
SELECT AVG(total) FROM table_name_66 WHERE to_par < 4 AND year_won > 1983
Write a SQL query that answers the following question: What is the Total of the player who won before 1983 with a smaller than 4 To par?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (total VARCHAR, to_par VARCHAR, year_won VARCHAR)
SELECT COUNT(total) FROM table_name_46 WHERE to_par < 4 AND year_won < 1983
Write a SQL query that answers the following question: Which venue led to a draw?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (venue VARCHAR, result VARCHAR)
SELECT venue FROM table_name_93 WHERE result = "draw"
Write a SQL query that answers the following question: What is the highest Stolen Ends when ludmila privivkova shows for skip?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (stolen_ends INTEGER, skip VARCHAR)
SELECT MAX(stolen_ends) FROM table_name_54 WHERE skip = "ludmila privivkova"
Write a SQL query that answers the following question: What is the sum of Blank Ends for Denmark when less than 42 is the ends lost?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (blank_ends INTEGER, nation VARCHAR, ends_lost VARCHAR)
SELECT SUM(blank_ends) FROM table_name_39 WHERE nation = "denmark" AND ends_lost < 42
Write a SQL query that answers the following question: What is the Blank Ends when there are less than 39 ends won and, more than 35 ends lost, and 4 stolen ends.
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (blank_ends VARCHAR, stolen_ends VARCHAR, ends_won VARCHAR, ends_lost VARCHAR)
SELECT blank_ends FROM table_name_88 WHERE ends_won < 39 AND ends_lost > 35 AND stolen_ends = 4
Write a SQL query that answers the following question: Who was the 20 Questions section aimed at when the Interview Subject was Camille Paglia?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (interview_subject VARCHAR)
SELECT 20 AS _questions FROM table_name_97 WHERE interview_subject = "camille paglia"
Write a SQL query that answers the following question: Who was the Centerfold Model on 5-95?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (centerfold_model VARCHAR, date VARCHAR)
SELECT centerfold_model FROM table_name_32 WHERE date = "5-95"