answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT games_behind__gb_ FROM table_name_49 WHERE division__div_ = "oklahoma city thunder"
What are the games behind for the Oklahoma City Thunder division?
CREATE TABLE table_name_49 (games_behind__gb_ VARCHAR, division__div_ VARCHAR)
SELECT final_placing FROM table_name_17 WHERE season = 2009
What was the 2009 final placing?
CREATE TABLE table_name_17 (final_placing VARCHAR, season VARCHAR)
SELECT release_date FROM table_name_89 WHERE english_title = "your friend"
What is the Release date of the Album Your Friend?
CREATE TABLE table_name_89 (release_date VARCHAR, english_title VARCHAR)
SELECT circuit FROM table_name_64 WHERE team = "peter jackson racing" AND series = "atcc round 4"
What was the circuit for Team Peter Jackson Racing in the ATCC Round 4 series?
CREATE TABLE table_name_64 (circuit VARCHAR, team VARCHAR, series VARCHAR)
SELECT term FROM table_name_55 WHERE hometown = "ester creek"
What is the term for hometown Ester Creek?
CREATE TABLE table_name_55 (term VARCHAR, hometown VARCHAR)
SELECT AVG(rank__timeslot_) FROM table_name_97 WHERE rating < 2.6 AND share > 4
What is the timeslot rank when the rating is smaller than 2.6 and the share is more than 4?
CREATE TABLE table_name_97 (rank__timeslot_ INTEGER, rating VARCHAR, share VARCHAR)
SELECT divisions FROM table_20195922_3 WHERE number_of_winning_tickets = 565
Which divisions have 565 as the number of winning tickets?
CREATE TABLE table_20195922_3 (divisions VARCHAR, number_of_winning_tickets VARCHAR)
SELECT team FROM table_17271495_1 WHERE driver = "Darren Manning"
Name the team of darren manning
CREATE TABLE table_17271495_1 (team VARCHAR, driver VARCHAR)
SELECT colony_name FROM table_name_82 WHERE state = "west virginia"
Which Colony Name is in west virginia?
CREATE TABLE table_name_82 (colony_name VARCHAR, state VARCHAR)
SELECT AVG(gold) FROM table_name_84 WHERE bronze > 2 AND rank = 4 AND total > 7
Bronze larger than 2, and a Rank of 4, and a Total larger than 7 has how many numbers of gold?
CREATE TABLE table_name_84 (gold INTEGER, total VARCHAR, bronze VARCHAR, rank VARCHAR)
SELECT name FROM table_name_28 WHERE location = "nigeria"
What is the name of a location in Nigeria?
CREATE TABLE table_name_28 (name VARCHAR, location VARCHAR)
SELECT SUM(block) FROM table_name_16 WHERE weight > 82 AND height < 199
How many blocks have a weight greater than 82, and a height less than 199?
CREATE TABLE table_name_16 (block INTEGER, weight VARCHAR, height VARCHAR)
SELECT money___$__ FROM table_name_22 WHERE player = "ernie els"
What was the Money for Player Ernie Els?
CREATE TABLE table_name_22 (money___$__ VARCHAR, player VARCHAR)
SELECT COUNT(votes) FROM table_name_67 WHERE seats > 28
What is the number of votes for the party which got more than 28 seats?
CREATE TABLE table_name_67 (votes VARCHAR, seats INTEGER)
SELECT disc_number FROM table_name_19 WHERE track_number = "02" AND release_date = "7 september 2004"
What kind of Disc number has a Track number of 02 on 7 september 2004?
CREATE TABLE table_name_19 (disc_number VARCHAR, track_number VARCHAR, release_date VARCHAR)
SELECT type FROM table_name_2 WHERE scratch = "750 gb"
What type has a scratch of 750 GB?
CREATE TABLE table_name_2 (type VARCHAR, scratch VARCHAR)
SELECT circuit FROM table_name_5 WHERE race = "german grand prix"
What circuit was for the german grand prix?
CREATE TABLE table_name_5 (circuit VARCHAR, race VARCHAR)
SELECT team FROM table_name_87 WHERE time_retired = "contact" AND grid < 17
Name the Team which has a Time/Retired of contact, and a Grid smaller than 17?
CREATE TABLE table_name_87 (team VARCHAR, time_retired VARCHAR, grid VARCHAR)
SELECT COUNT(average) FROM table_name_34 WHERE balls_faced > 297 AND innings > 7
What is the number of averages having a balls faced over 297 and more than 7 innings?
CREATE TABLE table_name_34 (average VARCHAR, balls_faced VARCHAR, innings VARCHAR)
SELECT locomotive FROM table_name_74 WHERE gauge = "standard" AND serial_no = "83-1015"
What is the locomotive with a standard gauge and a serial number of 83-1015?
CREATE TABLE table_name_74 (locomotive VARCHAR, gauge VARCHAR, serial_no VARCHAR)
SELECT location FROM table_name_90 WHERE score = "2:3"
What was the location of the game with a score of 2:3?
CREATE TABLE table_name_90 (location VARCHAR, score VARCHAR)
SELECT MIN(year) FROM table_name_51 WHERE gold = "kim hyun-soo"
What is the earliest year that kim hyun-soo won the gold?
CREATE TABLE table_name_51 (year INTEGER, gold VARCHAR)
SELECT T1.donator_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T2.school_name = 'Glenn' INTERSECT SELECT T1.donator_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T2.school_name = 'Triton'
Show the names of donors who donated to both school "Glenn" and "Triton."
CREATE TABLE school (school_id VARCHAR, school_name VARCHAR); CREATE TABLE endowment (donator_name VARCHAR, school_id VARCHAR)
SELECT home_team AS score FROM table_name_25 WHERE ground = "ghantoot racing and polo club"
What is the home team score of the Ghantoot Racing and Polo Club Ground?
CREATE TABLE table_name_25 (home_team VARCHAR, ground VARCHAR)
SELECT nationality FROM table_name_62 WHERE heat = 4 AND name = "byun hye-young"
In heat 4, what is Byun Hye-young's Nationality?
CREATE TABLE table_name_62 (nationality VARCHAR, heat VARCHAR, name VARCHAR)
SELECT driver FROM table_name_38 WHERE grid = 7
Who drove the car with a grid of 7?
CREATE TABLE table_name_38 (driver VARCHAR, grid VARCHAR)
SELECT tie_no FROM table_name_97 WHERE home_team = "birmingham city"
Which Tie is from birmingham city?
CREATE TABLE table_name_97 (tie_no VARCHAR, home_team VARCHAR)
SELECT MAX(round) FROM table_name_84 WHERE overall < 6
Which Round has an Overall smaller than 6?
CREATE TABLE table_name_84 (round INTEGER, overall INTEGER)
SELECT opponent FROM table_name_88 WHERE date = "june 13"
Who's the opponent for June 13?
CREATE TABLE table_name_88 (opponent VARCHAR, date VARCHAR)
SELECT cyrillic_name_other_names FROM table_2562572_9 WHERE population__2011_ = 2125
What is the cyrillic name for the settlement with the population of 2125?
CREATE TABLE table_2562572_9 (cyrillic_name_other_names VARCHAR, population__2011_ VARCHAR)
SELECT last_10_meetings FROM table_name_48 WHERE at_norman = "ou, 18-6"
What is the Last 10 Meetings when Norman is ou, 18-6?
CREATE TABLE table_name_48 (last_10_meetings VARCHAR, at_norman VARCHAR)
SELECT l2_cache FROM table_name_92 WHERE sspec_number = "slbmm(c2)slbsr(k0)"
What is the L2 cache with ec number of slbmm(c2)slbsr(k0)?
CREATE TABLE table_name_92 (l2_cache VARCHAR, sspec_number VARCHAR)
SELECT years FROM table_name_99 WHERE wins < 82 AND losses > 24
What years did the person coach who had less than 82 wins and more than 24 losses?
CREATE TABLE table_name_99 (years VARCHAR, wins VARCHAR, losses VARCHAR)
SELECT money___$__ FROM table_name_17 WHERE score = 74 - 76 - 71 - 71 = 292
How much money was won for the game with a score of 74-76-71-71=292?
CREATE TABLE table_name_17 (money___$__ VARCHAR, score VARCHAR)
SELECT team FROM table_name_45 WHERE outgoing_manager = "christoph john"
Which team had Christoph John as an outgoing manager?
CREATE TABLE table_name_45 (team VARCHAR, outgoing_manager VARCHAR)
SELECT home_team AS score FROM table_name_81 WHERE venue = "windy hill"
What is the home team score that played at windy hill?
CREATE TABLE table_name_81 (home_team VARCHAR, venue VARCHAR)
SELECT COUNT(played) FROM table_14288212_1 WHERE first_played = 2011 AND points_for = 36
How many games did the team that began in 2011 and scored 36 points play?
CREATE TABLE table_14288212_1 (played VARCHAR, first_played VARCHAR, points_for VARCHAR)
SELECT nationality FROM table_name_74 WHERE player = "dave hynes"
What Nationality is Dave Hynes?
CREATE TABLE table_name_74 (nationality VARCHAR, player VARCHAR)
SELECT product_type_code FROM products GROUP BY product_type_code HAVING COUNT(*) >= 2
Show the product type codes which have at least two products.
CREATE TABLE products (product_type_code VARCHAR)
SELECT department_id, SUM(salary) FROM employees GROUP BY department_id HAVING COUNT(*) >= 2
display the department id and the total salary for those departments which contains at least two employees.
CREATE TABLE employees (department_id VARCHAR, salary INTEGER)
SELECT SUM(grid) FROM table_name_27 WHERE time_retired = "engine" AND laps < 45 AND driver = "giancarlo baghetti"
What is the sum of grids with an engine in Time/Retired with less than 45 laps for Giancarlo Baghetti?
CREATE TABLE table_name_27 (grid INTEGER, driver VARCHAR, time_retired VARCHAR, laps VARCHAR)
SELECT COUNT(final_episode) AS Count FROM table_11210576_4 WHERE character = "Rick Stetler"
what's the total number of final epbeingode count with character being rick stetler
CREATE TABLE table_11210576_4 (final_episode VARCHAR, character VARCHAR)
SELECT original_air_date FROM table_1792122_11 WHERE no_in_series = 71
What was the original are date of series number 71?
CREATE TABLE table_1792122_11 (original_air_date VARCHAR, no_in_series VARCHAR)
SELECT reason FROM table_name_95 WHERE venue = "belk gymnasium"
Why did the Belk Gymnasium close?
CREATE TABLE table_name_95 (reason VARCHAR, venue VARCHAR)
SELECT COUNT(high_points) FROM table_27698941_8 WHERE game = 34
How many players held the high point records for game 34?
CREATE TABLE table_27698941_8 (high_points VARCHAR, game VARCHAR)
SELECT city FROM table_name_69 WHERE spire__m_ = "105" AND roof___m__ < 96 AND built = 1985
What's the name of the 1985 city with a Spire (m) of 105, and a Roof (m) smaller than 96?
CREATE TABLE table_name_69 (city VARCHAR, built VARCHAR, spire__m_ VARCHAR, roof___m__ VARCHAR)
SELECT MAX(opponents) FROM table_name_97 WHERE record = "7-3" AND vikings_points > 7
Tell me the highest opponents for record of 7-3 and vikings points more than 7
CREATE TABLE table_name_97 (opponents INTEGER, record VARCHAR, vikings_points VARCHAR)
SELECT home FROM table_name_57 WHERE points = 23 AND date = "january 2"
Who was the home team on January 2 with 23 points?
CREATE TABLE table_name_57 (home VARCHAR, points VARCHAR, date VARCHAR)
SELECT position FROM table_22056184_1 WHERE poles = 2
Which positions are the poles 2?
CREATE TABLE table_22056184_1 (position VARCHAR, poles VARCHAR)
SELECT Name FROM Products
Select the names of all the products in the store.
CREATE TABLE Products (Name VARCHAR)
SELECT opponent FROM table_name_18 WHERE surface = "hard" AND outcome = "winner" AND partnering = "jordan kerr"
Who was the Opponent partnering with Jordan Kerr, on a hard surface that was the winner?
CREATE TABLE table_name_18 (opponent VARCHAR, partnering VARCHAR, surface VARCHAR, outcome VARCHAR)
SELECT MIN(gold) FROM table_name_81 WHERE total = 5 AND rank > 1
What is the number of Gold medals for the Nation with a Total of 5 and Rank larger than 1?
CREATE TABLE table_name_81 (gold INTEGER, total VARCHAR, rank VARCHAR)
SELECT date FROM table_name_85 WHERE home = "colorado"
What date was Colorado the home team?
CREATE TABLE table_name_85 (date VARCHAR, home VARCHAR)
SELECT cores FROM table_2467150_2 WHERE tdp = "17 W"
What is every value for cores if TDP is 17 W?
CREATE TABLE table_2467150_2 (cores VARCHAR, tdp VARCHAR)
SELECT written_by FROM table_27657925_1 WHERE no_in_series = "62"
When 62 is the number in series who is the writer?
CREATE TABLE table_27657925_1 (written_by VARCHAR, no_in_series VARCHAR)
SELECT city FROM table_name_6 WHERE third = "lori olson-johns"
WHAT IS THE CITY WITH THIRD AS LORI OLSON-JOHNS?
CREATE TABLE table_name_6 (city VARCHAR, third VARCHAR)
SELECT closure_date FROM table_name_70 WHERE region = "north east england"
What date was the ensemble in North East England closed?
CREATE TABLE table_name_70 (closure_date VARCHAR, region VARCHAR)
SELECT position FROM table_182410_10 WHERE digital_terrestrial_channel = "5 44 (+1)"
What is the position of digital channel 5 44 (+1)?
CREATE TABLE table_182410_10 (position VARCHAR, digital_terrestrial_channel VARCHAR)
SELECT COUNT(performance_return_on_capital__score_) FROM table_name_11 WHERE score__iran_ < 3 AND score__global_ = 266
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?
CREATE TABLE table_name_11 (performance_return_on_capital__score_ VARCHAR, score__iran_ VARCHAR, score__global_ VARCHAR)
SELECT venue FROM table_name_23 WHERE competition = "2002 fifa world cup qualifier" AND result = "8-2"
What is the Venue for the 2002 fifa world cup qualifier, and a Result of 8-2?
CREATE TABLE table_name_23 (venue VARCHAR, competition VARCHAR, result VARCHAR)
SELECT MAX(preliminary) FROM table_name_35 WHERE state = "new mexico" AND interview < 9.533
What is the best preliminary for a contestant from New Mexico with interview less than 9.533?
CREATE TABLE table_name_35 (preliminary INTEGER, state VARCHAR, interview VARCHAR)
SELECT date FROM table_name_66 WHERE label = "wrongun"
What date was the release that was Wrongun as the label?
CREATE TABLE table_name_66 (date VARCHAR, label VARCHAR)
SELECT threat_level FROM table_name_72 WHERE overview = "rabbits in australia"
What is the Threat Levels with Rabbits in Australia?
CREATE TABLE table_name_72 (threat_level VARCHAR, overview VARCHAR)
SELECT power FROM table_name_26 WHERE class = "a" AND frequency = "93.7"
What power has A as the class, and 93.7 as the frequency?
CREATE TABLE table_name_26 (power VARCHAR, class VARCHAR, frequency VARCHAR)
SELECT points FROM table_name_37 WHERE entrant = "bob gerard racing" AND year = 1965
How many points did Bob Gerard Racing have in 1965?
CREATE TABLE table_name_37 (points VARCHAR, entrant VARCHAR, year VARCHAR)
SELECT COUNT(top_25) FROM table_name_95 WHERE top_10 = 11
What is the total number of top-25s for the major that has 11 top-10s?
CREATE TABLE table_name_95 (top_25 VARCHAR, top_10 VARCHAR)
SELECT voltage FROM table_name_92 WHERE release_date = "june 2001" AND frequency = "1.13ghz"
what is the voltage when release date is june 2001 and frequency is 1.13ghz?
CREATE TABLE table_name_92 (voltage VARCHAR, release_date VARCHAR, frequency VARCHAR)
SELECT original_air_date FROM table_2343740_1 WHERE episode_number = 2
On what date did episode 2 air?
CREATE TABLE table_2343740_1 (original_air_date VARCHAR, episode_number VARCHAR)
SELECT position FROM table_16494599_5 WHERE player = "Kevin Edwards"
Which position did kevin edwards play for
CREATE TABLE table_16494599_5 (position VARCHAR, player VARCHAR)
SELECT tournament FROM table_1615980_4 WHERE winning_score = 68 - 67 - 65 - 66 = 266
In what tournament was the winning score 68-67-65-66=266?
CREATE TABLE table_1615980_4 (tournament VARCHAR, winning_score VARCHAR)
SELECT country FROM table_name_40 WHERE score < 68
What is the country of the player with a score less than 68?
CREATE TABLE table_name_40 (country VARCHAR, score INTEGER)
SELECT AVG(decile) FROM table_name_5 WHERE name = "westport south school"
What is the average decile of Westport South School?
CREATE TABLE table_name_5 (decile INTEGER, name VARCHAR)
SELECT score FROM table_name_36 WHERE record = "18-21-7"
Which score has a record of 18-21-7?
CREATE TABLE table_name_36 (score VARCHAR, record VARCHAR)
SELECT SUM(stand) FROM table_name_31 WHERE qual > 589
What is the sum of the stand with a qual more than 589?
CREATE TABLE table_name_31 (stand INTEGER, qual INTEGER)
SELECT date FROM table_25572118_1 WHERE winning_driver = "Fairuz Fauzy"
When fairuz fauzy is the winning driver what is the date?
CREATE TABLE table_25572118_1 (date VARCHAR, winning_driver VARCHAR)
SELECT MIN(points) FROM table_name_74 WHERE goals_for < 13
What are the fewest points for goals fewer than 13?
CREATE TABLE table_name_74 (points INTEGER, goals_for INTEGER)
SELECT SUM(gold) FROM table_name_19 WHERE total > 1 AND bronze = 0 AND rank = "5"
What is the gold number when total is more than 1, and bronze is 0, and rank is 5?
CREATE TABLE table_name_19 (gold INTEGER, rank VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT cpu_type FROM table_27765443_2 WHERE period_of_operation = "June 2005 - April 2009"
Name the cpu type for june 2005 - april 2009
CREATE TABLE table_27765443_2 (cpu_type VARCHAR, period_of_operation VARCHAR)
SELECT player FROM table_name_42 WHERE position = "defence" AND pick__number = "6"
Which player has a Position of defence, and a Pick # of 6?
CREATE TABLE table_name_42 (player VARCHAR, position VARCHAR, pick__number VARCHAR)
SELECT SUM(all_time) FROM table_name_39 WHERE amateur_era < 0
What is the sum of All-Time, when Amateur Era is less than 0?
CREATE TABLE table_name_39 (all_time INTEGER, amateur_era INTEGER)
SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = "sesame"
What are all the characteristic names of product "sesame"?
CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, characteristic_id VARCHAR); CREATE TABLE products (product_id VARCHAR, product_name VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)
SELECT winter FROM table_name_99 WHERE year = 1906
What is the Winter in 1906?
CREATE TABLE table_name_99 (winter VARCHAR, year VARCHAR)
SELECT filename_extension FROM table_name_64 WHERE interactivity_support = "no" AND open_standard = "yes" AND image_support = "no"
Which Filename extension has an Interactivity support of no, an Open standard of yes, and an Image support of no?
CREATE TABLE table_name_64 (filename_extension VARCHAR, image_support VARCHAR, interactivity_support VARCHAR, open_standard VARCHAR)
SELECT team FROM table_name_77 WHERE manager = "george graham"
Which team has george graham as the manager?
CREATE TABLE table_name_77 (team VARCHAR, manager VARCHAR)
SELECT constructor FROM table_name_84 WHERE laps > 17 AND grid < 7 AND time_retired = "+ 1:35.6"
When grid is less than 7, laps are greater than 17, and time/retired is + 1:35.6, who is the constructor?
CREATE TABLE table_name_84 (constructor VARCHAR, time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT high_assists FROM table_name_63 WHERE record = "3-7"
Who had the most assists in the game that led to a 3-7 record?
CREATE TABLE table_name_63 (high_assists VARCHAR, record VARCHAR)
SELECT MAX(points) FROM table_name_24 WHERE drawn < 2 AND lost = 12 AND name = "ev bad wörishofen"
Which Points have a Drawn smaller than 2, and a Lost of 12, and a Name of ev bad wörishofen?
CREATE TABLE table_name_24 (points INTEGER, name VARCHAR, drawn VARCHAR, lost VARCHAR)
SELECT quantity_made FROM table_name_3 WHERE manufacturer = "baldwin"
What is Quantity Made, when Manufacturer is "Baldwin"?
CREATE TABLE table_name_3 (quantity_made VARCHAR, manufacturer VARCHAR)
SELECT MAX(week) FROM table_name_10 WHERE opponent = "minnesota vikings"
What is the Week of the game against Minnesota Vikings?
CREATE TABLE table_name_10 (week INTEGER, opponent VARCHAR)
SELECT record FROM table_name_26 WHERE date = "november 18"
What is the record on November 18?
CREATE TABLE table_name_26 (record VARCHAR, date VARCHAR)
SELECT result FROM table_14302582_1 WHERE record = "4-1"
What was the result when the team was 4-1?
CREATE TABLE table_14302582_1 (result VARCHAR, record VARCHAR)
SELECT laps FROM table_name_53 WHERE grid = 8
How many laps are there for grid 8?
CREATE TABLE table_name_53 (laps VARCHAR, grid VARCHAR)
SELECT county FROM table_18600760_13 WHERE ansi_code = 1759686
What county is associated with ansi code 1759686?
CREATE TABLE table_18600760_13 (county VARCHAR, ansi_code VARCHAR)
SELECT title FROM table_name_83 WHERE season__number > 10 AND series__number > 35 AND directed_by = "erik wiese and eddie trigueros"
What is the Title of the episode after Season 10 Directed by Erik Wiese and Eddie Trigueros after Seres 35?
CREATE TABLE table_name_83 (title VARCHAR, directed_by VARCHAR, season__number VARCHAR, series__number VARCHAR)
SELECT MAX(village) FROM table_20403667_2 WHERE house_affected = 103279
What is the largest village that had 103279 houses affected?
CREATE TABLE table_20403667_2 (village INTEGER, house_affected VARCHAR)
SELECT name FROM table_name_57 WHERE medal = "silver" AND event = "men's doubles"
Which participants won the silver medal for the Men's Doubles?
CREATE TABLE table_name_57 (name VARCHAR, medal VARCHAR, event VARCHAR)
SELECT livery FROM table_name_57 WHERE number = 31468
What is the Livery when the Number is 31468?
CREATE TABLE table_name_57 (livery VARCHAR, number VARCHAR)
SELECT COUNT(assists) FROM table_name_94 WHERE name = "pablo prigioni" AND games > 21
What is the total number of Assists, when Name is "Pablo Prigioni", and when Games is greater than 21?
CREATE TABLE table_name_94 (assists VARCHAR, name VARCHAR, games VARCHAR)
SELECT record FROM table_13480122_5 WHERE date = "January 21"
what are all the record where date is january 21
CREATE TABLE table_13480122_5 (record VARCHAR, date VARCHAR)
SELECT relegated_to_league FROM table_23927423_4 WHERE relegated_from_league = "Barking Birmingham & Solihull Stourbridge"
Who was relegated to league if Barking Birmingham & Solihull Stourbridge were relegated from league?
CREATE TABLE table_23927423_4 (relegated_to_league VARCHAR, relegated_from_league VARCHAR)