sentence
stringlengths
3
347
sql
stringlengths
18
804
What was the poll source for october 6, 2008?
SELECT poll_source FROM table_name_91 WHERE dates_administered = "october 6, 2008"
List the codes of all courses that take place in room KLR209.
SELECT class_code FROM CLASS WHERE class_room = 'KLR209'
Tell me the record for the date of August 18.
SELECT record FROM table_name_55 WHERE date = "august 18"
What circuit was the race named international trophy raced at by the winning driver eliseo salazar?
SELECT circuit FROM table_name_63 WHERE winning_driver = "eliseo salazar" AND name = "international trophy"
how many locations have shops that opened before 2008?
select count ( Location ) from shop where Open_Year = '2008'
What is the migration rating when trade is 5.7?
SELECT migration FROM table_13677808_1 WHERE trade = "5.7"
Which Country has a Score of 70-68-70-68=276?
SELECT country FROM table_name_43 WHERE score = 70 - 68 - 70 - 68 = 276
What are the publication dates in the list?
SELECT Publication_Date FROM publication
What is the sum of Pick #, when College is Laurier?
SELECT SUM(pick__number) FROM table_name_79 WHERE college = "laurier"
What is the rank of Skanskaskrapan?
SELECT rank FROM table_name_3 WHERE name = "skanskaskrapan"
What's the occurrence of the biwords pair whose first word is "àbac" and second word is "xinès"?
SELECT occurrences FROM biwords WHERE w1st = ( SELECT wid FROM words WHERE word = 'àbac' ) AND w2nd = ( SELECT wid FROM words WHERE word = 'xinès' )
What is the date of enrollment of the course named "Spanish"?
SELECT T2.date_of_enrolment FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = "Spanish"
What's the total of Goals Scored with Points that's smaller than 27, and a Team of C.D. Atlético Balboa?
SELECT SUM(goals_scored) FROM table_name_40 WHERE points < 27 AND team = "c.d. atlético balboa"
what is the name of faceid 1082
SELECT FNAME, LNAME FROM Faculty WHERE FacID = 1082
What country had the play Medea?
SELECT country FROM table_name_5 WHERE play = "medea"
what is the record when the opponent is jeff williams?
SELECT record FROM table_name_37 WHERE opponent = "jeff williams"
What is the number of Games for the Maccabi Tel Aviv Team with less than 208 Rebounds?
SELECT AVG(games) FROM table_name_47 WHERE team = "maccabi tel aviv" AND rebounds < 208
List the names of the browser that are compatible with both 'CACHEbox' and 'Fasterfox'.
SELECT T3.name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id JOIN browser AS T3 ON T2.browser_id = T3.id WHERE T1.name = 'CACHEbox' INTERSECT SELECT T3.name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id JOIN browser AS T3 ON T2.browser_id = T3.id WHERE T1.name = 'Fasterfox'
What is the position of the player "Michael Platt"?
SELECT t2.position FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID WHERE T2.name = "Michael Platt"
Can you please list all the ranks and the number of male faculty members for those ranks?
SELECT rank , sex , count ( * ) FROM Faculty WHERE sex = "M" GROUP BY rank , sex
Please list the full official names of all the current legislators who served the term that started on 2013/1/3.
SELECT T1.official_full_name FROM current AS T1 INNER JOIN `current-terms` AS T2 ON T1.bioguide_id = T2.bioguide WHERE T2.start = '2013-01-03'
Name the height when the floors are bigger than 30 at the bny mellon center
SELECT height_ft___m FROM table_name_24 WHERE floors > 30 AND name = "bny mellon center"
What is the duration of the commissioner from the zeeland province?
SELECT duration FROM table_name_47 WHERE province = "zeeland"
Who was the away team at Victoria Park?
SELECT away_team FROM table_name_52 WHERE venue = "victoria park"
In what Year did the Norton Team have 0 Points and 350cc Class?
SELECT AVG(year) FROM table_name_81 WHERE class = "350cc" AND team = "norton" AND points < 0
What is the method where there is a loss with time 5:00?
SELECT method FROM table_name_76 WHERE res = "loss" AND time = "5:00"
Name the opponent for august 26
SELECT opponent FROM table_name_99 WHERE date = "august 26"
What is Ashton Cobb's class in Game 2?
SELECT class FROM table_name_87 WHERE games↑ = 2 AND name = "ashton cobb"
List the names of the schools without any endowment.
SELECT school_name FROM school WHERE school_id NOT IN (SELECT school_id FROM endowment)
What is Outcome, when Opponent in The Final is "Bill Scanlon"?
SELECT outcome FROM table_name_98 WHERE opponent_in_the_final = "bill scanlon"
What is the average 2002 value for Sunflower, which had a 2010 value less than 5587 and a 2007 value greater than 546?
SELECT AVG(2002) FROM table_name_31 WHERE 2010 < 5587 AND production_year = "sunflower" AND 2007 > 546
show the names of cities
SELECT Name FROM city
what is the weeks on chart for the single from france?
SELECT weeks_on_chart FROM table_name_92 WHERE country = "france"
What are the products with a large photo?
SELECT T2.ProductID FROM ProductPhoto AS T1 INNER JOIN ProductProductPhoto AS T2 ON T1.ProductPhotoID = T2.ProductPhotoID WHERE T1.LargePhotoFileName LIKE '%large.gif'
Who was the 3rd place team at Pardubice?
SELECT 3 AS rd_place FROM table_name_41 WHERE venue = "pardubice"
What is the order number that has top 20 (10 women) as the week number?
SELECT order__number FROM table_name_16 WHERE week__number = "top 20 (10 women)"
Golfer Steve Pate has what To par?
SELECT to_par FROM table_name_66 WHERE player = "steve pate"
What is the after for geoff ogilvy?
SELECT MAX(after) FROM table_28498999_4 WHERE player = "Geoff Ogilvy"
How many different advisors are listed?
SELECT count(DISTINCT advisor) FROM Student
What are the product ids for the problems reported by Christop Berge with closure authorised by Ashley Medhurst?
SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Christop" AND T2.staff_last_name = "Berge" INTERSECT SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.closure_authorised_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Ashley" AND T2.staff_last_name = "Medhurst"
display the department name and number of employees in each of the department.
SELECT T2.department_name , COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id GROUP BY T2.department_name
Find number of pets owned by students who are older than 20.
SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.age > 20
What is the height of the player that went to ohio state?
SELECT height FROM table_11677760_31 WHERE college = "Ohio State"
Provide the engine displacement status of the $37443.85589 car.
SELECT T1.displacement FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T2.price = '37443.85589'
What years was Denis Lawson nominated for an award?
SELECT COUNT(year) FROM table_name_45 WHERE nominee = "denis lawson"
How many integrated allied-related are there?
SELECT integrated FROM table_11944282_1 WHERE allied_related = "Many"
What is her start date for each of those?
SELECT Policy_Type_Code,Start_Date FROM policies where Customer_ID = 380
what is the college for the player damon bailey?
SELECT college FROM table_11677760_1 WHERE player = "Damon Bailey"
What is the publisher that has published the most expensive book?
SELECT T2.pub_name FROM titles AS T1 INNER JOIN publishers AS T2 ON T1.pub_id = T2.pub_id ORDER BY T1.price DESC LIMIT 1
What is the number of laps for Grid 3?
SELECT laps FROM table_name_36 WHERE grid = "3"
Name the most overall rank for nl/ua league
SELECT MAX(overall_rank) FROM table_242813_2 WHERE league = "NL/UA"
Among the games released in 2004, what is the percentage of games on PSP?
SELECT CAST(COUNT(CASE WHEN T1.platform_name = 'PSP' THEN T3.game_id ELSE NULL END) AS REAL) * 100 / COUNT(T3.game_id) FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id INNER JOIN game_publisher AS T3 ON T2.game_publisher_id = T3.id WHERE T2.release_year = 2004
What is the highest rank with less than 2 bronze, more than 1 gold, and less than 1 silver?
SELECT MAX(rank) FROM table_name_35 WHERE bronze < 2 AND gold > 1 AND silver < 1
what age is zach?
SELECT age from Person where name = 'Zach'
Find the id and number of shops for the company that produces the most expensive furniture.
SELECT t1.manufacturer_id , t1.num_of_shops FROM manufacturer AS t1 JOIN furniture_manufacte AS t2 ON t1.manufacturer_id = t2.manufacturer_id ORDER BY t2.Price_in_Dollar DESC LIMIT 1
What is the Student capacity of Smith Hall?
SELECT student_capacity from dorm where dorm_name = "Smith Hall"
What is the average births that had a death rate of 0.4
SELECT AVG(births__000s_) FROM table_name_38 WHERE deaths = 0.4
What are the different membership levels?
SELECT count(DISTINCT LEVEL) FROM member
List all the document names which contains "CV".
SELECT document_name FROM documents WHERE document_name LIKE "%CV%"
Which source has a Cost free, and an Activity of some, and an Editor of markitup?
SELECT open_source FROM table_name_48 WHERE cost___us$__ = "free" AND activity = "some" AND editor = "markitup"
What are the ID's of those drivers?
SELECT T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING count ( * ) < = 30
List the number of all matches who played in years of 2013 or 2016.
SELECT count(*) FROM matches WHERE YEAR = 2013 OR YEAR = 2016
What was the score after february 4 in the game 61?
SELECT score FROM table_name_30 WHERE february > 4 AND game = 61
Show the name of journalists with more than 10 years of working and less than 3 years of working.
SELECT name FROM journalist WHERE Years_working > 10 AND Years_working < 3
What was her lowest final score with a qualifying score of 74.075?
SELECT MIN(score_final) FROM table_name_7 WHERE score_qualifying = 74.075
How many professors are there?
SELECT count ( * ) FROM professor
Please list the dates on which a male customer has purchased more than 3 root beers.
SELECT T2.TransactionDate FROM customers AS T1 INNER JOIN `transaction` AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Gender = 'M' GROUP BY T2.TransactionDate HAVING COUNT(T2.CustomerID) > 3
What surface did Ruxandra Dragomir play on?
SELECT surface FROM table_name_13 WHERE partner = "ruxandra dragomir"
List down the geographic identifier with an income that ranges from 2100 to 2500.
SELECT GEOID FROM Demog WHERE INCOME_K >= 2100 AND INCOME_K <= 2500
What are the names, classes, and dates for all races?
SELECT name , CLASS , date FROM race
How many students exist?
SELECT count(*) FROM student
Show the ids of the investors who have at least two transactions.
SELECT T2.investor_id FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id GROUP BY T2.investor_id HAVING COUNT(*) >= 2
Show the dates of performances with attending members whose roles are "Violin".
SELECT T3.Date FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID = T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID = T3.Performance_ID WHERE T2.Role = "Violin"
Show the names and total passengers for all train stations not in London.
SELECT name , total_passengers FROM station WHERE LOCATION != 'London'
which countries were commentated on by gordana bonetti
SELECT country FROM table_184803_4 WHERE commentator = "Gordana Bonetti"
What is the Decile number for St Mary's Catholic School?
SELECT decile FROM table_name_33 WHERE name = "st mary's catholic school"
Please indicate the keywords of the episode that won the Primetime Emmy Award category.
SELECT T2.keyword FROM Award AS T1 INNER JOIN Keyword AS T2 ON T2.episode_id = T1.episode_id WHERE T1.award_category = 'Primetime Emmy';
What are the job ids corresponding to jobs with average salary above 8000?
SELECT job_id FROM employees GROUP BY job_id HAVING AVG(salary) > 8000
List all cases from the year 2012 in which the subject was deceased
SELECT case_number FROM incidents WHERE STRFTIME('%Y', date) > '2011' AND subject_statuses = 'Deceased'
What is the largest number in L?
SELECT MAX(l) FROM table_29565601_2
How many Belgian men have competed in an Olympic Games?
SELECT COUNT(T2.person_id) FROM noc_region AS T1 INNER JOIN person_region AS T2 ON T1.id = T2.region_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T1.region_name = 'Belgium' AND T3.gender = 'M'
Which state is "Mercer University" located in?
SELECT T FROM ( SELECT DISTINCT CASE WHEN chronname = 'Mercer University' THEN state ELSE NULL END AS T FROM institution_details ) WHERE T IS NOT NULL
What is the name of the customer with the highest amount of debt?
SELECT c_name FROM customer WHERE c_acctbal = ( SELECT MIN(c_acctbal) FROM customer )
now give me the student ids of people who play football
SELECT StuID FROM Sportsinfo WHERE sportname = "Football"
what is companies headquarters?
SELECT Headquarters FROM company
From the cases where the subject were deceased, list the subject's last name, gender, race and case number.
SELECT T2.last_name, T2.gender, T2.race, T2.case_number FROM incidents AS T1 INNER JOIN subjects AS T2 ON T1.case_number = T2.case_number WHERE T1.subject_statuses = 'Deceased'
What's the elevator of Jacques D'euse?
SELECT elevator FROM table_name_74 WHERE elector = "jacques d'euse"
How many different players got drafted for the Ottawa Renegades?
SELECT COUNT(player) FROM table_23619005_3 WHERE cfl_team = "Ottawa Renegades"
When did they first start working on the projects? | Do you mean the date when the staff with id 56.0 started the project? | Yes.
SELECT date_from from project_staff where staff_id = 56.0
Name the result for jiří novák radek štěpánek
SELECT result FROM table_22825058_23 WHERE opponents = "Jiří Novák Radek Štěpánek"
What's the highest total of Romania when the bronze was less than 2?
SELECT MAX(total) FROM table_name_14 WHERE nation = "romania" AND bronze < 2
What is the incumbent for 1974?
SELECT incumbent FROM table_1341577_22 WHERE first_elected = 1974
What is the surface area of the country where Sutton Coldfield city belongs?
SELECT T1.SurfaceArea FROM Country AS T1 INNER JOIN City AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = 'Sutton Coldfield'
What type of game is Call of Destiny?
SELECT gtype FROM Video_games WHERE gname = "Call of Destiny"
Where is the youngest teacher from?
SELECT Hometown FROM teacher ORDER BY Age ASC LIMIT 1
What are the names and types of the companies that have ever operated a flight?
SELECT T1.name , T1.type FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id
How many times did jim vivona win?
SELECT COUNT(win__number) FROM table_name_2 WHERE winner = "jim vivona"
Can you give me the allergies that the student with the first name Lisa has
SELECT T1.Allergy FROM Allergy_type AS T1 JOIN Has_allergy AS T2 ON T1.Allergy = T2.Allergy JOIN Student AS T3 ON T3.StuID = T2.StuID WHERE T3.Fname = "Lisa"
What are all details of the students who registered but did not attend any course?
SELECT * FROM student_course_registrations WHERE student_id NOT IN (SELECT student_id FROM student_course_attendance)
What are the final points a 0 total and 22 draws?
SELECT final_points FROM table_name_60 WHERE total = "0" AND draw = 22