sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT Purpose FROM table WHERE On-air ID = 2xx
CREATE TABLE INST, Here is a database schema( table schema);
Name the purpose for on-air ID of 2xx.It is not neccessary to use all the tables.
SELECT player FROM table_name_8 WHERE nationality = "united states" AND years_in_toronto = "2003-06"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the player from United States who play in year 2003-06 in Toronto?It is not neccessary to use all the tables.
SELECT Goal Difference FROM table WHERE Draws > 6 AND Position > 12 AND Wins < 9
CREATE TABLE INST, Here is a database schema( table schema);
What is the goal difference for entries with more than 6 draws, a position lower than 12, and fewer than 9 wins?.It is not neccessary to use all the tables.
SELECT races FROM table_name_19 WHERE poles = "0" AND team = "asm"
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of races associated with Team ASM and 0 poles?It is not neccessary to use all the tables.
SELECT COUNT Micro (10ha) FROM table WHERE Big (>500ha) > 63,454 AND Medium (500ha) > 440 AND Small (100ha) < 21,047
CREATE TABLE INST, Here is a database schema( table schema);
How much Micro (10ha) has a Big (>500ha) larger than 63,454, and a Medium (500ha) larger than 440, and a Small (100ha) smaller than 21,047?.It is not neccessary to use all the tables.
SELECT Value FROM table WHERE Notes = literally "one hundred million"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Value, when the Notes are literally "one hundred million"?.It is not neccessary to use all the tables.
SELECT MAX Against FROM table WHERE Status = six nations AND Date = 02/03/2002
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the highest Against that has the Status of six nations, and the Date of 02/03/2002?.It is not neccessary to use all the tables.
SELECT date FROM table_1139087_2 WHERE grand_prix = "French grand_prix"
CREATE TABLE INST, Here is a database schema( table schema);
What day is the french grand prixIt is not neccessary to use all the tables.
SELECT COUNT Episode No. FROM table WHERE Written by = Don Inglis and Ralph Smart
CREATE TABLE INST, Here is a database schema( table schema);
When don inglis and ralph smart are the writers how many episode numbers are there?.It is not neccessary to use all the tables.
SELECT Power (kW) FROM table WHERE Coverage = Phoenix
CREATE TABLE INST, Here is a database schema( table schema);
List the power output for Phoenix. .It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Away team = aldershot
CREATE TABLE INST, Here is a database schema( table schema);
what is the date that the away team is aldershot?.It is not neccessary to use all the tables.
SELECT Main presenter FROM table WHERE Region/Country = Estonia
CREATE TABLE INST, Here is a database schema( table schema);
Who is every main presenter for the Estonia region/country?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT (business.name)) FROM business, category WHERE business.city = 'Madison' AND category.business_id = business.business_id AND category.category_name = 'escape games'
CREATE TABLE INST, Here is a database schema( table schema);
How many escape games are there in Madison ?It is not neccessary to use all the tables.
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DENVER' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'OAKLAND...
CREATE TABLE INST, Here is a database schema( table schema);
give me a list of flights between DENVER and OAKLANDIt is not neccessary to use all the tables.
SELECT COUNT(rank) FROM table_name_88 WHERE goals = "562-506" AND seasons < 13
CREATE TABLE INST, Here is a database schema( table schema);
What is the rank number with 562-506 goals before season 13?It is not neccessary to use all the tables.
SELECT time FROM table_name_30 WHERE rider = "loris capirossi"
CREATE TABLE INST, Here is a database schema( table schema);
What is Loris Capirossi's time?It is not neccessary to use all the tables.
SELECT AVG Lane FROM table WHERE Heat > 12 AND Rank = 38 AND Time > 22.67
CREATE TABLE INST, Here is a database schema( table schema);
What lane had a heat after 12, a rank of 38 and a time larger than 22.67?.It is not neccessary to use all the tables.
SELECT AVG Crowd FROM table WHERE Away team score = 6.9 (45)
CREATE TABLE INST, Here is a database schema( table schema);
How many people watch an away team score 6.9 (45)?.It is not neccessary to use all the tables.
SELECT Class FROM table WHERE Call sign = w298ak
CREATE TABLE INST, Here is a database schema( table schema);
What class does the w298ak sign belong to?.It is not neccessary to use all the tables.
SELECT word_form FROM table_name_30 WHERE other = "sam sep"
CREATE TABLE INST, Here is a database schema( table schema);
What can you say is the word from of sam sep?It is not neccessary to use all the tables.
SELECT MAX(year) FROM table_name_35 WHERE start = "1st" AND chassis = "g-force"
CREATE TABLE INST, Here is a database schema( table schema);
What was the most recent year when a g-force chassis started in 1st?It is not neccessary to use all the tables.
SELECT Type FROM table WHERE Country = ESP
CREATE TABLE INST, Here is a database schema( table schema);
What is the type where the country is esp?.It is not neccessary to use all the tables.
SELECT Median age (in 2006) FROM table WHERE Area (km²) = 1.7
CREATE TABLE INST, Here is a database schema( table schema);
What is the median age where the area is 1.7?.It is not neccessary to use all the tables.
SELECT "K.R. Narayanan (Votes)" FROM table_73471 WHERE "K.R. Narayanan (Values)" = '936'
CREATE TABLE INST, Here is a database schema( table schema);
Name the kr narayanan votes for values being 936 for krIt is not neccessary to use all the tables.
SELECT dorm_name, COUNT(*) FROM Student AS T1 JOIN Lives_in AS T2 ON T1.stuid = T2.stuid JOIN Dorm AS T3 ON T3.dormid = T2.dormid WHERE T1.Age > 20 GROUP BY T3.dorm_name ORDER BY dorm_name DESC
CREATE TABLE INST, Here is a database schema( table schema);
Give me a histogram for how many students are older than 20 in each dorm?, display x axis from high to low order.It is not neccessary to use all the tables.
SELECT tournament FROM table_name_94 WHERE date = "may 2, 2011"
CREATE TABLE INST, Here is a database schema( table schema);
what tournament happened on may 2, 2011?It is not neccessary to use all the tables.
SELECT e_vap_ratio_total FROM table_25042332_30 WHERE men_of_voting_age = 123726
CREATE TABLE INST, Here is a database schema( table schema);
what is the percentage of male voters where the level of maturity is 123726It is not neccessary to use all the tables.
SELECT MIN(l) FROM table_1644876_2
CREATE TABLE INST, Here is a database schema( table schema);
What is the fewest number of losses?It is not neccessary to use all the tables.
SELECT location FROM table_name_97 WHERE county = "71 st. joseph" AND school = "south bend washington"
CREATE TABLE INST, Here is a database schema( table schema);
Which location is in 71 St. Joseph county with South Bend Washington school?It is not neccessary to use all the tables.
SELECT AVG(losses) FROM table_name_78 WHERE draws = 0 AND byes < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the average number of losses for teams with 0 draws and 0 byes?It is not neccessary to use all the tables.
SELECT class FROM table_name_85 WHERE laps < 77
CREATE TABLE INST, Here is a database schema( table schema);
Which class has laps under 77?It is not neccessary to use all the tables.
SELECT "2nd Party" FROM table_53215 WHERE "1st Member" = 'sir christopher william codrington' AND "2nd Member" = 'hon. francis charteris'
CREATE TABLE INST, Here is a database schema( table schema);
What is the Second Party where Sir Christopher William Codrington is the First Member and Hon. Francis Charteris is the Second Member?It is not neccessary to use all the tables.
SELECT Director FROM table WHERE U.S. viewers (millions) = 13.66
CREATE TABLE INST, Here is a database schema( table schema);
Who was the director when there were 13.66 million u.s viewers?.It is not neccessary to use all the tables.
SELECT COUNT(result) FROM table_1342379_41 WHERE candidates = "Joseph W. Byrns, Sr. (D) Unopposed"
CREATE TABLE INST, Here is a database schema( table schema);
How many times was the election joseph w. byrns sr. (d) unopposed?It is not neccessary to use all the tables.
SELECT "Result" FROM table_48395 WHERE "Venue" = 'götzis , austria'
CREATE TABLE INST, Here is a database schema( table schema);
What is Result, when Venue is G tzis , Austria?It is not neccessary to use all the tables.
SELECT AVG(bronze) FROM table_name_8 WHERE nation = "kyrgyzstan" AND silver > 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the bronze for Kyrgyzstan nation with a silver record of greater than 0?It is not neccessary to use all the tables.
SELECT executions_in_effigie FROM table_name_26 WHERE tribunal = "lamego"
CREATE TABLE INST, Here is a database schema( table schema);
How man executions in effigie took place at the Lamego tribunal?It is not neccessary to use all the tables.
SELECT "Round" FROM table_34193 WHERE "H / A" = 'a' AND "Opponents" = 'notts county'
CREATE TABLE INST, Here is a database schema( table schema);
Which round has an H/A of A with Notts County as opponents?It is not neccessary to use all the tables.
SELECT Bush% FROM table WHERE Kerry% = 58.1%
CREATE TABLE INST, Here is a database schema( table schema);
When Keey has 58.1% what % does Bush have?.It is not neccessary to use all the tables.
SELECT Built FROM table WHERE Scrapped/Sold = Cannot handle non-empty timestamp argument! 1947
CREATE TABLE INST, Here is a database schema( table schema);
What is the built data on the scrapped information that is cannot handle non-empty timestamp argument! 1947?.It is not neccessary to use all the tables.
SELECT SUM(number_of_electorates__2009_) FROM table_name_11 WHERE district = "fatehpur" AND name = "jahanabad"
CREATE TABLE INST, Here is a database schema( table schema);
Count the Number of electorates (2009) that has a District of fatehpur and jahanabad?It is not neccessary to use all the tables.
SELECT SUM Silver FROM table WHERE Bronze = 25 AND Overall < 67
CREATE TABLE INST, Here is a database schema( table schema);
How many silver when bronze is 25 and overall is less than 67?.It is not neccessary to use all the tables.
SELECT AVG(played) FROM table_name_62 WHERE conceded < 7
CREATE TABLE INST, Here is a database schema( table schema);
Mean of played with smaller than 7 conceded?It is not neccessary to use all the tables.
SELECT Drawn FROM table WHERE Played = correct as of 2006-06-10
CREATE TABLE INST, Here is a database schema( table schema);
What is Drawn, when Played is "Correct as of 2006-06-10"?.It is not neccessary to use all the tables.
SELECT nomination FROM table_10236830_4 WHERE film_name = "Totalitarian Romance"
CREATE TABLE INST, Here is a database schema( table schema);
Which nominations are connected to the film Totalitarian Romance?It is not neccessary to use all the tables.
SELECT MAX(placings) FROM table_name_82 WHERE name = "marie mcneil / robert mccall" AND points < 168.58
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest placing for marie mcneil / robert mccall with less than 168.58?It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Home team score = 16.11 (107)
CREATE TABLE INST, Here is a database schema( table schema);
What team was the away team when the home team score was 16.11 (107)?.It is not neccessary to use all the tables.
SELECT Date (Opening) FROM table WHERE Opening Film = another myanmar, mae sot
CREATE TABLE INST, Here is a database schema( table schema);
What is Date (Opening), when Opening Film is "Another Myanmar, Mae Sot"?.It is not neccessary to use all the tables.
SELECT original_air_date FROM table_2818164_4 WHERE production_code = 322
CREATE TABLE INST, Here is a database schema( table schema);
What was the air date of the episode with the production code of 322?It is not neccessary to use all the tables.
SELECT venue FROM table_name_5 WHERE away_team = "st kilda"
CREATE TABLE INST, Here is a database schema( table schema);
Which Venue has an Away team of st kilda?It is not neccessary to use all the tables.
SELECT head_coach FROM table_name_86 WHERE president = "mario volarevic"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the Head Coach of the team whose President is Mario Volarevic?It is not neccessary to use all the tables.
SELECT AVG Area (km 2 ) FROM table WHERE Population = 311
CREATE TABLE INST, Here is a database schema( table schema);
What is the km2 area for the population of 311?.It is not neccessary to use all the tables.
SELECT winner FROM table_name_43 WHERE time = "1:10.60" AND owner = "leslie combs ii"
CREATE TABLE INST, Here is a database schema( table schema);
What's the WInner with a TIme of 1:10.60 and Owner of Leslie Combs II?It is not neccessary to use all the tables.
SELECT pepe_michinoku FROM table_name_28 WHERE ryuji_hijikata = "sabin (12:33)"
CREATE TABLE INST, Here is a database schema( table schema);
What is the PEPE Michinoku value for a Ryuji Hijikata value of sabin (12:33)?It is not neccessary to use all the tables.
SELECT Week Arrived On Main Island FROM table WHERE Original Tribe = Shark AND Week Sent To Third Island = 14
CREATE TABLE INST, Here is a database schema( table schema);
What week did the member who's original tribe was shark and who was sent to the third island on week 14 arrive on the main island?.It is not neccessary to use all the tables.
SELECT MAX(money___) AS £__ FROM table_name_95 WHERE player = "peter hedblom"
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest Money ( £ ) when Player is "Peter Hedblom"?It is not neccessary to use all the tables.
SELECT entrant FROM table_name_44 WHERE engine = "climax straight-4" AND points > 0
CREATE TABLE INST, Here is a database schema( table schema);
Which Entrant has an Engine of climax straight-4 and Points larger than 0?It is not neccessary to use all the tables.
SELECT MAX(laps) FROM table_name_33 WHERE constructor = "maserati" AND time_retired = "+6 laps" AND grid > 11
CREATE TABLE INST, Here is a database schema( table schema);
Name the highest laps for maserati and +6 laps for grid more than 11It is not neccessary to use all the tables.
SELECT AVG(points) FROM table_name_29 WHERE player = "ivan ciernik" AND goals < 11
CREATE TABLE INST, Here is a database schema( table schema);
What is Ivan Ciernik's average points with less than 11 goals?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE High rebounds = Shane Battier (8)
CREATE TABLE INST, Here is a database schema( table schema);
What's the end score of the game where Shane Battier (8) did the high rebounds?.It is not neccessary to use all the tables.
SELECT macedonian FROM table_1841901_1 WHERE french = "il/elle avait entendu"
CREATE TABLE INST, Here is a database schema( table schema);
Name the macedonian for il/elle avait entenduIt is not neccessary to use all the tables.
SELECT Rank FROM table WHERE Province = gauteng
CREATE TABLE INST, Here is a database schema( table schema);
What is the rank of the gauteng province?.It is not neccessary to use all the tables.
SELECT p.Id AS "post_link", p.CreationDate, p.LastActivityDate, p.AcceptedAnswerId, p.ClosedDate FROM Posts AS p WHERE UPPER(p.Title) LIKE '%SOLVED%' ORDER BY p.CreationDate DESC
CREATE TABLE INST, Here is a database schema( table schema);
Solving the (RE)SOLVED title issue!.It is not neccessary to use all the tables.
SELECT Written by FROM table WHERE U.S. viewers (million) = 3.07
CREATE TABLE INST, Here is a database schema( table schema);
who are the writers of the episode that had 3.07 millions of North American spectators?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Game > 6 AND October < 28
CREATE TABLE INST, Here is a database schema( table schema);
Name the score for game more than 6 and before october 28.It is not neccessary to use all the tables.
SELECT MAX(bronze) FROM table_name_22 WHERE silver > 10 AND edition = "i" AND gold > 9
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest Edition I Bronze with a Gold higher than 9 and a Silver higher than 10?It is not neccessary to use all the tables.
SELECT COUNT(top_25) FROM table_name_92 WHERE top_10 > 2 AND cuts_made < 29
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of top-25 with a top-10 bigger than 2 and less than 29 cuts?It is not neccessary to use all the tables.
SELECT 2012 FROM table WHERE 2009 = a AND 2010 = 2r
CREATE TABLE INST, Here is a database schema( table schema);
What is the 2012 with A in 2009 and 2r in 2010?.It is not neccessary to use all the tables.
SELECT Winner FROM table WHERE Stage = 11
CREATE TABLE INST, Here is a database schema( table schema);
Who was the winner of stage 11?.It is not neccessary to use all the tables.
SELECT MIN Year FROM table WHERE Attendance = 77,254
CREATE TABLE INST, Here is a database schema( table schema);
When was the earliest year when the attendance was 77,254?.It is not neccessary to use all the tables.
SELECT Date of injury FROM table WHERE Player = Wesley Sneijder (2)
CREATE TABLE INST, Here is a database schema( table schema);
What is the date of injury for player Wesley sneijder (2)?.It is not neccessary to use all the tables.
SELECT AVG Team 1 FROM table WHERE 1st leg = albignasego (veneto a)
CREATE TABLE INST, Here is a database schema( table schema);
What is the mean team 1 when the 1st leg is Albignasego (Veneto A)?.It is not neccessary to use all the tables.
SELECT Type FROM table WHERE Nat. = geo
CREATE TABLE INST, Here is a database schema( table schema);
Which Type has a Nat of geo?.It is not neccessary to use all the tables.
SELECT MIN("Clubs remaining") FROM table_73079
CREATE TABLE INST, Here is a database schema( table schema);
Name the least clubs remainingIt is not neccessary to use all the tables.
SELECT opponent FROM table_name_97 WHERE round = "sf" AND result = "0-0"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent of the match in round sf with a result of 0-0?It is not neccessary to use all the tables.
SELECT COUNT Series FROM table WHERE Date = April 26
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of series for april 26.It is not neccessary to use all the tables.
SELECT 3rd place FROM table WHERE Venue = pardubice
CREATE TABLE INST, Here is a database schema( table schema);
Who was the 3rd place team at Pardubice?.It is not neccessary to use all the tables.
SELECT currency FROM table_name_12 WHERE central_rate = "0.702804"
CREATE TABLE INST, Here is a database schema( table schema);
Which currency has a central rate of 0.702804?It is not neccessary to use all the tables.
SELECT venue FROM table_name_28 WHERE home_team = "collingwood"
CREATE TABLE INST, Here is a database schema( table schema);
Where did Collingwood play as the home team?It is not neccessary to use all the tables.
SELECT AVG Attendance FROM table WHERE Home = pittsburgh
CREATE TABLE INST, Here is a database schema( table schema);
What is the attendance when Pittsburgh is the home team?.It is not neccessary to use all the tables.
SELECT AVG Robbery FROM table WHERE Non-violent Crime < 1147 AND Rape < 11 AND Aggravated Assault > 167 AND Crime Index Total = 1313
CREATE TABLE INST, Here is a database schema( table schema);
Which average Robbery has the following criteria: Non-Violent crime less than 1147, rape less then 11, aggrevated assault greater than 167 and a crime index with a total of 1313?.It is not neccessary to use all the tables.
SELECT reason_for_vacancy FROM table_2417445_4 WHERE successor = "Rudolph Kleberg (D)"
CREATE TABLE INST, Here is a database schema( table schema);
When rudolph kleberg (d) is the successor is the reason for vacancy?It is not neccessary to use all the tables.
SELECT category FROM table_name_72 WHERE year = 2008
CREATE TABLE INST, Here is a database schema( table schema);
What was the category in 2008?It is not neccessary to use all the tables.
SELECT Year (Ceremony) FROM table WHERE Language(s) = Japanese
CREATE TABLE INST, Here is a database schema( table schema);
Name the year for japanese.It is not neccessary to use all the tables.
SELECT "Score" FROM table_63205 WHERE "Home team" = 'york city'
CREATE TABLE INST, Here is a database schema( table schema);
What is the score when york city was the home team?It is not neccessary to use all the tables.
SELECT Pos. FROM table WHERE College = tennessee state
CREATE TABLE INST, Here is a database schema( table schema);
What position did athlete play from Tennessee state?.It is not neccessary to use all the tables.
SELECT "Candidates" FROM table_18167 WHERE "Incumbent" = 'Sam Gibbons'
CREATE TABLE INST, Here is a database schema( table schema);
List all the candidates for the seat where the incumbent is Sam Gibbons?It is not neccessary to use all the tables.
SELECT COUNT Week FROM table WHERE Date = september 17, 2000
CREATE TABLE INST, Here is a database schema( table schema);
How many weeks did a game happen on September 17, 2000?.It is not neccessary to use all the tables.
SELECT Engine FROM table WHERE Year < 1996 AND Points = 5
CREATE TABLE INST, Here is a database schema( table schema);
what was the engine used before 1996 with 5 points?.It is not neccessary to use all the tables.
SELECT MIN(top_10) FROM table_name_86 WHERE winnings = "$405,300" AND avg_start < 30
CREATE TABLE INST, Here is a database schema( table schema);
Which Top 10 is the lowest one that has Winnings of $405300 and an Avg Start smaller than 30?It is not neccessary to use all the tables.
SELECT MAX Position FROM table WHERE 1993–1994 = Drew Kachtik
CREATE TABLE INST, Here is a database schema( table schema);
What position was Drew Kachtik ranked at in 1993-1994? .It is not neccessary to use all the tables.
SELECT element FROM table_name_79 WHERE nuclide = "55 mn"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Element when the Nuclide is 55 mn?It is not neccessary to use all the tables.
SELECT home_team AS score FROM table_name_16 WHERE home_team = "fitzroy"
CREATE TABLE INST, Here is a database schema( table schema);
What was Fitzroy's score when they were the home team?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "REHAB/DISTINCT PART HOSP" AND demographic.days_stay > "1"
CREATE TABLE INST, Here is a database schema( table schema);
count the number of patients whose discharge location is rehab/distinct part hosp and days of hospital stay is greater than 1?It is not neccessary to use all the tables.
SELECT round FROM table_name_34 WHERE player = "jamie cooke"
CREATE TABLE INST, Here is a database schema( table schema);
What round did Jamie Cooke play in?It is not neccessary to use all the tables.
SELECT DISTINCT releaseType FROM torrents
CREATE TABLE INST, Here is a database schema( torrents);
what release types are captured in this data set?. It is not neccessary to use all the tables.
SELECT MIN Clubs remaining FROM table
CREATE TABLE INST, Here is a database schema( table schema);
Name the least clubs remaining.It is not neccessary to use all the tables.
SELECT no FROM table_11545282_17 WHERE years_for_jazz = "1987-89"
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of players that played 1987-89?It is not neccessary to use all the tables.
SELECT AVG("Assists") FROM table_8068 WHERE "Games" > '19' AND "Name" = 'pablo prigioni'
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Assists, when Games is greater than 19, and when Name is 'Pablo Prigioni'?It is not neccessary to use all the tables.
SELECT Founder, SUM(Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY SUM(Price) DESC
CREATE TABLE INST, Here is a database schema( table schema);
For those records from the products and each product's manufacturer, find founder and the sum of price , and group by attribute founder, and visualize them by a bar chart, and order by the y-axis in descending.It is not neccessary to use all the tables.