sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT COUNT(*) FROM employee
CREATE TABLE INST, Here is a database schema( table schema);
Find the total number of employees.It is not neccessary to use all the tables.
SELECT SUM(points__pts_) FROM table_name_37 WHERE place__posición_ > 8
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of all points for places above 8?It is not neccessary to use all the tables.
SELECT MIN(base_pairs) FROM table_name_21 WHERE species = "borrelia garinii" AND genes > 832
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowst base pair with a Species of borrelia garinii and a Genes larger than 832?It is not neccessary to use all the tables.
SELECT COUNT Reporters FROM table WHERE s Analyst = Heywood Hale Broun
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of reporters for heywood hale broun.It is not neccessary to use all the tables.
SELECT state FROM NDECoreExcel_Math_Grade8 ORDER BY average_scale_score DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( finrev fed 17);
Which state has the highest average score in math exam?. It is not neccessary to use all the tables.
SELECT 1 AS st_runner_up FROM table_24014744_1 WHERE putri_pariwisata_indonesia = "Albertina Fransisca Mailoa"
CREATE TABLE INST, Here is a database schema( table schema);
Who won 2nd place when albertina fransisca mailoa was the winner of the putri pariwisata contest?It is not neccessary to use all the tables.
SELECT Season Finale Date FROM table WHERE Season Premiere Date = 12 december 2010
CREATE TABLE INST, Here is a database schema( table schema);
When was the season finale of a show with season premiere on 12 December 2010?.It is not neccessary to use all the tables.
SELECT COUNT Lost FROM table WHERE Period = 12 november 2012 – 27 november 2012 AND Managed > 2
CREATE TABLE INST, Here is a database schema( table schema);
How many lost when the number managed is over 2 and the period is from 12 november 2012 – 27 november 2012?.It is not neccessary to use all the tables.
SELECT AVG Year FROM table WHERE Performing arts = janaprakal chandruang
CREATE TABLE INST, Here is a database schema( table schema);
Name the average year for janaprakal chandruang.It is not neccessary to use all the tables.
SELECT quantity_preserved FROM table_name_17 WHERE quantity_made = "15"
CREATE TABLE INST, Here is a database schema( table schema);
What was the quantity preserved for quantity made of 15?It is not neccessary to use all the tables.
SELECT Discipline FROM table WHERE 2007 Cascais = laser radial
CREATE TABLE INST, Here is a database schema( table schema);
Which Discipline has a 2007 laser radial Cascais ?.It is not neccessary to use all the tables.
SELECT zip_postcode FROM Addresses WHERE city = 'Port Chelsea'
CREATE TABLE INST, Here is a database schema( table schema);
What is the zip code of the address in the city Port Chelsea?It is not neccessary to use all the tables.
SELECT T2.Fname, T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY COUNT(*) DESC LIMIT 3
CREATE TABLE INST, Here is a database schema( table schema);
What are the first and last names of the instructors who teach the top 3 number of courses?It is not neccessary to use all the tables.
SELECT From FROM table WHERE Jersey Number(s) = 29
CREATE TABLE INST, Here is a database schema( table schema);
Where is the player from that wears the number 29?.It is not neccessary to use all the tables.
SELECT COUNT("Enrollment") FROM table_2004 WHERE "Founded" = '1863'
CREATE TABLE INST, Here is a database schema( table schema);
How many University founded in 1863?It is not neccessary to use all the tables.
SELECT MIN(crowd) FROM table_name_23 WHERE home_team = "carlton"
CREATE TABLE INST, Here is a database schema( table schema);
What was the crowd number when the home team was Carlton?It is not neccessary to use all the tables.
SELECT "Runner(s)-up" FROM table_42633 WHERE "Winning score" = '−16 (66-68-70-68=272)'
CREATE TABLE INST, Here is a database schema( table schema);
Who were the Runner(s)-up with the winning score of 16 (66-68-70-68=272)?It is not neccessary to use all the tables.
SELECT Original air date FROM table WHERE Production code = 4301085
CREATE TABLE INST, Here is a database schema( table schema);
What date did the episode with a production code of 4301085 originally air?.It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Player = Joe Maddock
CREATE TABLE INST, Here is a database schema( table schema);
What position did Joe Maddock play?.It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE Crowd > 10,000 AND Home team score = 7.13 (55)
CREATE TABLE INST, Here is a database schema( table schema);
Who was the home team at the game where the crowd was larger than 10,000 and the home team scored 7.13 (55)?.It is not neccessary to use all the tables.
SELECT japanese_orthography FROM table_11390711_4 WHERE english_name = "National Fisheries University"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Japanese orthography for National Fisheries University?It is not neccessary to use all the tables.
SELECT "Country" FROM table_8310 WHERE "Player" = 'craig stadler'
CREATE TABLE INST, Here is a database schema( table schema);
What country was the game in when the player was Craig Stadler?It is not neccessary to use all the tables.
SELECT Rank FROM table WHERE Code (IATA/ICAO) = bkk/vtbs
CREATE TABLE INST, Here is a database schema( table schema);
What is the rank of the airport with the BKK/VTBS code?.It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Position = guard/forward
CREATE TABLE INST, Here is a database schema( table schema);
What player had the position guard/forward?.It is not neccessary to use all the tables.
SELECT Playoff Apps FROM table WHERE Position = df AND Name = thomas heary
CREATE TABLE INST, Here is a database schema( table schema);
What was the playoff apps for Thomas Heary, that had the position df?.It is not neccessary to use all the tables.
SELECT Category FROM table WHERE Version = 1.0 AND Title = Chord Finder
CREATE TABLE INST, Here is a database schema( table schema);
What is the category when the version is 1.0 and the title is Chord finder? .It is not neccessary to use all the tables.
SELECT MAX Age FROM table WHERE Player = Roy Emerson
CREATE TABLE INST, Here is a database schema( table schema);
At what age did Roy Emerson complete the Grand Slam?.It is not neccessary to use all the tables.
SELECT COUNT Year FROM table WHERE Mens singles = Peter Mikkelsen
CREATE TABLE INST, Here is a database schema( table schema);
How many years did Peter Mikkelsen win the Mens Singles?.It is not neccessary to use all the tables.
SELECT College FROM table WHERE Pick # = 203
CREATE TABLE INST, Here is a database schema( table schema);
Pick # of 203 went to which college?.It is not neccessary to use all the tables.
SELECT COUNT Round FROM table WHERE Player = Matthew Puempel
CREATE TABLE INST, Here is a database schema( table schema);
How many rounds is the player Matthew Puempel associated with?.It is not neccessary to use all the tables.
SELECT Frequency (inbound/outbound) FROM table WHERE Train Name = garib nwaz exp
CREATE TABLE INST, Here is a database schema( table schema);
What is the frequency of the train named Garib nwaz exp?.It is not neccessary to use all the tables.
SELECT 'post_link' = Posts.Id, Posts.ViewCount, Posts.Score, Tags.TagName AS "tag_name" FROM PostHistory INNER JOIN PostTags ON PostTags.PostId = PostHistory.PostId INNER JOIN Tags ON PostTags.TagId = Tags.Id INNER JOIN Posts ON PostTags.PostId = Posts.Id WHERE PostHistory.PostHistoryTypeId = 19 AND Tags.TagName = @TagName ORDER BY Posts.ViewCount DESC LIMIT 100
CREATE TABLE INST, Here is a database schema( table schema);
get top protected questions by tag.It is not neccessary to use all the tables.
SELECT MIN(_percentage_funded) FROM table_27155990_1 WHERE closing_date = "2012-05-18"
CREATE TABLE INST, Here is a database schema( table schema);
What was the minimum % funded of the project that was closed on 2012-05-18?It is not neccessary to use all the tables.
SELECT MAX Panchayat FROM table WHERE Public Property Damaged (in Lakh INR ) = 1,03,049.60
CREATE TABLE INST, Here is a database schema( table schema);
What is the panchayat when the public property damage was 1,03,049.60.It is not neccessary to use all the tables.
SELECT SUM(track) FROM table_name_12 WHERE catalogue = "epa 4054" AND time = "2:05"
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of every track with a catalogue of EPA 4054 with a 2:05 length?It is not neccessary to use all the tables.
SELECT COUNT(year) FROM table_name_70 WHERE location = "hiroshima"
CREATE TABLE INST, Here is a database schema( table schema);
What year did the event in Hiroshima take place?It is not neccessary to use all the tables.
SELECT hits FROM table_name_86 WHERE year < 1883
CREATE TABLE INST, Here is a database schema( table schema);
Name the hits for years before 1883It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Republican = mike huckabee AND Sample Size = 496
CREATE TABLE INST, Here is a database schema( table schema);
What was the date of the poll with a sample size of 496 where Republican Mike Huckabee was chosen?.It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Pick = 7
CREATE TABLE INST, Here is a database schema( table schema);
What is Position, when Pick is 7?.It is not neccessary to use all the tables.
SELECT AVG(points) FROM table_name_30 WHERE driver = "tristan gommendy"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average point count for tristan gommendy?It is not neccessary to use all the tables.
SELECT worship_leader FROM table_name_17 WHERE time = "7:05"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the Worship Leader for the song that was 7:05 long?It is not neccessary to use all the tables.
SELECT name FROM table_name_53 WHERE country = "west indies"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the person whose country is West Indies.It is not neccessary to use all the tables.
SELECT player FROM table_name_67 WHERE year = "1981"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the player in 1981?It is not neccessary to use all the tables.
SELECT Competition FROM table WHERE Assists > 40
CREATE TABLE INST, Here is a database schema( table schema);
What competition had more than 40 assists?.It is not neccessary to use all the tables.
SELECT COUNT Video Out FROM table WHERE Version = SoundDock Portable
CREATE TABLE INST, Here is a database schema( table schema);
how many video out connections does the sounddock portable have?.It is not neccessary to use all the tables.
SELECT MIN(pick__number) FROM table_10812938_4
CREATE TABLE INST, Here is a database schema( table schema);
What is the earliest pick listed in the table.It is not neccessary to use all the tables.
SELECT nation FROM table_name_28 WHERE gold > 0 AND total > 2 AND bronze = 0 AND silver > 1
CREATE TABLE INST, Here is a database schema( table schema);
What Nation has a Gold entry that is greater than 0 a Total that is greater than 2 a Silver entry that is larger than 1 and 0 Bronze?It is not neccessary to use all the tables.
SELECT Vessel Type FROM table WHERE Vessel Operator = Beluga Shipping
CREATE TABLE INST, Here is a database schema( table schema);
Name the vessel type for beluga shipping.It is not neccessary to use all the tables.
SELECT candidates FROM table_1342233_32 WHERE incumbent = "Ellsworth B. Buck"
CREATE TABLE INST, Here is a database schema( table schema);
Name the candidates for ellsworth b. buckIt is not neccessary to use all the tables.
SELECT COUNT(rank) FROM table_name_39 WHERE average = 34.66 AND season > 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the total rank of the celebrity with a 34.66 average and a season greater than 1?It is not neccessary to use all the tables.
SELECT time FROM table_name_88 WHERE heat < 5 AND lane = 5 AND nationality = "vietnam"
CREATE TABLE INST, Here is a database schema( table schema);
What is the time in a heat smaller than 5 in Lane 5 for Vietnam?It is not neccessary to use all the tables.
SELECT 2 AS nd_leg FROM table_name_49 WHERE team__number1 = "kk bosna"
CREATE TABLE INST, Here is a database schema( table schema);
What is the second leg that has kk bosna?It is not neccessary to use all the tables.
SELECT m939_series FROM table_name_84 WHERE m809_series = "m817" AND wheelbase = "short"
CREATE TABLE INST, Here is a database schema( table schema);
Name the M939 series for short wheelbase and M809 series of m817It is not neccessary to use all the tables.
SELECT listed FROM table_name_1 WHERE built = "1925" AND type = "warren pony truss"
CREATE TABLE INST, Here is a database schema( table schema);
What is the listed date of the Warren pony truss bridge that was built in 1925?It is not neccessary to use all the tables.
SELECT region FROM table_name_7 WHERE date = "june 8, 2004"
CREATE TABLE INST, Here is a database schema( table schema);
Which region was on June 8 2004?It is not neccessary to use all the tables.
SELECT cuts_made FROM table_name_53 WHERE top_5 < 3 AND top_25 < 6 AND events = 10
CREATE TABLE INST, Here is a database schema( table schema);
Which Cuts made has a Top-5 smaller than 3 and a Top-25 smaller than 6 and an Events of 10?It is not neccessary to use all the tables.
SELECT MAX(episode_number) FROM table_name_89 WHERE guest_host = "jamie oliver"
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest episode number in which Jamie Oliver guest-hosted?It is not neccessary to use all the tables.
SELECT recnet FROM table_name_51 WHERE class = "b" AND city_of_license = "rouyn-noranda"
CREATE TABLE INST, Here is a database schema( table schema);
What is the RECNet with a Class of B and the City of License of Rouyn-Noranda?It is not neccessary to use all the tables.
SELECT Event FROM table WHERE Res. = loss AND Opponent = maurice smith
CREATE TABLE INST, Here is a database schema( table schema);
Which event resulted in loss with an Opponent of maurice smith?.It is not neccessary to use all the tables.
SELECT chassis FROM table_1405704_1 WHERE season = 1979 AND engine = "Foyt"
CREATE TABLE INST, Here is a database schema( table schema);
What kind of chassis did a winning car with a Foyt engine have in 1979?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Attendance = 53,899
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the opponent for attendance of 53,899.It is not neccessary to use all the tables.
SELECT proto_oceanic FROM table_name_48 WHERE proto_polynesian = "*lima"
CREATE TABLE INST, Here is a database schema( table schema);
Which Proto-Oceanic has a Proto-Polynesian of *lima?It is not neccessary to use all the tables.
SELECT position FROM table_name_52 WHERE player = "siim ennemuist"
CREATE TABLE INST, Here is a database schema( table schema);
What position has siim ennemuist as the player?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Source = surveyusa AND Obama = 54%
CREATE TABLE INST, Here is a database schema( table schema);
When has a Source of surveyusa and a Obama of 54%?.It is not neccessary to use all the tables.
SELECT DISTINCT instructor.name FROM course, course_offering, instructor, offering_instructor WHERE course.course_id = course_offering.course_id AND course.department = 'LACS' AND course.number = 471 AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.offering_id = course_offering.offering_id
CREATE TABLE INST, Here is a database schema( table schema);
What professor teaches LACS 471 ?It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Cross-code debut = 1st ru test v ireland
CREATE TABLE INST, Here is a database schema( table schema);
What position has a Cross-code debut of 1st ru test v ireland?.It is not neccessary to use all the tables.
SELECT SUM Goals against FROM table WHERE Goals for > 10 AND Position = 3 AND Wins < 6
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the sum of Goals against that has the Goals for larger than 10, and the Position of 3, and the Wins smaller than 6?.It is not neccessary to use all the tables.
SELECT week FROM table_name_87 WHERE date = "november 19, 1995"
CREATE TABLE INST, Here is a database schema( table schema);
What week was it on November 19 1995?It is not neccessary to use all the tables.
SELECT Jersey Number(s) FROM table WHERE Player = tom lagarde category:articles with hcards
CREATE TABLE INST, Here is a database schema( table schema);
Tom Lagarde Category:Articles with hCards used what Jersey Number(s)?.It is not neccessary to use all the tables.
SELECT Country FROM table WHERE ICAO = lemd
CREATE TABLE INST, Here is a database schema( table schema);
Which country is Lemd the ICAO of?.It is not neccessary to use all the tables.
SELECT COUNT(incumbent) FROM table_1341522_41 WHERE party = "Republican" AND first_elected = 1974
CREATE TABLE INST, Here is a database schema( table schema);
How many republican incumbents first elected in 1974?It is not neccessary to use all the tables.
SELECT author FROM table_name_17 WHERE title = "harry potter and the deathly hallows"
CREATE TABLE INST, Here is a database schema( table schema);
who is the author for harry potter and the deathly hallows?It is not neccessary to use all the tables.
SELECT COUNT("Provincial capital") FROM table_1691 WHERE "Population (2013)" = '1162900'
CREATE TABLE INST, Here is a database schema( table schema);
what is the numbe of provincial captial where the population is 1162900?It is not neccessary to use all the tables.
SELECT recipient FROM table_name_94 WHERE award = "£6,947" AND film = "jamaica"
CREATE TABLE INST, Here is a database schema( table schema);
Name the recipient for jamaica and award of £6947It is not neccessary to use all the tables.
SELECT Director FROM table WHERE Film title used in nomination = Three Summer Days
CREATE TABLE INST, Here is a database schema( table schema);
Who directed the film with the title three summer days?.It is not neccessary to use all the tables.
SELECT COUNT(president) FROM table_12134383_1 WHERE date_of_inauguration = "4June1979"
CREATE TABLE INST, Here is a database schema( table schema);
how many president with date of inauguration being 4june1979It is not neccessary to use all the tables.
SELECT Tries against FROM table WHERE Club = cwmtwrch rfc
CREATE TABLE INST, Here is a database schema( table schema);
How many tries were there for club cwmtwrch rfc?.It is not neccessary to use all the tables.
SELECT tournament FROM table_name_35 WHERE 2000 = "3r"
CREATE TABLE INST, Here is a database schema( table schema);
what tournament has 2000 of 3r?It is not neccessary to use all the tables.
SELECT year FROM table_name_70 WHERE film = "your national gallery"
CREATE TABLE INST, Here is a database schema( table schema);
In what Year was the Film Your National Gallery winner?It is not neccessary to use all the tables.
SELECT name, member_id FROM member WHERE Membership_card = 'Black' OR age < 30
CREATE TABLE INST, Here is a database schema( table schema);
Find the ids and names of members who are under age 30 or with black membership card.It is not neccessary to use all the tables.
SELECT score FROM table_name_82 WHERE opponent = "milos raonic"
CREATE TABLE INST, Here is a database schema( table schema);
Name the score with opponent of milos raonicIt is not neccessary to use all the tables.
SELECT team FROM table_name_78 WHERE high_rebounds = "carl landry (11)"
CREATE TABLE INST, Here is a database schema( table schema);
What is Team when High Rebounds is "Carl Landry (11)"?It is not neccessary to use all the tables.
SELECT result FROM table_name_30 WHERE distance = "10f" AND winner_or_2nd = "lampra"
CREATE TABLE INST, Here is a database schema( table schema);
What is the result for the distance of 10f and a winner or 2nd of Lampra?It is not neccessary to use all the tables.
SELECT score FROM table_21311525_1 WHERE date = "17/07/2009"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score when the date was 17/07/2009?It is not neccessary to use all the tables.
SELECT Party FROM table WHERE District = maryland 6
CREATE TABLE INST, Here is a database schema( table schema);
What is the party of the maryland 6 district?.It is not neccessary to use all the tables.
SELECT Location / State FROM table WHERE Circuit = eastern creek raceway
CREATE TABLE INST, Here is a database schema( table schema);
Where is the Eastern Creek Raceway located?.It is not neccessary to use all the tables.
SELECT MIN Points FROM table WHERE Game = 32
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest number of points for game 32?.It is not neccessary to use all the tables.
SELECT Italian FROM table WHERE English = we had heard
CREATE TABLE INST, Here is a database schema( table schema);
What's the Italian Pluperfect when the English is We Had Heard?.It is not neccessary to use all the tables.
SELECT programming_language_used FROM table_name_52 WHERE first_public_release = "1997"
CREATE TABLE INST, Here is a database schema( table schema);
Which Programming language used has a First public release of 1997?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Winner = Bernhard Langer (2)
CREATE TABLE INST, Here is a database schema( table schema);
What day did Bernhard Langer (2) win?.It is not neccessary to use all the tables.
SELECT Circuit FROM table WHERE Rnd = 3
CREATE TABLE INST, Here is a database schema( table schema);
What circuit had rnd 3?.It is not neccessary to use all the tables.
SELECT COUNT(launch_date) FROM table_22274142_1 WHERE transmission = "Digital"
CREATE TABLE INST, Here is a database schema( table schema);
How many launch dates are there for digital transmission?It is not neccessary to use all the tables.
SELECT MAX(extra_points) FROM table_name_38 WHERE player = "albert herrnstein" AND points > 15
CREATE TABLE INST, Here is a database schema( table schema);
What was the highest number of extra points scored by Albert Herrnstein, when he scored more than 15 points total?It is not neccessary to use all the tables.
SELECT Perth FROM table WHERE Sydney = yes AND Gold Coast = yes AND Adelaide = no
CREATE TABLE INST, Here is a database schema( table schema);
Which Perth also has Sydney yes, Gold Coast yes, and Adelaide no?.It is not neccessary to use all the tables.
SELECT swimsuit FROM table_name_13 WHERE evening_gown = "9.165 (3)"
CREATE TABLE INST, Here is a database schema( table schema);
what is the swimsuit score when evening gown score is 9.165 (3)?It is not neccessary to use all the tables.
SELECT MIN(drawn) FROM table_28201906_1
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest number of drawn games by a team?It is not neccessary to use all the tables.
SELECT place FROM table_168482_1 WHERE _percentage_of_popular_vote = "0.86%"
CREATE TABLE INST, Here is a database schema( table schema);
What place did the party finish in the year when they earned 0.86% of the vote?It is not neccessary to use all the tables.
SELECT COUNT("make") FROM table_202_12 WHERE "origin" = 'canada'
CREATE TABLE INST, Here is a database schema( table schema);
how many makes origin from canadaIt is not neccessary to use all the tables.
SELECT city FROM table_name_16 WHERE venue = "riverside ground" AND year < 1998
CREATE TABLE INST, Here is a database schema( table schema);
What city has riverside ground as the venue with a year prior to 1998?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Winner (Title #) = robert smith (7)
CREATE TABLE INST, Here is a database schema( table schema);
Name the Date when has robert smith (7)?.It is not neccessary to use all the tables.