sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT album FROM table_name_44 WHERE release_type = "demo"
CREATE TABLE INST, Here is a database schema( table schema);
What was the name of the album that was a demo release?It is not neccessary to use all the tables.
SELECT uni_number FROM table_name_40 WHERE surname = "ough"
CREATE TABLE INST, Here is a database schema( table schema);
Which Uni # has a Surname of ough?It is not neccessary to use all the tables.
SELECT SUM To Par FROM table WHERE Player = craig wood
CREATE TABLE INST, Here is a database schema( table schema);
What was the total To Par for Craig Wood?.It is not neccessary to use all the tables.
SELECT institution FROM table_24195232_1 WHERE location = "Circleville, Ohio"
CREATE TABLE INST, Here is a database schema( table schema);
What is the institution that was located is circleville ohio?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE November = 24
CREATE TABLE INST, Here is a database schema( table schema);
who is the opponent on november 24?.It is not neccessary to use all the tables.
SELECT COUNT Candidates FROM table WHERE Incumbent = J. L. Pilcher
CREATE TABLE INST, Here is a database schema( table schema);
How many candidates ran in the race where the incumbent is J. L. Pilcher?.It is not neccessary to use all the tables.
SELECT label FROM table_name_8 WHERE date = "june 6, 2005" AND region = "germany" AND format = "cd"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Label of the CD released in Germany on June 6 2005?It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Tie no = 7
CREATE TABLE INST, Here is a database schema( table schema);
Which away team that had a tie of 7?.It is not neccessary to use all the tables.
SELECT winning_team FROM table_name_22 WHERE name = "south pacific trophy"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the winning team of the South Pacific Trophy?It is not neccessary to use all the tables.
SELECT wicket FROM table_name_85 WHERE runs = "580"
CREATE TABLE INST, Here is a database schema( table schema);
Which wicket had 580 runs?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Score = 68-71=139
CREATE TABLE INST, Here is a database schema( table schema);
Who is the player with a score of 68-71=139?.It is not neccessary to use all the tables.
SELECT COUNT Result FROM table WHERE Record = 8-6
CREATE TABLE INST, Here is a database schema( table schema);
How many times during the season were the seahawks 8-6?.It is not neccessary to use all the tables.
SELECT Role FROM table WHERE Closing date = feb 4, 1961
CREATE TABLE INST, Here is a database schema( table schema);
Name the role for Feb 4, 1961 closing date.It is not neccessary to use all the tables.
SELECT Metas Volantes Classification FROM table WHERE Points Classification = damiano cunego
CREATE TABLE INST, Here is a database schema( table schema);
Who won the Metas Volantes Classification in the stage in which Damiano Cunego won the points classification?.It is not neccessary to use all the tables.
SELECT writer_s_ FROM table_25800134_17 WHERE airdate = "September 11, 1972"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the writer who wrote the episode that was aired on September 11 1972?It is not neccessary to use all the tables.
SELECT city FROM table_name_4 WHERE arena = "kara ali acar sport hall"
CREATE TABLE INST, Here is a database schema( table schema);
What city is Kara Ali Acar Sport Hall located in?It is not neccessary to use all the tables.
SELECT HIRE_DATE, SUM(DEPARTMENT_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY SUM(DEPARTMENT_ID)
CREATE TABLE INST, Here is a database schema( table schema);
For those employees who do not work in departments with managers that have ids between 100 and 200, return a bar chart about the distribution of hire_date and the sum of department_id bin hire_date by weekday, order from low to high by the Y please.It is not neccessary to use all the tables.
SELECT total_trade FROM table_26160007_1 WHERE exports = "6,099.06"
CREATE TABLE INST, Here is a database schema( table schema);
Where the number of exports are 6099.06 what is the total trade?It is not neccessary to use all the tables.
SELECT "Game" FROM table_13804 WHERE "Platform(s)" = 'playstation 3' AND "Genre" = 'platform game'
CREATE TABLE INST, Here is a database schema( table schema);
What game has a platform(s) of playstation 3, when the genre is platform game?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Total Population (2011 est) > 30,262,610 AND Hindu total = 63,718
CREATE TABLE INST, Here is a database schema( table schema);
Total Population (2011 est) larger than 30,262,610, and a Hindu total of 63,718 involves what country?.It is not neccessary to use all the tables.
SELECT Catalog FROM table WHERE Date = 1984
CREATE TABLE INST, Here is a database schema( table schema);
Which catalog had a date year of 1984?.It is not neccessary to use all the tables.
SELECT MIN Bronze FROM table WHERE Gold < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest Bronze, when Gold is less than 0?.It is not neccessary to use all the tables.
SELECT date FROM table_name_45 WHERE home_team = "melbourne"
CREATE TABLE INST, Here is a database schema( table schema);
On what date did Melbourne play as the home team?It is not neccessary to use all the tables.
SELECT Viewers FROM table WHERE Air Date = july 4, 2008
CREATE TABLE INST, Here is a database schema( table schema);
What is Viewers, when Air Date is "July 4, 2008"?.It is not neccessary to use all the tables.
SELECT Circuit FROM table WHERE Date = september 20
CREATE TABLE INST, Here is a database schema( table schema);
What was the circuit had a race on September 20..It is not neccessary to use all the tables.
SELECT 1990 AS _broadway FROM table_10312547_1 WHERE character = "Peter Pan"
CREATE TABLE INST, Here is a database schema( table schema);
Who played Peter Pan in the 1990 Broadway?It is not neccessary to use all the tables.
SELECT MIN(wins) FROM table_name_27 WHERE losses > 12 AND draws < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest number of wins where the losses are more than 12 and the draws are less than 0?It is not neccessary to use all the tables.
SELECT "Death date" FROM table_12765 WHERE "Rank" < '49' AND "Age (as of 1 February 2014)" = '112 years, 172 days'
CREATE TABLE INST, Here is a database schema( table schema);
Which Death date has a Rank smaller than 49, and an Age (as of 1 February 2014) of 112 years, 172 days?It is not neccessary to use all the tables.
SELECT "Category" FROM table_53438 WHERE "Result" = 'nominated' AND "Award" = 'british comedy awards'
CREATE TABLE INST, Here is a database schema( table schema);
Name the category for nominated at the british comedy awardsIt is not neccessary to use all the tables.
SELECT lab.fluid FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.name = "Kelly Gallardo"
CREATE TABLE INST, Here is a database schema( table schema);
what is lab test fluid of subject name kelly gallardo?It is not neccessary to use all the tables.
SELECT AVG Game FROM table WHERE October = 19
CREATE TABLE INST, Here is a database schema( table schema);
What is the average game number that was on october 19?.It is not neccessary to use all the tables.
SELECT license FROM table_name_91 WHERE name = "jriver media center"
CREATE TABLE INST, Here is a database schema( table schema);
What is the license for Jriver Media Center?It is not neccessary to use all the tables.
SELECT home_team AS score FROM table_name_78 WHERE home_team = "essendon"
CREATE TABLE INST, Here is a database schema( table schema);
What did the home team of essendon score?It is not neccessary to use all the tables.
SELECT "First elected" FROM table_18582 WHERE "Incumbent" = 'Clair Engle'
CREATE TABLE INST, Here is a database schema( table schema);
what's the first elected with incumbent being clair engleIt is not neccessary to use all the tables.
SELECT MIN(lost) FROM table_name_4 WHERE points > 6 AND games < 5
CREATE TABLE INST, Here is a database schema( table schema);
Name the least lost with points more than 6 and games less than 5It is not neccessary to use all the tables.
SELECT COUNT(patient) FROM stay WHERE room = 112
CREATE TABLE INST, Here is a database schema( table schema);
How many patients stay in room 112?It is not neccessary to use all the tables.
SELECT T1.title, T1.i_id FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id GROUP BY T2.i_id ORDER BY AVG(T2.rating) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Find the name and id of the item with the highest average rating.It is not neccessary to use all the tables.
SELECT COUNT("title") FROM table_203_239
CREATE TABLE INST, Here is a database schema( table schema);
what is the total number of films athena chu has acted in ?It is not neccessary to use all the tables.
SELECT centerfold_model FROM table_1566852_8 WHERE pictorials = "Amanda Beard, Reby Sky , Girls of Montauk"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the centerfold model when the issue's pictorial was amanda beard reby sky girls of montauk ?It is not neccessary to use all the tables.
SELECT country FROM table_name_69 WHERE original_title = "cidade de deus"
CREATE TABLE INST, Here is a database schema( table schema);
What is the country of the original title Cidade de deus?It is not neccessary to use all the tables.
SELECT Gregorian Calendar FROM table WHERE Sign of Zodiac = aquarius
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE GREGORIAN CALENDAR FOR AQUARIUS?.It is not neccessary to use all the tables.
SELECT species FROM table_16083989_1 WHERE voges_proskauer = "Negative" AND indole = "Negative"
CREATE TABLE INST, Here is a database schema( table schema);
Which species show a negative result with both voges-proskauer and indole?It is not neccessary to use all the tables.
SELECT visitor FROM table_name_18 WHERE leading_scorer = "tim duncan (16)"
CREATE TABLE INST, Here is a database schema( table schema);
What visitor has tim duncan (16) as the leading scorer?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.admityear < "2105"
CREATE TABLE INST, Here is a database schema( table schema);
what is the number of patients whose marital status is married and admission year is less than 2105?It is not neccessary to use all the tables.
SELECT MAX Round FROM table WHERE Time = 1:44
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest Round that lasted 1:44?.It is not neccessary to use all the tables.
SELECT Republican ticket FROM table WHERE Democratic ticket = flora d. johnson
CREATE TABLE INST, Here is a database schema( table schema);
Who's the Republican ticket with a Democratic ticket of flora d. johnson?.It is not neccessary to use all the tables.
SELECT COUNT Points FROM table WHERE Horse = chippison
CREATE TABLE INST, Here is a database schema( table schema);
What is the total points when the horse is Chippison?.It is not neccessary to use all the tables.
SELECT MIN(wins) FROM table_name_78 WHERE position = 7 AND scored > 14
CREATE TABLE INST, Here is a database schema( table schema);
What was the lowest number of wins for the team that scored more than 14 points and had a position of 7?It is not neccessary to use all the tables.
SELECT production_code FROM table_24938621_3 WHERE us_viewers__million_ = "5.43"
CREATE TABLE INST, Here is a database schema( table schema);
What is the production code of the episode that had 5.43 million viewers?It is not neccessary to use all the tables.
SELECT MIN Assists FROM table WHERE Games < 2
CREATE TABLE INST, Here is a database schema( table schema);
Which player has the fewest assists and played 2 games or fewer?.It is not neccessary to use all the tables.
SELECT sodium FROM table_name_10 WHERE lithium = "h a l o g e n s" AND rubidium = "nacl (2.1)"
CREATE TABLE INST, Here is a database schema( table schema);
what is the properties of sodium when lithium is h a l o g e n s and rubidium is nacl (2.1)?It is not neccessary to use all the tables.
SELECT SUM(year) FROM table_name_4 WHERE team = "scuderia ferrari" AND engine = "ferrari 106 2.5 l4" AND points > 12
CREATE TABLE INST, Here is a database schema( table schema);
What is the total year with a Team of scuderia ferrari an Engine of ferrari 106 2.5 l4 and more than 12 points?It is not neccessary to use all the tables.
SELECT "City" FROM table_79947 WHERE "Prize" = '€288,180'
CREATE TABLE INST, Here is a database schema( table schema);
What city did an event have a prize of 288,180?It is not neccessary to use all the tables.
SELECT Opponents FROM table WHERE Team = arsenal AND Year = 1963–64
CREATE TABLE INST, Here is a database schema( table schema);
Which Opponents have a Team of arsenal, and a Year of 1963–64?.It is not neccessary to use all the tables.
SELECT media_market_ranking FROM table_name_54 WHERE metropolitan_area = "new york, new york"
CREATE TABLE INST, Here is a database schema( table schema);
What is the media market ranking for new york new york?It is not neccessary to use all the tables.
SELECT COUNT(*) = 0 FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN offering_instructor ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN instructor ON offering_instructor.instructor_id = instructor.instructor_id WHERE course.number = 344 AND course_offering.friday = 'N' AND instructor.name LIKE '%Mercedez Dunn%'
CREATE TABLE INST, Here is a database schema( table schema);
Are there classes on Friday in 344 when Prof. Mercedez Dunn teaches ?It is not neccessary to use all the tables.
SELECT Rider FROM table WHERE Laps < 10 AND Manufacturer = aprilia AND Time/Retired = retirement
CREATE TABLE INST, Here is a database schema( table schema);
Which rider had fewer than 10 laps for the Aprilia manufacturer, finishing in retirement?.It is not neccessary to use all the tables.
SELECT COUNT(round) FROM table_name_76 WHERE position = "rb" AND college = "purdue" AND pick < 3
CREATE TABLE INST, Here is a database schema( table schema);
What is the total round of the rb player from Purdue with a pick less than 3?It is not neccessary to use all the tables.
SELECT performer_3 FROM table_name_56 WHERE date = "15 july 1994"
CREATE TABLE INST, Here is a database schema( table schema);
Date of 15 july 1994 involves which performer 3?It is not neccessary to use all the tables.
SELECT MAX Enrollment FROM table WHERE Nickname = Hawks
CREATE TABLE INST, Here is a database schema( table schema);
What is the enrollment for the hawks? .It is not neccessary to use all the tables.
SELECT Class FROM table 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 Pole Position FROM table WHERE Grand Prix = french grand prix
CREATE TABLE INST, Here is a database schema( table schema);
Who had the pole at the French Grand Prix?.It is not neccessary to use all the tables.
SELECT "Regular Season" FROM table_50807 WHERE "League" = 'npsl' AND "Year" = '2008'
CREATE TABLE INST, Here is a database schema( table schema);
WHICH Regular Season has a League of npsl, and a Year of 2008?It is not neccessary to use all the tables.
SELECT Constructor FROM table WHERE Grid = 5
CREATE TABLE INST, Here is a database schema( table schema);
What is the constructor with grid value 5?.It is not neccessary to use all the tables.
SELECT level FROM table_name_43 WHERE points > 25 AND goals = "64–31"
CREATE TABLE INST, Here is a database schema( table schema);
What is the level when points are larger than 25 and goals are 64–31?It is not neccessary to use all the tables.
SELECT college_junior_club_team__league_ FROM table_name_11 WHERE player = "brendan locke"
CREATE TABLE INST, Here is a database schema( table schema);
What is Brendan Locke's College/Junior/Club Team (League)?It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Res. = win AND Opponent = mike large
CREATE TABLE INST, Here is a database schema( table schema);
Where was the result a win against Mike Large?.It is not neccessary to use all the tables.
SELECT Region FROM table WHERE Catalog = magik muzik 805-5
CREATE TABLE INST, Here is a database schema( table schema);
What Region was the Catalog magik muzik 805-5 released in?.It is not neccessary to use all the tables.
SELECT Analog FROM table WHERE Callsign = wxmi
CREATE TABLE INST, Here is a database schema( table schema);
what is the analog type for wxmi?.It is not neccessary to use all the tables.
SELECT Scheduled FROM table WHERE Capacity (MW) < 32.5 AND Type = nordex n90 2.5mw AND Wind Farm = glenough extension
CREATE TABLE INST, Here is a database schema( table schema);
What is the scheduled value for the farm having a capacity under 32.5MW, type of Nordex n90 2.5MW, and a farm of Glenough Extension?.It is not neccessary to use all the tables.
SELECT flattening_ratio FROM table_name_27 WHERE equatorial_diameter = "12,756.28km"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Flattening ratio associated with the Equatorial diameter of 12756.28km?It is not neccessary to use all the tables.
SELECT MIN(game) FROM table_27713030_7
CREATE TABLE INST, Here is a database schema( table schema);
What game in the season does this list start?It is not neccessary to use all the tables.
SELECT nationality FROM table_name_20 WHERE college_junior_club_team__league_ = "ohio state university (ncaa)"
CREATE TABLE INST, Here is a database schema( table schema);
What is the nationality of the player from the Ohio State University (NCAA) Team?It is not neccessary to use all the tables.
SELECT MAX Game FROM table WHERE Attendance < 18,277 AND Points = 64
CREATE TABLE INST, Here is a database schema( table schema);
Which Game has an Attendance smaller than 18,277, and Points of 64?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.language = "RUSS" AND diagnoses.short_title = "Atrial fibrillation"
CREATE TABLE INST, Here is a database schema( table schema);
what is the number of patients whose language is russ and diagnoses short title is atrial fibrillation?It is not neccessary to use all the tables.
SELECT SUM(drawn) FROM table_name_45 WHERE lost = 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of the drawn values for teams with 2 losses?It is not neccessary to use all the tables.
SELECT Opposition FROM table WHERE Round = first round AND Competition = uefa cup AND Score = 3–1 (h), 2–0 (a)
CREATE TABLE INST, Here is a database schema( table schema);
What is the Opposition in the First Round of the UEFA Cup with a Score of 3–1 (h), 2–0 (a)?.It is not neccessary to use all the tables.
SELECT AVG Crowd FROM table WHERE Home team score = 12.17 (89)
CREATE TABLE INST, Here is a database schema( table schema);
What was the crowd size at the game where the home team scored 12.17 (89)?.It is not neccessary to use all the tables.
SELECT MAX(lead_margin) FROM table_16751596_5 WHERE dates_administered = "August 5, 2008"
CREATE TABLE INST, Here is a database schema( table schema);
what is the maximum lead margin on august 5 2008?It is not neccessary to use all the tables.
SELECT MAX(population) FROM table_name_29 WHERE rank > 9
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest population of the region with a rank bigger than 9?It is not neccessary to use all the tables.
SELECT MAX Lost FROM table WHERE Points = 23 AND Played > 22
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest number of losses with 23 points and 22 plays?.It is not neccessary to use all the tables.
SELECT "Prior position" FROM table_75785 WHERE "Name" = 'wyman webb'
CREATE TABLE INST, Here is a database schema( table schema);
What was the prior position held by Wyman Webb?It is not neccessary to use all the tables.
SELECT COUNT("competition") FROM table_203_646 WHERE "year" = 2002
CREATE TABLE INST, Here is a database schema( table schema);
how many competitions were held in 2002 ?It is not neccessary to use all the tables.
SELECT Intercontinental Cup 1993 FROM table WHERE Supercopa Sudamericana 1993 = round of 16
CREATE TABLE INST, Here is a database schema( table schema);
What is the Intercontinental Cup 1993 result for a Supercopa Sudamericana 1993 result of round of 16?.It is not neccessary to use all the tables.
SELECT COUNT(*) FROM premises
CREATE TABLE INST, Here is a database schema( table schema);
How many premises are there?It is not neccessary to use all the tables.
SELECT Artist FROM table WHERE Draw = 1
CREATE TABLE INST, Here is a database schema( table schema);
What artist had 1 draw?.It is not neccessary to use all the tables.
SELECT Time FROM table WHERE Country = belgium
CREATE TABLE INST, Here is a database schema( table schema);
What is the Time of the Rowers from Belgium?.It is not neccessary to use all the tables.
SELECT Episode FROM table WHERE Run time = 24:25
CREATE TABLE INST, Here is a database schema( table schema);
What episode had a run time of 24:25?.It is not neccessary to use all the tables.
SELECT score FROM table_27756014_1 WHERE game = 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the score of game 4?It is not neccessary to use all the tables.
SELECT year FROM table_28848697_4 WHERE tied = 11
CREATE TABLE INST, Here is a database schema( table schema);
What is the year listed when tied is listed as 11?It is not neccessary to use all the tables.
SELECT Originalairdate FROM table WHERE Repeatairdate(s) = 26/01/1969
CREATE TABLE INST, Here is a database schema( table schema);
What is the original date of the repeat air date of 26/01/1969?.It is not neccessary to use all the tables.
SELECT Genre FROM table WHERE Network = zee tv
CREATE TABLE INST, Here is a database schema( table schema);
What Genre has the Network Zee TV?.It is not neccessary to use all the tables.
SELECT outcome FROM table_name_68 WHERE date = "september 23, 2013"
CREATE TABLE INST, Here is a database schema( table schema);
What outcome has September 23 2013 as the date?It is not neccessary to use all the tables.
SELECT 4.45 FROM table WHERE Name = yelena isinbayeva
CREATE TABLE INST, Here is a database schema( table schema);
What is the 4.45 for Yelena Isinbayeva?.It is not neccessary to use all the tables.
SELECT winner_and_score FROM table_name_70 WHERE finalist = "aaron krickstein"
CREATE TABLE INST, Here is a database schema( table schema);
Which Winner and score has a Finalist of aaron krickstein?It is not neccessary to use all the tables.
SELECT months_in_malayalam_era FROM table_169955_1 WHERE in_malayalam = "കുംഭം"
CREATE TABLE INST, Here is a database schema( table schema);
Name the months in the malayalam era for കുംഭംIt is not neccessary to use all the tables.
SELECT release_date FROM table_name_71 WHERE title = "inki and the minah bird"
CREATE TABLE INST, Here is a database schema( table schema);
When was Inki and the Minah Bird released?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Partner = Françoise Dürr
CREATE TABLE INST, Here is a database schema( table schema);
What was the score when Françoise Dürr was partner?.It is not neccessary to use all the tables.
SELECT T2.city FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id GROUP BY T2.city ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Which city does has most number of customers?It is not neccessary to use all the tables.
SELECT COUNT(tariff_code) FROM table_10408617_5 WHERE bts_retail_price__regulated_ = "2.553p/min"
CREATE TABLE INST, Here is a database schema( table schema);
How many tariff codes have a bts retail price of 2.553p/min?It is not neccessary to use all the tables.