answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT date FROM table_name_43 WHERE week > 6 AND result = "w 65-20"
CREATE TABLE table_name_43 (date VARCHAR, week VARCHAR, result VARCHAR)
When was there a result of w 65-20 after week 6?
SELECT agg FROM table_name_81 WHERE team_1 = "celta"
CREATE TABLE table_name_81 (agg VARCHAR, team_1 VARCHAR)
What is Celta's Agg.?
SELECT 2 AS nd_leg FROM table_name_49 WHERE team_2 = "barcelona"
CREATE TABLE table_name_49 (team_2 VARCHAR)
What is the 2nd leg for Barcelona Team 2?
SELECT team_2 FROM table_name_61 WHERE team_1 = "numancia"
CREATE TABLE table_name_61 (team_2 VARCHAR, team_1 VARCHAR)
What is team 2 if Team 1 is Numancia?
SELECT COUNT(performance_return_on_capital__score_) FROM table_name_11 WHERE score__iran_ < 3 AND score__global_ = 266
CREATE TABLE table_name_11 (performance_return_on_capital__score_ VARCHAR, score__iran_ VARCHAR, score__global_ VARCHAR)
What is the sum of the Performance/Return on Capital (Score) when the Score (Iran) is less than 3, and the Score (Global) is 266?
SELECT total_assets___percentage_change_ FROM table_name_86 WHERE performance_return_on_capital___percentage_ > 25.63 AND performance_return_on_capital__score_ > 7
CREATE TABLE table_name_86 (total_assets___percentage_change_ VARCHAR, performance_return_on_capital___percentage_ VARCHAR, performance_return_on_capital__score_ VARCHAR)
What Total Assets (% Change) that has Performance/Return on Capital (%) greater than 25.63, and a Performance/Return on Capital (Score) greater than 7?
SELECT nfl_club FROM table_name_34 WHERE pick > 63 AND position = "cornerback"
CREATE TABLE table_name_34 (nfl_club VARCHAR, pick VARCHAR, position VARCHAR)
What is the NFL club of the cornerback player with a pick greater than 63?
SELECT COUNT(round) FROM table_name_66 WHERE position = "tight end"
CREATE TABLE table_name_66 (round VARCHAR, position VARCHAR)
What is the total round of the tight end position player?
SELECT pick FROM table_name_95 WHERE nfl_club = "buffalo bills"
CREATE TABLE table_name_95 (pick VARCHAR, nfl_club VARCHAR)
What is the pick of the NFL club buffalo bills?
SELECT date FROM table_name_63 WHERE competition = "semifinal" AND result = "2-1 aet"
CREATE TABLE table_name_63 (date VARCHAR, competition VARCHAR, result VARCHAR)
On What Date is the Competition Semifinal that has a result of 2-1 aet?
SELECT location FROM table_name_67 WHERE competition = "group stage" AND lineup = "start" AND date = "2000-09-17"
CREATE TABLE table_name_67 (location VARCHAR, date VARCHAR, competition VARCHAR, lineup VARCHAR)
Which Location has a Competition of Group Stage, a Lineup of Start and a Date of 2000-09-17?
SELECT match FROM table_name_66 WHERE competition = "group stage" AND date = "2000-09-17"
CREATE TABLE table_name_66 (match VARCHAR, competition VARCHAR, date VARCHAR)
Which Match has a Competition of Group Stage on 2000-09-17?
SELECT match FROM table_name_19 WHERE competition = "semifinal" AND location = "san francisco"
CREATE TABLE table_name_19 (match VARCHAR, competition VARCHAR, location VARCHAR)
Which Match played in a Location of San Francisco has a Competition of Semifinal?
SELECT location FROM table_name_3 WHERE date = "1995-06-15"
CREATE TABLE table_name_3 (location VARCHAR, date VARCHAR)
What Location has a Date of 1995-06-15?
SELECT MAX(points_1) FROM table_name_57 WHERE goals_against < 97 AND lost < 22 AND drawn = 9 AND goal_difference = "+28"
CREATE TABLE table_name_57 (points_1 INTEGER, goal_difference VARCHAR, drawn VARCHAR, goals_against VARCHAR, lost VARCHAR)
What is the most points 1 when the goals against are fewer than 97, lost less than 22, 9 draws and goal difference of +28?
SELECT MAX(points_1) FROM table_name_39 WHERE goal_difference = "+28" AND lost > 12
CREATE TABLE table_name_39 (points_1 INTEGER, goal_difference VARCHAR, lost VARCHAR)
What is the most points 1 when the goal difference is +28 and lost is larger than 12?
SELECT MAX(lost) FROM table_name_9 WHERE points_1 > 58 AND goals_against = 66
CREATE TABLE table_name_9 (lost INTEGER, points_1 VARCHAR, goals_against VARCHAR)
What is the maximum lost with points 1 more than 58 and 66 goals against?
SELECT MAX(goals_for) FROM table_name_1 WHERE drawn < 4
CREATE TABLE table_name_1 (goals_for INTEGER, drawn INTEGER)
What is the most goals for when there are fewer than 4 draws?
SELECT result FROM table_name_87 WHERE date = "october 20, 2002"
CREATE TABLE table_name_87 (result VARCHAR, date VARCHAR)
What was the result on October 20, 2002?
SELECT nationality FROM table_name_96 WHERE jersey_number_s_ = "27"
CREATE TABLE table_name_96 (nationality VARCHAR, jersey_number_s_ VARCHAR)
What is the nationality of the person with number 27?
SELECT nationality FROM table_name_48 WHERE position = "sg"
CREATE TABLE table_name_48 (nationality VARCHAR, position VARCHAR)
What is the nationality of the SG position?
SELECT rank FROM table_name_32 WHERE director = "danny devito"
CREATE TABLE table_name_32 (rank VARCHAR, director VARCHAR)
What is the rank of the film directed by danny devito?
SELECT SUM(rank) FROM table_name_19 WHERE title = "eddie murphy raw"
CREATE TABLE table_name_19 (rank INTEGER, title VARCHAR)
What is the sum of the ranks for the film, eddie murphy raw?
SELECT director FROM table_name_29 WHERE studio = "fox" AND title = "predator"
CREATE TABLE table_name_29 (director VARCHAR, studio VARCHAR, title VARCHAR)
Who directed Predator that was filmed with Fox Studio?
SELECT COUNT(rank) FROM table_name_48 WHERE studio = "vestron"
CREATE TABLE table_name_48 (rank VARCHAR, studio VARCHAR)
What is the total number of ranks that had vestron as the studio?
SELECT class FROM table_name_11 WHERE driver = "stanley dickens"
CREATE TABLE table_name_11 (class VARCHAR, driver VARCHAR)
Which class had Stanley Dickens as a driver?
SELECT MAX(laps) FROM table_name_73 WHERE class = "c1" AND driver = "derek bell"
CREATE TABLE table_name_73 (laps INTEGER, class VARCHAR, driver VARCHAR)
What was the highest amount of laps for class c1 and driver Derek Bell?
SELECT nationality FROM table_name_39 WHERE apps > 40 AND goals = 17
CREATE TABLE table_name_39 (nationality VARCHAR, apps VARCHAR, goals VARCHAR)
Where was the player born when the appearances were greater than 40 and made 17 goals?
SELECT gillingham_career FROM table_name_79 WHERE goals = 0 AND apps < 37 AND nationality = "england" AND position = "mf"
CREATE TABLE table_name_79 (gillingham_career VARCHAR, position VARCHAR, nationality VARCHAR, goals VARCHAR, apps VARCHAR)
When did the mf from England play for Gillingham that made 0 goals and less than 37 appearances?
SELECT player FROM table_name_67 WHERE place = "t8"
CREATE TABLE table_name_67 (player VARCHAR, place VARCHAR)
Who is the player with a t8 place?
SELECT country FROM table_name_75 WHERE place = "t8" AND player = "dale douglass"
CREATE TABLE table_name_75 (country VARCHAR, place VARCHAR, player VARCHAR)
What is the country of player dale douglass, who has a t8 place?
SELECT AVG(score) FROM table_name_39 WHERE place = "t8" AND player = "lee trevino"
CREATE TABLE table_name_39 (score INTEGER, place VARCHAR, player VARCHAR)
What is the average score of player lee trevino, who has a t8 place?
SELECT to_par FROM table_name_18 WHERE place = "t8" AND player = "johnny miller"
CREATE TABLE table_name_18 (to_par VARCHAR, place VARCHAR, player VARCHAR)
What is the to par of player johnny miller, who has a t8 place?
SELECT country FROM table_name_2 WHERE to_par = "e" AND player = "chi-chi rodríguez"
CREATE TABLE table_name_2 (country VARCHAR, to_par VARCHAR, player VARCHAR)
What is the country of player chi-chi rodríguez, who has an e to par?
SELECT college_junior_club_team__league_ FROM table_name_78 WHERE player = "joe colborne"
CREATE TABLE table_name_78 (college_junior_club_team__league_ VARCHAR, player VARCHAR)
WHAT IS THE LEAGUE WITH PLAYER JOE COLBORNE?
SELECT COUNT(round) FROM table_name_59 WHERE player = "nicholas tremblay"
CREATE TABLE table_name_59 (round VARCHAR, player VARCHAR)
WHAT IS THE ROUND NUMBER OF NICHOLAS TREMBLAY?
SELECT position FROM table_name_73 WHERE nationality = "france"
CREATE TABLE table_name_73 (position VARCHAR, nationality VARCHAR)
WHAT IS THE POSITION OF FRANCE?
SELECT COUNT(round) FROM table_name_23 WHERE player = "jamie arniel"
CREATE TABLE table_name_23 (round VARCHAR, player VARCHAR)
WHAT IS THE ROUND FOR JAMIE ARNIEL?
SELECT score FROM table_name_8 WHERE date = "may 12, 2008"
CREATE TABLE table_name_8 (score VARCHAR, date VARCHAR)
What was the score on May 12, 2008?
SELECT opponent FROM table_name_28 WHERE date = "september 26, 2009"
CREATE TABLE table_name_28 (opponent VARCHAR, date VARCHAR)
Who was the opponent on September 26, 2009?
SELECT AVG(lead_maragin) FROM table_name_16 WHERE dates_administered = "october 6, 2008"
CREATE TABLE table_name_16 (lead_maragin INTEGER, dates_administered VARCHAR)
What was the average lead maragin for the dates administered of october 6, 2008?
SELECT poll_source FROM table_name_91 WHERE dates_administered = "october 6, 2008"
CREATE TABLE table_name_91 (poll_source VARCHAR, dates_administered VARCHAR)
What was the poll source for october 6, 2008?
SELECT player FROM table_name_90 WHERE place = "t7" AND country = "united states"
CREATE TABLE table_name_90 (player VARCHAR, place VARCHAR, country VARCHAR)
Who has a place of T7 and is from the United States?
SELECT rank FROM table_name_42 WHERE worldwide_gross = "$914,691,118"
CREATE TABLE table_name_42 (rank VARCHAR, worldwide_gross VARCHAR)
What is the Rank of the Film with a Worldwide Gross of $914,691,118?
SELECT director FROM table_name_90 WHERE title = "the fugitive"
CREATE TABLE table_name_90 (director VARCHAR, title VARCHAR)
What is the Director of the Film The Fugitive?
SELECT MAX(points) FROM table_name_20 WHERE date = "october 12" AND attendance > 10 OFFSET 701
CREATE TABLE table_name_20 (points INTEGER, date VARCHAR, attendance VARCHAR)
What was the highest points on October 12, when the attendance where is over 10,701?
SELECT date FROM table_name_34 WHERE visitor = "montreal"
CREATE TABLE table_name_34 (date VARCHAR, visitor VARCHAR)
When was Montreal a visitor?
SELECT title FROM table_name_38 WHERE transliteration = "fal'shivaya nota"
CREATE TABLE table_name_38 (title VARCHAR, transliteration VARCHAR)
What Title's Transliteration is Fal'shivaya Nota?
SELECT title FROM table_name_40 WHERE transliteration = "u lyudey-to v domu"
CREATE TABLE table_name_40 (title VARCHAR, transliteration VARCHAR)
What Title has a Transliteration of u lyudey-to v domu?
SELECT AVG(frequency_mhz) FROM table_name_13 WHERE city_of_license = "portales, new mexico"
CREATE TABLE table_name_13 (frequency_mhz INTEGER, city_of_license VARCHAR)
What is average frequency MHZ when is in portales, new mexico?
SELECT fcc_info FROM table_name_51 WHERE erp_w > 92 AND call_sign = "k264ba"
CREATE TABLE table_name_51 (fcc_info VARCHAR, erp_w VARCHAR, call_sign VARCHAR)
What is FCC info when ERP W is larger than 92 and call sign has k264ba?
SELECT call_sign FROM table_name_3 WHERE erp_w > 250 AND frequency_mhz < 99.3
CREATE TABLE table_name_3 (call_sign VARCHAR, erp_w VARCHAR, frequency_mhz VARCHAR)
Which call sign has ERP Wlarger than 250, and Frequency MHZ smaller than 99.3?
SELECT venue FROM table_name_72 WHERE score = "1-4"
CREATE TABLE table_name_72 (venue VARCHAR, score VARCHAR)
Where was the game played when the score was 1-4?
SELECT opponents FROM table_name_84 WHERE venue = "skytteholms ip" AND date = "2004-02-28"
CREATE TABLE table_name_84 (opponents VARCHAR, venue VARCHAR, date VARCHAR)
Who was the game played against on 2004-02-28 at Skytteholms IP?
SELECT opponents FROM table_name_12 WHERE venue = "domnarvsvallen"
CREATE TABLE table_name_12 (opponents VARCHAR, venue VARCHAR)
When the game was played at Domnarvsvallen who were the opponents?
SELECT opponents FROM table_name_49 WHERE venue = "portugal"
CREATE TABLE table_name_49 (opponents VARCHAR, venue VARCHAR)
Who were the opposing team when playing in the Portugal venue?
SELECT venue FROM table_name_43 WHERE date = "2004-06-23"
CREATE TABLE table_name_43 (venue VARCHAR, date VARCHAR)
Where was the game played on 2004-06-23?
SELECT AVG(to_par) FROM table_name_6 WHERE player = "tom weiskopf"
CREATE TABLE table_name_6 (to_par INTEGER, player VARCHAR)
What is the to par for Tom Weiskopf?
SELECT race_title FROM table_name_6 WHERE winner = "george fury" AND circuit = "oran park raceway"
CREATE TABLE table_name_6 (race_title VARCHAR, winner VARCHAR, circuit VARCHAR)
What title did George Fury win when on the Oran Park Raceway?
SELECT winner FROM table_name_38 WHERE circuit = "amaroo park"
CREATE TABLE table_name_38 (winner VARCHAR, circuit VARCHAR)
Who was the winner on the Amaroo Park circuit?
SELECT MIN(points) FROM table_name_74 WHERE goals_for < 13
CREATE TABLE table_name_74 (points INTEGER, goals_for INTEGER)
What are the fewest points for goals fewer than 13?
SELECT AVG(goals_for) FROM table_name_79 WHERE played > 10
CREATE TABLE table_name_79 (goals_for INTEGER, played INTEGER)
How many goals when more than 10 games played?
SELECT AVG(losses) FROM table_name_21 WHERE goals_against > 17 AND goal_difference < 2 AND points > 5
CREATE TABLE table_name_21 (losses INTEGER, points VARCHAR, goals_against VARCHAR, goal_difference VARCHAR)
How many losses when goals against are more than 17, goal difference is more than 2 and points are more than 5?
SELECT COUNT(draws) FROM table_name_28 WHERE wins < 6 AND goal_difference < -15
CREATE TABLE table_name_28 (draws VARCHAR, wins VARCHAR, goal_difference VARCHAR)
How many draws when there are fewer than 6 wins and the goal difference is less than -15?
SELECT COUNT(draw) FROM table_name_92 WHERE rank = "3rd" AND performer = "noelle" AND points > 79
CREATE TABLE table_name_92 (draw VARCHAR, points VARCHAR, rank VARCHAR, performer VARCHAR)
How much Draw has a Rank of 3rd, and a Performer of noelle, and Points larger than 79?
SELECT AVG(draw) FROM table_name_67 WHERE performer = "jenny newman" AND points < 77
CREATE TABLE table_name_67 (draw INTEGER, performer VARCHAR, points VARCHAR)
Which Draw has a Performer of jenny newman, and Points smaller than 77?
SELECT AVG(points) FROM table_name_46 WHERE draw = 2
CREATE TABLE table_name_46 (points INTEGER, draw VARCHAR)
Which Points have a Draw of 2?
SELECT COUNT(stage) FROM table_name_22 WHERE arrival = "son bou"
CREATE TABLE table_name_22 (stage VARCHAR, arrival VARCHAR)
Which stage number did son bou arrive at?
SELECT duration FROM table_name_34 WHERE stage > 13 AND difficulty = "middle" AND start = "son bou"
CREATE TABLE table_name_34 (duration VARCHAR, start VARCHAR, stage VARCHAR, difficulty VARCHAR)
How long does the one that stars with son bou of middle difficulty, and on a stage number larger than 13 last?
SELECT MIN(stage) FROM table_name_60 WHERE difficulty = "middle" AND start = "els alocs"
CREATE TABLE table_name_60 (stage INTEGER, difficulty VARCHAR, start VARCHAR)
What is the lowest stage number that starts with els alocs and has a middle difficulty?
SELECT price FROM table_name_24 WHERE upstream = "256 kbit" AND downstream = "512 kbit"
CREATE TABLE table_name_24 (price VARCHAR, upstream VARCHAR, downstream VARCHAR)
What is the price of the internet provider that has an upstream rate of 256 kbit and a downstream rate of 512 kbit?
SELECT bandwidth_included FROM table_name_66 WHERE price = "266 sar"
CREATE TABLE table_name_66 (bandwidth_included VARCHAR, price VARCHAR)
For the provider that costs 266 sar, what is the Bandwidth Included?
SELECT internet_plan FROM table_name_21 WHERE downstream = "4,096 kbit"
CREATE TABLE table_name_21 (internet_plan VARCHAR, downstream VARCHAR)
What is the name of the plan that has a downstream rate of 4,096 kbit?
SELECT record FROM table_name_93 WHERE score = "l 121–127"
CREATE TABLE table_name_93 (record VARCHAR, score VARCHAR)
Which record has a score of l 121–127?
SELECT high_points FROM table_name_39 WHERE game > 69 AND team = "san francisco"
CREATE TABLE table_name_39 (high_points VARCHAR, game VARCHAR, team VARCHAR)
What high points did San Francisco have in a game later than 69?
SELECT record FROM table_name_17 WHERE date = "march 10"
CREATE TABLE table_name_17 (record VARCHAR, date VARCHAR)
What is the record for March 10?
SELECT high_points FROM table_name_47 WHERE game < 80 AND score = "l 123–142"
CREATE TABLE table_name_47 (high_points VARCHAR, game VARCHAR, score VARCHAR)
What high points did a game earlier than 80 have with a score of l 123–142?
SELECT MIN(year) FROM table_name_47 WHERE co_driver = "warren luff" AND position = "7th" AND laps < 161
CREATE TABLE table_name_47 (year INTEGER, laps VARCHAR, co_driver VARCHAR, position VARCHAR)
What is the lowest Year, when Co-Driver is Warren Luff, when Position is 7th, and when Laps is less than 161?
SELECT position FROM table_name_90 WHERE laps = 156
CREATE TABLE table_name_90 (position VARCHAR, laps VARCHAR)
What is Position, when Laps is 156?
SELECT MAX(year) FROM table_name_82 WHERE laps > 161
CREATE TABLE table_name_82 (year INTEGER, laps INTEGER)
What is the highest Year, when Laps is greater than 161?
SELECT COUNT(season) FROM table_name_53 WHERE downhill = "35" AND overall > 21
CREATE TABLE table_name_53 (season VARCHAR, downhill VARCHAR, overall VARCHAR)
What season had a downhill of 35 and overall greater than 21?
SELECT super_g FROM table_name_77 WHERE overall > 7 AND combined = "13"
CREATE TABLE table_name_77 (super_g VARCHAR, overall VARCHAR, combined VARCHAR)
What's the Super G when the combined was 13 and the overall was more than 7?
SELECT time FROM table_name_42 WHERE laps = 22 AND grid = 15
CREATE TABLE table_name_42 (time VARCHAR, laps VARCHAR, grid VARCHAR)
What is Time, when Laps is 22, and when Grid is 15?
SELECT AVG(grid) FROM table_name_87 WHERE time = "+45.855"
CREATE TABLE table_name_87 (grid INTEGER, time VARCHAR)
What is the average Grid, when Time is +45.855?
SELECT COUNT(grid) FROM table_name_51 WHERE time = "+43.191" AND laps < 22
CREATE TABLE table_name_51 (grid VARCHAR, time VARCHAR, laps VARCHAR)
What is the total number of Grid, when Time is +43.191, and when Laps is less than 22?
SELECT place FROM table_name_28 WHERE player = "mark o'meara"
CREATE TABLE table_name_28 (place VARCHAR, player VARCHAR)
What is the place of Mark O'Meara?
SELECT player FROM table_name_43 WHERE score = 71 - 72 = 143
CREATE TABLE table_name_43 (player VARCHAR, score VARCHAR)
Which player has a score of 71-72=143?
SELECT score FROM table_name_80 WHERE country = "united states" AND place = "t1" AND player = "david duval"
CREATE TABLE table_name_80 (score VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR)
What is the score for the United States in place T1 for David Duval?
SELECT player FROM table_name_38 WHERE country = "united states" AND score = 71 - 72 = 143
CREATE TABLE table_name_38 (player VARCHAR, country VARCHAR, score VARCHAR)
Who is the player from the United States with a score of 71-72=143?
SELECT country FROM table_name_90 WHERE player = "scott mccarron"
CREATE TABLE table_name_90 (country VARCHAR, player VARCHAR)
Which country is Scott McCarron from?
SELECT country FROM table_name_4 WHERE place = "t1" AND score = 71 - 68 = 139
CREATE TABLE table_name_4 (country VARCHAR, place VARCHAR, score VARCHAR)
Which country is in T1 place with a score of 71-68=139?
SELECT venue FROM table_name_37 WHERE competition = "friendly" AND date = "26 may 1999"
CREATE TABLE table_name_37 (venue VARCHAR, competition VARCHAR, date VARCHAR)
what is the venue when the competition is friendly on 26 may 1999?
SELECT place FROM table_name_99 WHERE country = "australia"
CREATE TABLE table_name_99 (place VARCHAR, country VARCHAR)
What was Australia's place?
SELECT score FROM table_name_30 WHERE country = "united states" AND to_par = "e" AND player = "mike reid"
CREATE TABLE table_name_30 (score VARCHAR, player VARCHAR, country VARCHAR, to_par VARCHAR)
What was the score for United States when the player was Mike Reid and the To par was e?
SELECT hole FROM table_name_75 WHERE country = "united states" AND player = "mike reid"
CREATE TABLE table_name_75 (hole VARCHAR, country VARCHAR, player VARCHAR)
How many holes did Mike Reid from United States have?
SELECT name FROM table_name_72 WHERE position < 2
CREATE TABLE table_name_72 (name VARCHAR, position INTEGER)
Which Name has a Position smaller than 2?
SELECT COUNT(lost) FROM table_name_48 WHERE position > 2 AND name = "sg münchen (n)" AND drawn > 0
CREATE TABLE table_name_48 (lost VARCHAR, drawn VARCHAR, position VARCHAR, name VARCHAR)
Which Lost has a Position larger than 2, a Name of sg münchen (n), and a Drawn larger than 0?
SELECT MIN(drawn) FROM table_name_24 WHERE position = 2 AND lost > 2
CREATE TABLE table_name_24 (drawn INTEGER, position VARCHAR, lost VARCHAR)
Which Drawn has a Position of 2, and a Lost larger than 2?
SELECT COUNT(played) FROM table_name_85 WHERE position = 3 AND points < 15
CREATE TABLE table_name_85 (played VARCHAR, position VARCHAR, points VARCHAR)
Which Played has a Position of 3, and a Points smaller than 15?
SELECT MAX(played) FROM table_name_26 WHERE position > 5 AND points > 0 AND drawn < 0
CREATE TABLE table_name_26 (played INTEGER, drawn VARCHAR, position VARCHAR, points VARCHAR)
Which Played has a Position larger than 5, a Points larger than 0, and a Drawn smaller than 0?