instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What is the Overall Record when Since Beginning of Big 12 is ou, 27-3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (overall_record VARCHAR, since_beginning_of_big_12 VARCHAR) | SELECT overall_record FROM table_name_11 WHERE since_beginning_of_big_12 = "ou, 27-3" |
Write a SQL query that answers the following question: What is the Last 10 Meetings when Norman is ou, 18-6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (last_10_meetings VARCHAR, at_norman VARCHAR) | SELECT last_10_meetings FROM table_name_48 WHERE at_norman = "ou, 18-6" |
Write a SQL query that answers the following question: what is the since beginning of big 12 when last 10 meetings is ou, 7-3, neutral site is ou, 2-1, and last 5 meetings is bu, 3-2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (since_beginning_of_big_12 VARCHAR, last_5_meetings VARCHAR, last_10_meetings VARCHAR, at_neutral_site VARCHAR) | SELECT since_beginning_of_big_12 FROM table_name_28 WHERE last_10_meetings = "ou, 7-3" AND at_neutral_site = "ou, 2-1" AND last_5_meetings = "bu, 3-2" |
Write a SQL query that answers the following question: what is the current streak when the last 5 meetings is osu, 4-1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (current_streak VARCHAR, last_5_meetings VARCHAR) | SELECT current_streak FROM table_name_27 WHERE last_5_meetings = "osu, 4-1" |
Write a SQL query that answers the following question: What is the record for a game lower than 79? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (record VARCHAR, game INTEGER) | SELECT record FROM table_name_90 WHERE game < 79 |
Write a SQL query that answers the following question: Who was the partner when the final score was 7–6, 3–6, 6–7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (partner VARCHAR, score_in_the_final VARCHAR) | SELECT partner FROM table_name_48 WHERE score_in_the_final = "7–6, 3–6, 6–7" |
Write a SQL query that answers the following question: Who was the partner for the match with a score in the final of 4–6, 6–7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (partner VARCHAR, score_in_the_final VARCHAR) | SELECT partner FROM table_name_31 WHERE score_in_the_final = "4–6, 6–7" |
Write a SQL query that answers the following question: What tournament took place after 1986 and had a final score of 7–6, 3–6, 6–2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (tournament VARCHAR, date VARCHAR, score_in_the_final VARCHAR) | SELECT tournament FROM table_name_26 WHERE date > 1986 AND score_in_the_final = "7–6, 3–6, 6–2" |
Write a SQL query that answers the following question: Which Year is the lowest one that has an Athlete of markus thalmann, and a Time of 23:28:24? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (year INTEGER, athlete VARCHAR, time VARCHAR) | SELECT MIN(year) FROM table_name_76 WHERE athlete = "markus thalmann" AND time = "23:28:24" |
Write a SQL query that answers the following question: Which Year is the lowest one that has a Time of 24:55:58, and a Place larger than 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (year INTEGER, time VARCHAR, place VARCHAR) | SELECT MIN(year) FROM table_name_69 WHERE time = "24:55:58" AND place > 3 |
Write a SQL query that answers the following question: Which Athlete has a Place of 1, and a Year smaller than 1988, and a Country of gre, and a Time of 21:57:00? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (athlete VARCHAR, time VARCHAR, country VARCHAR, place VARCHAR, year VARCHAR) | SELECT athlete FROM table_name_97 WHERE place = 1 AND year < 1988 AND country = "gre" AND time = "21:57:00" |
Write a SQL query that answers the following question: Which Time has a Year larger than 1985, and a Place smaller than 2, and an Athlete of riochy sekiya? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (time VARCHAR, athlete VARCHAR, year VARCHAR, place VARCHAR) | SELECT time FROM table_name_60 WHERE year > 1985 AND place < 2 AND athlete = "riochy sekiya" |
Write a SQL query that answers the following question: What was Anand's score in game 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (anand VARCHAR, game VARCHAR) | SELECT anand FROM table_name_67 WHERE game = "8" |
Write a SQL query that answers the following question: What is the day and date of game 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (day VARCHAR, _date VARCHAR, game VARCHAR) | SELECT day, _date FROM table_name_20 WHERE game = "2" |
Write a SQL query that answers the following question: WHAT IS THE HIGH ASSISTS ON NOVEMBER 24? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (high_assists VARCHAR, date VARCHAR) | SELECT high_assists FROM table_name_21 WHERE date = "november 24" |
Write a SQL query that answers the following question: WHAT IS THE LOCATION ATTENDANCE FOR GAME 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (location_attendance VARCHAR, game VARCHAR) | SELECT location_attendance FROM table_name_7 WHERE game = 4 |
Write a SQL query that answers the following question: WHAT IS THE RECORD FOR DATE NOVEMBER 14? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_44 WHERE date = "november 14" |
Write a SQL query that answers the following question: What tournament is on 18 May 1992? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (tournament VARCHAR, date VARCHAR) | SELECT tournament FROM table_name_29 WHERE date = "18 may 1992" |
Write a SQL query that answers the following question: What is the score of the tournament with a carpet surface and tim henman as the partnering? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (score VARCHAR, surface VARCHAR, partnering VARCHAR) | SELECT score FROM table_name_88 WHERE surface = "carpet" AND partnering = "tim henman" |
Write a SQL query that answers the following question: On what surface did Katarina Srebotnik play Paola Suárez? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (surface VARCHAR, opponent_in_final VARCHAR) | SELECT surface FROM table_name_83 WHERE opponent_in_final = "paola suárez" |
Write a SQL query that answers the following question: At what tournament was the Score 5–7, 7–5, 6–4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (tournament VARCHAR, score_in_final VARCHAR) | SELECT tournament FROM table_name_54 WHERE score_in_final = "5–7, 7–5, 6–4" |
Write a SQL query that answers the following question: What was the Final Score on February 24, 2002? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (score_in_final VARCHAR, date VARCHAR) | SELECT score_in_final FROM table_name_21 WHERE date = "february 24, 2002" |
Write a SQL query that answers the following question: Who was Team #1 when Team #2 was galatasaray cc i̇stanbul? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (team__number1 VARCHAR, team__number2 VARCHAR) | SELECT team__number1 FROM table_name_20 WHERE team__number2 = "galatasaray cc i̇stanbul" |
Write a SQL query that answers the following question: What are the Podiums that has a Poles of 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (podiums VARCHAR, poles VARCHAR) | SELECT podiums FROM table_name_82 WHERE poles = "3" |
Write a SQL query that answers the following question: What is the Team that has a Races of 4, and a Points of 0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (team VARCHAR, races VARCHAR, points VARCHAR) | SELECT team FROM table_name_10 WHERE races = "4" AND points = "0" |
Write a SQL query that answers the following question: What to par is located in the united states and has a player by the name of hal sutton? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (to_par VARCHAR, country VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_44 WHERE country = "united states" AND player = "hal sutton" |
Write a SQL query that answers the following question: What player is in the place of t1 and has the score of 67-70=137? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (player VARCHAR, place VARCHAR, score VARCHAR) | SELECT player FROM table_name_85 WHERE place = "t1" AND score = 67 - 70 = 137 |
Write a SQL query that answers the following question: What place has the score of 67-74=141? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (place VARCHAR, score VARCHAR) | SELECT place FROM table_name_2 WHERE score = 67 - 74 = 141 |
Write a SQL query that answers the following question: What player has the score of 67-72=139? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (player VARCHAR, score VARCHAR) | SELECT player FROM table_name_58 WHERE score = 67 - 72 = 139 |
Write a SQL query that answers the following question: What was Gassaway's record at the fight in mississippi, united states against anthony macias? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (record VARCHAR, location VARCHAR, opponent VARCHAR) | SELECT record FROM table_name_19 WHERE location = "mississippi, united states" AND opponent = "anthony macias" |
Write a SQL query that answers the following question: What was the location the fight was held at that lasted 5 rounds? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (location VARCHAR, round VARCHAR) | SELECT location FROM table_name_23 WHERE round = "5" |
Write a SQL query that answers the following question: What was the location of the fight when Gassaway fought kevin knabjian? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (location VARCHAR, opponent VARCHAR) | SELECT location FROM table_name_66 WHERE opponent = "kevin knabjian" |
Write a SQL query that answers the following question: What place did Fred Couples finish in? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (place VARCHAR, player VARCHAR) | SELECT place FROM table_name_84 WHERE player = "fred couples" |
Write a SQL query that answers the following question: What is the rank of the company who has a revenue of $428.2 billion? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (rank VARCHAR, revenue_in_usd VARCHAR) | SELECT COUNT(rank) FROM table_name_56 WHERE revenue_in_usd = "$428.2 billion" |
Write a SQL query that answers the following question: What is the rank of the petroleum company who has a revenue of $481.7 billion? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (rank INTEGER, industry VARCHAR, revenue_in_usd VARCHAR) | SELECT MIN(rank) FROM table_name_7 WHERE industry = "petroleum" AND revenue_in_usd = "$481.7 billion" |
Write a SQL query that answers the following question: What is Tournament, when 2005 is "N/A", and when 2002 is "0 / 1"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (tournament VARCHAR) | SELECT tournament FROM table_name_74 WHERE 2005 = "n/a" AND 2002 = "0 / 1" |
Write a SQL query that answers the following question: What is Career Win-Loss, when 2002 is "A", and when 2001 is "4R"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (career_win_loss VARCHAR) | SELECT career_win_loss FROM table_name_70 WHERE 2002 = "a" AND 2001 = "4r" |
Write a SQL query that answers the following question: What is Tournament, when 2001 is "1R"? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (tournament VARCHAR) | SELECT tournament FROM table_name_48 WHERE 2001 = "1r" |
Write a SQL query that answers the following question: Who is in the south-west next to Vishnu on the east, Durga on the west, and in the center of Ganapati? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (south_west VARCHAR, center VARCHAR, north_east VARCHAR, north_west VARCHAR) | SELECT south_west FROM table_name_73 WHERE north_east = "vishnu" AND north_west = "durga" AND center = "ganapati" |
Write a SQL query that answers the following question: What was the final score of game 26? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (score VARCHAR, game VARCHAR) | SELECT score FROM table_name_64 WHERE game = 26 |
Write a SQL query that answers the following question: What game was played on December 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (game INTEGER, date VARCHAR) | SELECT AVG(game) FROM table_name_80 WHERE date = "december 8" |
Write a SQL query that answers the following question: What is the sum of the areas for populations of 542? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (area_km_2 INTEGER, population VARCHAR) | SELECT SUM(area_km_2) FROM table_name_66 WHERE population = 542 |
Write a SQL query that answers the following question: What is the highest area for locations named Centreville having populations over 532? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (area_km_2 INTEGER, population VARCHAR, official_name VARCHAR) | SELECT MAX(area_km_2) FROM table_name_84 WHERE population > 532 AND official_name = "centreville" |
Write a SQL query that answers the following question: what is the competition when the result is 1-1 and venue is gwangju? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (competition VARCHAR, result VARCHAR, venue VARCHAR) | SELECT competition FROM table_name_35 WHERE result = "1-1" AND venue = "gwangju" |
Write a SQL query that answers the following question: what is the date when the competition is 1998 asian games? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (date VARCHAR, competition VARCHAR) | SELECT date FROM table_name_17 WHERE competition = "1998 asian games" |
Write a SQL query that answers the following question: what is the venue when the score is 1 goal and the date is october 11, 1997? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (venue VARCHAR, score VARCHAR, date VARCHAR) | SELECT venue FROM table_name_96 WHERE score = "1 goal" AND date = "october 11, 1997" |
Write a SQL query that answers the following question: what is the competition when the result is 2-1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (competition VARCHAR, result VARCHAR) | SELECT competition FROM table_name_58 WHERE result = "2-1" |
Write a SQL query that answers the following question: what is the result when the date is august 24, 1997? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (result VARCHAR, date VARCHAR) | SELECT result FROM table_name_52 WHERE date = "august 24, 1997" |
Write a SQL query that answers the following question: what is the venue when the date is december 7, 1998? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (venue VARCHAR, date VARCHAR) | SELECT venue FROM table_name_6 WHERE date = "december 7, 1998" |
Write a SQL query that answers the following question: Who is the driver with a time/retired of +5.2684? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (driver VARCHAR, time_retired VARCHAR) | SELECT driver FROM table_name_23 WHERE time_retired = "+5.2684" |
Write a SQL query that answers the following question: What is the grid of driver tomas scheckter from vision racing team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (grid VARCHAR, team VARCHAR, driver VARCHAR) | SELECT grid FROM table_name_22 WHERE team = "vision racing" AND driver = "tomas scheckter" |
Write a SQL query that answers the following question: What is the grid of car no. 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (grid VARCHAR, car_no VARCHAR) | SELECT grid FROM table_name_17 WHERE car_no = "3" |
Write a SQL query that answers the following question: What is the grid with a +6.8359 time/retired? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (grid VARCHAR, time_retired VARCHAR) | SELECT grid FROM table_name_53 WHERE time_retired = "+6.8359" |
Write a SQL query that answers the following question: WHAT IS THE 1ST LEG WITH TEAM 2 AS ATHLETIC? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (team_2 VARCHAR) | SELECT 1 AS st_leg FROM table_name_5 WHERE team_2 = "athletic" |
Write a SQL query that answers the following question: WHAT IS THE 2ND LEG WITH TEAM 1 OF SPORTING? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (team_1 VARCHAR) | SELECT 2 AS nd_leg FROM table_name_22 WHERE team_1 = "sporting" |
Write a SQL query that answers the following question: Sum of cuyo selection as the opposing team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (against INTEGER, opposing_team VARCHAR) | SELECT SUM(against) FROM table_name_86 WHERE opposing_team = "cuyo selection" |
Write a SQL query that answers the following question: Lowest against for tour match on 21 july 1990? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (against INTEGER, status VARCHAR, date VARCHAR) | SELECT MIN(against) FROM table_name_46 WHERE status = "tour match" AND date = "21 july 1990" |
Write a SQL query that answers the following question: Name the lowest version with a code of u+1034a that began after 2001. | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (version INTEGER, code VARCHAR, year VARCHAR) | SELECT MIN(version) FROM table_name_85 WHERE code = "u+1034a" AND year > 2001 |
Write a SQL query that answers the following question: What character was the version 5.1 and had a Greek capital letter Archaic Sampi? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (character VARCHAR, version VARCHAR, name VARCHAR) | SELECT character FROM table_name_21 WHERE version = 5.1 AND name = "greek capital letter archaic sampi" |
Write a SQL query that answers the following question: Give the sum of the version with the coptic small letter sampi, and a year after 2005. | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (version INTEGER, name VARCHAR, year VARCHAR) | SELECT SUM(version) FROM table_name_89 WHERE name = "coptic small letter sampi" AND year > 2005 |
Write a SQL query that answers the following question: What is the year that has a name with the Greek small letter sampi? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (year INTEGER, name VARCHAR) | SELECT SUM(year) FROM table_name_89 WHERE name = "greek small letter sampi" |
Write a SQL query that answers the following question: What country id Bob Rosburg from? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (country VARCHAR, player VARCHAR) | SELECT country FROM table_name_95 WHERE player = "bob rosburg" |
Write a SQL query that answers the following question: What country has a score of 73-72-67=212? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (country VARCHAR, score VARCHAR) | SELECT country FROM table_name_14 WHERE score = 73 - 72 - 67 = 212 |
Write a SQL query that answers the following question: What is Mike Souchak's to par? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (to_par VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_89 WHERE player = "mike souchak" |
Write a SQL query that answers the following question: What is Mike Souchak's to par score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (to_par VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_70 WHERE player = "mike souchak" |
Write a SQL query that answers the following question: What was the finish for the golfer with a total of 285? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (finish VARCHAR, total VARCHAR) | SELECT finish FROM table_name_4 WHERE total = 285 |
Write a SQL query that answers the following question: What was the total for the golfer who had a year won of 1987? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (total VARCHAR, year_s__won VARCHAR) | SELECT total FROM table_name_20 WHERE year_s__won = "1987" |
Write a SQL query that answers the following question: What was the finish for the golfer with a To par of +2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (finish VARCHAR, to_par VARCHAR) | SELECT finish FROM table_name_91 WHERE to_par = "+2" |
Write a SQL query that answers the following question: What was the total for the golfer who had a To par of +10 and year won of 1971? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (total INTEGER, to_par VARCHAR, year_s__won VARCHAR) | SELECT SUM(total) FROM table_name_9 WHERE to_par = "+10" AND year_s__won = "1971" |
Write a SQL query that answers the following question: What team played before game 71 and had a score w 91–86 (ot)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (team VARCHAR, game VARCHAR, score VARCHAR) | SELECT team FROM table_name_36 WHERE game < 71 AND score = "w 91–86 (ot)" |
Write a SQL query that answers the following question: What was the high assist for game 66? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (high_assists VARCHAR, game VARCHAR) | SELECT high_assists FROM table_name_15 WHERE game = 66 |
Write a SQL query that answers the following question: What is josé maría olazábal's country? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (country VARCHAR, player VARCHAR) | SELECT country FROM table_name_39 WHERE player = "josé maría olazábal" |
Write a SQL query that answers the following question: Which Player has a Score of 74-67-74-71=286? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (player VARCHAR, score VARCHAR) | SELECT player FROM table_name_86 WHERE score = 74 - 67 - 74 - 71 = 286 |
Write a SQL query that answers the following question: Which Place has a Country of united states, and a Player of corey pavin? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (place VARCHAR, country VARCHAR, player VARCHAR) | SELECT place FROM table_name_69 WHERE country = "united states" AND player = "corey pavin" |
Write a SQL query that answers the following question: Who is the opponent in week 15? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (opponent VARCHAR, week VARCHAR) | SELECT opponent FROM table_name_65 WHERE week = 15 |
Write a SQL query that answers the following question: What is the highest attendance a result of W 30-7? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (attendance INTEGER, result VARCHAR) | SELECT MAX(attendance) FROM table_name_57 WHERE result = "w 30-7" |
Write a SQL query that answers the following question: What is the average attendance at week earlier than 6 on October 14, 2001? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (attendance INTEGER, week VARCHAR, date VARCHAR) | SELECT AVG(attendance) FROM table_name_22 WHERE week < 6 AND date = "october 14, 2001" |
Write a SQL query that answers the following question: what is the record when the method is submission (armbar) and the round is less than 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (record VARCHAR, method VARCHAR, round VARCHAR) | SELECT record FROM table_name_8 WHERE method = "submission (armbar)" AND round < 3 |
Write a SQL query that answers the following question: How many average points did svg burgkirchen have with a loss smaller than 6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (points INTEGER, name VARCHAR, lost VARCHAR) | SELECT AVG(points) FROM table_name_12 WHERE name = "svg burgkirchen" AND lost < 6 |
Write a SQL query that answers the following question: Who had points smaller than 22 and a drawn of 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (name VARCHAR, points VARCHAR, drawn VARCHAR) | SELECT name FROM table_name_4 WHERE points < 22 AND drawn = 2 |
Write a SQL query that answers the following question: Who lost 2 and had a position bigger than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (name VARCHAR, lost VARCHAR, position VARCHAR) | SELECT name FROM table_name_75 WHERE lost = 2 AND position > 1 |
Write a SQL query that answers the following question: What is the name of the catalog issued with the title of 1958 Miles on the Sony label at a year prior to 2006? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (catalog VARCHAR, year VARCHAR, issued_title VARCHAR, label VARCHAR) | SELECT catalog FROM table_name_62 WHERE issued_title = "1958 miles" AND label = "sony" AND year < 2006 |
Write a SQL query that answers the following question: What is the label of the Year before 1979? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (label VARCHAR, year INTEGER) | SELECT label FROM table_name_16 WHERE year < 1979 |
Write a SQL query that answers the following question: WHAT IS THE 2011 PERFORMANCE AT THE MIAMI MASTERS? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (tournament VARCHAR) | SELECT 2011 FROM table_name_74 WHERE tournament = "miami masters" |
Write a SQL query that answers the following question: WHAT IS THE 2008 PERFORMANCE WITH A 2007 CAREER STATISTICS? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (Id VARCHAR) | SELECT 2008 FROM table_name_45 WHERE 2007 = "career statistics" |
Write a SQL query that answers the following question: WHAT IS THE TOURNAMENT WITH A 2010 OF A, 2009 OF A, AND 001 PERFORMANCE OF Q1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (tournament VARCHAR) | SELECT tournament FROM table_name_5 WHERE 2010 = "a" AND 2009 = "a" AND 2011 = "q1" |
Write a SQL query that answers the following question: WHAT IS THE 2009 PERFORMANCE WITH A 2012 OF 2R, 2001 OF 1R, 2007 OF A, AND 2008 OF A? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (Id VARCHAR) | SELECT 2009 FROM table_name_77 WHERE 2012 = "2r" AND 2011 = "1r" AND 2007 = "a" AND 2008 = "a" |
Write a SQL query that answers the following question: WHAT IS THE 2011 PERFORMANCE WITH A 2007 OF Q3? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (Id VARCHAR) | SELECT 2011 FROM table_name_90 WHERE 2007 = "q3" |
Write a SQL query that answers the following question: Which Score has a Place of t2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (score VARCHAR, place VARCHAR) | SELECT score FROM table_name_95 WHERE place = "t2" |
Write a SQL query that answers the following question: What was spain's score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (score VARCHAR, country VARCHAR) | SELECT score FROM table_name_93 WHERE country = "spain" |
Write a SQL query that answers the following question: Which To par has a Score of 70-73-80-68=291? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (to_par VARCHAR, score VARCHAR) | SELECT to_par FROM table_name_97 WHERE score = 70 - 73 - 80 - 68 = 291 |
Write a SQL query that answers the following question: From what Country is T6 Place Player Tom Weiskopf? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (country VARCHAR, place VARCHAR, player VARCHAR) | SELECT country FROM table_name_12 WHERE place = "t6" AND player = "tom weiskopf" |
Write a SQL query that answers the following question: With a To par of –2, what is Johnny Miller's Place? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (place VARCHAR, to_par VARCHAR, player VARCHAR) | SELECT place FROM table_name_13 WHERE to_par = "–2" AND player = "johnny miller" |
Write a SQL query that answers the following question: From what Country is Gene Borek? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (country VARCHAR, player VARCHAR) | SELECT country FROM table_name_80 WHERE player = "gene borek" |
Write a SQL query that answers the following question: What is the Country of the Player with a To par of –5? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (country VARCHAR, to_par VARCHAR) | SELECT country FROM table_name_46 WHERE to_par = "–5" |
Write a SQL query that answers the following question: What is the Place of the Player from New Zealand? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (place VARCHAR, country VARCHAR) | SELECT place FROM table_name_18 WHERE country = "new zealand" |
Write a SQL query that answers the following question: What is the Place of the Player with a Score of 70-68=138? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (place VARCHAR, score VARCHAR) | SELECT place FROM table_name_28 WHERE score = 70 - 68 = 138 |
Write a SQL query that answers the following question: What is the highest Losses, when Wins is greater than 1, and when Last Appearance is 2003? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (losses INTEGER, wins VARCHAR, last_appearance VARCHAR) | SELECT MAX(losses) FROM table_name_88 WHERE wins > 1 AND last_appearance = "2003" |
Write a SQL query that answers the following question: What is the highest Wins, when Percent is 0.000, when School is Oklahoma State, and when Appearances is less than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (wins INTEGER, appearances VARCHAR, percent VARCHAR, school VARCHAR) | SELECT MAX(wins) FROM table_name_67 WHERE percent = "0.000" AND school = "oklahoma state" AND appearances < 1 |
Write a SQL query that answers the following question: What is the total number of Losses, when Last Appearance is 2003, and when Wins is greater than 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (losses VARCHAR, last_appearance VARCHAR, wins VARCHAR) | SELECT COUNT(losses) FROM table_name_85 WHERE last_appearance = "2003" AND wins > 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.