answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT opponent FROM table_name_7 WHERE method = "tko" AND location = "elgin, illinois, usa" AND date = "2001-02-11"
CREATE TABLE table_name_7 (opponent VARCHAR, date VARCHAR, method VARCHAR, location VARCHAR)
Which Opponent has a Method of tko, and a Location of elgin, illinois, usa on 2001-02-11?
SELECT AVG(round) FROM table_name_83 WHERE location = "auckland, new zealand" AND method = "tko" AND date = "1994-11-24"
CREATE TABLE table_name_83 (round INTEGER, date VARCHAR, location VARCHAR, method VARCHAR)
Which Round has a Location of auckland, new zealand, and a Method of tko on 1994-11-24?
SELECT MAX(round) FROM table_name_27 WHERE result = "loss"
CREATE TABLE table_name_27 (round INTEGER, result VARCHAR)
Which highest Round has a Result of loss?
SELECT location FROM table_name_40 WHERE method = "decision"
CREATE TABLE table_name_40 (location VARCHAR, method VARCHAR)
Which Location has a Method of decision?
SELECT tournament FROM table_name_77 WHERE 2004 = "1r" AND 2007 = "1r"
CREATE TABLE table_name_77 (tournament VARCHAR)
What tournament has 1r as a 2004, and 1r as a 2007?
SELECT 2012 FROM table_name_31 WHERE 2010 = "q2" AND tournament = "wimbledon"
CREATE TABLE table_name_31 (tournament VARCHAR)
What 2012 has q2 as the 2010, and wimbledon as the tournament?
SELECT 2006 FROM table_name_95 WHERE 2010 = "grand slam tournaments"
CREATE TABLE table_name_95 (Id VARCHAR)
What 2006 has grand slam tournaments of 2010?
SELECT 2006 FROM table_name_27 WHERE 2005 = "grand slam tournaments"
CREATE TABLE table_name_27 (Id VARCHAR)
What 2006 has grand slam tournaments of 2005?
SELECT 2006 FROM table_name_34 WHERE 2007 = "q2"
CREATE TABLE table_name_34 (Id VARCHAR)
What 2006 has q2 as the 2007?
SELECT losses FROM table_name_34 WHERE awards = "mike miller (smoy)"
CREATE TABLE table_name_34 (losses VARCHAR, awards VARCHAR)
What are the losses where the award is Mike Miller (Smoy)?
SELECT win_percentage FROM table_name_9 WHERE wins = "46"
CREATE TABLE table_name_9 (win_percentage VARCHAR, wins VARCHAR)
Where the wins are 46, what is the win%?
SELECT conference FROM table_name_29 WHERE awards = "vancouver grizzlies"
CREATE TABLE table_name_29 (conference VARCHAR, awards VARCHAR)
Where the Vancouver Grizzlies is the awards, what is the conference?
SELECT MAX(1987) FROM table_name_48 WHERE 1995 < 1995 AND 1999 < 9
CREATE TABLE table_name_48 (Id VARCHAR)
What is the highest 1987 value with a 1995 value less than 1995 and a 1999 less than 9?
SELECT MAX(2003) FROM table_name_84 WHERE 1990 > 74 AND 1985 = 125 AND 1995 > 130
CREATE TABLE table_name_84 (Id VARCHAR)
What is the highest 2003 value with a 1990 greater than 74, a 125 value in 1985, and a 1995 value greater than 130?
SELECT MAX(2007) FROM table_name_56 WHERE 1985 > 52 AND 1987 > 130 AND 1990 < 1990
CREATE TABLE table_name_56 (Id VARCHAR)
What is the highest 2007 value with a 1985 value greater than 52, a 1987 value greater than 130, and a 1990 less than 1990?
SELECT MAX(1995) FROM table_name_4 WHERE 1990 > 36 AND 1987 < 1987 AND 2007 > 107
CREATE TABLE table_name_4 (Id VARCHAR)
What is the highest 1995 with a 1990 less than 36, a 1987 less than 1987, and a 2007 value greater than 107?
SELECT MAX(2003) FROM table_name_19 WHERE 2011 < 107 AND 1995 < 17
CREATE TABLE table_name_19 (Id VARCHAR)
What is the highest 2003 value with a 2011 less than 107 and a 1995 value less than 17?
SELECT tournament FROM table_name_58 WHERE events > 11 AND top_5 = 0 AND top_25 = 2
CREATE TABLE table_name_58 (tournament VARCHAR, top_25 VARCHAR, events VARCHAR, top_5 VARCHAR)
What is the name of the tournament with 11 or more events a top-5 of 0 and a top-25 of 2?
SELECT MAX(top_10) FROM table_name_40 WHERE cuts_made = 8 AND events < 11
CREATE TABLE table_name_40 (top_10 INTEGER, cuts_made VARCHAR, events VARCHAR)
What is the most top-10 of the team with 8 cuts made and less than 11 events?
SELECT american_labor_ticket FROM table_name_3 WHERE liberal_ticket = "henry epstein"
CREATE TABLE table_name_3 (american_labor_ticket VARCHAR, liberal_ticket VARCHAR)
What is the American Labor ticket when Henry Epstein is the liberal ticket?
SELECT communist_ticket FROM table_name_63 WHERE office = "judge of the court of appeals"
CREATE TABLE table_name_63 (communist_ticket VARCHAR, office VARCHAR)
What is the name on the Communist ticket with an Office of judge of the court of appeals?
SELECT office FROM table_name_74 WHERE liberal_ticket = "spencer c. young"
CREATE TABLE table_name_74 (office VARCHAR, liberal_ticket VARCHAR)
What is the Office when spencer c. young is on the liberal ticket??
SELECT democratic_ticket FROM table_name_43 WHERE liberal_ticket = "erastus corning 2nd"
CREATE TABLE table_name_43 (democratic_ticket VARCHAR, liberal_ticket VARCHAR)
What is the name on the Democratic ticket when the Liberal ticket is erastus corning 2nd?
SELECT republican_ticket FROM table_name_37 WHERE american_labor_ticket = "spencer c. young"
CREATE TABLE table_name_37 (republican_ticket VARCHAR, american_labor_ticket VARCHAR)
What name is on the Republican ticket when the American Labor ticket was spencer c. young?
SELECT entered FROM table_name_74 WHERE time = "29:28"
CREATE TABLE table_name_74 (entered VARCHAR, time VARCHAR)
What is the entered number for the person with a time of 29:28?
SELECT eliminated AS by FROM table_name_15 WHERE time = "12:38"
CREATE TABLE table_name_15 (eliminated VARCHAR, time VARCHAR)
What is the number eliminated for the person with a time of 12:38?
SELECT MAX(attendance) FROM table_name_50 WHERE result = "w 24-21"
CREATE TABLE table_name_50 (attendance INTEGER, result VARCHAR)
What is the highest Attendance with a Result that is w 24-21?
SELECT date FROM table_name_73 WHERE time__seconds_ = 42.172
CREATE TABLE table_name_73 (date VARCHAR, time__seconds_ VARCHAR)
What Date has a time of (seconds) 42.172?
SELECT record FROM table_name_42 WHERE date = "23 january 2010" AND time__seconds_ < 42.679
CREATE TABLE table_name_42 (record VARCHAR, date VARCHAR, time__seconds_ VARCHAR)
What is the Record for 23 january 2010, with a time smaller than 42.679 seconds?
SELECT COUNT(points) FROM table_name_18 WHERE year = "2005"
CREATE TABLE table_name_18 (points VARCHAR, year VARCHAR)
What is the total number of Points that were in a Year that was 2005?
SELECT MIN(shots) FROM table_name_38 WHERE points > 32
CREATE TABLE table_name_38 (shots INTEGER, points INTEGER)
What is the lowest Shots with a Point that is larger than 32?
SELECT category FROM table_name_41 WHERE year = 1991
CREATE TABLE table_name_41 (category VARCHAR, year VARCHAR)
Which category had a year of 1991?
SELECT score FROM table_name_45 WHERE runner_up = "magdalena maleeva"
CREATE TABLE table_name_45 (score VARCHAR, runner_up VARCHAR)
What is the score having a runner-up of Magdalena Maleeva?
SELECT year_built FROM table_name_74 WHERE venue = "john m. belk arena"
CREATE TABLE table_name_74 (year_built VARCHAR, venue VARCHAR)
What year was John m. Belk Arena built?
SELECT environment FROM table_name_11 WHERE year_built = "2003"
CREATE TABLE table_name_11 (environment VARCHAR, year_built VARCHAR)
What type of environment is the venue that was built in 2003?
SELECT year_built FROM table_name_10 WHERE venue = "transamerica field"
CREATE TABLE table_name_10 (year_built VARCHAR, venue VARCHAR)
What year was transamerica field built in?
SELECT location FROM table_name_26 WHERE owner = "johnson c. smith university"
CREATE TABLE table_name_26 (location VARCHAR, owner VARCHAR)
What is the location of the venue owned by johnson c. smith university?
SELECT venue FROM table_name_61 WHERE score = "8-2"
CREATE TABLE table_name_61 (venue VARCHAR, score VARCHAR)
What is the venue when the score was 8-2?
SELECT score FROM table_name_96 WHERE competition = "1999 fifa confederations cup"
CREATE TABLE table_name_96 (score VARCHAR, competition VARCHAR)
What is the Score for the 1999 fifa confederations cup?
SELECT result FROM table_name_2 WHERE date = "30 june 1995"
CREATE TABLE table_name_2 (result VARCHAR, date VARCHAR)
What is the result on 30 june 1995?
SELECT date FROM table_name_45 WHERE competition = "1999 fifa confederations cup"
CREATE TABLE table_name_45 (date VARCHAR, competition VARCHAR)
What is the Date of the 1999 fifa confederations cup?
SELECT venue FROM table_name_23 WHERE competition = "2002 fifa world cup qualifier" AND result = "8-2"
CREATE TABLE table_name_23 (venue VARCHAR, competition VARCHAR, result VARCHAR)
What is the Venue for the 2002 fifa world cup qualifier, and a Result of 8-2?
SELECT score FROM table_name_76 WHERE date = "11 march 2001"
CREATE TABLE table_name_76 (score VARCHAR, date VARCHAR)
What is the Score on 11 march 2001?
SELECT symbol FROM table_name_25 WHERE empirical_† = "190" AND calculated = "135"
CREATE TABLE table_name_25 (symbol VARCHAR, empirical_† VARCHAR, calculated VARCHAR)
What is the symbol of the element with an empirical t of 190 and a calculated value of 135?
SELECT name FROM table_name_57 WHERE calculated = "56"
CREATE TABLE table_name_57 (name VARCHAR, calculated VARCHAR)
What is the name of the element with a calculated value of 56?
SELECT covalent__single_bond_ FROM table_name_21 WHERE name = "sodium"
CREATE TABLE table_name_21 (covalent__single_bond_ VARCHAR, name VARCHAR)
What is the covalent (single bond) value of sodium?
SELECT COUNT(height__cm_) FROM table_name_65 WHERE birthdate = "september 2, 1973"
CREATE TABLE table_name_65 (height__cm_ VARCHAR, birthdate VARCHAR)
What is the total height of the player with a birthdate on September 2, 1973?
SELECT birthdate FROM table_name_39 WHERE name = "robert esche"
CREATE TABLE table_name_39 (birthdate VARCHAR, name VARCHAR)
What is the birthdate of Robert Esche?
SELECT position FROM table_name_83 WHERE jersey__number > 30 AND birthdate = "december 23, 1986"
CREATE TABLE table_name_83 (position VARCHAR, jersey__number VARCHAR, birthdate VARCHAR)
What is the position of the player with a jersey # greater than 30 and a December 23, 1986 birthdate?
SELECT weight__kg_ FROM table_name_44 WHERE name = "john-michael liles"
CREATE TABLE table_name_44 (weight__kg_ VARCHAR, name VARCHAR)
What is the weight of John-Michael Liles?
SELECT first_leg FROM table_name_16 WHERE round = "quarter-final"
CREATE TABLE table_name_16 (first_leg VARCHAR, round VARCHAR)
What was the first leg score during the quarter-final game?
SELECT aggregate_score FROM table_name_66 WHERE opposition = "dynamo dresden"
CREATE TABLE table_name_66 (aggregate_score VARCHAR, opposition VARCHAR)
What was the aggregate score for the game against Dynamo Dresden?
SELECT opposition FROM table_name_69 WHERE round = "3rd"
CREATE TABLE table_name_69 (opposition VARCHAR, round VARCHAR)
Who was the opposing team in the 3rd round?
SELECT nation FROM table_name_20 WHERE gold = 0 AND silver > 1
CREATE TABLE table_name_20 (nation VARCHAR, gold VARCHAR, silver VARCHAR)
Which nation has 0 golds and more than 1 silver?
SELECT MIN(total) FROM table_name_36 WHERE gold < 3 AND bronze > 0 AND silver > 0
CREATE TABLE table_name_36 (total INTEGER, silver VARCHAR, gold VARCHAR, bronze VARCHAR)
What is the smallest total that has under 3 golds, more than 0 silvers and bronzes?
SELECT COUNT(silver) FROM table_name_11 WHERE bronze = "3" AND rank = "3" AND total > 6
CREATE TABLE table_name_11 (silver VARCHAR, total VARCHAR, bronze VARCHAR, rank VARCHAR)
What is the total number of silvers associated with 3 bronzes, a total over 6, and a rank of 3?
SELECT SUM(bronze) FROM table_name_67 WHERE rank = "10" AND gold < 0
CREATE TABLE table_name_67 (bronze INTEGER, rank VARCHAR, gold VARCHAR)
What is the sum of bronzes associated with 0 golds and a rank of 10?
SELECT MAX(silver) FROM table_name_42 WHERE gold < 0
CREATE TABLE table_name_42 (silver INTEGER, gold INTEGER)
What is the largest silver value associated with 0 golds?
SELECT COUNT(bronze) FROM table_name_44 WHERE nation = "netherlands"
CREATE TABLE table_name_44 (bronze VARCHAR, nation VARCHAR)
What is the total number of bronzes from the Netherlands?
SELECT AVG(earnings__) AS $_ FROM table_name_88 WHERE money_list_rank = "6" AND year < 2004
CREATE TABLE table_name_88 (earnings__ INTEGER, money_list_rank VARCHAR, year VARCHAR)
What is the average amount of earnings for years under 2004 and money list rankings of 6?
SELECT MAX(wins) FROM table_name_60 WHERE average > 73.02 AND year > 1999
CREATE TABLE table_name_60 (wins INTEGER, average VARCHAR, year VARCHAR)
What is the highest number of wins for years after 1999 with averages over 73.02?
SELECT away_team FROM table_name_54 WHERE home_team = "manchester united"
CREATE TABLE table_name_54 (away_team VARCHAR, home_team VARCHAR)
Who was the away team when the home team Manchester United played?
SELECT attendance FROM table_name_8 WHERE tie_no = "16"
CREATE TABLE table_name_8 (attendance VARCHAR, tie_no VARCHAR)
When there was a tie of 16 what was the attendance?
SELECT score FROM table_name_30 WHERE tie_no = "6"
CREATE TABLE table_name_30 (score VARCHAR, tie_no VARCHAR)
Tell me the score when there was a Tie number of 6?
SELECT away_team FROM table_name_46 WHERE tie_no = "14"
CREATE TABLE table_name_46 (away_team VARCHAR, tie_no VARCHAR)
For the Tie number of 14 who was the away team?
SELECT catalog FROM table_name_8 WHERE format = "digipak album" AND date = "june 29, 1999"
CREATE TABLE table_name_8 (catalog VARCHAR, format VARCHAR, date VARCHAR)
What Catalog released on June 29, 1999 has a Digipak Album Format?
SELECT date FROM table_name_39 WHERE catalog = "rr 8655-2"
CREATE TABLE table_name_39 (date VARCHAR, catalog VARCHAR)
What is the release Date of Catalog RR 8655-2?
SELECT score FROM table_name_38 WHERE name = "nicole θ΅–ζ·žε‡€"
CREATE TABLE table_name_38 (score VARCHAR, name VARCHAR)
What is Score, when Name is Nicole θ΅–ζ·žε‡€?
SELECT score FROM table_name_99 WHERE song = "第九倜"
CREATE TABLE table_name_99 (score VARCHAR, song VARCHAR)
What is Score, when Song is 第九倜?
SELECT Group AS song FROM table_name_80 WHERE song = "捒季"
CREATE TABLE table_name_80 (Group VARCHAR, song VARCHAR)
What is Group Song, when Song is 捒季?
SELECT Group AS song FROM table_name_29 WHERE name = "alice ζž—θŠ―η³Έ"
CREATE TABLE table_name_29 (Group VARCHAR, name VARCHAR)
What is Group Song, when Name is Alice ζž—θŠ―η³Έ?
SELECT surface FROM table_name_32 WHERE score = "2–6, 6–3, 6–4"
CREATE TABLE table_name_32 (surface VARCHAR, score VARCHAR)
On what surface was the match played with a score of 2–6, 6–3, 6–4?
SELECT surface FROM table_name_82 WHERE score = "4–6, 6–3, 6–1"
CREATE TABLE table_name_82 (surface VARCHAR, score VARCHAR)
On what surface was the match played with a score of 4–6, 6–3, 6–1?
SELECT score FROM table_name_44 WHERE opponent_in_the_final = "iroda tulyaganova"
CREATE TABLE table_name_44 (score VARCHAR, opponent_in_the_final VARCHAR)
What was the score when the opponent in the final was iroda tulyaganova?
SELECT tournament FROM table_name_22 WHERE opponent_in_the_final = "nadia petrova" AND score = "6–3, 4–6, 6–1"
CREATE TABLE table_name_22 (tournament VARCHAR, opponent_in_the_final VARCHAR, score VARCHAR)
Which tournament has an opponent in the final of nadia petrova and a score of 6–3, 4–6, 6–1??
SELECT 01 AS _02 FROM table_name_61 WHERE "03_04" = "03_04"
CREATE TABLE table_name_61 (Id VARCHAR)
What is 01-02, when 03-04 is 03-04?
SELECT 02 AS _03 FROM table_name_33 WHERE school_year = "% learning in latvian"
CREATE TABLE table_name_33 (school_year VARCHAR)
What is 02-03, when School Year is % Learning In Latvian?
SELECT choreographer_s_ FROM table_name_29 WHERE style = "jazz"
CREATE TABLE table_name_29 (choreographer_s_ VARCHAR, style VARCHAR)
Who was the choreographer for the dance style of Jazz?
SELECT music FROM table_name_57 WHERE results = "safe" AND choreographer_s_ = "jason gilkison"
CREATE TABLE table_name_57 (music VARCHAR, results VARCHAR, choreographer_s_ VARCHAR)
Which music led to a safe result and was choreographed by Jason Gilkison?
SELECT couple FROM table_name_27 WHERE style = "contemporary"
CREATE TABLE table_name_27 (couple VARCHAR, style VARCHAR)
Which couple participated in the Contemporary style of dance?
SELECT couple FROM table_name_91 WHERE results = "safe" AND style = "paso doble"
CREATE TABLE table_name_91 (couple VARCHAR, results VARCHAR, style VARCHAR)
Which couple participated in the Paso Doble style and were safe?
SELECT COUNT(week) FROM table_name_88 WHERE date = "november 26, 1978" AND attendance > 26 OFFSET 248
CREATE TABLE table_name_88 (week VARCHAR, date VARCHAR, attendance VARCHAR)
How many weeks had a game on November 26, 1978, and an attendance higher than 26,248?
SELECT MIN(attendance) FROM table_name_90 WHERE week = 12
CREATE TABLE table_name_90 (attendance INTEGER, week VARCHAR)
What was the lowest Attendance during Week 12?
SELECT tournament FROM table_name_89 WHERE opponent_in_the_final = "yi jingqian"
CREATE TABLE table_name_89 (tournament VARCHAR, opponent_in_the_final VARCHAR)
What was the name of the tournament that the final was played against Yi Jingqian?
SELECT opponent_in_the_final FROM table_name_93 WHERE tournament = "taipei, taiwan" AND date = "november 14, 1994"
CREATE TABLE table_name_93 (opponent_in_the_final VARCHAR, tournament VARCHAR, date VARCHAR)
Who was the final opponent in the tournament in Taipei, Taiwan on November 14, 1994?
SELECT opponent_in_the_final FROM table_name_47 WHERE date = "october 14, 1996"
CREATE TABLE table_name_47 (opponent_in_the_final VARCHAR, date VARCHAR)
On October 14, 1996 who was the opponent in the final?
SELECT score FROM table_name_29 WHERE surface = "hard" AND opponent_in_the_final = "yi jingqian"
CREATE TABLE table_name_29 (score VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR)
When playing against Yi Jingqian in the final on a hard surface what was the score?
SELECT opponent_in_the_final FROM table_name_17 WHERE date = "november 14, 1994"
CREATE TABLE table_name_17 (opponent_in_the_final VARCHAR, date VARCHAR)
Who was played against in the final on November 14, 1994?
SELECT COUNT(entered) FROM table_name_53 WHERE eliminated = "3"
CREATE TABLE table_name_53 (entered VARCHAR, eliminated VARCHAR)
What is the total number of Entered when the eliminated number is 3?
SELECT eliminated FROM table_name_28 WHERE entered < 4 AND wrestler = "shawn michaels"
CREATE TABLE table_name_28 (eliminated VARCHAR, entered VARCHAR, wrestler VARCHAR)
What is the Eliminated when there are less than 4 entered and the wrestler was shawn michaels?
SELECT COUNT(frequency__per_hour_) FROM table_name_18 WHERE line = "east london" AND destination = "crystal palace"
CREATE TABLE table_name_18 (frequency__per_hour_ VARCHAR, line VARCHAR, destination VARCHAR)
How many frequencies have a line of East London and destination of Crystal Palace?
SELECT line FROM table_name_87 WHERE operator = "london overground" AND destination = "crystal palace"
CREATE TABLE table_name_87 (line VARCHAR, operator VARCHAR, destination VARCHAR)
Which line has an operator of the London Overground and ends at the Crystal Palace?
SELECT song FROM table_name_15 WHERE artist = "gino vannelli"
CREATE TABLE table_name_15 (song VARCHAR, artist VARCHAR)
Which song was by artist Gino Vannelli?
SELECT tournament FROM table_name_35 WHERE cuts_made < 7 AND wins = 0 AND top_25 < 1
CREATE TABLE table_name_35 (tournament VARCHAR, top_25 VARCHAR, cuts_made VARCHAR, wins VARCHAR)
What tournament did Bill Rogers play in when he had less than 7 Cuts, 0 Wins, and less than 1 Top-25?
SELECT COUNT(losses) FROM table_name_49 WHERE ties = 1 AND poll_wins > 3
CREATE TABLE table_name_49 (losses VARCHAR, ties VARCHAR, poll_wins VARCHAR)
What are the number of losses that have Ties of 1 and 3 or more poll wins?
SELECT MIN(poll_losses) FROM table_name_15 WHERE ties = 0 AND poll_wins > 1 AND wins < 2
CREATE TABLE table_name_15 (poll_losses INTEGER, wins VARCHAR, ties VARCHAR, poll_wins VARCHAR)
What is the lowest poll losses of the 0 ties, poll wins greater than 1 and wins less than 2?
SELECT MAX(poll_wins) FROM table_name_49 WHERE poll_losses > 2 AND advocate = "andy kindler" AND ties < 0
CREATE TABLE table_name_49 (poll_wins INTEGER, ties VARCHAR, poll_losses VARCHAR, advocate VARCHAR)
What is the highest poll of the advocate Andy Kindler with poll losses greater than 2 and ties less than 0?
SELECT AVG(pba_titles) FROM table_name_16 WHERE tv_finals > 6 AND events > 20
CREATE TABLE table_name_16 (pba_titles INTEGER, tv_finals VARCHAR, events VARCHAR)
Which PBA Titles has a TV Finals larger than 6, and an Events larger than 20?
SELECT MAX(events) FROM table_name_22 WHERE earnings = "$113,259" AND average > 229.5
CREATE TABLE table_name_22 (events INTEGER, earnings VARCHAR, average VARCHAR)
Which Events has Earnings of $113,259, and an Average larger than 229.5?
SELECT COUNT(cashes) FROM table_name_97 WHERE match_play < 13 AND events = 7
CREATE TABLE table_name_97 (cashes VARCHAR, match_play VARCHAR, events VARCHAR)
Which Cashes has a Match Play smaller than 13, and a Events of 7?